html[data-site="math7"]{--p-accent:#2b62d4;--p-soft:#eef3ff;--p-ink:#162035;--p-body:#4a576c;--p-muted:#6a778b;--p-line:#e3e8f0;--p-panel:#f3f6fb;--p-dark:#111a32;--p-dark-text:#d5def2;--p-dark-accent:#9bb7ff;--p-surface:#fff}
:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#162035;background:#f7f8fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{min-width:320px;margin:0;overflow-x:hidden}
a{color:inherit;text-decoration:none}
a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #4f72ed;outline-offset:3px}
[hidden]{display:none!important}
.wrap{width:min(100% - 64px,1180px);margin-inline:auto}
.skip-link{position:absolute;top:-60px;left:20px;z-index:50;padding:12px 18px;border-radius:12px;background:#142443;color:#fff}
.skip-link:focus{top:12px}
.site-header{position:sticky;top:0;z-index:10;border-bottom:1px solid #e7e9f0;background:#f7f8fbd9;backdrop-filter:blur(18px)}
.header-inner{display:flex;min-height:72px;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:11px;flex:none}
.brand-symbol{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#101a35;color:#fff;font-size:17px;font-weight:780;letter-spacing:-.13em;box-shadow:0 9px 22px #1c315023}
.brand-symbol span,.brand-name span,.footer-brand span{color:#77a6ff}
.brand-name{display:block;font-size:19px;font-weight:780;letter-spacing:-.07em;line-height:.91}
.brand-name small{display:block;margin-top:6px;color:#99a3b4;font-size:8px;font-weight:760;letter-spacing:.19em}
.site-header nav{display:flex;gap:26px;margin-left:auto;color:#5d687b;font-size:13px;font-weight:650}
.site-header nav a:hover{color:#1f55d8}
.header-actions{display:flex;align-items:center;gap:10px}
html[data-site="math7"] .page-language{padding:8px 12px;border:1px solid #e2e8ed;border-radius:10px;background:#fff;color:#253858;font-size:12px;font-weight:680}
.header-cta{display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border-radius:10px;background:#2467e8;color:#fff;font-size:12px;font-weight:740;box-shadow:0 8px 20px #2467e833}
.header-cta:hover{background:#1657d4}
.kicker{display:flex;align-items:center;gap:12px;margin:0;color:#5271af;font-size:10px;font-weight:800;letter-spacing:.18em}
.button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:18px;padding:0 19px;border-radius:12px;font-size:13px;font-weight:760;transition:transform .2s,box-shadow .2s,background .2s}
.button:hover{transform:translateY(-2px)}
.button span{font-size:17px;font-weight:400}
.button-primary{background:#2467e8;color:#fff;box-shadow:0 11px 25px #2467e83b}
.button-primary:hover{background:#1657d4}
.button-text{color:#2b62d4}
.button-text:hover{background:#ecf1ff}
.page-hero h1{letter-spacing:-.05em}
.service-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 0 8px;overflow:hidden;border:1px solid var(--p-line);border-radius:20px;background:var(--p-line)}
.service-facts div{padding:16px 18px;background:var(--p-surface)}
.service-facts dt{color:var(--p-muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.service-facts dd{margin:7px 0 0;color:var(--p-ink);font-size:14px;font-weight:680;line-height:1.45;overflow-wrap:anywhere}
.service-facts dd a{color:var(--p-accent)}
.access-public{color:#24865f!important}
.access-login{color:#b0671d!important}
.card-state{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;background:#f2f4f8;color:#8b95a3;font-size:12px;font-weight:700}
.card-state:before{width:7px;height:7px;border-radius:50%;background:#b9c1ca;content:""}
.card-state.is-up{background:#e8f7f0;color:#238c66}
.card-state.is-up:before{background:#35bd8a}
.card-state.is-down{background:#fff0e8;color:#c96a44}
.card-state.is-down:before{background:#e78964}
html[data-site="math7"] .feature-card{padding:20px 22px;border:1px solid var(--p-line);border-radius:18px;background:var(--p-surface)}
html[data-site="math7"] .feature-card h3{margin:0 0 8px;color:var(--p-ink);font-size:16px}
html[data-site="math7"] .feature-card p{margin:0;color:var(--p-body);font-size:14px;line-height:1.7}
.service-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.service-notes>div{padding:22px 24px;border-radius:20px;background:var(--p-panel)}
.service-notes h2{font-size:18px!important}
.service-notes p{margin:0;color:var(--p-body);line-height:1.8}
.step-list li>div p{margin:0;color:var(--p-body);font-size:15px}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.related-grid .pager-link span{color:var(--p-muted);font-size:13px;line-height:1.5}
.collection-card .card-top{color:var(--p-muted);font-size:11px;font-weight:780;letter-spacing:.1em;text-transform:uppercase}
html[data-site="math7"] .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-site="math7"] .collection-card{min-height:210px}
.directory-search{position:relative;display:flex;max-width:640px;flex-direction:column;gap:9px;margin:0 0 26px}
.directory-search label{color:#4b5a70;font-size:12px;font-weight:730}
.directory-search input{width:100%;min-height:48px;padding:0 48px 0 16px;border:1px solid #dce4ef;border-radius:13px;background:#fff;color:#23304a;font:inherit;font-size:14px}
.directory-search kbd{position:absolute;top:36px;right:12px;display:grid;min-width:24px;height:24px;place-items:center;border:1px solid #dce4ef;border-radius:7px;background:#f6f8fb;color:#8792a5;font:600 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;pointer-events:none}
.directory-search input:focus~kbd{opacity:0}
.search-results{display:grid;gap:3px;padding:6px;border:1px solid #e1e7f0;border-radius:16px;background:#fff;box-shadow:0 18px 40px #15254414}
.search-option{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 11px;padding:10px 12px;border-radius:11px}
.search-option:hover,.search-option[aria-selected="true"]{background:#eef3ff}
.search-option strong{overflow:hidden;color:#23304a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.search-option small{grid-column:2;overflow:hidden;color:#8a95a8;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.search-kind{grid-row:span 2;padding:4px 8px;border-radius:7px;background:#f0ebff;color:#6b55bd;font-size:10px;font-weight:780}
.search-results mark{border-radius:3px;background:#ffe9a8;color:inherit}
.site-footer{margin-top:40px;border-top:1px solid #e4e8ef;background:#fff}
.footer-inner{display:flex;flex-wrap:wrap;min-height:110px;align-items:center;gap:22px}
.footer-brand{font-size:22px;font-weight:780;letter-spacing:-.08em}
.footer-inner>span{color:#8b96a6;font-size:11px}
.footer-inner>div{display:flex;gap:18px;margin-left:auto}
.footer-inner>div a{color:#5e7088;font-size:11px}
.footer-inner small{color:#9ba5b1;font-size:10px}
.resource-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:44px 0 0;padding:0;border:0}
.resource-filter legend{float:left;margin-right:6px;color:var(--p-muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.resource-filter label{position:relative;cursor:pointer}
.resource-filter input{position:absolute;opacity:0;pointer-events:none}
.resource-filter span{display:inline-flex;padding:7px 14px;border:1px solid var(--p-line);border-radius:999px;background:var(--p-surface);color:var(--p-body);font-size:13px;font-weight:600}
.resource-filter input:checked+span{border-color:var(--p-accent);background:var(--p-soft);color:var(--p-accent)}
.resource-filter input:focus-visible+span{outline:2px solid var(--p-accent);outline-offset:2px}
.resource-library:has(#resource-language-zh:checked) .resource-card:not([data-zh]),.resource-library:has(#resource-language-en:checked) .resource-card:not([data-en]){display:none}
.resource-section{margin-top:36px}
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.resource-card{display:flex;flex-direction:column;gap:8px;padding:20px 22px;border:1px solid var(--p-line);border-radius:18px;background:var(--p-surface)}
.resource-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--p-muted);font-size:12px}
.resource-lang{padding:2px 8px;border-radius:999px;background:var(--p-soft);color:var(--p-accent);font-size:11px;font-weight:700;letter-spacing:.04em}
.resource-lang+span:not(.resource-lang){margin-left:4px}
.resource-card h3{margin:2px 0 0;color:var(--p-ink);font-size:16px;line-height:1.45}
.resource-card h3 a{color:inherit;text-decoration:none}
.resource-card h3 a:hover{color:var(--p-accent)}
.resource-card h3 a span{color:var(--p-accent);font-size:13px}
.resource-card p{margin:0;color:var(--p-body);font-size:14px;line-height:1.7}
.resource-card .resource-by{color:var(--p-muted);font-size:13px;line-height:1.5}
@media(max-width:900px){.service-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.related-grid,html[data-site="math7"] .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.wrap{width:min(100% - 36px,1180px)}.site-header nav{display:none}.header-actions{margin-left:auto}.service-notes{grid-template-columns:1fr}.page-article{width:min(100% - 36px,880px)}}
@media(max-width:520px){.header-cta{display:none}.service-facts,.related-grid,.resource-grid,html[data-site="math7"] .collection-grid{grid-template-columns:1fr}.footer-inner>div{margin-left:0}.brand-name small{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important}}
@media(prefers-color-scheme:dark){
html[data-site="math7"]{--p-accent:#8fb0ff;--p-soft:#16224a;--p-ink:#e9eef9;--p-body:#b4bfd3;--p-muted:#8a96ae;--p-line:#222d4c;--p-panel:#121b36;--p-surface:#111930}
:root{color:#e4e9f5;background:#0b1226;color-scheme:dark}
html[data-site="math7"] .site-header{border-color:#1f2a48;background:#0b1226d9}
html[data-site="math7"] .brand-symbol{background:#1c2a55}
html[data-site="math7"] .site-header nav{color:#a3afc6}
html[data-site="math7"] .page-language{border-color:#26314f;background:#131c35;color:#d3dbec}
html[data-site="math7"] .kicker{color:#8eaaf2}
html[data-site="math7"] .button-text{color:#8fb0ff}html[data-site="math7"] .button-text:hover{background:#18244a}
html[data-site="math7"] .card-state{background:#1a2443;color:#8f9ab2}html[data-site="math7"] .card-state.is-up{background:#11352b;color:#5fd7a6}html[data-site="math7"] .card-state.is-down{background:#3a2216;color:#f2a07a}
html[data-site="math7"] .access-public{color:#5fd7a6!important}html[data-site="math7"] .access-login{color:#f0b46c!important}
html[data-site="math7"] .qa-list details,html[data-site="math7"] .step-list li,html[data-site="math7"] .pager-link,html[data-site="math7"] .collection-card,html[data-site="math7"] .term-list div{border-color:var(--p-line);background:var(--p-surface)}
html[data-site="math7"] .directory-search label{color:#b3bed3}
html[data-site="math7"] .directory-search input{border-color:#26314f;background:#121a33;color:#e6ebf7}
html[data-site="math7"] .directory-search kbd{border-color:#2a3555;background:#18213d;color:#8390ab}
html[data-site="math7"] .search-results{border-color:#26314f;background:#111930}
html[data-site="math7"] .search-option:hover,html[data-site="math7"] .search-option[aria-selected="true"]{background:#1a2650}
html[data-site="math7"] .search-option strong{color:#e6ebf7}
html[data-site="math7"] .search-kind{background:#29254d;color:#c0b4ff}
html[data-site="math7"] .search-results mark{background:#5b4a12;color:#fff2c6}
html[data-site="math7"] .site-footer{border-color:#1f2a48;background:#0b1226}
html[data-site="math7"] .footer-inner>div a{color:#9aa6bd}
}
