
:root {
    --sidebar-width: 260px;
    --primary: #2C5AA0;
    --primary-light: #eff6ff;
    --accent: #4F46E5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* --- 全局重置与基础样式 --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Noto Sans SC', sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- 页面标题 --- */
.page-title {
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 品牌模块样式 - 移动友好 --- */
#brand-dropdown-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.brand {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    user-select: none;
    position: relative;
}

.brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.45);
}

.brand.active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 45px rgba(31, 38, 135, 0.5);
}

.brand-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand:hover .brand-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.brand.active .brand-icon-wrapper {
    transform: scale(1.05) rotate(180deg);
}

.brand-icon {
    font-size: 1.5rem;
    color: white;
}

.dropdown-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.dropdown-indicator i {
    font-size: 0.6rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.brand.active .dropdown-indicator i {
    transform: rotate(180deg);
}

.brand-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    min-height: 1.2em;
    line-height: 1.3;
    font-weight: 500;
}

/* --- 下拉侧边栏样式 - 响应式 --- */
.dropdown-sidebar {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90vw;
    max-width: 400px;
    max-height: 70vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-sidebar.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 移动端全屏模式 */
@media (max-width: 768px) {
    .dropdown-sidebar {
        width: 95vw;
        max-width: none;
        top: 85px;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .dropdown-sidebar {
        width: 100vw;
        height: calc(100vh - 90px);
        max-height: none;
        top: 90px;
        left: 0;
        transform: translateX(0) translateY(-20px);
        border-radius: 20px 20px 0 0;
    }
    
    .dropdown-sidebar.active {
        transform: translateX(0) translateY(0);
    }
    
    .brand {
        max-width: none;
        margin: 0 10px;
    }
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand i {
    font-size: 1.8rem;
    opacity: 0.9;
}

.sidebar-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-brand p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 自定义滚动条 */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-item:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateX(5px);
    border-color: var(--border);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.sidebar-item i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--border);
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-badge.new {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    animation: badgePulse 2s infinite;
}

.sidebar-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-left: auto;
    flex-shrink: 0;
    animation: indicatorPulse 2s infinite;
}

.sidebar-tooltip {
    font-size: 0.7rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* AI助手区域 */
.ai-section .sidebar-label {
    color: #8b5cf6;
}

.ai-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.02));
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
}

.ai-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.ai-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: aiPulse 1.5s infinite;
}

/* 快速操作按钮 */
.sidebar-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

@media (max-width: 480px) {
    .sidebar-quick-actions {
        grid-template-columns: 1fr;
    }
}

.quick-action-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
}

/* 用户信息 */
.sidebar-user {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-body);
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    text-align: left;
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-main);
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.logout-btn {
    color: var(--text-muted);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: #fee2e2;
    color: var(--danger);
}

/* 加载动画 */
.subtitle-loading .loading-dots {
    color: rgba(44, 90, 160, 0.6);
    font-weight: 500;
}

.subtitle-loading .loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

.subtitle-loaded {
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4b5563;
    font-weight: 500;
}

/* 页面内容区域 */
.page-content {
    margin-top: 150px;
    max-width: 800px;
    padding: 0 20px;
}

.welcome-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 特性卡片改为可点击的按钮样式 */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: block;  /* 使卡片像按钮一样可点击 */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* 确保内部文字不被浏览器默认样式覆盖 */
.feature-card h3, .feature-card p, .feature-card i {
    color: #fff;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* 屏幕尺寸指示器 */
.screen-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
}

/* --- SIDEBAR & NAVIGATION (主界面侧边栏) --- */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* 重复的 .brand 合并，这里不删除以免影响，但上面已有更详细的 .brand，但保留以防 */
.brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.brand i {
    font-size: 1.5rem;
}

.brand-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-group {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 12px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-item i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    color: var(--text-muted);
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item.active i {
    color: white;
}

.nav-subitem {
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 48px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.nav-subitem i {
    width: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.nav-subitem:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.avatar-small {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--danger);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
}

/* --- LAYOUT STRUCTURE --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s ease;
}

/* Top Bar Styles */
.top-bar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

/* Menu Toggle Styles */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.menu-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.menu-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon .bar {
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.search-container {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    width: 300px;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 0.9rem;
}

.content-area {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* --- HEADER ACTIONS --- */
.notification-dropdown {
    position: relative;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
}

.notification-icon i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    z-index: 100;
}

.notification-panel.show {
    display: block;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mark-all-read {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item i {
    font-size: 1rem;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.quick-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.quick-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
    background-color: white;
    color: var(--primary);
}

.user-profile:hover {
    background-color: var(--primary-light);
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.user-info .user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.user-status {
    font-size: 0.75rem;
    color: var(--success);
}

/* --- WELCOME HERO --- */
.welcome-hero {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(44,90,160,0.2);
}

.hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.hero-content #currentDateTime {
    opacity: 0.9;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.stat-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 0.75rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.hero-illustration {
    position: absolute;
    right: 30px;
    bottom: -10px;
}

.hero-illustration i {
    font-size: 8rem;
    opacity: 0.1;
}

/* --- DASHBOARD GRID --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.card-header h3 i {
    color: var(--primary);
}

.btn-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-body {
    padding: 20px;
}

/* --- DATA TABLES --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 14px 24px;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tr.current-class {
    background: var(--primary-light);
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-main);
    transition: 0.2s;
}

.btn-sm:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn-sm.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-sm.btn-primary:hover {
    background: #1e40af;
}

/* --- LISTS & BADGES --- */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-block {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-block:hover {
    background: #1e40af;
}

/* --- RESOURCE CATEGORY --- */
.resource-category {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.resource-category:last-child {
    margin-bottom: 0;
}

.resource-category h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    background: white;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.resource-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.resource-info {
    flex: 1;
    margin: 0 15px;
}

.resource-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.resource-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-btn {
    color: var(--text-muted);
    padding: 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.download-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* --- TODO LIST --- */
.todo-list {
    margin-bottom: 15px;
}

.todo-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

.todo-item:hover {
    background: #f8fafc;
}

.todo-item.priority-high {
    border-left-color: var(--danger);
}

.todo-item.priority-medium {
    border-left-color: var(--warning);
}

.todo-item.priority-low {
    border-left-color: var(--success);
}

.todo-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.todo-checkbox input {
    margin-right: 8px;
}

.todo-content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.todo-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- COLLABORATION --- */
.collaboration-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.collab-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.collab-item:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.collab-icon {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-info {
    flex: 1;
}

.collab-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.collab-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.collab-progress {
    margin-top: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--primary-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar div {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.collab-progress span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- ANNOUNCEMENTS --- */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-item {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

.announcement-item:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.announcement-badge {
    width: 24px;
    height: 24px;
    background: var(--warning);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.announcement-content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.announcement-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.announcement-content small {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- QUICK ACCESS --- */
.quick-access-section {
    margin-top: 24px;
}

.quick-access-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.quick-access-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.quick-access-card:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44,90,160,0.1);
}

.quick-access-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.quick-access-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- FOOTER --- */
.main-footer {
    margin-top: auto;
    padding: 20px 24px;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- 动画关键帧 --- */
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes fadeInSlide {
    from { 
        opacity: 0; 
        transform: translateY(-8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes indicatorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes aiPulse {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes brandSuccess {
    0% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* --- MOBILE BREAKPOINTS --- */
@media (max-width: 1024px) {
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 15px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-hero {
        padding: 20px;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .search-container {
        width: 200px;
    }
    
    .top-bar {
        padding: 0 15px;
    }
    
    .quick-actions {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .notification-panel {
        width: 280px;
        right: -50px;
    }
    
    /* 页面内容调整 */
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .welcome-message {
        padding: 20px;
    }
    
    .welcome-message h2 {
        font-size: 1.7rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .search-container {
        display: none;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    /* 页面内容调整 */
    body {
        padding: 15px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .brand {
        padding: 12px 16px;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .sidebar-content {
        padding: 16px;
    }
}

/* 卡片颜色变体 */
.feature-card.blue {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.feature-card.green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.feature-card.purple {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.feature-card.orange {
    background: linear-gradient(135deg, #f12711, #f5af19);
}

.feature-card.teal {
    background: linear-gradient(135deg, #005c97, #363795);
}

.feature-card.pink {
    background: linear-gradient(135deg, #c33764, #1d2671);
}

.feature-card.red {
    background: linear-gradient(135deg, #cb2d3e, #ef473a);
}

/* 悬停效果优化 */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 确保文字可见 */
.feature-card h3,
.feature-card p,
.feature-card i {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 柔和色系 */
.feature-card.soft-blue {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.feature-card.soft-green {
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
}

.feature-card.soft-purple {
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

.feature-card.soft-peach {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

/* 深色系 */
.feature-card.dark-blue {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.feature-card.dark-green {
    background: linear-gradient(135deg, #134e5e, #71b280);
}

.feature-card.dark-purple {
    background: linear-gradient(135deg, #23074d, #cc5333);
}

/* 亮色系 */
.feature-card.bright-blue {
    background: linear-gradient(135deg, #00c6fb, #005bea);
}

.feature-card.bright-pink {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .sidebar-item:hover {
        transform: none !important;
    }
    
    .sidebar-item:active {
        background: #e2e8f0 !important;
        transform: scale(0.98) !important;
    }
    
    .quick-action-btn:active {
        transform: scale(0.98) !important;
    }
    
    .brand:active {
        transform: scale(0.98) !important;
    }
}
