:root {
    /* 亮色主题 Token（纯白底 + GitHub Light 基因） */
    --bg-light: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e4e9f0;
    --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --text-main: #1f2328;
    --text-muted: #57606a;
    --primary-blue: #2f81f7;
    --deep-blue: #1f6feb;
    --bright-green: #1a7f37;
    --danger-red: #cf222e;
    --accent-gold: #9a6700;
    --glow-blue: rgba(47, 129, 247, 0.15);
    --tint-blue: rgba(47, 129, 247, 0.07);
    --tint-green: rgba(26, 127, 55, 0.07);
    --tint-red: rgba(207, 34, 46, 0.06);
    --tint-gold: rgba(154, 103, 0, 0.08);
    --soft-fill: #f6f8fa;
    --star-gold: #d29922;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-bottom: 90px;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 6%, rgba(47, 129, 247, 0.04) 0%, transparent 38%),
        radial-gradient(circle at 90% 82%, rgba(26, 127, 55, 0.03) 0%, transparent 38%);
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px;
}

/* 区块进场动画 */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* 顶部 Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

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

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-blue), #2da44e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 8px var(--glow-blue);
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #1f2328, var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--tint-green);
    border: 1px solid rgba(26, 127, 55, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--bright-green);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--bright-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(26, 127, 55, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); }
}

/* Hero 区 */
.hero {
    text-align: center;
    padding: 18px 0 6px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tint-blue);
    border: 1px solid rgba(47, 129, 247, 0.25);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--primary-blue), #2da44e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 10px;
    padding: 0 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding: 14px 6px;
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.stat-label {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* 跑马灯 */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 0;
    margin: 14px 0 16px;
    font-size: 12px;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 24px;
    color: var(--text-muted);
}

.ticker-item span {
    margin-left: 4px;
    font-weight: 600;
}

.up { color: var(--bright-green); }
.down { color: var(--danger-red); }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* 卡片布局 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.card-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: -6px 0 14px;
    line-height: 1.5;
}

.badge {
    background: linear-gradient(135deg, var(--star-gold), var(--accent-gold));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Tab 切换逻辑 */
.tab-nav {
    display: flex;
    background: var(--soft-fill);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
}

.tab-btn {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 2px 8px var(--glow-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单控件 */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full {
    grid-column: span 2;
}

.input-group label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper span {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.input-wrapper input {
    width: 100%;
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 8px 8px 24px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.12);
}

/* 结果展示盒 */
.result-box {
    background: linear-gradient(180deg, rgba(47, 129, 247, 0.07) 0%, rgba(47, 129, 247, 0.02) 100%);
    border: 1px solid rgba(47, 129, 247, 0.25);
    border-radius: 12px;
    padding: 14px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-main);
}

.result-row:last-child {
    margin-bottom: 0;
}

.val-highlight {
    font-size: 16px;
    font-weight: 700;
    color: var(--bright-green);
}

/* 进度条组件 */
.progress-bar-container {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 12px 0;
    background: #e7ebf0;
}

.progress-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.seg-needs { background: #f85149; }
.seg-wants { background: #d4a72c; }
.seg-savings { background: #2da44e; }

.legend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legend-item strong {
    color: var(--text-main);
    font-size: 12px;
}

/* 问答互动卡片 */
.quiz-item {
    margin-bottom: 14px;
}

.quiz-question {
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
}

.quiz-options {
    display: flex;
    gap: 8px;
}

.quiz-opt-btn {
    flex: 1;
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-opt-btn.selected {
    background: var(--tint-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--bright-green) 0%, #e7ebf0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
}

.score-circle-inner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--bright-green);
}

/* 用户评价/背书 */
.testimonial-card {
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-main);
}

.testimonial-card p {
    line-height: 1.6;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.stars {
    color: var(--star-gold);
    letter-spacing: 1px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* 核心能力区 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature-item {
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 8px;
}

.fi-blue { background: var(--tint-blue); }
.fi-green { background: var(--tint-green); }
.fi-gold { background: var(--tint-gold); }
.fi-red { background: var(--tint-red); }

.feature-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* 三步流程 */
.step-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.step-item:last-child {
    padding-bottom: 0;
}

.step-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 32px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(47, 129, 247, 0.35), rgba(47, 129, 247, 0.05));
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tint-blue);
    border: 1px solid rgba(47, 129, 247, 0.3);
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.step-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* 价格方案 */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
}

.price-card.pro {
    border: 1.5px solid var(--primary-blue);
    box-shadow: 0 4px 16px var(--glow-blue);
    position: relative;
}

.price-tag {
    display: inline-block;
    background: var(--tint-blue);
    color: var(--primary-blue);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.price-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.price-num {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
    margin: 4px 0 10px;
}

.price-num small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-feat {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.price-feat li {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}

.price-feat .yes { color: var(--bright-green); font-weight: 700; }
.price-feat .no { color: #b0b8c4; font-weight: 700; }

.price-btn {
    margin-top: auto;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: var(--soft-fill);
    color: var(--text-main);
    transition: all 0.2s;
}

.price-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px var(--glow-blue);
}

.price-btn:active { transform: scale(0.98); }

/* FAQ 手风琴 */
.faq-item {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--soft-fill);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
}

.faq-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 11px;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-a-inner {
    padding: 0 14px 12px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

.faq-item.open .faq-a {
    max-height: 220px;
}

/* 底部固定 CTA */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--card-border);
    padding: 12px 16px;
    backdrop-filter: blur(12px);
    z-index: 99;
    display: flex;
    justify-content: center;
}

.floating-cta-inner {
    width: 100%;
    max-width: 480px;
}

.btn-glow {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(47, 129, 247, 0.3);
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-glow:active {
    transform: scale(0.98);
}

/* 模态框 Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
    backdrop-filter: blur(6px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.report-summary-item {
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.report-summary-item strong {
    display: block;
    font-size: 14px;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.report-summary-item span {
    font-size: 9.5px;
    color: var(--text-muted);
}

.report-tips {
    background: var(--soft-fill);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-tip {
    display: flex;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--text-main);
}

.report-tip b {
    flex-shrink: 0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 8px 0 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links span {
    cursor: pointer;
}

.footer-links span:hover {
    color: var(--primary-blue);
}

.footer-disclaimer {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0.85;
}

.footer-copy {
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.7;
}
