/* ===================================================
   突破经营瓶颈·经营管理推演工具 - 深色主题样式
   采用深蓝黑色系 + 金色强调色，营造专业、高端的体验氛围
   =================================================== */

/* ===== CSS 变量（设计令牌） ===== */
:root {
    /* 背景色阶：从深到浅 */
    --bg-primary: #0a0e1a;       /* 最深背景：页面底色 */
    --bg-secondary: #0f1424;     /* 次级背景：侧边栏、底部 */
    --bg-card: #161b30;          /* 卡片背景 */
    --bg-card-hover: #1c2240;    /* 卡片悬停背景 */
    --bg-elevated: #1e2444;      /* elevated 背景：弹窗、下拉 */
    --bg-input: #0d1120;         /* 输入框背景 */

    /* 边框色 */
    --border-color: rgba(255, 255, 255, 0.06);   /* 默认边框 */
    --border-hover: rgba(255, 255, 255, 0.12);   /* 悬停边框 */

    /* 文字色阶 */
    --text-primary: #e8eaf6;     /* 主文字：标题、正文 */
    --text-secondary: #8b92b0;   /* 次级文字：描述、标签 */
    --text-muted: #5a6182;       /* 弱化文字：提示、禁用 */

    /* 强调色：金色渐变体系 */
    --accent: #f5b800;           /* 主强调色：按钮、高亮 */
    --accent-light: #ffd54f;     /* 浅金色：悬停、发光 */
    --accent-dark: #c68f00;      /* 深金色：按下状态 */
    --accent-gradient: linear-gradient(135deg, #f5b800 0%, #ff8c00 100%);  /* 金色渐变 */
    --accent-glow: rgba(245, 184, 0, 0.15);  /* 金色光晕 */

    /* 功能色 */
    --success: #00d4aa;          /* 成功：完成、正确、通过 */
    --success-glow: rgba(0, 212, 170, 0.15);
    --danger: #ff5252;           /* 危险：错误、失败、警告 */
    --danger-glow: rgba(255, 82, 82, 0.15);
    --info: #448aff;             /* 信息：提示、链接 */
    --info-glow: rgba(68, 138, 255, 0.15);
    --purple: #b388ff;           /* 紫色：特殊标记 */
    --purple-glow: rgba(179, 136, 255, 0.15);

    /* 圆角体系 */
    --radius-sm: 8px;            /* 小圆角：按钮、标签 */
    --radius-md: 12px;           /* 中圆角：卡片、输入框 */
    --radius-lg: 20px;           /* 大圆角：面板、模态框 */
    --radius-xl: 28px;           /* 超大圆角：特殊容器 */

    /* 阴影体系 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);    /* 小阴影 */
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);   /* 中阴影 */
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);   /* 大阴影 */
    --shadow-glow: 0 0 30px var(--accent-glow);    /* 发光阴影 */

    /* 动画与字体 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);  /* 统一过渡曲线 */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }  /* 基础字号 16px，平滑滚动 */
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;  /* 禁止水平滚动 */
}
a { color: inherit; text-decoration: none; }  /* 链接继承文字颜色，无下划线 */
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ===== 滚动条自定义 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ===== 全局布局 ===== */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 顶部导航栏 ===== */
.navbar {
    position: fixed;              /* 固定定位，始终置顶 */
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(10, 14, 26, 0.85);  /* 半透明背景 */
    backdrop-filter: blur(20px);         /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(20px); /* Safari 兼容 */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;                /* 确保在最上层 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: var(--transition);
}
/* 品牌区域：Logo + 标题，点击返回首页 */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
/* Logo 方块：金色渐变背景 */
.navbar-logo {
    width: 80px; height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #0a0e1a;
    box-shadow: 0 0 20px var(--accent-glow);
}
/* 品牌标题：渐变文字效果 */
.navbar-title {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #8b92b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* 导航菜单：内容、模拟、计算器等入口 */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 单个导航项 */
.navbar-item {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-item:hover { color: var(--text-primary); background: var(--bg-card); }
.navbar-item.active { color: var(--accent); background: var(--accent-glow); }
/* 用户信息区：头像 + 用户名 + 积分 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.navbar-user:hover { background: var(--bg-card); }
/* 用户头像：金色圆形 */
.navbar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #0a0e1a;
}
.navbar-username { font-size: 14px; color: var(--text-primary); }
/* 积分徽章 */
.navbar-score {
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== 主内容区 ===== */
.main-content {
    margin-top: 64px;             /* 为固定导航栏留出空间 */
    flex: 1;
    padding: 32px 24px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 卡片组件 ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); }
/* 毛玻璃卡片 */
.card-glass {
    background: rgba(22, 27, 48, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* ===== 按钮组件 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
/* 主按钮：金色渐变 */
.btn-primary {
    background: var(--accent-gradient);
    color: #0a0e1a;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }
/* 次级按钮：深色背景 */
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #0a0e1a; }
/* 幽灵按钮：透明背景 */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hover); }
/* 按钮尺寸变体 */
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 表单组件 ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}
/* 统一输入框样式 */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);  /* 聚焦发光环 */
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.form-hint { color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* ===== 认证页面 ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* 径向渐变背景：顶部金色微光 + 底部蓝色微光 */
    background: radial-gradient(ellipse at top, rgba(245, 184, 0, 0.05), transparent 60%),
                radial-gradient(ellipse at bottom, rgba(68, 138, 255, 0.05), transparent 60%),
                var(--bg-primary);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;  /* 入场动画 */
}
.auth-logo {
    width: 80px; height: 56px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #0a0e1a;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--accent-glow);
}
.auth-title { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }
/* 登录/注册切换标签 */
.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.auth-tab.active {
    background: var(--accent-gradient);
    color: #0a0e1a;
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* ===== 内容地图 ===== */
.page-header { margin-bottom: 32px; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-subtitle { color: var(--text-secondary); font-size: 15px; }
/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* 内容部分 */
.course-part { margin-bottom: 32px; }
.part-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
/* 部分徽章：金色标签 */
.part-badge {
    background: var(--accent-gradient);
    color: #0a0e1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.part-title { font-size: 18px; font-weight: 600; }

/* 内容卡片列表 */
.lecture-list { display: flex; flex-direction: column; gap: 12px; }
.lecture-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.lecture-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);  /* 悬停右移效果 */
}
/* 锁定状态 */
.lecture-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.lecture-card.locked:hover {
    border-color: var(--border-color);
    background: var(--bg-card);
    transform: none;
}
/* 内容编号圆圈 */
.lecture-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
/* 已完成状态：绿色 */
.lecture-card.completed .lecture-num {
    background: var(--success-glow);
    color: var(--success);
}
/* 进行中状态：金色 */
.lecture-card.in-progress .lecture-num {
    background: var(--accent-glow);
    color: var(--accent);
}
.lecture-info { flex: 1; }
.lecture-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.lecture-desc { font-size: 13px; color: var(--text-secondary); }
.lecture-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
/* 免费标签 */
.lecture-badge-free {
    background: var(--success-glow);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.lecture-badge-locked { color: var(--text-muted); font-size: 18px; }
/* 状态标签 */
.lecture-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
}
.status-completed { background: var(--success-glow); color: var(--success); }
.status-in-progress { background: var(--accent-glow); color: var(--accent); }

/* ===== 讲义查看器 ===== */
.lecture-viewer { max-width: 900px; margin: 0 auto; }
.lecture-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
}
.lecture-back:hover { color: var(--accent); }
.lecture-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.lecture-viewer-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.lecture-viewer-subtitle { color: var(--text-secondary); font-size: 16px; }

/* 讲义内容区块 */
.lesson-section { margin-bottom: 32px; }
.lesson-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);  /* 左侧金色边框 */
}
.lesson-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}
.lesson-content p { margin-bottom: 16px; }
.lesson-content strong { color: var(--accent); font-weight: 600; }
.lesson-content ul { padding-left: 20px; margin-bottom: 16px; }
.lesson-content li { margin-bottom: 8px; list-style: disc; }

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.data-table th {
    background: var(--bg-elevated);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table .highlight { background: var(--accent-glow); font-weight: 600; }

/* 关键洞见卡片：金色渐变背景 */
.insight-card {
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border: 1px solid rgba(245, 184, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
}
.insight-card-title {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

/* 对比表格 */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}
.compare-table th {
    background: var(--bg-elevated);
    color: var(--accent);
    font-weight: 600;
}
.compare-table .col-good { color: var(--success); }
.compare-table .col-bad { color: var(--danger); }

/* ===== 利润计算可视化 ===== */
.profit-chart { margin: 24px 0; }
.profit-bar-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.profit-bar {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}
.profit-bar-fill {
    width: 100%;
    background: var(--accent-gradient);
    border-radius: 6px 6px 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 4px;
    position: relative;
}
.profit-bar-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}
.profit-bar-value {
    position: absolute;
    top: -24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ===== 自测组件 ===== */
.quiz-container { max-width: 700px; margin: 0 auto; }
.quiz-question {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.quiz-question-text {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
}
/* 选项卡片 */
.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-option:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-glow); }
.quiz-option.correct { border-color: var(--success); background: var(--success-glow); }
.quiz-option.wrong { border-color: var(--danger); background: var(--danger-glow); }
/* 选项字母（A/B/C/D） */
.quiz-option-letter {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.quiz-option.selected .quiz-option-letter { background: var(--accent); color: #0a0e1a; }
.quiz-option.correct .quiz-option-letter { background: var(--success); color: #0a0e1a; }
.quiz-option.wrong .quiz-option-letter { background: var(--danger); color: #fff; }
/* 答案解析 */
.quiz-explanation {
    margin-top: 16px;
    padding: 16px;
    background: var(--info-glow);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}
.quiz-result { text-align: center; padding: 40px; }
.quiz-score { font-size: 64px; font-weight: 800; color: var(--accent); margin: 16px 0; }
.quiz-passed { color: var(--success); }
.quiz-failed { color: var(--danger); }

/* ===== 模拟游戏 ===== */
.sim-container { max-width: 1000px; margin: 0 auto; }
.sim-header { text-align: center; margin-bottom: 32px; }
.sim-scenario {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
/* 步骤指示器（圆点 + 连线） */
.sim-step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.sim-step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.sim-step-dot.active {
    background: var(--accent-gradient);
    color: #0a0e1a;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}
.sim-step-dot.completed {
    background: var(--success-glow);
    color: var(--success);
}
.sim-step-line {
    width: 30px;
    height: 2px;
    background: var(--border-color);
    align-self: center;
}
.sim-step-line.completed { background: var(--success); }

/* 决策面板 */
.sim-decision {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}
.sim-decision-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.sim-decision-desc { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }
.sim-options { display: grid; gap: 12px; }
.sim-option {
    padding: 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.sim-option:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.sim-option.selected { border-color: var(--accent); background: var(--accent-glow); }
.sim-option.revealed-correct { border-color: var(--success); background: var(--success-glow); }
.sim-option.revealed-wrong { border-color: var(--danger); background: var(--danger-glow); }
.sim-option-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.sim-option-desc { font-size: 13px; color: var(--text-secondary); }

/* 反馈区域 */
.sim-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    animation: fadeInUp 0.4s ease;
}
.sim-feedback.correct { background: var(--success-glow); border: 1px solid rgba(0, 212, 170, 0.2); }
.sim-feedback.wrong { background: var(--danger-glow); border: 1px solid rgba(255, 82, 82, 0.2); }

/* 利润展示面板 */
.sim-profit-display {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}
.sim-profit-label { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.sim-profit-value { font-size: 36px; font-weight: 800; color: var(--accent); }
.sim-profit-change { font-size: 16px; margin-top: 8px; }
.sim-profit-change.up { color: var(--success); }
.sim-profit-change.down { color: var(--danger); }
.sim-multiplier {
    display: inline-block;
    padding: 4px 16px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
}

/* ===== 计算器 ===== */
.calc-container { max-width: 900px; margin: 0 auto; }
/* 输入网格：自适应列数 */
.calc-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
/* 结果卡片：金色边框高亮 */
.calc-result-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 0 30px var(--accent-glow);
}
.calc-result-title { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-label { color: var(--text-secondary); }
.calc-result-value { font-weight: 700; font-size: 18px; }
.calc-result-value.highlight { color: var(--accent); font-size: 24px; }

/* ===== 成就 ===== */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}
/* 已获得成就：金色边框 + 发光 */
.achievement-card.earned {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
/* 未获得成就：半透明 */
.achievement-card:not(.earned) { opacity: 0.5; }
.achievement-icon { font-size: 40px; margin-bottom: 12px; }
.achievement-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.achievement-desc { font-size: 12px; color: var(--text-secondary); }
.achievement-points { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 600; }

/* ===== 排行榜 ===== */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.leaderboard-row:hover { border-color: var(--border-hover); }
/* 排名圆圈 */
.leaderboard-rank {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
/* 前三名特殊样式 */
.leaderboard-rank.top1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #0a0e1a; }
.leaderboard-rank.top2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #0a0e1a; }
.leaderboard-rank.top3 { background: linear-gradient(135deg, #cd7f32, #a06020); color: #fff; }
.leaderboard-info { flex: 1; }
.leaderboard-name { font-weight: 600; font-size: 15px; }
.leaderboard-company { font-size: 12px; color: var(--text-secondary); }
.leaderboard-score { font-weight: 700; color: var(--accent); font-size: 18px; }

/* ===== 诊断报告 ===== */
.report-container { max-width: 900px; margin: 0 auto; }
.report-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.report-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.report-metric:last-child { border-bottom: none; }
/* 严重程度标签 */
.report-severity {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.severity-high { background: var(--danger-glow); color: var(--danger); }
.severity-medium { background: var(--accent-glow); color: var(--accent); }
.severity-low { background: var(--success-glow); color: var(--success); }

/* ===== 咨询预约 ===== */
.consultation-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}
.consultation-hero h2 { font-size: 24px; margin-bottom: 12px; }
.consultation-hero p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ===== Toast 提示/通知 ===== */
.toast-container {
    position: fixed;
    top: 80px;                    /* 导航栏下方 */
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;         /* 容器不拦截点击 */
}
.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-md);
    max-width: 360px;
    animation: slideInRight 0.3s ease;
    pointer-events: auto;         /* 恢复点击 */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
/* 不同类型左侧边框色 */
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

/* ===== 锁定遮罩 ===== */
.lock-overlay {
    text-align: center;
    padding: 60px 20px;
}
.lock-overlay-icon { font-size: 64px; margin-bottom: 20px; }
.lock-overlay-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.lock-overlay-desc { color: var(--text-secondary); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== 动画定义 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.fade-in { animation: fadeInUp 0.5s ease; }

/* ===== 进度条 ===== */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 8px; }
    .navbar-title { display: none; }
    
    /* 关键修改：压缩菜单项间距 */
    .navbar-menu { gap: 2px; }
    .navbar-item { 
        padding: 6px 8px; 
        font-size: 13px;
    }
    .navbar-item span { display: none; }
    
    /* 用户区域也压缩 */
    .navbar-user { padding: 4px 6px; gap: 6px; }
    .navbar-avatar { width: 28px; height: 28px; font-size: 12px; }
    .navbar-username { display: none; }  /* 手机端隐藏用户名，只留头像 */
    .navbar-score { display: none; }     /* 手机端隐藏积分，避免撑开 */
    
    .main-content { padding: 20px 16px; }
    .page-title { font-size: 22px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .auth-card { padding: 28px 20px; }
    .sim-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .sim-step-line { width: 16px; }
    .lecture-card { padding: 16px; }
    .lecture-desc { display: none; }
}

/* 超小屏（iPhone SE/mini 等）进一步压缩 */
@media (max-width: 390px) {
    .navbar-logo { 
        width: 60px; 
        height: 30px; 
        font-size: 14px; 
        border-radius: 8px;
    }
    .navbar-item { padding: 6px 6px; }
    .navbar-menu { gap: 0px; }
}

/* ===== 工具类（原子化 CSS） ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* 日期/时间选择器图标在深色主题下可见 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.5);
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.85;
}
