/* 首页使用纯中性色双主题，保持明暗对比；首次默认深色，手动选择保存在本机。 */
:root { --home-bg:#fff; --home-ink:#151515; --home-muted:#666; --home-faint:#717171; --home-line:#e2e2e2; --home-panel:#f5f5f5; --home-card:#fff; --home-solid:#181818; --home-on-solid:#fff; --home-hover:#333; --home-ring:#d6d6d6; }
:root[data-home-theme=dark] { --home-bg:#0b0b0b; --home-ink:#ededed; --home-muted:#a3a3a3; --home-faint:#999; --home-line:#2b2b2b; --home-panel:#131313; --home-card:#191919; --home-solid:#ededed; --home-on-solid:#111; --home-hover:#ccc; --home-ring:#333; }
:root[data-home-theme=dark] .landing-mode { color-scheme:dark; }
:root[data-home-theme=light] .landing-mode { color-scheme:light; }
body.landing-mode { background:var(--home-bg); }
.landing-mode > .sidebar,.landing-mode .workspace > .topbar,.landing-mode #main > footer { display:none; }
.landing-mode .workspace { margin-left:0; }
.landing-mode #main { padding:0; max-width:none; }
.portal-home { color:var(--home-ink); max-width:1440px; margin:0 auto; padding:0 64px; }
.portal-home p { color:var(--home-muted); }
.home-nav { display:flex; justify-content:space-between; align-items:center; min-height:100px; border-bottom:1px solid var(--home-line); gap:24px; }
.home-brand { display:flex; align-items:center; gap:12px; font-size:18px; font-weight:650; letter-spacing:.5px; }
.home-symbol { display:grid; place-items:center; width:30px; height:30px; background:var(--home-solid); color:var(--home-on-solid); border-radius:50%; font-size:20px; }
.home-brand-sub { color:var(--home-faint); font-size:10px; letter-spacing:1.5px; border-left:1px solid var(--home-line); margin-left:8px; padding-left:20px; }
.home-nav nav { display:flex; align-items:center; gap:30px; font-size:14px; }
.home-console { border:1px solid var(--home-line); border-radius:4px; padding:9px 15px; }
.home-console span { margin-left:18px; }
.home-hero { display:grid; grid-template-columns:1.3fr 1fr; align-items:center; gap:60px; padding:96px 0 104px; }
.portal-home .home-kicker { font-size:11px; letter-spacing:2px; font-weight:600; color:var(--home-faint); margin-bottom:24px; }
.home-hero h1 { font-size:clamp(42px,4.7vw,68px); line-height:1.24; font-weight:550; letter-spacing:-2px; }
.home-intro { margin-top:28px; font-size:16px; line-height:1.9; }
.home-actions { display:flex; align-items:center; gap:28px; margin-top:38px; flex-wrap:wrap; }
.home-primary { display:inline-flex; align-items:center; justify-content:space-between; gap:36px; padding:14px 22px; border-radius:4px; color:var(--home-on-solid); background:var(--home-solid); font-size:14px; font-weight:550; }
.home-primary:hover { background:var(--home-hover); }
.home-demo { font-size:14px; padding:12px 0; border-bottom:1px solid var(--home-line); }
.home-demo span { padding-left:16px; }
.portal-home .home-caption { font-size:12px; margin-top:18px; color:var(--home-faint); }
.home-system { background:var(--home-panel); border:1px solid var(--home-line); border-radius:6px; padding:24px; position:relative; overflow:hidden; }
.home-system-heading { display:flex; justify-content:space-between; font-size:11px; letter-spacing:2px; color:var(--home-faint); }
.home-system-core { min-height:260px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.home-orbit { position:absolute; width:220px; height:220px; border:1px solid var(--home-ring); border-radius:50%; }
.home-orbit:after { content:''; position:absolute; inset:23px; border:1px solid var(--home-line); border-radius:50%; }
.home-core-mark { display:grid; place-items:center; width:58px; height:58px; border-radius:16px; background:var(--home-solid); color:var(--home-on-solid); font-size:34px; margin-bottom:14px; z-index:1; }
.home-system-core strong { z-index:1; font-size:18px; font-weight:550; }
.home-system-core small { z-index:1; font-size:11px; margin-top:5px; color:var(--home-muted); }
.home-system-paths { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.home-system-paths > div { background:var(--home-card); padding:17px; border:1px solid var(--home-line); border-radius:3px; }
.home-path-number { display:block; font-size:10px; letter-spacing:2px; color:var(--home-faint); margin-bottom:8px; }
.home-system-paths strong { display:block; font-size:14px; font-weight:550; }
.home-system-paths small { display:block; font-size:11px; color:var(--home-muted); margin-top:5px; }
.home-modes { border-top:1px solid var(--home-line); padding:72px 0; }
.home-section-heading { display:grid; grid-template-columns:1fr 1fr; gap:0 60px; align-items:end; }
.home-section-heading .home-kicker { grid-column:1/-1; }
.portal-home h2 { font-size:34px; line-height:1.45; font-weight:550; letter-spacing:-1px; }
.home-section-heading > p:last-child { font-size:15px; }
.home-mode-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; margin-top:48px; }
.home-mode-grid article { border-top:1px solid var(--home-line); padding-top:26px; }
.home-index { font-size:10px; letter-spacing:2px; color:var(--home-faint); }
.home-mode-grid h3 { font-size:23px; font-weight:550; margin:16px 0; }
.home-mode-grid p { font-size:15px; max-width:440px; }
.home-mode-grid ul { padding:0; list-style:none; margin:25px 0; font-size:14px; line-height:2.3; color:var(--home-muted); }
.home-mode-grid li:before { content:'—'; margin-right:12px; color:var(--home-faint); }
.home-mode-grid a { font-size:14px; border-bottom:1px solid var(--home-line); padding-bottom:5px; }.home-mode-grid a span { margin-left:18px; }
.home-process { padding:64px 0; border-top:1px solid var(--home-line); }
.home-process ol { list-style:none; padding:0; margin:38px 0 0; display:grid; grid-template-columns:repeat(3,1fr); gap:42px; }
.home-process li > span { font-size:11px; color:var(--home-faint); }.home-process h3 { font-size:16px; margin:12px 0; font-weight:550; }.home-process p { font-size:14px; }
.home-close { padding:54px; background:var(--home-panel); border-radius:4px; display:flex; justify-content:space-between; align-items:center; gap:36px; margin:16px 0 60px; }.home-close .home-kicker { margin-bottom:14px; }
.home-guide { display:block; margin-top:16px; text-align:center; font-size:13px; color:var(--home-muted); }
.portal-home .home-footer { border-top:1px solid var(--home-line); display:flex; flex-wrap:wrap; gap:20px; justify-content:space-between; margin:0; padding:26px 0 32px; font-size:11px; color:var(--home-faint); }
@media(max-width:1000px){.portal-home{padding:0 32px}.home-hero{gap:30px;padding:64px 0}.home-brand-sub{display:none}.home-section-heading{gap:20px}.home-mode-grid{gap:32px}.home-system{padding:18px}.home-system-core{min-height:230px}}
@media(max-width:700px){.portal-home{padding:0 22px}.home-nav{min-height:80px;gap:12px}.home-brand{font-size:15px;gap:8px}.home-nav nav{gap:12px}.home-nav nav>a:first-child{display:inline-block}.home-console{padding:8px 10px;font-size:12px}.home-console span{margin-left:8px}.home-hero{grid-template-columns:1fr;padding:48px 0 54px;gap:40px}.home-hero h1{font-size:clamp(34px,9vw,46px);letter-spacing:-1px}.home-intro{font-size:15px}.desktop-break{display:none}.home-actions{gap:20px;margin-top:28px}.home-primary{padding:12px 18px;gap:22px}.home-system-core{min-height:205px}.home-orbit{width:188px;height:188px}.home-modes,.home-process{padding:44px 0}.home-section-heading,.home-mode-grid{grid-template-columns:1fr;gap:28px}.portal-home h2{font-size:28px}.home-section-heading .home-kicker{margin:0}.home-mode-grid{margin-top:34px}.home-process ol{grid-template-columns:1fr;gap:26px}.home-process li{border-top:1px solid var(--home-line);padding-top:18px}.home-close{padding:30px 24px;align-items:flex-start;flex-direction:column;margin-bottom:36px}.portal-home .home-footer{font-size:11px;gap:12px}.home-footer span:nth-child(2){order:3;width:100%}}

.home-theme-toggle { width:38px; height:38px; display:grid; place-items:center; padding:0; border:1px solid var(--home-line); border-radius:50%; color:var(--home-ink); background:transparent; cursor:pointer; flex:none; }
.home-theme-toggle span { width:16px; height:16px; border:1.5px solid currentColor; border-radius:50%; background:linear-gradient(90deg,currentColor 50%,transparent 50%); }
.portal-home :is(a,button):focus-visible { outline:2px solid var(--home-ink); outline-offset:5px; }
.home-primary,.home-console,.home-theme-toggle,.home-system-paths > div { transition:background-color .18s ease,transform .18s ease,border-color .18s ease; }
.home-primary span,.home-demo span,.home-mode-grid a span { display:inline-block; transition:transform .18s ease; }
@media(hover:hover){.home-primary:hover span,.home-demo:hover span,.home-mode-grid a:hover span{transform:translateX(3px)}.home-console:hover,.home-theme-toggle:hover{background:var(--home-panel)}.home-system-paths>div:hover{transform:translateY(-3px);border-color:var(--home-muted)}}
@media(max-width:700px){.home-nav nav{gap:10px}.home-theme-toggle{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.portal-home *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.home-language{font:inherit;font-size:12px;color:var(--home-ink);background:var(--home-card);border:1px solid var(--home-line);border-radius:4px;padding:8px;cursor:pointer}
.portal-home[lang=en] .home-brand{font-size:16px}.portal-home[lang=en] .home-hero h1{font-size:clamp(38px,4.5vw,64px);line-height:1.12;letter-spacing:-1.5px}
@media(max-width:700px){.home-nav{flex-wrap:nowrap;padding:16px 0;gap:10px}.home-nav nav{width:auto;justify-content:flex-end}.home-brand{white-space:nowrap}.home-console{white-space:nowrap}.portal-home[lang=en] .home-hero h1{font-size:38px}}
.home-games{border-top:1px solid var(--home-line);padding:64px 0}.home-games>p:not(.home-kicker){max-width:850px;line-height:1.9;margin-top:20px}.home-games>a{display:inline-block;margin-top:16px;border-bottom:1px solid var(--home-line);font-size:14px}.home-games .home-caption{font-size:12px}
/* 移动端品牌和工具栏始终同排；长品牌省略显示，为操作保留固定空间。 */
@media(max-width:700px){
 .home-nav nav{width:auto;margin-left:auto;gap:8px;flex:none;flex-wrap:nowrap}
 .home-language{padding:7px 5px}
 .home-nav .home-brand{white-space:nowrap;min-width:0;flex:1;flex-wrap:nowrap;line-height:1.35}
 .home-brand-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .home-nav .home-symbol{flex:none}
}
