/* 
 * 老浣熊养老基地 - 卡通风主题样式
 * 可爱、萌系、动漫风格
 */

:root {
    --primary-pink: #FF6B9D;
    --primary-purple: #C084FC;
    --secondary-blue: #60A5FA;
    --secondary-green: #34D399;
    --accent-yellow: #FBBF24;
    --accent-orange: #FB923C;
    
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #C084FC 50%, #60A5FA 100%);
    --bg-light: #FFF5F7;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    
    --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 107, 157, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 107, 157, 0.3);
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-cute: 'Comic Sans MS', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cute);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: var(--bg-card);
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    contain: layout style;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '🐻';
    font-size: 32px;
    -webkit-text-fill-color: initial;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-pink);
    background: rgba(255, 107, 157, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid var(--primary-pink);
    border-radius: var(--radius-sm);
    color: var(--primary-pink);
    cursor: pointer;
    font-weight: 500;
}

.btn-logout:hover {
    background: var(--primary-pink);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.quick-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(255, 107, 157, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-nav-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-nav-item .text {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.btn-admin {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    margin-right: 10px;
}

.btn-admin:hover {
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 157, 0.3);
    margin-right: 8px;
    object-fit: cover;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 107, 157, 0.1);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-gray);
    font-weight: 500;
}

.info-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

.info-row .value.highlight {
    color: var(--primary-pink);
    font-size: 18px;
}

.info-row .value.success {
    color: var(--secondary-green);
}

.info-row .value.warning {
    color: var(--accent-orange);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
    background: var(--primary-pink);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.card-action {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.card-link {
    margin-top: 12px;
    text-align: right;
}

.card-link a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid rgba(255, 107, 157, 0.1);
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-pink);
}

.admin-card .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.admin-card .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.admin-card .desc {
    font-size: 14px;
    color: var(--text-gray);
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.table th {
    background: rgba(255, 107, 157, 0.05);
    font-weight: 600;
    color: var(--text-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .header-left {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 1;
        margin-bottom: 10px;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .header-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        order: 2;
    }
    
    .user-info {
        font-size: 14px;
    }
    
    .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
