/* 素问 · 首页界面。覆盖生产模板样式，业务脚本保持原样。 */
:root{--bg:#f4f7fc;--card:#fff;--border:#dce5f2;--text:#17243b;--text-2:#62718a;--text-1:#17243b;--primary:#2563eb;--primary-weak:#eaf1ff;--radius:20px;--shadow:0 8px 28px rgba(23,61,133,.045);--ui-duration:220ms}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;line-height:1.7;background:var(--bg);-webkit-font-smoothing:antialiased}
a{color:var(--primary)}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select,summary,[role=button]{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #7ca5fc;outline-offset:4px}
.skip-link{position:fixed;z-index:200;top:12px;left:16px;background:#fff;border:2px solid var(--primary);padding:8px 16px;border-radius:10px;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.wrap{max-width:1224px;padding:0 32px 24px;margin:auto}
.site-header{min-height:92px;display:flex;gap:24px;justify-content:space-between;align-items:center;flex-wrap:nowrap;padding:20px 0;border-bottom:1px solid var(--border)}
.site-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);flex:none;min-height:44px}
.brand-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--primary);color:#fff;box-shadow:0 4px 10px #2563eb1a}
.brand-mark svg{width:24px;height:24px}
.brand-name{font-size:22px;font-weight:750;letter-spacing:.08em}
.brand-note{font-size:11px;color:var(--text-2);line-height:1.3;letter-spacing:.05em;display:block;margin-top:2px}
.main-nav{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.main-nav>a,.main-nav summary{min-height:44px;display:flex;align-items:center;padding:8px 15px;border-radius:10px;font-size:14px;text-decoration:none;white-space:nowrap;color:var(--text-2);cursor:pointer;transition:background var(--ui-duration),color var(--ui-duration)}
.main-nav>a:hover,.main-nav summary:hover{color:var(--primary);background:var(--primary-weak)}
.main-nav .current{background:var(--primary-weak);color:var(--primary);font-weight:650}
.model-menu{position:relative}
.model-menu summary{gap:7px;list-style:none}
.model-menu summary::-webkit-details-marker{display:none}
.model-menu summary:after{content:'⌄';font-size:16px;transition:transform var(--ui-duration)}
.model-menu[open] summary:after{transform:rotate(180deg)}
.model-menu-links{position:absolute;top:calc(100% + 8px);right:0;min-width:180px;padding:6px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 28px #173d851a;z-index:20;animation:ui-pop 180ms ease-out}
.model-menu-links a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:8px;text-decoration:none;font-size:14px;color:var(--text)}
.model-menu-links a:hover{background:var(--primary-weak);color:var(--primary)}
.hd-actions{gap:4px;flex:none}
.hd-actions .btn{font-size:13px;padding:8px 11px;background:transparent;border-color:transparent;min-height:44px}
.home-hero{padding:46px 0 32px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.16em;color:var(--primary);margin-bottom:10px}
.eyebrow:before{content:'';width:20px;height:2px;background:currentColor}
.home-hero h1{font-size:38px;line-height:1.35;font-weight:730;letter-spacing:-.035em;color:#173d85}
.home-hero p{font-size:15px;color:var(--text-2);margin-top:11px}
.hero-note{font-size:12px;color:var(--text-2);border-left:2px solid #c8d9fb;padding-left:14px;max-width:205px;margin-bottom:5px;flex:none}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.tool-column,.explore-column{min-width:0}
.card{border-radius:20px;border-color:var(--border);margin-bottom:22px;box-shadow:var(--shadow)}
.card-head{padding:20px 24px;font-size:16px;min-height:72px;gap:12px;flex-wrap:wrap}
.card-body{padding:24px}
.upload-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.upload-heading h2,.explore-heading h2{font-size:18px;line-height:1.5;font-weight:700}
.upload-heading p{font-size:13px;color:var(--text-2);margin-top:3px}
.step-tag{font-size:11px;letter-spacing:.08em;white-space:nowrap;background:var(--primary-weak);color:var(--primary);padding:4px 9px;border-radius:6px;margin-top:2px}
.quota-line{font-size:12px;margin:0 0 14px;display:flex;align-items:center;gap:8px}
.quota-line:before{content:'';width:6px;height:6px;border-radius:50%;background:#7b9fdc;flex:none}
.dropzone{border:1.5px dashed #aec4e8;background:#f7faff;border-radius:15px;min-height:228px;padding:30px 16px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:13px;color:var(--text-2);transition:border-color var(--ui-duration),background var(--ui-duration),box-shadow var(--ui-duration)}
.dropzone:hover,.dropzone.drag{border-color:var(--primary);background:#eef4ff;box-shadow:inset 0 0 0 1px #2563eb12}
.dropzone .big{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#e6efff;color:var(--primary);margin:0 0 8px;font-size:24px}
.dropzone .big svg{width:29px;height:29px}
.drop-title{font-size:16px;font-weight:650;color:var(--text)}
.drop-title b{font-weight:650;text-decoration:underline;text-underline-offset:4px}
.drop-formats{font-size:11px;letter-spacing:.025em;margin-top:1px}
.btn{min-height:44px;border-radius:11px;padding:10px 16px;font-weight:600;transition:background var(--ui-duration),border-color var(--ui-duration),color var(--ui-duration),transform var(--ui-duration),box-shadow var(--ui-duration),opacity var(--ui-duration)}
.btn-primary{background:var(--primary);box-shadow:0 4px 9px #2563eb12}
.btn-primary:hover{background:#1d54ce;filter:none;box-shadow:0 6px 14px #2563eb24;transform:translateY(-1px)}
.btn-primary:active{transform:translateY(0);background:#173d85}
.btn-primary:disabled{background:#a9bfe8;opacity:1;box-shadow:none;transform:none}
.btn-ghost{color:#526682;background:#fff;border-color:var(--border)}
.btn-ghost:hover{background:#f5f8ff;border-color:#a9c1eb}
.btn-block{margin-top:16px;min-height:48px;letter-spacing:.04em}
.btn-sm{font-size:12px;min-height:44px}
#file-name:not(:empty){padding:10px 12px;background:#eaf1ff;border-radius:9px;overflow-wrap:anywhere;font-size:12px}
.ocr-tip{background:transparent;border:0;border-radius:0;padding:0;margin-top:12px;font-size:12px;line-height:1.75}
.ocr-tip.busy{background:var(--warn-weak);border-radius:9px;padding:9px 12px;color:var(--warn)}
.progress-tip{font-size:12px;min-height:0;margin-top:8px;overflow-wrap:anywhere}
.progress-tip:empty{margin-top:0}
.progress-bar{margin-top:18px;height:5px}
.result-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.result-card .card-body{min-height:168px}
.empty-tip{font-size:13px;padding:28px 10px;line-height:1.8}
.empty-icon{display:block;margin:0 auto 10px;color:#adc0df;width:30px;height:30px}
.result-item{padding:18px;border-radius:13px;background:#f9fbff;border-color:var(--border);margin-bottom:14px;overflow-wrap:anywhere}
.result-item:last-child{margin-bottom:0}
.result-item .q{font-size:15px;line-height:1.8;margin-bottom:10px}
.result-item .a{color:#334762;line-height:1.9}
.result-item .meta{margin-top:14px}
.badge{font-size:11px;padding:3px 9px}
.value-refs,.topic-tags{overflow-wrap:anywhere}
.explore-column{display:grid;gap:20px}
.explore-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
.explore-heading a{font-size:12px;text-decoration:none;min-height:44px;display:flex;align-items:center}
.section-index{font-size:10px;letter-spacing:.13em;color:#8392a9;margin-bottom:7px}
.daily-entry{display:flex;align-items:flex-start;justify-content:flex-start;gap:0;flex-direction:column;max-width:none;width:100%;margin:0;padding:24px;border-radius:18px;background:#173d85;box-shadow:none;min-height:180px;color:#fff}
.daily-entry:after{display:none}
.daily-entry:hover{box-shadow:0 8px 20px #173d8518;transform:translateY(-2px);background:#1d4a9a}
.daily-entry .ic{font-size:10px;font-weight:650;letter-spacing:.14em;color:#b9d0ff;margin-bottom:17px}
.daily-entry .tx{text-align:left}
.daily-entry .t1{font-size:19px;line-height:1.6;display:block;font-weight:650;overflow-wrap:anywhere}
.daily-entry .t2{font-size:12px;display:block;margin-top:7px;color:#cadbff;opacity:1}
.daily-entry .go{font-size:12px;margin-top:20px;color:#e1ebff;opacity:1;align-self:flex-end}
.reading-fallback{font-size:12px;color:var(--text-2);margin-top:9px;line-height:1.75}
.model-links{display:grid;gap:12px}
.model-link{display:grid;grid-template-columns:64px minmax(0,1fr) 16px;align-items:center;gap:13px;padding:16px;background:#fff;border:1px solid var(--border);border-radius:16px;text-decoration:none;color:var(--text);min-height:102px;transition:transform var(--ui-duration),border-color var(--ui-duration),box-shadow var(--ui-duration)}
.model-link:hover{border-color:#a5bfea;transform:translateY(-2px);box-shadow:0 7px 20px #173d850a}
.model-picture{width:64px;height:64px;display:grid;place-items:center;background:#eaf1ff;border-radius:13px;color:#3c6fca}
.model-picture svg{width:50px;height:44px}
.model-link strong{font-size:15px;font-weight:650;display:block;margin-bottom:4px}
.model-link small{display:block;font-size:11px;line-height:1.65;color:var(--text-2)}
.model-link .arrow{font-size:17px;color:#6e8fc6}
.how-note{border-top:1px solid var(--border);padding-top:16px}
.how-note h3{font-size:13px;font-weight:650;margin-bottom:5px}
.how-note p{font-size:12px;color:var(--text-2);line-height:1.85}
.site-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 0 5px;border-top:1px solid var(--border);margin-top:8px;font-size:11px;color:var(--text-2)}
.disclaimer{text-align:left;padding:0;font-size:11px;max-width:700px}
.footer-brand{color:#7b8ba4;white-space:nowrap}
.err-overlay,.file-warn-overlay{background:#152b4d70;backdrop-filter:blur(4px);padding:20px;animation:ui-fade 180ms ease-out;overscroll-behavior:contain}
.err-box,.tut-box,.file-warn-box{border-radius:20px;border:1px solid var(--border);box-shadow:0 22px 70px #0c244e33;padding:26px;max-height:calc(100dvh - 40px);overflow:auto;animation:ui-pop 220ms ease-out;min-width:0}
.err-box h3,.tut-box h3{color:#173d85;font-size:19px;margin-bottom:12px}
.err-actions{gap:10px;flex-wrap:wrap}
.err-actions .btn{min-width:100px}
.fb-type{min-height:44px;display:inline-flex;align-items:center;border-radius:10px;font-size:12px;padding:8px 12px}
.fb-field{margin-bottom:18px}
.fb-text{font-size:14px;border-radius:11px}
.fb-note{background:#f4f7fc;line-height:1.75}
.fb-box>*{flex-shrink:0}
.ref-content,.topic-list{overflow-wrap:anywhere}
.toast{border-radius:12px;background:#173d85;box-shadow:0 6px 20px #173d8526;transition:opacity 220ms,transform 220ms}
.ui-enter{animation:ui-enter 240ms ease-out both}
@keyframes ui-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ui-pop{from{opacity:0;transform:translateY(5px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ui-fade{from{opacity:0}to{opacity:1}}
@media(min-width:1050px){.explore-column{padding-top:2px}.upload-card .card-body{padding:28px}.home-layout{gap:28px}}
@media(max-width:1050px){.wrap{padding-left:24px;padding-right:24px}.site-header{gap:14px}.brand-note{display:none}.main-nav>a,.main-nav summary{padding-left:11px;padding-right:11px}.home-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.hd-actions .btn{font-size:12px;padding:8px}.home-hero h1{font-size:34px}}
@media(max-width:800px){.site-header{flex-wrap:wrap;min-height:88px;padding:16px 0 12px;gap:10px}.site-brand{margin-right:auto}.hd-actions{order:2}.main-nav{order:3;flex-basis:100%;gap:3px}.main-nav>a,.main-nav summary{font-size:13px;padding:7px 14px}.home-layout{grid-template-columns:1fr}.explore-column{grid-template-columns:1fr 1fr;gap:20px}.how-note{grid-column:1/-1}.home-hero{padding:30px 0 24px}.home-hero h1{font-size:31px}.hero-note{display:none}.daily-entry{min-height:220px}.explore-heading h2{font-size:16px}}
@media(max-width:520px){.wrap{padding:0 18px 18px}.site-header{padding-top:14px}.brand-name{font-size:20px}.brand-mark{width:32px;height:32px;border-radius:10px}.brand-mark svg{width:22px}.hd-actions .btn{font-size:11px;padding:7px 9px}.main-nav{justify-content:space-between}.main-nav>a,.main-nav summary{padding:7px 12px;font-size:12px}.model-menu-links{right:0}.home-hero{padding:26px 0 21px}.eyebrow{font-size:10px;letter-spacing:.13em;margin-bottom:8px}.home-hero h1{font-size:28px;letter-spacing:-.04em}.home-hero p{font-size:12px;margin-top:9px;line-height:1.8;max-width:310px}.home-layout{gap:8px}.card{border-radius:17px;margin-bottom:18px}.card-body,.upload-card .card-body{padding:20px}.upload-heading{margin-bottom:17px;gap:8px}.upload-heading h2{font-size:17px}.upload-heading p{font-size:12px}.step-tag{font-size:10px;padding:4px 6px}.quota-line{font-size:11px;margin-bottom:12px}.dropzone{min-height:200px;padding:24px 9px 20px}.dropzone .big{width:46px;height:46px;border-radius:13px;margin-bottom:5px}.drop-title{font-size:14px}.drop-formats{font-size:10px}.btn-block{min-height:48px;margin-top:14px}.ocr-tip{font-size:11px}.card-head{padding:14px 18px;min-height:72px;font-size:15px;gap:6px}.result-actions{gap:3px}.result-actions .btn{font-size:11px;padding:7px 9px}#result-summary{font-size:10px}.result-card .card-body{min-height:145px}.result-item{padding:14px}.explore-column{grid-template-columns:1fr;gap:24px;margin-top:7px}.daily-entry{min-height:170px;padding:21px}.daily-entry .ic{margin-bottom:10px}.daily-entry .t1{font-size:18px}.daily-entry .go{margin-top:13px}.model-links{grid-template-columns:1fr 1fr;gap:10px}.model-link{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px;padding:17px 13px;min-height:180px;position:relative}.model-picture{width:54px;height:54px;border-radius:12px}.model-picture svg{width:43px;height:38px}.model-link>span:nth-child(2){width:100%}.model-link strong{font-size:14px}.model-link small{font-size:11px}.model-link .arrow{position:absolute;top:26px;right:15px}.how-note{grid-column:auto}.site-footer{display:block;line-height:1.8;margin-top:23px;padding-top:19px}.footer-brand{margin-top:10px;display:block}.err-overlay,.file-warn-overlay{padding:14px}.err-box,.tut-box,.file-warn-box{padding:21px;max-height:calc(100dvh - 28px);border-radius:17px}.err-actions{gap:8px}.err-actions .btn{min-width:85px;font-size:12px}.fb-types{gap:6px}.fb-type{padding:8px 10px}.err-detail{font-size:11px;min-height:120px}.row-2{grid-template-columns:1fr}.kv{grid-template-columns:1fr}}
@media(max-width:520px){.result-card .empty-tip{padding:16px 6px}.result-card .card-body{min-height:120px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.progress-bar.indeterminate .fill{left:0;width:100%!important;opacity:.55}}
