﻿@charset "UTF-8";

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-dim: rgba(0, 229, 255, 0.15);
    --success: #00e676;
    --warning: #ffab00;
    --danger: #ff5252;
    --bg-panel: rgba(10, 14, 28, 0.88);
    --bg-card: rgba(15, 20, 40, 0.92);
    --border: rgba(0, 229, 255, 0.12);
    --text: #e0e6f0;
    --text-dim: #7a88a0;
    --radius: 10px;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: var(--font-body);
    background: #0a0e1c;
    color: var(--text);
    overflow: hidden;
    user-select: none;
}

#app { width: 100vw; height: 100vh; position: relative; }
#application {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    touch-action: none;
    cursor: grab;
}

#application:active {
    cursor: grabbing;
}

/* ===== 顶部工具栏 ===== */
#toolbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 150;
    backdrop-filter: blur(20px);
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 20px;
    color: var(--accent);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

#module-badge {
    font-size: 13px;
    color: var(--text-dim);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.toolbar-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

#step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-dots {
    display: flex;
    gap: 6px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s;
}

.step-dot.completed {
    background: var(--success);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

.step-dot.active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.3);
}

#step-number {
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

#timer-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--accent);
}

.timer-icon { font-size: 14px; }

#help-btn,
.toolbar-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

#help-btn:hover,
.toolbar-action-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.toolbar-action-btn {
    width: auto;
    min-width: 116px;
    padding: 0 12px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
}

.toolbar-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.toolbar-action-btn.is-active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

.toolbar-action-icon {
    font-size: 15px;
    line-height: 1;
}

/* ===== 左侧步骤卡片 ===== */
#step-card {
    position: absolute;
    top: 72px;
    left: 20px;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.card-step {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px var(--accent-glow);
    min-width: 56px;
}

.card-title-group { flex: 1; }

.card-title-group h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-title-group p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
}

#next-step-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), #0091ea);
    color: #000;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: glow-pulse 2s infinite;
}

.btn-icon { font-size: 14px; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 35px rgba(0, 229, 255, 0.7); }
}

#next-step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.6);
}

/* ===== 右侧面板 ===== */
#side-panel {
    position: absolute;
    top: 72px;
    right: 20px;
    width: 220px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    backdrop-filter: blur(20px);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.panel-icon { font-size: 14px; }

/* 部件列表 */
#parts-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
}

#parts-list::-webkit-scrollbar { width: 4px; }
#parts-list::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }

.part-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-dim);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.part-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.part-item.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
}

.part-item.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* 已拆卸（橙色+删除线）→ 表示"暂离车身，待复装" */
.part-item.removed {
    opacity: 0.75;
    text-decoration: line-through;
    color: #f59e0b;
}

/* 已安装（绿色高亮，全不透明）→ 表示最终完成 */
.part-item.installed {
    color: var(--success);
    opacity: 1.0;
    font-weight: 500;
}

.part-status {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.part-item.active .part-status {
    border-color: var(--accent);
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
    50% { box-shadow: 0 0 16px var(--accent-glow); }
}

.part-item.removed .part-status {
    border-color: #f59e0b;
    background: transparent;
    color: #f59e0b;
}

.part-item.installed .part-status {
    border-color: var(--success);
    background: var(--success);
    color: #000;
}

/* ---- 操作类型徽章 ---- */
.step-action-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-prepare  { background: rgba(148,163,184,.18); color: #94a3b8; border: 1px solid rgba(148,163,184,.4); }
.badge-identify { background: rgba(139,92,246,.18);  color: #a78bfa; border: 1px solid rgba(139,92,246,.4); }
.badge-remove   { background: rgba(245,158,11,.18);  color: #f59e0b; border: 1px solid rgba(245,158,11,.4); }
.badge-inspect  { background: rgba(56,189,248,.18);  color: #38bdf8; border: 1px solid rgba(56,189,248,.4); }
.badge-install  { background: rgba(34,197,94,.18);   color: #22c55e; border: 1px solid rgba(34,197,94,.4); }
.badge-test     { background: rgba(0,229,255,.18);   color: #00e5ff; border: 1px solid rgba(0,229,255,.4); }

/* ---- 工具准备清单 ---- */
.card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}
.card-title-row h2 { margin: 0; flex: 1; }

.prep-desc {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.prep-tools-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
}

.tool-item {
    font-size: 12px;
    color: #94a3b8;
    padding: 4px 8px;
    background: rgba(148,163,184,.08);
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-item::before { content: ''; }

/* ================================================================
   FASTENER OVERLAY SYSTEM
   ================================================================ */

#fastener-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* 通用标记基础样式 */
.fastener-marker {
    position: absolute;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: transform 0.12s;
}
.fastener-marker:hover { transform: scale(1.35) !important; }
.fastener-marker:active { transform: scale(0.88) !important; }

/* 卡扣 (◆) — 青色 */
.fm-clip {
    background: rgba(0,229,255,.14);
    border: 2px solid #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 10px rgba(0,229,255,.5), 0 0 20px rgba(0,229,255,.2);
    animation: fm-pulse-c 1.6s ease-in-out infinite;
}

/* 螺丝 (✕) — 白色 */
.fm-screw {
    background: rgba(226,232,240,.1);
    border: 2px solid #cbd5e1;
    color: #e2e8f0;
    box-shadow: 0 0 8px rgba(226,232,240,.4);
    animation: fm-spin-s 2.8s ease-in-out infinite;
}

/* 螺栓 (⬡) — 琥珀色，方形 */
.fm-bolt {
    background: rgba(245,158,11,.14);
    border: 2px solid #f59e0b;
    color: #f59e0b;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(245,158,11,.5), 0 0 20px rgba(245,158,11,.2);
    animation: fm-pulse-b 2.0s ease-in-out infinite;
}

/* 已点击状态 */
.fastener-marker.fm-clicked {
    background: rgba(34,197,94,.3);
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: 0 0 14px rgba(34,197,94,.6);
    animation: fm-pop 0.18s ease-out !important;
}

/* 消失动画 */
.fm-pop-out {
    animation: fm-vanish 0.3s ease-in forwards !important;
}

/* 悬浮提示 */
.fm-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.fastener-marker:hover .fm-tooltip { opacity: 1; }

/* 漂浮反馈文字 */
.fm-feedback {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
    animation: fm-float-up 0.95s ease-out forwards;
}

/* 进度计数器 */
#fastener-counter {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    margin-bottom: 8px;
}
.fc-label { font-size: 11px; color: var(--text-dim); }
.fc-count  { font-size: 14px; font-weight: 700; color: #f59e0b; font-family: monospace; }
.fc-done   { font-size: 11px; color: var(--success); font-weight: 600; }

/* Keyframes */
@keyframes fm-pulse-c {
    0%, 100% { transform: scale(1.0);  box-shadow: 0 0 10px rgba(0,229,255,.5); }
    50%       { transform: scale(1.13); box-shadow: 0 0 22px rgba(0,229,255,.9); }
}
@keyframes fm-pulse-b {
    0%, 100% { transform: scale(1.0);  box-shadow: 0 0 10px rgba(245,158,11,.5); }
    50%       { transform: scale(1.10); box-shadow: 0 0 22px rgba(245,158,11,.85); }
}
@keyframes fm-spin-s {
    0%   { transform: rotate(0deg) scale(1.0); }
    25%  { transform: rotate(22deg) scale(1.06); }
    75%  { transform: rotate(-22deg) scale(1.06); }
    100% { transform: rotate(0deg) scale(1.0); }
}
@keyframes fm-pop {
    0% { transform: scale(1.5); } 100% { transform: scale(1.0); }
}
@keyframes fm-vanish {
    from { transform: translateY(0) scale(1);    opacity: 1; }
    to   { transform: translateY(-18px) scale(0.5); opacity: 0; }
}
@keyframes fm-float-up {
    0%   { transform: translateY(0);    opacity: 1; }
    100% { transform: translateY(-38px); opacity: 0; }
}

/* 进度环 */
#progress-ring-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

#progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 6;
}

.ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.6s ease;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.ring-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* ===== 底部提示栏 ===== */
#hint-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 24px;
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hint-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hint-icon {
    font-size: 14px;
    color: var(--accent);
}

#hint-text {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.3s;
}

/* ===== 开始界面 ===== */
#start-screen {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.start-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 14, 28, 0.85) 0%, rgba(10, 14, 28, 0.97) 100%);
    backdrop-filter: blur(8px);
}

.start-content {
    position: relative;
    max-width: 640px;
    width: 90%;
    text-align: center;
    pointer-events: none;
}

.start-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 6px 20px;
    margin-bottom: 24px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.start-title {
    margin-bottom: 12px;
}

.title-line {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.title-line.accent {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.start-desc {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-car-wrap {
    margin: 0 auto 24px;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-car-stage {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 80, 120, 0.35) 0%, rgba(8, 12, 24, 0.92) 70%);
    box-shadow:
        inset 0 0 40px rgba(0, 229, 255, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 229, 255, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 扫描线叠层 */
.hero-car-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 229, 255, 0.025) 3px,
        rgba(0, 229, 255, 0.025) 4px
    );
    pointer-events: none;
    z-index: 3;
    animation: scanline-scroll 8s linear infinite;
}

/* 底部辉光环 */
.hero-car-glow-ring {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: glow-ring-pulse 3s ease-in-out infinite;
}

/* 车辆图片 */
.hero-car-img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
    animation: car-float 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0, 229, 255, 0.18)) drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* 渐变遮罩（下边淡出与背景融合） */
.hero-car-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(8, 12, 24, 0.5) 100%
    );
    pointer-events: none;
    z-index: 4;
}

.hero-car-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    font-family: var(--font-display);
    opacity: 0.7;
}

.caption-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    animation: caption-dot-blink 1.8s ease-in-out infinite;
}

.caption-dot:last-child { animation-delay: 0.9s; }

@keyframes car-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    33%       { transform: translateY(-6px) scale(1.008); }
    66%       { transform: translateY(-3px) scale(1.004); }
}

@keyframes scanline-scroll {
    from { background-position: 0 0; }
    to   { background-position: 0 100px; }
}

@keyframes glow-ring-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scaleX(1.08); }
}

@keyframes caption-dot-blink {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1;   }
}

/* 模块卡片网格 */
.module-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-family: var(--font-body);
    color: var(--text);
    pointer-events: auto;
    opacity: 0;
    animation: module-card-rise 0.7s ease forwards;
}

.module-card:nth-child(1) {
    animation-delay: 0.18s;
}

@keyframes module-card-rise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.module-card:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.module-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.module-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.module-desc {
    font-size: 12px;
    color: var(--text-dim);
}

.module-difficulty {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    width: fit-content;
    font-weight: 600;
}

.difficulty-easy {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.difficulty-medium {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 171, 0, 0.3);
}

.difficulty-hard {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.module-arrow {
    font-size: 18px;
    color: var(--text-dim);
    transition: all 0.3s;
}

.module-card:hover .module-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.start-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* ===== 完成界面 ===== */
#complete-screen {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complete-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 28, 0.92);
    backdrop-filter: blur(12px);
}

.complete-content {
    position: relative;
    text-align: center;
    max-width: 480px;
    width: 90%;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.complete-trophy {
    font-size: 64px;
    margin-bottom: 16px;
    animation: trophy-bounce 1s ease;
}

@keyframes trophy-bounce {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.complete-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 28px;
    text-shadow: 0 0 20px var(--accent-glow);
}

.complete-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), #0091ea);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    padding: 12px 28px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    #step-card { width: 280px; }
    #side-panel { width: 180px; }
    .title-line { font-size: 28px; }
    .hero-car-wrap { max-width: 420px; }
}

@media (max-width: 600px) {
    #step-card { width: 220px; padding: 12px; top: 64px; left: 10px; }
    .card-step { font-size: 24px; }
    .card-title-group h2 { font-size: 14px; }
    #side-panel { width: 150px; right: 10px; top: 64px; }
    .title-line { font-size: 22px; }
    .hero-car-wrap { margin-bottom: 16px; max-width: 320px; }
    #toolbar { padding: 0 10px; }
    #step-indicator { display: none; }
    .toolbar-action-btn { min-width: 38px; padding: 0 10px; }
    .toolbar-action-text { display: none; }
}
