:root{font-family:Microsoft YaHei,PingFang SC,Segoe UI,sans-serif;color:#172033;background:#f6f8fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:0;cursor:pointer}.home-shell{display:block}.app-shell{min-height:100vh;display:block}.app-shell.home-shell{display:block}.side-nav{background:#fff;border-right:1px solid #d9e1ec;padding:28px 18px;display:flex;flex-direction:column;gap:32px}.eyebrow{color:#64748b;font-size:12px;letter-spacing:0;margin:0 0 6px;text-transform:uppercase}h1,h2,h3{margin:0;letter-spacing:0}h1{font-size:24px}h2{font-size:28px}h3{font-size:18px}nav{display:grid;gap:8px}nav button,.primary,.secondary,.file-picker{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:0 14px;white-space:nowrap}nav button{justify-content:flex-start;color:#334155;background:transparent}nav button.active{color:#0f172a;background:#e9eef7}.home-status-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;width:100%;min-height:44px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:5px 5px 4px;background:#ffffffc7;border-top:1px solid rgba(148,163,184,.34);box-shadow:0 -8px 22px #0f172a14;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.home-status-nav button{min-height:34px;justify-content:center;gap:4px;padding:0 6px;color:#64748b;background:transparent;border-radius:6px;font-size:12px;font-weight:600}.home-status-nav button svg{color:#94a3b8}.home-status-nav button.active{color:#475569;background:#f1f5f9d1}.home-status-nav button.active svg{color:#64748b}.icp-link{grid-column:1 / -1;justify-self:center;color:#94a3b8;font-size:10px;line-height:1.1;text-decoration:none}.icp-link:hover{color:#64748b}main{min-width:0}.home-main{min-height:100vh}.home-page{position:relative;min-height:100vh;overflow:hidden;background:#f8ead4 url(/home-texture-bg.png) center / cover no-repeat}.c4d-home{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(18px,3vw,34px);padding:clamp(30px,5vw,54px) clamp(22px,6vw,82px) 76px}.c4d-home:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:linear-gradient(90deg,#fffaf285,#fffaf252 44%,#fffaf229),linear-gradient(180deg,#ffffff3d,#fff0 42%,#fff7ed38);pointer-events:none}.home-copy{position:relative;z-index:2;width:min(720px,100%);padding:0;text-align:center}.home-book-stage{position:relative;z-index:2;width:min(430px,58vw);display:grid;place-items:center}.home-book-stage:before{content:"";position:absolute;left:12%;right:10%;bottom:2%;height:18%;z-index:-1;background:radial-gradient(ellipse,#603a1842,#603a181f 48%,#603a1800 72%);filter:blur(12px);transform:translateY(18%)}.home-book-stage:after{content:"";position:absolute;inset:12% 4% auto 4%;height:52%;z-index:-1;background:radial-gradient(ellipse,#ffffff8f,#fff0 68%);filter:blur(18px)}.home-book-image{width:100%;height:auto;display:block;filter:drop-shadow(0 24px 28px rgba(70,42,18,.28)) drop-shadow(0 8px 10px rgba(37,99,235,.12))}.home-kicker{margin:0 0 12px;color:#ea7a1f;font-size:14px;font-weight:700;letter-spacing:0}.home-copy h2{max-width:720px;color:#12213a;font-size:clamp(52px,7.4vw,94px);line-height:.98}.home-subtitle{margin:18px 0 8px;color:#516176;font-size:clamp(18px,2vw,24px);line-height:1.4}.home-button{min-width:156px;min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#0f172a;background:#ffffffeb;border-radius:8px;padding:0 18px;font-weight:700;box-shadow:0 10px 28px #0f172a2e}.primary-home{color:#fff;background:#1f66e5}.page{width:min(1180px,100%);margin:0 auto;padding:32px 24px 88px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.survey-header{justify-content:flex-start}.survey-page{min-height:calc(100dvh - 44px);padding-top:18px}.primary{color:#fff;background:#2563eb}.danger{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;background:#dc2626;border-radius:8px;padding:0 14px}.primary:disabled,.secondary:disabled,.danger:disabled{opacity:.65;cursor:not-allowed}.secondary,.file-picker{color:#172033;background:#fff;border:1px solid #cbd5e1}.notice{margin:14px 0;padding:12px 14px;border-radius:8px;border:1px solid}.notice.success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.notice.error,.error-list{color:#991b1b;background:#fef2f2;border-color:#fecaca}.empty-state{padding:28px;color:#64748b;background:#fff;border:1px solid #d9e1ec;border-radius:8px}.survey-list{display:grid;gap:14px}.survey-pager{max-height:min(620px,calc(67dvh - 18px));align-content:start;overflow-y:auto;padding-right:4px}.respondent-panel{padding:16px;background:#fff;border:1px solid #d9e1ec;border-radius:8px}.respondent-panel label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#334155;font-weight:700}.respondent-panel input{width:min(320px,100%);height:40px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px}.stats-controls,.toolbar,.submit-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.question-card{display:flex;flex-direction:column;gap:12px;padding:18px;background:var(--card-bg, #ffffff);border:1px solid var(--card-border, #d9e1ec);border-radius:8px}.question-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.question-index{width:fit-content;min-width:66px;height:30px;display:grid;place-items:center;border-radius:8px;padding:0 10px;color:var(--card-accent, #1d4ed8);background:var(--card-badge, #dbeafe);font-weight:700;font-size:15px}.question-content{display:flex;flex-direction:column;gap:10px}.category{margin:0}.category-pill{margin:0;padding:0;color:#64748b;background:transparent;border:0;border-radius:0;font-size:13px;font-weight:400}.question-content h3{margin:0;font-size:26px;line-height:1.28}.anchor-text{margin:0;color:#ea580c;font-weight:600}.anchor-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.theme-price{--card-bg: #fff7ed;--card-border: #fed7aa;--card-badge: #ffedd5;--card-accent: #c2410c}.theme-quantity{--card-bg: #f0fdf4;--card-border: #bbf7d0;--card-badge: #dcfce7;--card-accent: #15803d}.theme-time{--card-bg: #eff6ff;--card-border: #bfdbfe;--card-badge: #dbeafe;--card-accent: #1d4ed8}.theme-space{--card-bg: #eef2ff;--card-border: #c7d2fe;--card-badge: #e0e7ff;--card-accent: #4338ca}.theme-volume{--card-bg: #ecfeff;--card-border: #a5f3fc;--card-badge: #cffafe;--card-accent: #0e7490}.theme-probability{--card-bg: #fdf4ff;--card-border: #f5d0fe;--card-badge: #fae8ff;--card-accent: #a21caf}.theme-speed{--card-bg: #f0fdfa;--card-border: #99f6e4;--card-badge: #ccfbf1;--card-accent: #0f766e}.theme-memory{--card-bg: #f5f3ff;--card-border: #ddd6fe;--card-badge: #ede9fe;--card-accent: #6d28d9}.theme-aesthetic{--card-bg: #fdf2f8;--card-border: #fbcfe8;--card-badge: #fce7f3;--card-accent: #be185d}.theme-body{--card-bg: #fefce8;--card-border: #fde68a;--card-badge: #fef3c7;--card-accent: #b45309}.answer-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.answer-row label{display:inline-flex;align-items:center;gap:6px}.choice-button{min-width:46px;height:30px;justify-content:center;padding:0 10px;color:#334155;background:#ffffffb8;border:1px solid #cbd5e1;border-radius:8px;font-weight:700;font-size:14px;cursor:pointer}.choice-button input{position:absolute;opacity:0;pointer-events:none}.choice-button.selected{color:#fff;background:var(--card-accent, #2563eb);border-color:var(--card-accent, #2563eb)}.estimate-highlight{margin-top:2px;padding:10px 12px;background:#ffffffb3;border:1px solid var(--card-border, #d9e1ec);border-radius:8px}.estimate-input input{width:140px;height:36px;padding:0 10px;border:1px solid #cbd5e1;border-radius:6px}.estimate-input{display:grid;grid-template-columns:auto minmax(120px,180px) auto;align-items:center;gap:10px;color:#0f172a;font-weight:700}.submit-bar{justify-content:flex-end;padding-top:8px}.survey-pager-actions{justify-content:space-between;gap:24px;padding-top:2px}.survey-pager-actions .secondary,.pager-primary{width:min(300px,44%)}.reroll-bar{position:fixed;left:0;right:0;bottom:52px;z-index:29;display:flex;justify-content:center;pointer-events:none}.reroll-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#9a4f12;background:#ffedd5;border:1px solid #fed7aa;border-radius:8px;padding:0 16px;font-weight:700;pointer-events:auto}.reroll-button:disabled{opacity:.65;cursor:not-allowed}.thank-you-page{min-height:min(640px,calc(100dvh - 120px));display:grid;place-items:center;padding:28px 0 72px}.thank-you-card{width:min(560px,100%);padding:30px 24px;text-align:center;background:#fff;border:1px solid #d9e1ec;border-radius:8px;box-shadow:0 18px 42px #0f172a14}.thank-you-kicker{margin:0 0 8px;color:#2563eb;font-size:14px;font-weight:700}.thank-you-card h2{margin:0;color:#0f172a;font-size:28px;line-height:1.25}.thank-you-card p{color:#475569}.thank-you-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:18px}.toolbar{margin-bottom:16px}.file-picker{position:relative;overflow:hidden}.file-picker input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}select{height:40px;min-width:140px;padding:0 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.error-list{margin:12px 0;padding:12px 14px;border:1px solid #fecaca;border-radius:8px}.error-list p{margin:6px 0 0}.table-wrap{overflow:auto;background:#fff;border:1px solid #d9e1ec;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:900px}th,td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;font-size:14px}th{color:#334155;background:#f1f5f9;font-weight:700}.metric{min-width:112px;padding:10px 12px;background:#fff;border:1px solid #d9e1ec;border-radius:8px}.metric.wide{min-width:300px}.metric span{display:block;color:#64748b;font-size:12px}.metric strong{font-size:22px}.metric.wide strong{font-size:15px;line-height:1.4}.export-panel,.result-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;padding:14px;background:#fff;border:1px solid #d9e1ec;border-radius:8px}.export-panel label{display:flex;align-items:center;gap:10px;color:#334155;font-weight:700}.export-panel input{width:min(360px,58vw);height:40px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px}.result-summary div{min-width:220px}.result-summary span{display:block;color:#64748b;font-size:12px}.result-summary strong{display:block;margin-top:4px;font-size:18px}.chart-panel{width:100%;height:460px;margin:18px 0;background:#fff;border:1px solid #d9e1ec;border-radius:8px}.chart-panel.compact{height:320px}.danger-zone{display:flex;justify-content:flex-end;margin-top:28px;padding-top:20px;border-top:1px solid #d9e1ec}.confirm-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:18px;background:#0f172a7a}.confirm-dialog{width:min(460px,100%);padding:22px;background:#fff;border-radius:8px;box-shadow:0 22px 60px #0f172a3d}.confirm-dialog p{color:#475569;line-height:1.6}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}@media(max-width:860px){.app-shell{grid-template-columns:1fr}.side-nav{position:static;padding:16px 16px 0;border-right:0}.page{width:100%;padding:24px 16px 88px}.survey-page{padding-top:12px}.survey-pager{max-height:calc(67dvh - 12px);gap:10px}.respondent-panel{padding:12px}.respondent-panel label{gap:8px}.question-card{padding:14px}.survey-pager .question-content h3{font-size:20px}.estimate-input{grid-template-columns:1fr;gap:8px}.estimate-input input{width:100%}.survey-pager-actions{justify-content:space-between;gap:12px;padding-top:0}.survey-pager-actions .secondary{width:calc(50% - 6px);min-width:0}.pager-primary{width:calc(50% - 6px)}.page-header{align-items:flex-start;flex-direction:column}.question-card{grid-template-columns:1fr}.c4d-home{min-height:100vh;align-items:center;gap:20px;padding:20px 18px 70px}.c4d-home:before{background:linear-gradient(180deg,#fffaf24d,#fffaf280)}.home-copy{width:100%;max-width:none;text-align:center;padding:0}.home-book-stage{width:min(310px,76vw)}.home-copy h2{font-size:38px}.home-subtitle{margin:12px 0 6px;font-size:17px}.home-button{min-width:100%}.metric.wide,.export-panel input{width:100%;min-width:100%}}
