/* === IQ 智力潜能测评 - 样式表 === */
/* 主色调：蓝色系 #60a5fa */

:root {
    --color-primary: #60a5fa;
    --color-primary-dark: #3b82f6;
    --color-primary-light: #bfdbfe;
    --nav-bg: linear-gradient(to bottom, rgba(10, 10, 20, 0.75) 0%, rgba(10, 10, 20, 0.5) 100%);
    --bg-body: #0a0a14;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-card-light: rgba(20, 20, 30, 0.6);
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; background: var(--bg-body); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }
#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* === 顶部导航 === */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
}
.top-nav .nav-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px; background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.75); font-size: .85em; font-weight: 500;
    cursor: pointer; transition: all .3s ease; text-decoration: none;
}
.top-nav .nav-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(96,165,250,.4); color: #fff; }
.top-nav .nav-btn.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none; color: #fff; box-shadow: 0 4px 15px rgba(96,165,250,.3);
}
.top-nav .nav-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(96,165,250,.4); }

/* === 布局 === */
.container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 70px 20px 40px; }
.page { display: none; animation: fadeIn .5s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === 首页 === */
.home-wrap { text-align: center; padding-top: 60px; }
.top-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 8px 24px; border-radius: 30px; font-size: .95rem; font-weight: 600;
    margin-bottom: 30px; box-shadow: 0 4px 15px rgba(96,165,250,.35);
}
.main-title {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", serif; font-size: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 25px rgba(96,165,250,.4));
    line-height: 1.2; margin-bottom: 16px;
}
.sub-title { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 12px; }
.description { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 680px; margin: 0 auto 28px; }
.feature-tags { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.ftag {
    background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.3);
    padding: 8px 20px; border-radius: 20px; font-size: .9rem; color: var(--color-primary);
}

/* === 密码框 === */
.pw-box {
    max-width: 460px; margin: 0 auto 50px;
    background: rgba(20,20,30,.7); backdrop-filter: blur(10px);
    border: 2px solid rgba(96,165,250,.35); border-radius: 20px; padding: 45px;
    box-shadow: 0 0 60px rgba(96,165,250,.25);
}
.pw-label { text-align: center; color: var(--color-primary); font-size: 1.05rem; margin-bottom: 16px; display: block; }
.pw-input {
    width: 100%; padding: 16px; font-size: 1.2rem;
    background: rgba(10,10,20,.9); border: 2px solid #333;
    border-radius: 12px; color: var(--color-primary); text-align: center;
    margin-bottom: 22px; transition: all .3s;
}
.pw-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 20px rgba(96,165,250,.35); }
.pw-input::placeholder { color: rgba(96,165,250,.3); }
.pw-hint { text-align: center; margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.5); }
.pw-hint a { color: var(--color-primary); text-decoration: none; cursor: pointer; }
.pw-hint a:hover { text-decoration: underline; }
.btn-start {
    width: 100%; padding: 16px; font-size: 1.1rem; font-weight: 700;
    border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff; letter-spacing: 2px; transition: all .3s;
    box-shadow: 0 6px 20px rgba(96,165,250,.4);
}
.btn-start:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(96,165,250,.55); }

/* === 特性卡片 === */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 0 10px; }
.fc-card {
    background: var(--bg-card-light); backdrop-filter: blur(8px);
    border: 1px solid rgba(96,165,250,.2); border-radius: 16px;
    padding: 28px 22px; text-align: center; transition: all .3s;
}
.fc-card:hover { transform: translateY(-5px); border-color: rgba(96,165,250,.5); box-shadow: 0 10px 30px rgba(96,165,250,.2); }
.fc-icon { font-size: 2.5rem; margin-bottom: 14px; }
.fc-title { font-size: 1.1rem; font-weight: 600; color: var(--color-primary); margin-bottom: 8px; }
.fc-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* === 答题页 === */
h1.qt {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", serif; font-size: 2rem;
    color: var(--color-primary); text-align: center; margin-bottom: 8px;
    text-shadow: 0 0 25px rgba(96,165,250,.4);
}
.qt-sub { text-align: center; color: var(--text-muted); margin-bottom: 25px; }
.prog-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 10px; margin-bottom: 28px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); border-radius: 10px; transition: width .5s; }
.q-card {
    background: var(--bg-card); border: 2px solid rgba(96,165,250,.3);
    border-radius: 20px; padding: 38px; margin-bottom: 24px;
}
.q-num {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 5px 16px; border-radius: 15px; font-size: .85rem; margin-bottom: 18px;
}
.q-text { font-size: 1.35rem; line-height: 1.8; color: #fff; margin-bottom: 28px; }
.options { display: grid; gap: 14px; }
.opt {
    background: rgba(255,255,255,.04); border: 2px solid rgba(96,165,250,.2);
    border-radius: 12px; padding: 18px 22px; cursor: pointer;
    font-size: 1.05rem; transition: all .3s;
    display: flex; align-items: center; gap: 14px;
}
.opt:hover { background: rgba(96,165,250,.1); border-color: var(--color-primary); transform: translateX(5px); }
.opt.selected { background: rgba(96,165,250,.2); border-color: var(--color-primary); box-shadow: 0 0 18px rgba(96,165,250,.3); }
.opt-circle {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid rgba(96,165,250,.5); background: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.opt.selected .opt-circle {
    border-color: var(--color-primary); background: var(--color-primary);
}
.opt-circle::after {
    content: ''; width: 0; height: 0;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: all .2s ease;
    opacity: 0;
}
.opt.selected .opt-circle::after {
    width: 6px; height: 11px;
    opacity: 1;
}
.nav-btns { display: flex; gap: 14px; margin-top: 22px; }
.btn-nav {
    flex: 1; padding: 14px; font-size: 1rem;
    background: rgba(96,165,250,.1); border: 2px solid var(--color-primary);
    color: var(--color-primary); border-radius: 10px; cursor: pointer;
    font-weight: 600; transition: all .3s;
}
.btn-nav:hover { background: var(--color-primary); color: #fff; }

/* === 结果页 === */
.res-header {
    text-align: center; padding: 32px 24px;
    background: linear-gradient(135deg, rgba(20,20,35,.9) 0%, rgba(15,15,28,.95) 100%);
    border: 1px solid rgba(96,165,250,.18);
    border-radius: 22px; margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.res-title { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", serif; font-size: 1.85rem; color: var(--color-primary); margin-bottom: 6px; letter-spacing: 2px; }
.res-sub { font-size: .92rem; color: var(--text-muted); margin-bottom: 20px; }
.score-big { font-size: 4.2rem; font-weight: 800; background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.score-lbl { color: #888; font-size: .88rem; margin-top: 8px; letter-spacing: 1px; }
.res-section {
    background: linear-gradient(135deg, rgba(20,20,35,.88) 0%, rgba(15,15,28,.92) 100%);
    border: 1px solid rgba(96,165,250,.15);
    border-radius: 22px; padding: 28px 24px; margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.sec-title {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", serif; font-size: 1.35rem;
    color: var(--color-primary); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(96,165,250,.12);
}

/* === 维度分析 === */
.dim-item {
    background: linear-gradient(135deg, rgba(30,30,50,.6) 0%, rgba(20,20,35,.8) 100%);
    padding: 20px 22px; border-radius: 16px;
    border-left: 3px solid var(--color-primary); margin-bottom: 14px;
    border: 1px solid rgba(96,165,250,.12);
    border-left: 3px solid var(--color-primary);
    transition: all .25s ease;
}
.dim-item:hover { border-color: rgba(96,165,250,.3); transform: translateX(4px); }
.dim-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dim-name { font-size: 1rem; font-weight: 600; color: #e0e0e0; }
.dim-type {
    display: inline-block; padding: 2px 12px; border-radius: 10px;
    font-size: .78rem; color: var(--color-primary); font-weight: 600;
    background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.2);
}
.dim-score { font-size: 2rem; font-weight: 800; margin: 8px 0 4px; }
.dim-score.excellent { color: #34d399; text-shadow: 0 0 16px rgba(52,211,153,.35); }
.dim-score.good { color: var(--color-primary-light); text-shadow: 0 0 14px rgba(96,165,250,.3); }
.dim-score.average { color: #fbbf24; text-shadow: 0 0 14px rgba(251,191,36,.3); }
.dim-score.weak { color: #f87171; text-shadow: 0 0 14px rgba(248,113,113,.3); }
.dim-desc { color: #999; font-size: .88rem; line-height: 1.65; margin-bottom: 12px; }
.pb { height: 7px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.pb-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); border-radius: 6px; transition: width .6s ease; }

/* === 深度分析 === */
.ana-mod {
    background: linear-gradient(135deg, rgba(25,25,42,.5) 0%, rgba(18,18,30,.7) 100%);
    padding: 20px 22px; border-radius: 14px;
    border: 1px solid rgba(96,165,250,.1); margin-bottom: 12px;
}
.ana-mod-title { font-size: 1.05rem; color: var(--color-primary-light); font-weight: 600; margin-bottom: 10px; }
.ana-mod-text { color: #a8a8b8; font-size: .9rem; line-height: 1.8; }

/* === 理论基础 === */
.theory-item {
    padding: 18px 22px; border-radius: 14px;
    border-left: 3px solid rgba(96,165,250,.5);
    background: linear-gradient(135deg, rgba(25,25,42,.4) 0%, rgba(18,18,30,.6) 100%);
    border: 1px solid rgba(96,165,250,.08);
    margin-bottom: 12px;
}
.theory-title { font-size: 1rem; color: var(--color-primary-light); font-weight: 600; margin-bottom: 8px; }
.theory-desc { color: #999; font-size: .88rem; line-height: 1.7; }
.theory-src { color: #666; font-size: .82rem; margin-top: 6px; font-style: italic; }

/* === 行动计划 === */
.action-item {
    background: linear-gradient(135deg, rgba(28,28,48,.5) 0%, rgba(18,18,32,.7) 100%);
    padding: 20px 22px; border-radius: 14px;
    border: 1px solid rgba(96,165,250,.12); margin-bottom: 12px;
    transition: all .3s ease;
}
.action-item:hover { transform: translateY(-3px); border-color: rgba(96,165,250,.35); box-shadow: 0 8px 24px rgba(96,165,250,.12); }
.action-title {
    font-size: 1rem; color: var(--color-primary-light); font-weight: 600;
    margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.action-num {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.action-text { color: #999; font-size: .88rem; line-height: 1.72; }

/* === 名言 === */
.quote-box {
    text-align: center; padding: 30px 24px;
    background: linear-gradient(135deg, rgba(96,165,250,.04) 0%, rgba(59,130,246,.06) 100%);
    border: 1px solid rgba(96,165,250,.15);
    border-radius: 18px; margin-top: 20px;
}
.quote-t { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", serif; font-size: 1.2rem; color: #d0d0e0; line-height: 1.75; margin-bottom: 14px; font-style: italic; }
.quote-a { color: var(--color-primary); font-size: .92rem; }

/* === 重新测评按钮 === */
.btn-restart {
    width: 100%; padding: 16px; font-size: 1.05rem; font-weight: 700;
    border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff; letter-spacing: 2px; transition: all .3s; margin-top: 28px;
}
.btn-restart:hover { transform: translateY(-3px); }

/* === 响应式 === */
@media (max-width: 768px) {
    .container { padding: 60px 14px 30px; }
    .main-title { font-size: 2.2rem; }
    .pw-box { padding: 24px 18px; }
    .fc-grid { grid-template-columns: 1fr; }
    .q-card { padding: 22px 16px; }
    .q-text { font-size: 1.1rem; }
    .nav-btns { flex-direction: row; }
    .res-header { padding: 24px 18px; border-radius: 18px; margin-bottom: 16px; }
    .res-title { font-size: 1.5rem; }
    .score-big { font-size: 3.4rem; }
    .res-section { padding: 20px 16px; border-radius: 18px; margin-bottom: 14px; }
    .sec-title { font-size: 1.15rem; }
    .dim-item { padding: 16px 18px; border-radius: 12px; margin-bottom: 10px; }
    .dim-name { font-size: .92rem; }
    .dim-score { font-size: 1.65rem; }
    .dim-desc { font-size: .82rem; }
    /* 导航按钮移动端只显示图标 */
    .nav-btn span { display: none; }
    .result-actions { gap: 10px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }
    .btn-primary, .btn-secondary, .btn-share { min-width: 130px; padding: 11px 20px; font-size: 13px; flex-shrink: 0; }
}

/* === Result Actions === */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.35);
    margin-top: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(96, 165, 250, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.result-actions .btn-primary {
    width: auto;
    min-width: 150px;
    padding: 13px 28px;
    margin-top: 0;
}

.btn-secondary {
    display: inline-block;
    padding: 13px 28px;
    border: 1.5px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.06);
    color: var(--color-primary-light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
    min-width: 150px;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-share {
    display: inline-block;
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-share:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-share:active {
    transform: translateY(0);
}
/* === 结果页操作按钮（新布局） === */
.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 40px;
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.primary-row .btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    max-width: 200px;
    font-family: inherit;
}

.btn-poster {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.35);
}
.btn-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(96, 165, 250, 0.45);
}
.btn-poster:active {
    transform: translateY(0);
}

.btn-share {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.30);
}
.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.42);
}
.btn-share:active {
    transform: translateY(0);
}

.secondary-row {
    gap: 4px 16px;
    flex-wrap: wrap;
}

.btn-action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: rgba(156, 163, 175, 0.85);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-action-link:hover {
    color: rgba(96, 165, 250, 0.9);
    background: rgba(96, 165, 250, 0.08);
}
.btn-action-link i {
    font-size: 12px;
}


.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* === 历史记录弹窗 === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--color-primary-light);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(96, 165, 250, 0.15);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.history-item {
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.history-item:hover {
    background: rgba(96, 165, 250, 0.12);
    transform: translateX(3px);
}

.h-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.h-level {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.h-score {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.h-score small {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}

.h-dims {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.h-dim-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
}

.h-dim-label {
    color: rgba(255,255,255,0.45);
    margin-right: 5px;
}

.h-dim-val {
    color: #e2e8f0;
    font-weight: 500;
    min-width: 18px;
    text-align: right;
}

.h-time {
    font-size: 11px;
    color: rgba(255,255,255,0.28);
}

.h-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    padding: 8px 10px;
    background: rgba(96,165,250,0.04);
    border-radius: 6px;
    border-left: 2px solid rgba(96,165,250,0.2);
    margin-bottom: 4px;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.history-empty i {
    font-size: 48px;
    color: rgba(96, 165, 250, 0.3);
    margin-bottom: 16px;
    display: block;
}

/* === 海报加载 === */
.poster-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    font-size: 18px;
}

.poster-loading i {
    margin-right: 10px;
    font-size: 24px;
}

/* === 海报预览 === */
.poster-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.poster-preview-modal.active {
    opacity: 1;
}

.poster-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.poster-preview-container {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.poster-preview-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poster-preview-header h3 {
    margin: 0;
    color: var(--color-primary-light);
}

.poster-preview-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.poster-preview-close:hover {
    color: var(--color-primary);
}

.poster-preview-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.poster-preview-image {
    width: 100%;
    border-radius: 8px;
}

.poster-preview-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    text-align: center;
}

.poster-preview-tip {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

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

.poster-download-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.poster-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.poster-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.poster-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* === Dimension Count === */
.dim-count {
    font-size: 0.75em;
    color: #9ca3af;
    font-weight: 400;
}

/* === Action List === */
.action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-list li {
    color: #b0b0b0;
    font-size: .95rem;
    line-height: 1.75;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.action-list li:before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

/* === Analysis Suggestion === */
.ana-mod-suggestion {
    color: var(--color-primary);
    font-size: .95rem;
    margin-top: 12px;
}

/* === Theory Relevance === */
.theory-rel {
    color: #6b7280;
    font-size: .85rem;
    margin-top: 6px;
}

/* 完成提示弹窗样式 */
.completion-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.completion-dialog.active {
    opacity: 1;
}

.completion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.completion-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.3);
    text-align: center;
}

.completion-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #93c5fd;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.completion-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.completion-icon {
    font-size: 60px;
    color: #60a5fa;
    margin-bottom: 20px;
}

.completion-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.completion-time {
    font-size: 16px;
    color: #93c5fd;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.completion-time strong {
    color: #60a5fa;
    font-size: 20px;
}

.completion-desc {
    font-size: 14px;
    color: #bfdbfe;
    margin: 0 0 30px 0;
}

.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completion-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.completion-btn.primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.completion-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
}

.completion-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.completion-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 600px) {
    .completion-content {
        padding: 30px 20px;
    }
    
    .completion-icon {
        font-size: 50px;
    }
    
    .completion-title {
        font-size: 20px;
    }
    
    .completion-time {
        font-size: 14px;
    }
    
    .completion-time strong {
        font-size: 18px;
    }
}

/* 禁止移动端缩放 - iOS兼容 */
html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* 允许输入框选择文字 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 禁止双击缩放 */
* {
    touch-action: manipulation;
}

/* iOS Safari 特定修复 */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* ============================================
 * 客服组件 - 深色主题覆盖
 * Health模块始终深色背景，覆盖kf.css的浅色默认
 * ============================================ */
.customer-service .service-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}
.customer-service .service-btn:hover {
    box-shadow: 0 6px 30px rgba(52,211,153,0.5);
}
.customer-service .service-btn::after {
    background: var(--color-primary);
    border-color: var(--color-bg);
}
@keyframes pulseGreen {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0; }
}
.customer-service .service-btn::before {
    animation: pulseGreen 2s ease-in-out infinite;
}

.customer-service .service-popup {
    background: #1a1a2e;
    border-color: var(--color-primary-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.customer-service .service-popup::after {
    background: #1a1a2e;
    border-color: var(--color-primary-border);
}
.customer-service .service-popup-title {
    color: #fff;
}
.customer-service .service-popup-desc {
    color: rgba(255,255,255,0.7);
}
.customer-service .service-popup-tip {
    color: rgba(255,255,255,0.5);
}
.customer-service .service-popup-close {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
}
.customer-service .service-popup-close:hover {
    background: var(--color-primary);
    color: #fff;
}
.customer-service .service-qrcode {
    background: #fff;
    border-color: var(--color-primary-border);
}
.customer-service .service-phone {
    color: rgba(255,255,255,0.6);
}
.customer-service .service-phone a {
    color: var(--color-primary);
}

/* 客服按钮移动端位置 - 避免与底部内容重叠 */
@media (max-width: 640px) {
    .customer-service {
        bottom: 20px;
        right: 16px;
    }
}

/* ==================== 清除确认弹窗 ==================== */
#confirm-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

#confirm-modal.show {
    display: flex;
}

.confirm-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.confirm-box {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #1a2332 0%, #0f1724 100%);
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 16px;
    padding: 24px 28px;
    width: 320px;
    max-width: 88vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: confirmSlideIn 0.25s ease;
}

@keyframes confirmSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: #93c5fd;
}

.confirm-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 20px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.2s;
}

.confirm-close:hover { color: #60a5fa; }

.confirm-body {
    margin-bottom: 22px;
}

.confirm-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    text-align: center;
}

.confirm-footer {
    display: flex;
    gap: 10px;
}

.confirm-footer button {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-footer .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.confirm-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.confirm-footer .btn-danger {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}

.confirm-footer .btn-danger:hover {
    background: rgba(239,68,68,0.25);
}
