:root { --ink:#232333; --muted:#797989; --paper:#fffdf9; --line:#e9e3dc; --accent:#df6949; --deep:#242534; --gold:#bd8b47; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:320px; color:var(--ink); background:radial-gradient(circle at 85% 0%, #f3ddd1 0, transparent 27rem), #f6f2ec; font-family:Outfit,"PingFang SC","Microsoft YaHei",sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.24; background-image:radial-gradient(#ad9d8e .55px, transparent .7px); background-size:7px 7px; }
.app-shell { width:min(100%, 520px); margin:auto; padding:24px 18px 38px; position:relative; }
.hero { padding:14px 5px 30px; }.brand-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }.brand { display:flex; align-items:center; gap:9px; font:600 15px "Noto Serif SC",serif; letter-spacing:.12em; }.brand-mark { width:29px; height:29px; display:grid; place-items:center; color:#fff; background:var(--deep); border-radius:50%; letter-spacing:0; }
.account-chip { display:flex; align-items:center; gap:7px; flex:none; padding:4px 9px 4px 4px; border:1px solid var(--line); border-radius:999px; background:rgba(255,253,249,.82); color:#5f5860; font-size:12px; box-shadow:0 4px 12px rgba(63,46,31,.05); }.account-avatar { width:24px; height:24px; display:grid; place-items:center; flex:none; border-radius:50%; background:var(--deep); color:#fff; font:600 12px "Noto Serif SC",serif; }.account-name { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }.account-logout { padding:2px 3px; border:0; background:transparent; color:var(--accent); font:600 11px Outfit,"PingFang SC",sans-serif; cursor:pointer; }
.eyebrow,.section-kicker { margin:28px 0 10px; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }.hero h1 { font:600 clamp(34px,9vw,47px)/1.2 "Noto Serif SC",serif; letter-spacing:-.045em; margin:0; }.hero h1 strong { color:var(--accent); font-weight:600; }.hero-copy { margin:16px 0 23px; color:var(--muted); font-size:14px; line-height:1.8; }.steps { display:flex; align-items:center; gap:9px; color:#adabb0; font-size:11px; letter-spacing:.05em; }.steps i { height:1px; width:25px; background:#d6d0ca; }.steps .active { color:var(--ink); font-weight:700; }
.card,.report { background:rgba(255,253,249,.88); border:1px solid rgba(255,255,255,.7); border-radius:22px; padding:25px; box-shadow:0 18px 38px rgba(63,46,31,.07); }.panel { display:none; }.panel.is-visible { display:block; animation:reveal .45s ease-out; } @keyframes reveal { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.card-heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:25px; }.number { color:var(--gold); font:600 14px Outfit,sans-serif; padding-top:3px; }.card h2,.report h2 { margin:0; font:600 20px "Noto Serif SC",serif; }.card-heading p { color:var(--muted); font-size:13px; margin:5px 0 0; }
.field-label { display:block; font-size:13px; font-weight:600; margin:19px 0 8px; }.field-label em { font-style:normal; font-weight:400; color:#aaa; margin-left:5px; } input,select { appearance:none; width:100%; height:53px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:#fffefa; padding:0 14px; font:500 15px Outfit,"PingFang SC",sans-serif; outline:0; } input:focus,select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(189,139,71,.12); }
button { border:0; font-family:inherit; cursor:pointer; }.primary-button { width:100%; height:54px; border-radius:11px; background:var(--deep); color:#fff; font-size:15px; font-weight:600; margin-top:27px; transition:transform .2s, background .2s; }.primary-button:hover { background:#343646; transform:translateY(-1px); }.primary-button span { color:#f0c98c; margin-left:8px; font-size:19px; }.privacy-note { font-size:11px; text-align:center; color:#aaa6a2; margin:16px 0 0; }
.check-field { align-items:center; gap:8px; color:#716b70; font-size:12px; margin-top:10px; }.check-field:not([hidden]) { display:flex; }.check-field input { appearance:auto; width:14px; height:14px; padding:0; }
.progress { height:3px; background:#eee8e2; border-radius:6px; margin:-5px 0 28px; overflow:hidden; }.progress span { display:block; background:var(--accent); height:100%; width:33.33%; transition:width .35s ease; }.question-index { font-size:12px; color:var(--gold); font-weight:700; letter-spacing:.12em; }.question { font:600 23px/1.45 "Noto Serif SC",serif; margin:9px 0 20px; }.options { display:grid; gap:10px; }.option { position:relative; display:flex; align-items:center; width:100%; min-height:56px; padding:12px 45px 12px 15px; border:1px solid var(--line); border-radius:11px; background:#fffefa; text-align:left; color:#50505e; font-size:14px; transition:.2s; }.option::after { content:""; position:absolute; right:16px; width:14px; height:14px; border:1px solid #d8d2ca; border-radius:50%; }.option.selected { border-color:var(--accent); background:#fff8f5; color:var(--ink); }.option.selected::after { border:4px solid var(--accent); }.quiz-actions { display:flex; }.quiz-actions .primary-button { margin-top:24px; }.quiz-actions .primary-button:disabled { background:#c8c5c2; cursor:not-allowed; transform:none; }
.report { padding:25px; }.report-top { display:flex; align-items:start; justify-content:space-between; gap:16px; }.report-top .eyebrow { margin:0 0 8px; }.text-button { color:#7d7780; background:transparent; font-size:12px; white-space:nowrap; padding:6px 0; text-decoration:underline; }.report-meta { display:flex; flex-wrap:wrap; gap:7px; margin:19px 0; }.report-meta span { color:#706b6d; background:#f0ece5; padding:5px 9px; border-radius:30px; font-size:11px; }.report-intro { display:flex; gap:10px; padding:16px; background:#f7ede8; border-radius:12px; }.spark { color:var(--accent); font-size:20px; }.report-intro p { margin:0; color:#5e5861; font:500 14px/1.75 "Noto Serif SC",serif; }.section-title { margin:28px 0 13px; display:flex; justify-content:space-between; align-items:baseline; font:600 16px "Noto Serif SC",serif; }.section-title small { color:#aaa; font:11px Outfit,sans-serif; }.star-list { display:grid; gap:10px; }.star { background:#fffefa; border:1px solid var(--line); border-radius:13px; overflow:hidden; }.star-button { width:100%; display:flex; align-items:center; gap:12px; padding:14px; background:transparent; text-align:left; }.star-icon { width:37px; height:37px; display:grid; place-items:center; flex:none; border-radius:50%; background:#f7ede8; color:var(--accent); font:18px "Noto Serif SC",serif; }.star-title { flex:1; }.star-title b { display:block; font:600 16px "Noto Serif SC",serif; }.star-title small { color:#8d8990; font-size:11px; }.chevron { color:#a5a0a1; transition:transform .2s; }.star-detail { display:none; border-top:1px solid var(--line); color:#686370; margin:0 14px; padding:12px 0 14px; font:13px/1.75 "Noto Serif SC",serif; }.star.open .star-detail { display:block; }.star.open .chevron { transform:rotate(180deg); }.report-section { border-top:1px solid var(--line); margin-top:27px; padding-top:1px; }.report-section .section-kicker { margin:20px 0 6px; }.report-section h3 { margin:0 0 8px; font:600 19px "Noto Serif SC",serif; }.report-section p:last-child { margin:0; color:#6d6871; font:14px/1.8 "Noto Serif SC",serif; }.method-note { margin:25px 0 0; color:#85808a; font-size:12px; line-height:1.7; }.method-note summary { cursor:pointer; }.method-note p { margin:8px 0 0; }.secondary-button { width:100%; height:49px; border:1px solid #cbc2b7; border-radius:10px; background:transparent; color:#645d5c; margin-top:20px; font-weight:600; } footer { width:min(100%,520px); padding:0 28px 31px; margin:auto; color:#a6a09b; font-size:10px; line-height:1.7; text-align:center; }.toast { position:fixed; z-index:5; left:50%; bottom:25px; transform:translate(-50%,100px); background:var(--deep); color:#fff; padding:11px 17px; border-radius:30px; font-size:13px; box-shadow:0 8px 18px #0002; opacity:0; transition:.3s; }.toast.show { transform:translate(-50%,0); opacity:1; }
.bazi-section { border-top:1px solid var(--line); margin-top:20px; }.bazi-section .section-title { margin-top:19px; }.bazi-chart { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }.pillar { overflow:hidden; border:1px solid var(--line); border-radius:10px; text-align:center; background:#fffefa; }.pillar-head { padding:8px 3px; color:#8d8580; background:#f5efe8; font-size:10px; letter-spacing:.06em; }.pillar-stem,.pillar-branch { display:block; font:600 21px/1 "Noto Serif SC",serif; }.pillar-stem { padding:13px 0 9px; color:#c65f44; }.pillar-branch { padding:9px 0 13px; color:#343543; border-top:1px solid #f1ece5; }.bazi-notice { margin:10px 0 0; color:#9b9593; font-size:10px; line-height:1.65; }
.bazi-line { margin:0 0 12px; color:#746c69; font:600 14px/1.4 "Noto Serif SC",serif; letter-spacing:.15em; }.bazi-details { margin-top:11px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fffefa; }.bazi-detail-row { display:grid; grid-template-columns:52px repeat(4,1fr); min-height:33px; border-bottom:1px solid var(--line); }.bazi-detail-row:last-child { border-bottom:0; }.bazi-detail-row span { display:grid; place-items:center; padding:5px 3px; color:#645f68; text-align:center; font:11px/1.35 "Noto Serif SC",serif; border-right:1px solid #eee9e4; }.bazi-detail-row span:first-child { color:#8f8580; background:#f7f1eb; font-size:10px; }.bazi-detail-row span:last-child { border-right:0; }.element-summary { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }.element-summary span { padding:5px 8px; border-radius:20px; background:#f2ede7; color:#716966; font-size:10px; }.element-summary strong { color:#393844; margin-left:3px; }
.analysis-status { display:block; color:#a39b98; margin-top:10px; font-size:10px; }
body.pdf-exporting .text-button,body.pdf-exporting .secondary-button,body.pdf-exporting #toast { display:none !important; } body.pdf-exporting .report { box-shadow:none; }
.segmented { display:flex; gap:8px; margin:2px 0 10px; }.segmented label { flex:1; display:flex; align-items:center; justify-content:center; gap:7px; height:44px; border:1px solid var(--line); border-radius:10px; background:#fffefa; color:#605a60; font-size:14px; cursor:pointer; transition:border-color .2s, background .2s; }.segmented label.selected { border-color:var(--accent); background:#fff8f5; color:var(--ink); font-weight:600; }.segmented input { appearance:auto; width:15px; height:15px; padding:0; }
.year-range { display:flex; align-items:center; gap:8px; }.year-range input { flex:1; text-align:center; padding:0 8px; }.year-range span { color:var(--muted); font-size:13px; white-space:nowrap; }
.switch-field { display:flex; align-items:center; gap:10px; margin:19px 0 0; padding:14px; border:1px solid var(--line); border-radius:10px; background:#fffefa; color:#5f5960; font-size:13px; cursor:pointer; }.switch-field input { appearance:auto; width:16px; height:16px; padding:0; flex:none; }
.submit-status { margin:12px 0 0; min-height:16px; text-align:center; font-size:12px; color:#6b8a58; }.submit-status.is-error { color:#c0503a; }
.date-selects { display:flex; gap:8px; }.date-selects select { flex:1; min-width:0; padding:0 10px; }
.date-hint { margin:9px 0 0; min-height:16px; color:#8c8589; font-size:12px; letter-spacing:.01em; }
.download-card { text-align:center; }
.progress-ring { position:relative; width:190px; height:190px; margin:10px auto 20px; }
.progress-ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.progress-ring .ring-bg { fill:none; stroke:#efe8e1; stroke-width:10; }
.progress-ring .ring-bar { fill:none; stroke:var(--accent); stroke-width:10; stroke-linecap:round; transition:stroke-dashoffset .6s ease, stroke .3s ease; }
.progress-ring.is-done .ring-bar { stroke:#6f9b5f; }
.progress-ring.is-failed .ring-bar { stroke:#c0503a; }
.progress-ring .ring-spin { fill:none; stroke:var(--gold); stroke-width:10; stroke-linecap:round; stroke-dasharray:55 272; opacity:0; transform-box:fill-box; transform-origin:center; }
.progress-ring.is-waiting .ring-spin { opacity:.75; animation:ring-spin 1.9s linear infinite; }
@keyframes ring-spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
.ring-label { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.ring-label b { font:600 32px/1 Outfit,sans-serif; }
.ring-label small { color:var(--muted); font-size:12px; letter-spacing:.08em; }
.download-status { margin:0 0 18px; color:#5f5860; font-size:13px; line-height:1.7; }
.queue-note { margin:-8px 0 18px; padding:8px 12px; border-radius:9px; background:#f6f1ea; color:#7d6544; font-size:12px; line-height:1.6; }
.queue-hint { margin:10px 0 0; padding:8px 12px; border-radius:9px; background:#f6f1ea; color:#7d6544; font-size:12px; line-height:1.6; text-align:center; }
.download-actions { display:grid; gap:10px; }
.download-actions .primary-button, .download-actions .secondary-button { display:flex; align-items:center; justify-content:center; margin:0; height:54px; border-radius:11px; font-size:15px; font-weight:600; text-decoration:none; }
.download-actions .secondary-button { background:#f3ece4; color:var(--ink); border:1px solid var(--line); }
.download-footer { margin-top:20px; }
.auth-tabs { display:flex; gap:4px; padding:4px; margin:2px 0 4px; border-radius:12px; background:#f1ece5; }.auth-tab { flex:1; height:40px; border-radius:9px; background:transparent; color:#7d7780; font:600 14px Outfit,"PingFang SC",sans-serif; transition:background .2s,color .2s,box-shadow .2s; }.auth-tab.is-active { background:#fffefa; color:var(--ink); box-shadow:0 2px 8px rgba(60,45,30,.08); }.auth-form .primary-button { margin-top:24px; }.auth-status { margin:12px 0 0; min-height:18px; text-align:center; font-size:12px; line-height:1.65; color:#6b8a58; }.auth-status.is-error { color:#c0503a; }.auth-status.is-info { color:#8a7a5c; }.auth-hint { margin:18px 0 0; padding-top:16px; border-top:1px dashed var(--line); color:#9a938e; font-size:11px; line-height:1.7; }.auth-card .privacy-note { margin-top:10px; }
@media (max-width:360px) { .app-shell { padding-inline:13px; }.card,.report { padding:20px; }.hero h1 { font-size:33px; }.progress-ring { width:160px; height:160px; }.account-name { max-width:68px; } }
