﻿/* ═══════════════════════════════════════════════════
   智治安澜·初心答卷 - 灯塔党建风格 V4.0
   党政红金主题 | 数智赋能党校案例教学实训平台
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #BE1E2D;
    --primary-dark: #8B0000;
    --primary-light: #E83E4F;
    --gold: #D4AF37;
    --gold-light: #F0D58C;
    --white: #FFFFFF;
    --bg: #F0F2F5;
    --bg-card: #FFFFFF;
    --text: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --blue: #2563EB;
    --green: #16A34A;
    --orange: #EA580C;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --surface: #FFFFFF; /* 新增：用于用户菜单等卡片背景 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

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

/* ═══ 按钮 ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
    line-height: 1.4; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #C9A82C 100%);
    color: var(--primary-dark); box-shadow: 0 2px 8px rgba(212,175,55,0.3);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(212,175,55,0.4); }
.btn-danger {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; box-shadow: 0 2px 8px rgba(190,30,45,0.3);
}
.btn-danger:hover { box-shadow: 0 4px 16px rgba(190,30,45,0.4); }
.btn-outline {
    background: transparent; color: var(--text); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(190,30,45,0.04); }
.btn-ghost {
    background: transparent; color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ═══ 顶栏 ═══ */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255,255,255,0.85);
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--gold);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-left span { opacity: 0.9; }
.top-bar-right { display: flex; align-items: center; gap: 6px; }
.top-bar-right a {
    color: rgba(255,255,255,0.75); padding: 2px 12px;
    border-right: 1px solid rgba(255,255,255,0.15); font-size: 13px;
}
.top-bar-right a:last-child { border-right: none; }
.top-bar-right a:hover { color: var(--gold-light); }

/* ═══ 主导航 ═══ */
.main-header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 68px;
}
.logo-area {
    display: flex; align-items: center; gap: 14px;
    cursor: pointer;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 20px; font-weight: 800;
    box-shadow: 0 2px 6px rgba(190,30,45,0.25);
    letter-spacing: 1px;
}
.logo-text h1 {
    font-size: 20px; color: var(--text); font-weight: 700;
    letter-spacing: 1px; line-height: 1.2;
}
.logo-text p { font-size: 11px; color: var(--text-secondary); letter-spacing: 0.5px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    color: var(--text-secondary); padding: 8px 16px; border-radius: 6px;
    font-size: 14px; font-weight: 500; transition: var(--transition);
    position: relative;
}
.main-nav a:hover { color: var(--primary); background: rgba(190,30,45,0.05); }
.main-nav a.active {
    color: var(--primary); font-weight: 600;
}
.main-nav a.active::after {
    content: ''; position: absolute; bottom: -1px; left: 16px; right: 16px;
    height: 2.5px; background: var(--primary); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; position: relative; }
.user-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 5px;
    background: var(--border-light);
    border-radius: 24px;
    font-size: 14px; cursor: pointer;
    transition: var(--transition);
}
.user-badge span {
    white-space: nowrap; /* 防止用户名换行 */
    overflow: hidden; /* 隐藏溢出文本 */
    text-overflow: ellipsis; /* 溢出时显示省略号 */
}
.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    border: none;
    padding: 0;
    font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(190,30,45,0.2);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.chevron-down { color: var(--text-light); transition: transform 0.2s ease; flex-shrink: 0; }
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white); /* 修改为白色背景，确保不透明 */
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 1000;
  border: 1px solid var(--border-light);
  animation: slideDown 0.2s ease;
  overflow: hidden;
}

.user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.user-menu a:hover { background: rgba(190,30,45,0.06); color: var(--primary); }
.user-menu a:active { background: rgba(190,30,45,0.1); }

.um-icon { font-size: 16px; line-height: 1; }

.um-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 12px;
}

.um-danger { color: var(--red) !important; }
.um-danger:hover { color: var(--primary-dark) !important; background: rgba(190,30,45,0.06) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ═══ Hero 区域 ═══ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #D43A4A 100%);
    padding: 72px 0 56px;
    position: relative; overflow: hidden; color: white;
}
.hero-section::before {
    content: '';
    position: absolute; top: -60%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute; bottom: -40%; left: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212,175,55,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 18px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 24px;
    font-size: 13px; color: var(--gold-light);
    margin-bottom: 20px; letter-spacing: 1px;
}
.hero-content h1 {
    font-size: 40px; font-weight: 800; margin-bottom: 14px;
    letter-spacing: 3px; text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
    font-size: 17px; opacity: 0.9; margin-bottom: 28px;
    line-height: 1.8; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══ 页面标题区 ═══ */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.page-header-inner { display: flex; justify-content: space-between; align-items: center; }
.page-header h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* ═══ 内容区域 ═══ */
.section { padding: 32px 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.section-title {
    font-size: 20px; font-weight: 700; color: var(--text);
    padding-left: 14px;
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}
.section-title small {
    font-size: 14px; font-weight: 400; color: var(--text-secondary);
    margin-left: 10px;
}
.section-more { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.section-more:hover { color: var(--primary); }

/* ═══ 卡片 ═══ */
.card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 22px; }
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    background: #FAFBFC;
    font-size: 13px; color: var(--text-secondary);
}

/* ═══ 统计卡片 ═══ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.stat-card .stat-icon {
    font-size: 28px; margin-bottom: 10px;
}
.stat-card .stat-value {
    font-size: 30px; font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 14px; color: var(--text-secondary);
}
.stat-card .stat-trend {
    font-size: 12px; margin-top: 6px;
    display: inline-flex; align-items: center; gap: 4px;
}
.stat-card .stat-trend.up { color: var(--green); }
.stat-card .stat-trend.down { color: var(--orange); }

/* ═══ 场景卡片网格 ═══ */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.scenario-card {
    cursor: pointer;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.scenario-cover {
    height: 170px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.scenario-cover .overlay-text {
    color: white; font-size: 18px; font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    z-index: 1;
}
.scenario-cover .cover-bg {
    position: absolute; inset: 0;
    opacity: 0.9;
}
.scenario-difficulty {
    position: absolute; top: 12px; right: 12px;
    padding: 3px 10px;
    background: rgba(0,0,0,0.45);
    color: var(--gold-light);
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    z-index: 1;
}
.scenario-category {
    position: absolute; top: 12px; left: 12px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    z-index: 1;
}
.scenario-card .card-body { padding: 18px 20px; }
.scenario-card .card-body h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.scenario-card .card-body p {
    font-size: 13px; color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.scenario-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: var(--text-light);
    margin-bottom: 14px;
}
.scenario-meta span { display: flex; align-items: center; gap: 4px; }
.scenario-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    padding: 2px 8px;
    background: rgba(190,30,45,0.06);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(190,30,45,0.1);
}

/* ═══ 分类筛选器 ═══ */
.filter-bar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ═══ 推演工作台 ═══ */
.evolution-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    min-height: calc(100vh - 68px);
    background: var(--white);
}
.evolution-sidebar {
    background: #FAFBFC;
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    overflow-y: auto;
}
.evolution-main {
    background: var(--bg);
    padding: 28px 32px;
    overflow-y: auto;
}
.evolution-panel {
    background: var(--white);
    border-left: 1px solid var(--border);
    padding: 24px 20px;
    overflow-y: auto;
}

/* 阶段指示器 */
.stage-progress { margin-bottom: 28px; }
.stage-progress-title {
    font-size: 14px; font-weight: 600;
    color: var(--text); margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.stage-list { position: relative; padding-left: 0; }
.stage-list::before {
    content: '';
    position: absolute; left: 19px; top: 12px; bottom: 12px;
    width: 2px;
    background: var(--border);
}
.stage-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 12px;
    position: relative;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}
.stage-item:hover { background: rgba(190,30,45,0.04); }
.stage-dot {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    border: 2px solid var(--border);
    background: var(--white);
    z-index: 1;
    transition: var(--transition);
}
.stage-item.active .stage-dot {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(190,30,45,0.12);
}
.stage-item.completed .stage-dot {
    background: var(--green);
    color: white;
    border-color: var(--green);
}
.stage-item.locked .stage-dot {
    background: var(--border-light);
    color: var(--text-light);
    border-color: var(--border);
}
.stage-info { flex: 1; padding-top: 2px; }
.stage-info h5 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.stage-info span { font-size: 12px; color: var(--text-secondary); }
.stage-item.active .stage-info h5 { color: var(--primary); }
.stage-item.completed .stage-info h5 { color: var(--text); }

/* 决策面板 */
.decision-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.decision-panel .panel-title {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-light);
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.decision-content { padding: 22px; }
.decision-desc {
    font-size: 15px; line-height: 1.8;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: #FAFBFC;
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    color: var(--text);
}
.decision-options { display: flex; flex-direction: column; gap: 12px; }
.decision-option {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.decision-option:hover {
    border-color: var(--primary);
    background: rgba(190,30,45,0.03);
}
.decision-option.selected {
    border-color: var(--primary);
    background: rgba(190,30,45,0.05);
    box-shadow: 0 0 0 3px rgba(190,30,45,0.08);
}
.decision-option .opt-radio {
    width: 22px; height: 22px; min-width: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-top: 2px;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.decision-option.selected .opt-radio {
    border-color: var(--primary);
}
.decision-option.selected .opt-radio::after {
    content: '';
    width: 12px; height: 12px;
    background: var(--primary);
    border-radius: 50%;
}
.decision-option .opt-text h5 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.decision-option .opt-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* 代价面板 */
.cost-panel {
    margin-top: 16px;
    padding: 16px 18px;
    background: rgba(234,88,12,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(234,88,12,0.12);
}
.cost-panel h5 {
    font-size: 13px; font-weight: 600;
    color: var(--orange);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.cost-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cost-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-secondary);
}
.cost-item .cost-val { font-weight: 700; color: var(--orange); }

/* 障碍预警 */
.obstacle-alert {
    padding: 14px 16px;
    background: rgba(220,38,38,0.06);
    border: 1px solid rgba(220,38,38,0.15);
    border-radius: var(--radius);
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}
.obstacle-alert h5 {
    color: var(--primary); font-size: 14px;
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
}
.obstacle-alert p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* 实时面板 */
.panel-section { margin-bottom: 24px; }
.panel-section h5 {
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.timer-display {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    color: white;
}
.timer-display .time { font-size: 36px; font-weight: 800; letter-spacing: 2px; }
.timer-display .label { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.stage-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(190,30,45,0.08);
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    color: var(--primary);
}

/* ═══ 评价报告 ═══ */
.evaluation-report {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.report-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 36px 32px;
    color: white;
    text-align: center;
    position: relative; overflow: hidden;
}
.report-header::before {
    content: '';
    position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 60%);
    border-radius: 50%;
}
.report-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: 2px; position: relative; }
.report-header p { font-size: 14px; opacity: 0.85; position: relative; }
.report-body { padding: 32px; }
.report-score {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(190,30,45,0.08) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.report-score .big-score {
    font-size: 56px; font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.report-score .score-label {
    font-size: 16px; color: var(--text-secondary);
    margin-top: 8px;
}
.dim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.dim-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.dim-card:hover { box-shadow: var(--shadow-sm); }
.dim-card h5 {
    font-size: 14px; color: var(--text);
    margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
}
.dim-card h5 .dim-score { color: var(--primary); font-weight: 700; }
.dim-bar {
    height: 8px; background: var(--border-light);
    border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
.dim-bar-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.dim-bar-fill.high { background: linear-gradient(90deg, var(--green) 0%, #22C55E 100%); }
.dim-bar-fill.medium { background: linear-gradient(90deg, var(--gold) 0%, #EAB308 100%); }
.dim-bar-fill.low { background: linear-gradient(90deg, var(--orange) 0%, #F97316 100%); }
.dim-card .dim-comment { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 短板列表 */
.weakness-list { margin-bottom: 28px; }
.weakness-list h4 {
    font-size: 16px; font-weight: 600;
    color: var(--orange); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.weakness-item {
    padding: 14px 18px;
    background: rgba(234,88,12,0.04);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border-left: 3px solid var(--orange);
}
.weakness-item h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.weakness-item p { font-size: 13px; color: var(--text-secondary); }

/* ═══ 表单 ═══ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}
.form-control {
    width: 100%; padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(190,30,45,0.08);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.error { border-color: var(--primary); }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ═══ 登录页 ═══ */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #D43A4A 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: white; padding: 60px 40px;
    position: relative; overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute; top: -30%; right: -15%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.login-left::after {
    content: '';
    position: absolute; bottom: -20%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.login-left .login-brand {
    position: relative; z-index: 1;
    text-align: center; max-width: 480px;
}
.login-left .brand-icon {
    width: 80px; height: 80px;
    background: rgba(212,175,55,0.2);
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800;
    color: var(--gold);
    margin: 0 auto 28px;
    backdrop-filter: blur(8px);
}
.login-left h1 {
    font-size: 34px; font-weight: 800;
    letter-spacing: 4px; margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.login-left .subtitle {
    font-size: 16px; opacity: 0.85;
    line-height: 1.8; margin-bottom: 40px;
}
.login-left .features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}
.login-left .feature-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.06);
}
.login-left .feature-item .f-icon { font-size: 20px; }
.login-left .feature-item .f-text { font-size: 13px; opacity: 0.9; }
.login-right {
    width: 480px;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 48px;
}
.login-form {
    width: 100%; max-width: 360px;
}
.login-form .form-header {
    text-align: center; margin-bottom: 36px;
}
.login-form .form-header h2 {
    font-size: 24px; font-weight: 700;
    color: var(--text); margin-bottom: 6px;
}
.login-form .form-header p {
    font-size: 14px; color: var(--text-secondary);
}
.login-form .input-wrap {
    position: relative;
    margin-bottom: 20px;
}
.login-form .input-wrap .input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
}
.login-form .input-wrap input {
    padding-left: 44px;
    height: 48px;
}
.login-form .form-options {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.login-form .form-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text-secondary);
    cursor: pointer;
}
.login-form .form-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
}
.login-form .forgot-link { font-size: 14px; color: var(--text-secondary); }
.login-form .forgot-link:hover { color: var(--primary); }
.login-form .btn { height: 48px; }
.login-form .divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0; color: var(--text-light);
    font-size: 13px;
}
.login-form .divider::before,
.login-form .divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--border);
}
.login-form .social-login {
    display: flex; gap: 12px; justify-content: center;
}
.login-form .social-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-form .social-btn:hover { border-color: var(--primary); color: var(--primary); }
.login-form .extra-links {
    text-align: center; margin-top: 24px;
}
.login-form .extra-links a {
    font-size: 14px; color: var(--text-secondary);
}
.login-form .extra-links a:hover { color: var(--primary); }

/* ═══ 表格 ═══ */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 4px; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th {
    padding: 12px 16px;
    background: #FAFBFC;
    color: var(--text-secondary);
    font-size: 13px; font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}
.data-table tr:hover td { background: rgba(190,30,45,0.02); }
.data-table .action-link {
    color: var(--primary); font-size: 13px; font-weight: 500;
    margin-right: 12px;
}
.data-table .action-link:hover { text-decoration: underline; }
.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px; font-weight: 500;
}
.status-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
}
.status-badge.pending { background: rgba(234,88,12,0.08); color: var(--orange); }
.status-badge.pending::before { background: var(--orange); }
.status-badge.running { background: rgba(37,99,235,0.08); color: var(--blue); }
.status-badge.running::before { background: var(--blue); }
.status-badge.completed { background: rgba(22,163,74,0.08); color: var(--green); }
.status-badge.completed::before { background: var(--green); }
.status-badge.cancelled { background: rgba(190,30,45,0.08); color: var(--primary); }
.status-badge.cancelled::before { background: var(--primary); }

/* ═══ 分页 ═══ */
.pagination {
    display: flex; justify-content: center; gap: 4px;
    margin-top: 28px;
}
.pagination a, .pagination span {
    min-width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 14px; padding: 0 10px;
}
.pagination a {
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.pagination a:hover { color: var(--primary); border-color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ═══ 模态框 ═══ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(2px);
}
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px;
    border: none; background: var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: flex-end; gap: 12px;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══ 提示消息 ═══ */
#toast-container { position: fixed; top: 80px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    padding: 14px 22px;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    max-width: 400px;
    pointer-events: auto;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--primary); }
.toast.warning { background: var(--orange); }
.toast.info { background: var(--blue); }
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ═══ 加载/进度 ═══ */
.loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar {
    height: 8px; background: var(--border-light);
    border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ 视频/图片 ═══ */
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: var(--radius-lg); background: #000;
}
.video-container video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.media-gallery img {
    width: 100%; height: 150px; object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.media-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ═══ 语音按钮 ═══ */
.voice-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.voice-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(190,30,45,0.3); }
.voice-btn.recording {
    animation: voicePulse 1s infinite;
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(190,30,45,0.4); }
    50% { box-shadow: 0 0 0 14px rgba(190,30,45,0); }
}

/* ═══ 空状态 ═══ */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; }

/* ═══ 页脚 ═══ */
.site-footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: rgba(255,255,255,0.65);
    padding: 48px 0 24px;
    border-top: 3px solid var(--gold);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.footer-brand h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.footer-brand h4 span { color: var(--gold); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
    color: var(--gold);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    padding: 4px 0;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-col p { font-size: 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ═══ 动画辅助 ═══ */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.scale-in { animation: scaleIn 0.3s ease; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ═══ 工具类 ═══ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; }
.grid { display: grid; }
.hidden { display: none; }

/* ═══ 媒体查询 ═══ */
@media (max-width: 1024px) {
    .evolution-layout { grid-template-columns: 1fr; }
    .evolution-sidebar, .evolution-panel {
        border: none;
        border-bottom: 1px solid var(--border);
    }
    .login-left .features { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .mon-row { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 12px;
        border-top: 1px solid var(--border);
        z-index: 999;
    }
    .hamburger { display: flex; }
    .top-bar-left span:last-child { display: none; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    .login-left { display: none; }
    .login-right { width: 100%; padding: 40px 24px; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .dim-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .filter-btn { white-space: nowrap; }
    .user-menu { right: 0; left: auto; min-width: 160px; }
    .container-wide { padding: 0 16px; }
    .section { padding: 24px 0; }
    .card-body { padding: 16px; }
    .report-body { padding: 20px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-content h1 { font-size: 22px; }
    .page-header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .page-header h2 { font-size: 18px; }
    .section-title { font-size: 16px; }
    .scenario-action { padding: 12px; font-size: 14px; }
    .modal .h-mode-grid { flex-direction: column; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 13px; }
    .toast { max-width: calc(100vw - 32px); font-size: 13px; padding: 12px 16px; }
}
