:root {
    --primary-color: #1a73e8;
    --sidebar-width: 260px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    z-index: 1000;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .sidebar-logo {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-header .header-text h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.sidebar-header .header-text p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #fff;
}

.sidebar-menu a i {
    font-size: 18px;
    width: 24px;
    margin-right: 12px;
}

.sidebar-menu a span {
    font-size: 14px;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.top-header .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.top-header .user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 20px;
    box-shadow: 0 16px 30px rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(26, 115, 232, 0.25);
    position: relative;
}

.top-header .user-info .user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.top-header .user-info .dropdown-arrow {
    font-size: 12px;
    color: #888;
    transition: transform 0.2s;
}

.top-header .user-info .user-panel:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.top-header .user-info .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.top-header .user-info.show-dropdown .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-header .user-info .user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.top-header .user-info .user-dropdown .dropdown-item:hover {
    background: #f5f5f5;
}

.top-header .user-info .user-dropdown .dropdown-item:last-child:hover {
    background: #fef2f2;
    color: #dc3545;
}

.top-header .user-info .user-dropdown .dropdown-item i {
    font-size: 16px;
}

.top-header .user-info .user-dropdown .dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

.top-header .user-info .user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.top-header .user-info .user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-right: 8px;
}

.top-header .user-info .user-name {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
}

.top-header .user-info .user-role {
    font-size: 12px;
    color: #1070ff;
    font-weight: 600;
}

.content-wrapper {
    padding: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.welcome-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.welcome-card p {
    opacity: 0.9;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card .stat-icon.blue { background: rgba(26, 115, 232, 0.1); color: #1a73e8; }
.stat-card .stat-icon.green { background: rgba(52, 168, 83, 0.1); color: #34a853; }
.stat-card .stat-icon.orange { background: rgba(251, 188, 5, 0.1); color: #fbbc05; }
.stat-card .stat-icon.red { background: rgba(234, 67, 53, 0.1); color: #ea4335; }

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.quick-actions {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-actions h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.quick-actions .action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
}

.quick-actions .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.05);
}

.quick-actions .action-btn i {
    font-size: 28px;
    margin-bottom: 10px;
}

.quick-actions .action-btn span {
    font-size: 14px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-header .menu-toggle {
        display: block;
    }

    .content-wrapper {
        padding: 20px;
    }
}

/* 动态内容区域样式 */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 40px;
    margin: 0 auto 20px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.profile-info .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 16px;
}

.profile-info .info-item i {
    color: #1a73e8;
    font-size: 20px;
}

.password-form {
    max-width: 400px;
    margin: 0 auto;
}

.password-form .form-label {
    font-weight: 500;
    color: #333;
}

.password-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}

.password-form .btn-primary:hover {
    background: linear-gradient(135deg, #1557b0, #0a3668);
}
