/**
 * SurveyGraph Frontend - 主样式文件
 * ===================================
 * 
 * 设计风格：白色背景、简洁轻快、类似 ChatGPT
 */

/* ==========================================
   CSS 变量
   ========================================== */
:root {
    /* 极简白色配色方案 - 灵感来自 Apple & Gemini */
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfd;
    --bg-tertiary: #f5f5f7;
    --bg-hover: rgba(0, 0, 0, 0.04);
    
    /* 文字颜色 - 极高对比度与层次感 */
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #86868b;
    --text-light: #d2d2d7;
    
    /* 强调色 - 苹果蓝与精致色调 */
    --accent-primary: #0066cc;
    --accent-primary-hover: #0077ed;
    --accent-primary-light: #e8f2ff;
    --accent-success: #28cd41;
    --accent-success-light: #eafaf1;
    --accent-warning: #ff9f0a;
    --accent-warning-light: #fff4e5;
    --accent-error: #ff3b30;
    --accent-error-light: #ffebeb;
    --accent-info: #55a6ff;
    --accent-info-light: #f0f7ff;
    
    /* 边框和阴影 - 极细边框与弥散阴影 */
    --border-color: #d2d2d7;
    --border-light: #f5f5f7;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);
    
    /* 圆角 - 现代大圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* 字体 - 苹果系统字体栈 */
    --font-sans: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    
    /* 过渡 - 丝滑动画 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   基础重置
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================
   布局
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* ==========================================
   卡片
   ========================================== */
/* ==========================================
   卡片 - 极简悬浮风格
   ========================================== */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* ==========================================
   按钮 - 苹果风格
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-success {
    background: var(--accent-success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-danger {
    background: var(--accent-error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* ==========================================
   表单 - 极简线条风格
   ========================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-label-optional {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    font-size: 12px;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:hover {
    background: var(--bg-tertiary);
}

.form-input:focus {
    background: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-primary-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-input-error {
    background: var(--accent-error-light);
    color: var(--accent-error);
}

.form-input-error:focus {
    border-color: var(--accent-error);
    box-shadow: 0 0 0 4px var(--accent-error-light);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
}

.form-error {
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent-error);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-error::before {
    content: '⚠️';
    font-size: 12px;
}

.form-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   顶部导航栏 (Navbar - PC端显示)
   ========================================== */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 导航链接图标 */
.nav-link i {
    margin-right: 6px;
}

.nav-link.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==========================================
   侧边导航栏布局 (Sidebar - 移动端显示)
   ========================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: none; /* 默认隐藏，移动端显示 */
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
    transition: transform var(--transition-normal);
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    margin-bottom: 32px;
    padding: 0 12px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.sidebar-link.active i {
    color: var(--accent-primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-quota {
    font-size: 12px;
    color: var(--text-muted);
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* 侧边栏打开时，菜单按钮移动到侧边栏内部右上角 */
.mobile-menu-toggle.sidebar-open {
    left: 212px;
    background: var(--bg-secondary);
    border-color: transparent;
    box-shadow: none;
}

/* 侧边栏打开时，按钮图标变成关闭图标的视觉提示 */
.mobile-menu-toggle.sidebar-open i::before {
    content: "\f00d"; /* FontAwesome times/close icon */
}

/* ==========================================
   主内容区
   ========================================== */
.main-content {
    flex: 1;
    padding: 40px 48px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================
   响应式适配 (Mobile)
   ========================================== */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-content {
        padding: 80px 20px 40px;
    }
    
    /* 遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 99;
        backdrop-filter: blur(2px);
    }
    
    .sidebar.open + .sidebar-overlay {
        display: block;
    }
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================
   任务卡片
   ========================================== */
.task-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.task-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.task-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.task-card-topic {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-card-topic::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.task-card-status {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.task-card-status.pending {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.task-card-status.running {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.task-card-status.completed {
    background: var(--accent-success);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 205, 65, 0.25);
}

.task-card-status.failed {
    background: var(--accent-error);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
}

.task-card-status.paused {
    background: var(--accent-warning);
    color: white;
}

.task-card-progress {
    margin-bottom: 20px;
}

.task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* ==========================================
   进度条
   ========================================== */
.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #8b5cf6);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar-fill.success {
    background: var(--accent-success);
}

.progress-bar-fill.error {
    background: var(--accent-error);
}

/* ==========================================
   步骤指示器
   ========================================== */
.steps {
    display: flex;
    gap: var(--spacing-xs);
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: calc(100% - 32px);
    height: 2px;
    background: var(--bg-tertiary);
    transform: translateY(-50%);
}

.step:last-child .step-indicator::after {
    display: none;
}

.step.completed .step-indicator {
    background: var(--accent-success);
    color: white;
}

.step.completed .step-indicator::after {
    background: var(--accent-success);
}

.step.active .step-indicator {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 4px var(--accent-primary-light);
}

.step.error .step-indicator {
    background: var(--accent-error);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.step.active .step-label {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ==========================================
   标签页
   ========================================== */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==========================================
   表格
   ========================================== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.table td {
    font-size: 14px;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ==========================================
   徽章
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
}

.badge-success {
    background: var(--accent-success-light);
    color: var(--accent-success);
}

.badge-warning {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
}

.badge-error {
    background: var(--accent-error-light);
    color: var(--accent-error);
}

/* ==========================================
   提示框
   ========================================== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.alert-icon {
    flex-shrink: 0;
    font-size: 20px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 14px;
}

.alert-info {
    background: var(--accent-info-light);
    color: #0e7490;
}

.alert-success {
    background: var(--accent-success-light);
    color: #047857;
}

.alert-warning {
    background: var(--accent-warning-light);
    color: #b45309;
}

.alert-error {
    background: var(--accent-error-light);
    color: #b91c1c;
}

/* ==========================================
   模态框
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* ==========================================
   加载状态
   ========================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   空状态
   ========================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   统计卡片
   ========================================== */
.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-change {
    font-size: 13px;
    margin-top: var(--spacing-sm);
}

.stat-card-change.positive {
    color: var(--accent-success);
}

.stat-card-change.negative {
    color: var(--accent-error);
}

/* ==========================================
   登录/注册页面 - 简洁白色设计
   ========================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: var(--spacing-lg);
}

.auth-page .main-content {
    padding: 0;
    min-height: auto;
    flex: none;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 16px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.auth-header p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: #111827;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: transform 0.2s ease;
}

.auth-logo:hover {
    transform: scale(1.03);
}

.auth-logo i {
    font-size: 24px;
}

.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.auth-form .form-group label i {
    font-size: 12px;
    color: #9ca3af;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.15s ease;
}

.auth-form .form-group input:hover {
    border-color: #d1d5db;
}

.auth-form .form-group input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.auth-form .form-group input::placeholder {
    color: #9ca3af;
}

.auth-form .btn-block {
    width: 100%;
    margin-top: 24px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #111827;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-form .btn-block:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.auth-form .btn-block:active {
    transform: translateY(0);
}

.auth-form .btn-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-form .btn-block i {
    font-size: 14px;
}

.auth-form .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 11px;
    margin-left: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}

.auth-footer a {
    color: #111827;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-footer a:hover {
    color: #2563eb;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* 输入框图标支持 */
.auth-form .input-with-icon {
    position: relative;
}

.auth-form .input-with-icon input {
    padding-left: 42px;
}

.auth-form .input-with-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.15s ease;
    pointer-events: none;
}

.auth-form .input-with-icon input:focus ~ i {
    color: #111827;
}

/* 品牌文字 */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.auth-brand-text {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 12px;
        box-shadow: none;
        background: transparent;
    }
    
    .auth-page {
        background: #ffffff;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-logo {
        width: 48px;
        height: 48px;
    }
    
    .auth-logo i {
        font-size: 20px;
    }
}

/* ==========================================
   日志列表
   ========================================== */
.log-list {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: var(--spacing-md);
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
}

.log-level {
    flex-shrink: 0;
    width: 60px;
    font-weight: 500;
}

.log-level.info {
    color: var(--accent-info);
}

.log-level.warning {
    color: var(--accent-warning);
}

.log-level.error {
    color: var(--accent-error);
}

.log-level.debug {
    color: var(--text-muted);
}

.log-message {
    flex: 1;
    word-break: break-word;
}

/* ==========================================
   知识图谱可视化
   ========================================== */
.graph-container {
    width: 100%;
    height: 600px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.graph-controls {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 10;
}

/* ==========================================
   PDF 预览
   ========================================== */
.pdf-viewer {
    width: 100%;
    height: 800px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   Markdown 预览 - 论文级排版
   ========================================== */
.markdown-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-height: 800px;
    overflow-y: auto;
    font-family: "Georgia", "Times New Roman", serif; /* 衬线体更适合长文阅读 */
    line-height: 1.8;
    color: #111;
}

.markdown-preview h1 {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: -0.02em;
}

.markdown-preview h2 {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.markdown-preview h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.markdown-preview p {
    margin-bottom: 24px;
    font-size: 17px;
    color: #333;
}

.markdown-preview ul,
.markdown-preview ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.markdown-preview li {
    margin-bottom: 8px;
    font-size: 17px;
}

.markdown-preview code {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #d63384;
}

.markdown-preview pre {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.markdown-preview pre code {
    background: none;
    padding: 0;
    color: #24292e;
    font-size: 13px;
}

.markdown-preview blockquote {
    border-left: 4px solid var(--accent-primary);
    background: var(--accent-primary-light);
    padding: 16px 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-style: italic;
}

.markdown-preview table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    font-family: var(--font-sans);
    font-size: 15px;
}

.markdown-preview th,
.markdown-preview td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
}

.markdown-preview th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   大纲编辑器
   ========================================== */
.outline-editor {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.outline-tree {
    list-style: none;
}

.outline-item {
    padding: var(--spacing-sm) 0;
}

.outline-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.outline-item-header:hover {
    background: var(--bg-secondary);
}

.outline-item-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.outline-item.expanded .outline-item-toggle {
    transform: rotate(90deg);
}

.outline-item-number {
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 40px;
}

.outline-item-title {
    flex: 1;
    font-weight: 500;
}

.outline-item-actions {
    display: flex;
    gap: var(--spacing-xs);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.outline-item-header:hover .outline-item-actions {
    opacity: 1;
}

.outline-children {
    margin-left: var(--spacing-xl);
    border-left: 2px solid var(--border-color);
    padding-left: var(--spacing-md);
}

/* ==========================================
   配置面板
   ========================================== */
.config-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.config-section {
    border-bottom: 1px solid var(--border-color);
}

.config-section:last-child {
    border-bottom: none;
}

.config-section-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.config-section-header:hover {
    background: var(--bg-secondary);
}

.config-section-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.config-section-toggle {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.config-section.expanded .config-section-toggle {
    transform: rotate(180deg);
}

.config-section-body {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    display: none;
}

.config-section.expanded .config-section-body {
    display: block;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.config-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.config-value {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ==========================================
   开关
   ========================================== */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.switch input:checked + .switch-slider {
    background: var(--accent-primary);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* ==========================================
   文件上传 - 现代化设计
   ========================================== */
.file-upload {
    position: relative;
}

.file-upload .file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.file-upload .file-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.file-upload .file-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload .file-dropzone:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
}

.file-upload .file-dropzone:hover::before {
    opacity: 1;
}

.file-upload .file-dropzone.dragover {
    border-color: var(--accent-primary);
    border-style: solid;
    background: linear-gradient(135deg, #e8f4fd 0%, #ede9fe 100%);
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.2);
}

.file-upload .dropzone-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
    transition: all 0.3s ease;
}

.file-upload .file-dropzone:hover .dropzone-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.35);
}

.file-upload .dropzone-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.file-upload .dropzone-link {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.file-upload .dropzone-link:hover {
    color: var(--accent-primary-hover);
}

.file-upload .dropzone-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 文件列表 */
.file-upload .file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload .file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    animation: fileItemSlideIn 0.3s ease;
}

@keyframes fileItemSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload .file-item:hover {
    border-color: var(--accent-primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.file-upload .file-item .file-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.file-upload .file-item .file-icon i {
    font-size: 18px;
}

/* PDF 文件图标 */
.file-upload .file-item .file-icon:has(.fa-file-pdf) {
    background: #fef2f2;
    color: #dc2626;
}

/* 图片文件图标 */
.file-upload .file-item .file-icon:has(.fa-file-image) {
    background: #f0fdf4;
    color: #16a34a;
}

/* 文本/Markdown 文件图标 */
.file-upload .file-item .file-icon:has(.fa-file-alt) {
    background: #fefce8;
    color: #ca8a04;
}

.file-upload .file-item .file-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-upload .file-item .file-size {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.file-upload .file-item .file-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-upload .file-item .file-remove:hover {
    background: var(--accent-error-light);
    color: var(--accent-error);
}

/* 旧版兼容样式 */
.file-upload-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.file-upload-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.file-upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.file-list {
    margin-top: var(--spacing-md);
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.file-item-icon {
    font-size: 24px;
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 500;
}

.file-item-size {
    font-size: 13px;
    color: var(--text-muted);
}

.file-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.file-item-remove:hover {
    color: var(--accent-error);
}

/* ==========================================
   响应式 - 移动端侧边栏，PC端导航栏
   ========================================== */

/* 移动端样式 (max-width: 768px) */
@media (max-width: 768px) {
    /* 移动端隐藏顶部导航栏 */
    .navbar {
        display: none;
    }
    
    /* 移动端显示侧边栏（通过菜单按钮触发） */
    .sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* 移动端显示菜单切换按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 移动端遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 99;
        backdrop-filter: blur(2px);
    }
    
    .sidebar.open ~ .sidebar-overlay,
    .sidebar.open + .sidebar-overlay {
        display: block;
    }
    
    .main-content {
        padding: 80px 20px 40px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .auth-card {
        padding: var(--spacing-lg);
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-indicator::after {
        display: none;
    }
}

/* PC端样式 (min-width: 769px) */
@media (min-width: 769px) {
    /* PC端显示顶部导航栏 */
    .navbar {
        display: block;
    }
    
    /* PC端隐藏侧边栏和菜单按钮 */
    .sidebar {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        padding: 40px 48px;
    }
}

/* ==========================================
   工具类
   ========================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--accent-primary);
}

.text-success {
    color: var(--accent-success);
}

.text-warning {
    color: var(--accent-warning);
}

.text-error {
    color: var(--accent-error);
}

.font-mono {
    font-family: var(--font-mono);
}

.font-bold {
    font-weight: 600;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   Toast 通知组件
   ========================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid #6b7280;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 12px;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Toast 类型样式 */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* 响应式 Toast */
@media (max-width: 480px) {
    .toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(-120%);
    }
    
    .toast-show {
        transform: translateY(0);
    }
}

/* ==========================================
   Loading 加载遮罩
   ========================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-message {
    font-size: 14px;
    color: #6b7280;
}

/* 按钮内的 spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ==========================================
   Dashboard 仪表盘样式
   ========================================== */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.dashboard-stats .stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.dashboard-stats .stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-stats .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.dashboard-stats .stat-card:nth-child(2) .stat-icon {
    background: var(--accent-success-light);
    color: var(--accent-success);
}

.dashboard-stats .stat-card:nth-child(3) .stat-icon {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
}

.dashboard-stats .stat-card:nth-child(4) .stat-icon {
    background: var(--accent-info-light);
    color: var(--accent-info);
}

.dashboard-stats .stat-info {
    flex: 1;
}

.dashboard-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dashboard-stats .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dashboard-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.task-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.task-filters .form-select {
    min-width: 150px;
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    cursor: pointer;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.task-list .task-card {
    display: block;
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.task-list .task-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.task-list .task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.task-list .task-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.task-list .task-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    font-size: 13px;
    color: var(--text-muted);
}

.task-list .task-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.task-list .task-step::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.task-list .task-progress {
    margin-top: var(--spacing-md);
}

.task-list .task-progress .progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.task-list .task-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #8b5cf6);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* 空状态样式 */
.task-list .empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.task-list .empty-state .empty-icon {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.task-list .empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.task-list .empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* 加载占位符 */
.loading-placeholder {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--accent-error);
}

/* 分页容器 */
.pagination-container {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-sm);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.page-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 var(--spacing-sm);
    color: var(--text-muted);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.user-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.user-btn .user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-xs) 0;
}

/* 徽章样式补充 */
.badge-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.badge-danger {
    background: var(--accent-error-light);
    color: var(--accent-error);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard {
        padding: var(--spacing-md);
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .dashboard-header h1 {
        font-size: 22px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats .stat-card {
        padding: var(--spacing-md);
    }
    
    .dashboard-stats .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .dashboard-stats .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   通用企业级页面布局
   ========================================== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-primary);
}

.page-title-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   表单增强样式
   ========================================== */
.task-form {
    padding: 0;
    overflow: hidden;
}

.form-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section .section-header {
    margin-bottom: 24px;
}

.form-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.form-actions {
    padding: 24px 32px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================
   个人设置页面样式
   ========================================== */
.profile-section {
    padding: 32px;
    margin-bottom: 0; /* 覆盖可能的默认边距 */
}

.profile-section .section-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.profile-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.profile-main .profile-section {
    margin-bottom: 32px;
}

.profile-main .profile-section:last-child {
    margin-bottom: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    align-items: start;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.info-item label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.quota-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quota-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
}

.quota-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.quota-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.quota-card-bonus {
    background: var(--accent-success-light);
}

.quota-card-bonus .quota-value {
    color: var(--accent-success);
}

/* 邀请卡片 */
.invite-card {
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--accent-primary-light);
}

.invite-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.invite-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.invite-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.invite-code-box {
    background: #ffffff;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.invite-code-box label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.invite-code {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.invite-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.invite-stats strong {
    color: var(--accent-primary);
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .quota-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   任务详情页面样式
   ========================================== */
.task-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.task-detail .page-header {
    margin-bottom: var(--spacing-xl);
}

.task-detail .page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.task-info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.task-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.task-status-header .task-time {
    font-size: 13px;
    color: var(--text-muted);
}

/* 任务元信息 */
.task-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.task-meta-info .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-meta-info .meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-meta-info .meta-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* 任务进度区域 */
.task-progress-section {
    margin-bottom: var(--spacing-xl);
}

.task-progress-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* 任务操作按钮 */
.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.task-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.task-actions .btn svg {
    width: 16px;
    height: 16px;
}

/* 按钮变体 */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* 危险按钮的 outline 变体 */
.btn-danger.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-error);
    color: var(--accent-error);
}

.btn-danger.btn-outline:hover {
    background: var(--accent-error-light);
    border-color: var(--accent-error);
    color: var(--accent-error);
}

.btn-warning {
    background: var(--accent-warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

/* 任务日志区域 */
.task-logs-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.task-logs-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.logs-container {
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 13px;
}

.logs-container .log-item {
    display: flex;
    gap: var(--spacing-md);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.logs-container .log-item:last-child {
    border-bottom: none;
}

.logs-container .log-time {
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 140px;
}

.logs-container .log-step {
    color: var(--accent-primary);
    flex-shrink: 0;
    min-width: 100px;
    font-weight: 500;
}

.logs-container .log-message {
    flex: 1;
    color: var(--text-primary);
    word-break: break-word;
}

.logs-container .log-info .log-message {
    color: var(--text-secondary);
}

.logs-container .log-warning .log-message {
    color: var(--accent-warning);
}

.logs-container .log-error .log-message {
    color: var(--accent-error);
}

.logs-container .empty-logs {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.logs-container .error-logs {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--accent-error);
}

/* 响应式 */
@media (max-width: 768px) {
    .task-detail {
        padding: var(--spacing-md);
    }
    
    .task-info-card {
        padding: var(--spacing-lg);
    }
    
    .task-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .task-meta-info {
        grid-template-columns: 1fr;
    }
    
    .task-actions {
        flex-direction: column;
    }
    
    .task-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .logs-container .log-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .logs-container .log-time,
    .logs-container .log-step {
        min-width: auto;
    }
}

/* ==========================================
   简化日志显示 (普通用户)
   ========================================== */
.task-logs-simple {
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.logs-container-simple {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.simple-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.status-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.status-text {
    flex: 1;
}

.status-step {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.status-progress {
    font-size: 13px;
    color: var(--text-muted);
}

.status-hint {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--accent-info-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--accent-info);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   内容标题样式
   ========================================== */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ==========================================
   Dashboard 副标题
   ========================================== */
.dashboard-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   首页 Hero Section
   ========================================== */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-actions .btn {
    padding: 12px 32px;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
    text-align: left;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}