/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0a0a0c;
    color: #ece2d4;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.font-serif { font-family: 'Noto Serif SC', 'Songti SC', serif; }

/* Ambient glow — very faint warm light from beneath */
#app {
    max-width: 640px; margin: 0 auto; min-height: 100vh;
    position: relative; z-index: 1;
}
#app::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 600px 400px at 50% -100px, rgba(196,148,58,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 8s ease-in-out infinite;
}
@keyframes ambientPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.page { display: none; padding: 24px 20px 60px; position: relative; z-index: 1; }
.page.active { display: block; animation: fadeUp 0.4s ease; }

/* ===== Home ===== */
.home-container {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 64px; text-align: center;
}
.home-badge {
    background: rgba(196,148,58,0.06);
    border: 1px solid rgba(196,148,58,0.1);
    padding: 6px 18px; border-radius: 20px;
    font-size: 0.75rem; color: #b8944a; font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 32px;
}
.home-title {
    font-size: 2.6rem; line-height: 1.15;
    margin-bottom: 16px; color: #ece2d4;
    font-weight: 900; letter-spacing: -0.5px;
}
.home-desc {
    font-size: 0.95rem; color: #8a847c;
    max-width: 380px; margin-bottom: 32px;
    line-height: 1.7;
}
.home-features { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.feature-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 8px 18px; border-radius: 30px;
    font-size: 0.82rem; color: #6a645e;
}
.home-footnote { font-size: 0.75rem; color: #5c5852; margin-top: 16px; }

/* ===== Buttons ===== */
.btn-primary {
    background: #c4943a;
    color: #0a0a0c; border: none;
    padding: 14px 48px; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease;
    position: relative; overflow: hidden;
}
.btn-primary:hover {
    background: #d4a44a;
    box-shadow: 0 0 40px rgba(196,148,58,0.15);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    background: transparent; color: #c4943a;
    border: 1px solid rgba(196,148,58,0.2);
    padding: 14px 40px; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease;
}
.btn-secondary:hover {
    border-color: rgba(196,148,58,0.4);
    background: rgba(196,148,58,0.04);
    box-shadow: 0 0 30px rgba(196,148,58,0.06);
}
.btn-secondary:active { transform: scale(0.97); }

.btn-premium {
    background: transparent; color: #c4943a;
    border: 1px solid rgba(196,148,58,0.2);
    padding: 14px 40px; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease;
}
.btn-premium:hover {
    border-color: rgba(196,148,58,0.4);
    background: rgba(196,148,58,0.04);
    box-shadow: 0 0 30px rgba(196,148,58,0.06);
}
.btn-premium:active { transform: scale(0.97); }

.pricing-card .btn-primary { width: 100%; text-align: center; }
.pricing-card .btn-secondary { width: 100%; text-align: center; }
.pricing-card .btn-premium { width: 100%; text-align: center; }

/* ===== Quiz ===== */
.quiz-container { padding-top: 24px; }
.quiz-header { margin-bottom: 32px; }

.quiz-top-bar {
    display: flex; justify-content: flex-start; align-items: center;
    min-height: 36px; margin-bottom: 12px;
}
.btn-back {
    background: transparent; border: none;
    color: #6a645e; padding: 6px 4px;
    font-size: 0.85rem; cursor: pointer;
    transition: color 0.2s; display: flex; align-items: center; gap: 4px;
}
.btn-back:hover { color: #c4943a; }
.btn-back:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.btn-back:disabled:hover { color: #6a645e; }

.quiz-progress-text {
    text-align: center; font-size: 0.8rem;
    color: #5c5852; margin-bottom: 10px; font-weight: 500;
    letter-spacing: 0.5px;
}
.progress-bar {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 2px; overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c4943a, #d4a44a);
    border-radius: 2px;
    transition: width 0.5s ease;
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.quiz-body { animation: fadeUp 0.35s ease; }
.quiz-dimension {
    font-size: 0.7rem; color: #c4943a;
    font-weight: 600; margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}
.quiz-number {
    font-size: 0.8rem; color: #5c5852;
    margin-bottom: 14px;
}
.quiz-question {
    font-size: 1.15rem; font-weight: 600;
    line-height: 1.55; margin-bottom: 32px;
    color: #ece2d4;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.option-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 18px; border-radius: 12px;
    font-size: 0.9rem; text-align: left; cursor: pointer;
    transition: all 0.2s ease;
    color: #8a847c; line-height: 1.4;
    display: flex; align-items: center; gap: 14px;
}
.option-btn:hover {
    border-color: rgba(196,148,58,0.15);
    background: rgba(196,148,58,0.03);
}
.option-btn.selected {
    border-color: rgba(196,148,58,0.25);
    background: rgba(196,148,58,0.06);
    color: #ece2d4;
}
.option-letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    font-size: 0.75rem; font-weight: 600;
    color: #5c5852; transition: all 0.2s;
}
.option-btn:hover .option-letter {
    background: rgba(196,148,58,0.08);
    color: #8a847c;
}
.option-btn.selected .option-letter {
    background: rgba(196,148,58,0.18);
    color: #c4943a;
}

/* ===== Dimension Intro ===== */
.dim-intro { animation: fadeIn 0.4s ease; }
.dim-intro-card {
    background: #181a1e; border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px; padding: 40px 28px;
    text-align: center; margin: 24px 0;
}
.dim-intro-group {
    font-size: 0.75rem; color: #5c5852; font-weight: 500;
    letter-spacing: 1px; margin-bottom: 14px;
}
.dim-intro-card h2 {
    font-size: 1.5rem; font-weight: 700; color: #ece2d4;
    margin-bottom: 10px;
}
.dim-intro-slogan {
    font-size: 1rem; color: #c4943a; font-weight: 500;
    margin-bottom: 18px; font-style: italic;
    opacity: 0.85;
}
.dim-intro-desc {
    font-size: 0.9rem; color: #8a847c; line-height: 1.75;
    max-width: 380px; margin: 0 auto 28px;
}
.dim-intro-card .btn-primary {
    padding: 12px 40px;
}

/* ===== Completion / Paywall ===== */
.complete-container {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 40px; text-align: center;
}
.complete-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(74,138,106,0.06);
    border: 1px solid rgba(74,138,106,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #4a8a6a;
    margin-bottom: 24px;
}
.complete-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 10px;
    color: #ece2d4;
}
.complete-desc {
    color: #8a847c; margin-bottom: 32px;
    line-height: 1.6; font-size: 0.9rem;
}
.free-card {
    background: #181a1e; border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px; padding: 24px; width: 100%;
    max-width: 400px; margin-bottom: 28px;
    text-align: left;
}
.free-card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.free-badge {
    background: rgba(196,148,58,0.06);
    color: #b8944a; border: 1px solid rgba(196,148,58,0.1);
    padding: 2px 10px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 600;
}
.free-card-header span:last-child {
    font-size: 0.85rem; font-weight: 600; color: #ece2d4;
}
.free-report-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.free-report-label {
    width: 70px; font-size: 0.82rem; color: #8a847c;
    flex-shrink: 0; text-align: right;
}
.free-report-track {
    flex: 1; height: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 5px; overflow: hidden;
}
.free-report-fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, #c4943a, #d4a44a);
}
.free-report-pct {
    width: 36px; font-size: 0.8rem; font-weight: 600;
    color: #6a645e; text-align: right;
}
.free-report-summary {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 14px 16px; margin-top: 12px;
    font-size: 0.85rem; color: #8a847c; line-height: 1.7;
}
.free-report-summary strong { color: #d4a44a; }
.free-card-footer {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,0.04);
    text-align: center;
}
.free-card-footer p {
    font-size: 0.78rem; color: #5c5852; margin: 0;
}

.pricing-card {
    background: #181a1e;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px; padding: 28px 24px;
    width: 100%; max-width: 380px; margin-bottom: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
}
.pricing-card.premium {
    border-color: rgba(196,148,58,0.08);
    background: rgba(196,148,58,0.02);
}
.pricing-label {
    font-size: 0.8rem; color: #6a645e;
    margin-bottom: 4px; letter-spacing: 0.5px;
}
.pricing-price {
    font-size: 2.6rem; font-weight: 800;
    color: #ece2d4; margin-bottom: 10px;
}
.pricing-card.premium .pricing-price { color: #d4a44a; }
.pricing-desc {
    font-size: 0.82rem; color: #6a645e;
    margin-bottom: 24px; line-height: 1.6;
}
.complete-locked-preview {
    margin-top: 28px; width: 100%; max-width: 400px;
    text-align: left;
}
.complete-locked-preview > p {
    font-size: 0.8rem; color: #5c5852;
    margin-bottom: 14px;
}
.preview-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px; font-size: 0.82rem;
}
.preview-bar-label {
    width: 70px; color: #6a645e; flex-shrink: 0;
}
.preview-bar-track {
    flex: 1; height: 5px;
    background: rgba(255,255,255,0.02);
    border-radius: 3px; overflow: hidden;
}
.preview-bar-fill {
    height: 100%; border-radius: 3px;
    background: rgba(196,148,58,0.12);
}
.share-hint {
    margin-top: 12px; padding: 10px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    font-size: 0.78rem; color: #5c5852;
    border: 1px solid rgba(255,255,255,0.03);
}
.share-hint .share-icon { margin-right: 6px; }

/* ===== Report ===== */
.report-container { padding-top: 24px; }
.report-section { margin-bottom: 36px; }
.report-section h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem; font-weight: 700;
    margin-bottom: 14px; color: #ece2d4;
}
.report-section h3 {
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: 8px; color: #ece2d4;
}
.report-section p { color: #8a847c; line-height: 1.75; margin-bottom: 12px; }

.report-dim-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.report-dim-label {
    width: 72px; font-size: 0.82rem; color: #8a847c;
    flex-shrink: 0; text-align: right;
}
.report-dim-track {
    flex: 1; height: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px; overflow: hidden;
}
.report-dim-fill {
    height: 100%; border-radius: 6px;
    transition: width 0.8s ease;
    background: linear-gradient(90deg, #c4943a, #d4a44a);
}
.report-dim-fill.high { background: linear-gradient(90deg, #c44848, #d45858); }
.report-dim-fill.mid { background: linear-gradient(90deg, #c4943a, #d4a44a); }
.report-dim-fill.low { background: linear-gradient(90deg, #4a8a6a, #5a9a7a); }
.report-dim-pct {
    width: 36px; font-size: 0.82rem;
    font-weight: 600; color: #6a645e;
    text-align: right; font-variant-numeric: tabular-nums;
}

.report-highlight {
    background: rgba(196,148,58,0.03);
    border-left: 3px solid #c4943a;
    padding: 16px 20px; border-radius: 0 10px 10px 0;
    margin-bottom: 24px;
}
.report-highlight p {
    margin-bottom: 0; font-size: 0.9rem;
    color: #d4c5a0;
}

.report-cycle {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px; padding: 20px;
    margin-bottom: 20px;
}
.report-cycle pre {
    font-family: inherit; font-size: 0.85rem;
    line-height: 1.8; color: #8a847c; white-space: pre;
}

.report-quote {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid #c4943a;
    padding: 14px 18px; border-radius: 0 8px 8px 0;
    margin-bottom: 14px; font-size: 0.85rem;
    color: #8a847c; line-height: 1.65;
}

.report-table {
    width: 100%; border-collapse: collapse;
    margin-bottom: 20px; font-size: 0.85rem;
}
.report-table th, .report-table td {
    padding: 10px 12px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.report-table th {
    background: rgba(255,255,255,0.02);
    color: #8a847c; font-weight: 600;
}
.report-table td { color: #6a645e; }

.report-actions {
    display: flex; gap: 12px;
    justify-content: center; margin: 40px 0 60px;
}

.guide-container { padding-top: 24px; }
.guide-container ol { padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.guide-container ol li { color: #8a847c; line-height: 1.7; font-size: 0.88rem; }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(196,148,58,0); }
    50% { box-shadow: 0 0 30px rgba(196,148,58,0.06); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .home-title { font-size: 2rem; }
    .home-container { padding-top: 48px; }
    .quiz-question { font-size: 1.05rem; }
    .pricing-card { padding: 24px 20px; }
    .page { padding: 20px 16px 40px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(196,148,58,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(196,148,58,0.2); }

@media print {
    body { background: #fff; color: #000; }
    .btn-primary, .btn-secondary, .btn-premium { display: none; }
}
 /* ===== History Banner ===== */
 .history-banner {
     position: fixed; top: 0; left: 0; right: 0; z-index: 100;
     padding: 12px 20px;
     background: #181a1e;
     border-bottom: 1px solid rgba(196,148,58,0.06);
     cursor: pointer;
     animation: fadeDown 0.3s ease;
 }
 @keyframes fadeDown {
     from { transform: translateY(-100%); opacity: 0; }
     to { transform: translateY(0); opacity: 1; }
 }
 .history-banner-inner {
     max-width: 640px; margin: 0 auto;
     display: flex; align-items: center; gap: 10px;
 }
 .history-banner-icon { font-size: 1.1rem; }
 .history-banner-text { flex: 1; }
 .history-banner-text span { display: block; }
 #history-banner-label { font-size: 0.85rem; font-weight: 600; color: #ece2d4; }
 .history-banner-sub { font-size: 0.75rem; color: #6a645e; }
 .history-banner:hover { background: #1e1f23; }
 
 /* ===== History Result ===== */
 .history-result {
     padding: 16px 20px 8px;
     border-bottom: 1px solid rgba(255,255,255,0.03);
 }
 .history-result-inner {
     max-width: 640px; margin: 0 auto;
     background: #181a1e;
     border: 1px solid rgba(196,148,58,0.08);
     border-radius: 12px; padding: 16px 18px;
 }
 .history-result-header {
     display: flex; justify-content: space-between; align-items: center;
     margin-bottom: 12px;
 }
 .history-result-title {
     font-size: 0.85rem; font-weight: 600; color: #ece2d4;
 }
 .history-result-date {
     font-size: 0.75rem; color: #5c5852;
 }
 
 /* ===== Emotional Copy ===== */
 .emotional-copy {
     text-align: center;
     padding: 24px 16px;
     max-width: 380px;
 }
 .emotional-copy p {
     font-size: 0.95rem; color: #8a847c; line-height: 1.7;
     margin-bottom: 12px;
 }
 .emotional-copy .emotional-copy-sub {
     font-size: 0.82rem; color: #6a645e;
 }
 
 /* ===== Guide Back Button ===== */
 .guide-back-btn {
     margin-bottom: 16px !important;
     font-size: 0.85rem;
 }
 .guide-back-btn:hover {
     color: #c4943a !important;
 }
