/* MathDoc 首页中间区域。使用独立前缀，避免影响 ShopXO 原有头尾和公共组件。 */
.mathdoc-home-shell{--md-ink:#0b1f33;--md-muted:#607086;--md-blue:#1967ff;--md-blue-dark:#0d4fd1;--md-line:#dbe3ec;--md-paper:#fffdf8;--md-canvas:#f4f1e9;--md-green:#13795b;max-width:1240px;margin:0 auto 58px;padding:0 20px;color:var(--md-ink);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.mathdoc-home-shell *{box-sizing:border-box}
.mathdoc-home-hero{padding:52px 12px 38px;display:grid;grid-template-columns:1.15fr .85fr;gap:42px;align-items:center}
.mathdoc-eyebrow,.mathdoc-section-kicker{margin:0 0 13px;color:var(--md-blue);font-size:11px;font-weight:800;letter-spacing:.18em}
.mathdoc-home-hero h1{margin:0;max-width:720px;font-size:clamp(42px,6vw,76px);line-height:1;letter-spacing:-.06em}.mathdoc-home-hero h1 span{color:var(--md-blue)}
.mathdoc-hero-copy{margin:22px 0 0;max-width:650px;color:var(--md-muted);font-size:17px;line-height:1.75}
.mathdoc-proof-card{min-height:250px;padding:28px;color:#fff;background:var(--md-ink);border-radius:24px;box-shadow:0 22px 48px rgba(11,31,51,.2);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.mathdoc-proof-card:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-95px;top:-105px;border:48px solid rgba(44,116,255,.22)}.mathdoc-proof-label{font-size:12px;color:#a9bfd6;letter-spacing:.12em}.mathdoc-proof-formula{min-height:70px;display:grid;place-items:center;position:relative}.mathdoc-proof-formula .katex-display{margin:0}.mathdoc-proof-meta{display:flex;gap:8px;position:relative}.mathdoc-proof-meta span{padding:6px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;font-size:11px;color:#c5d7ea}
.mathdoc-workspace{padding:26px;background:#fff;border:1px solid var(--md-line);border-radius:24px;box-shadow:0 18px 55px rgba(48,62,78,.11)}.mathdoc-workspace-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.mathdoc-workspace h2{margin:0;font-size:clamp(24px,3vw,36px);letter-spacing:-.04em}.mathdoc-head-actions{display:flex;gap:9px}.mathdoc-hidden-input{display:none}
.mathdoc-button{min-height:43px;border-radius:10px;padding:0 16px;border:1px solid transparent;font-weight:750;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}.mathdoc-button:hover{transform:translateY(-1px)}.mathdoc-button.secondary{border-color:#b8c7d8;background:#fff;color:var(--md-ink)}.mathdoc-button.ghost{color:#607086;background:#eef2f6}.mathdoc-button.primary{min-height:50px;padding:0 22px;display:flex;align-items:center;gap:20px;color:#fff;background:var(--md-blue);box-shadow:0 10px 22px rgba(25,103,255,.25)}.mathdoc-button.primary:hover{background:var(--md-blue-dark)}.mathdoc-button:disabled{opacity:.6;cursor:wait;transform:none}
.mathdoc-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-height:610px}.mathdoc-panel{min-width:0;overflow:hidden;border:1px solid var(--md-line);border-radius:14px;background:#f8fafc}.mathdoc-panel-bar{height:43px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--md-line);color:#718196;font-size:10px;font-weight:800;letter-spacing:.13em}.mathdoc-editor-panel textarea{display:block;width:100%;height:calc(100% - 43px);min-height:565px;resize:none;border:0;outline:0;padding:22px;color:#23384f;background:#f8fafc;font:14px/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.mathdoc-preview-scroll{height:calc(100% - 43px);max-height:760px;overflow:auto;background:#e9edf2}.mathdoc-word-preview-shell{min-height:700px;position:relative;background:#e9edf2}.mathdoc-word-preview-style-host{display:none}.mathdoc-word-preview-body{min-height:700px}.mathdoc-word-preview-body .docx-preview-wrapper{padding:24px 24px 18px;background:#e9edf2}.mathdoc-word-preview-body section.docx-preview{margin:0 auto 20px;background:#fff;box-shadow:0 8px 26px rgba(26,42,58,.12)}.mathdoc-word-preview-body math{font-family:"Cambria Math","STIX Two Math","Noto Sans Math",serif}.mathdoc-word-preview-state{position:sticky;bottom:0;padding:8px 12px;border-top:1px solid rgba(122,145,167,.25);background:rgba(248,250,252,.94);color:#66788b;font-size:11px}
.mathdoc-quality-row{display:grid;grid-template-columns:1fr repeat(3,116px);gap:10px;margin-top:14px}.mathdoc-status-card,.mathdoc-metric{min-height:76px;border:1px solid var(--md-line);border-radius:12px;background:#f8fafc}.mathdoc-status-card{padding:13px 15px;display:flex;align-items:center;gap:12px}.mathdoc-status-card.error{border-color:#f1b5ae;background:#fff4f2}.mathdoc-status-card.success{border-color:#a8ddc9;background:#f0fbf7}.mathdoc-status-icon{width:29px;height:29px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--md-green);font-weight:900}.mathdoc-status-card.error .mathdoc-status-icon{background:#c9372c}.mathdoc-status-card strong,.mathdoc-status-card small{display:block}.mathdoc-status-card strong{font-size:13px}.mathdoc-status-card small{margin-top:4px;color:#7a899a;font-size:11px}.mathdoc-metric{display:grid;place-content:center;text-align:center}.mathdoc-metric strong{font-size:24px;line-height:1}.mathdoc-metric span{margin-top:6px;color:#718196;font-size:10px}.mathdoc-issue-list{margin-top:12px;padding:12px 16px;border-radius:12px;background:#fff4f2;color:#8b271f}.mathdoc-issue-list p{margin:6px 0;font-size:12px}.mathdoc-issue-list code{display:block;margin-top:5px;white-space:pre-wrap;word-break:break-word}
.mathdoc-export-row{margin-top:16px;display:flex;align-items:flex-end;justify-content:flex-end;gap:12px}.mathdoc-export-row label{display:grid;gap:6px;color:#718196;font-size:10px;font-weight:750}.mathdoc-export-row input{width:min(320px,48vw);height:50px;padding:0 14px;border:1px solid #cbd6e2;border-radius:10px;outline:0;color:var(--md-ink);background:#fff}.mathdoc-export-row input:focus{border-color:var(--md-blue);box-shadow:0 0 0 3px rgba(25,103,255,.1)}
.mathdoc-features{margin:34px 12px 42px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #cfd7df}.mathdoc-features>div{padding:26px 28px;border-right:1px solid #cfd7df}.mathdoc-features>div:last-child{border-right:0}.mathdoc-features span{color:var(--md-blue);font-size:11px;font-weight:800}.mathdoc-features h3{margin:13px 0 8px;font-size:20px}.mathdoc-features p{margin:0;color:var(--md-muted);font-size:14px;line-height:1.7}
@media(max-width:860px){.mathdoc-home-hero{grid-template-columns:1fr;padding-top:36px;gap:30px}.mathdoc-workspace{margin-inline:0;padding:18px}.mathdoc-workspace-head{align-items:flex-start;flex-direction:column}.mathdoc-editor-grid{grid-template-columns:1fr}.mathdoc-panel{min-height:520px}.mathdoc-quality-row{grid-template-columns:repeat(3,1fr)}.mathdoc-status-card{grid-column:1/-1}.mathdoc-features{margin-inline:0;grid-template-columns:1fr}.mathdoc-features>div{border-right:0;border-bottom:1px solid #cfd7df}}
@media(max-width:560px){.mathdoc-home-shell{padding-inline:10px}.mathdoc-home-hero{padding-inline:8px}.mathdoc-home-hero h1{font-size:44px}.mathdoc-hero-copy{font-size:16px}.mathdoc-head-actions{width:100%}.mathdoc-head-actions .mathdoc-button{flex:1;padding-inline:8px}.mathdoc-export-row{align-items:stretch;flex-direction:column}.mathdoc-export-row input{width:100%}.mathdoc-button.primary{justify-content:space-between}}
