/* Homepage-only warm palette and functional code preview. */
.home-page{--site-bg:#f6f2e9;--site-paper:#fffdf8;--site-ink:#2b3930;--site-muted:#647064;--site-line:#dfe2d5;--site-soft:#edf2e7;--site-accent:#286451;--home-gold:#9a6a39;background:radial-gradient(ellipse 600px 430px at 89% 24%,#e9dbbf59,transparent),#f6f2e9;min-height:100vh}
.home-page .site-header{background:#fffdf8eb;border-bottom-color:#e0e2d6}
.home-page .home-main{width:min(1200px,calc(100% - 64px));padding:0 0 52px}
.home-hero{display:grid;grid-template-columns:1.06fr 1fr;align-items:center;gap:76px;padding:60px 0 48px}
.home-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 22px;font-size:13px;color:#6b755f;letter-spacing:.06em}
.home-eyebrow>span{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#a27b46;box-shadow:0 0 0 4px #b99a6820}
.home-hero h1{font-family:"Songti SC",STSong,"Noto Serif CJK SC",SimSun,serif;font-size:clamp(36px,4.2vw,56px);font-weight:650;letter-spacing:.035em;line-height:1.4;margin:0;color:#293a30}
.home-hero h1>span{color:#286451;white-space:nowrap}
.home-hero-description{font-size:15px;line-height:1.95;color:#647064;margin:22px 0 28px}
.home-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 26px}
.home-primary-action{display:inline-flex;align-items:center;justify-content:center;gap:32px;min-height:48px;padding:10px 23px;border-radius:9px;background:#286451;color:#fff;border:1px solid #255b49;box-shadow:0 4px 0 #1d4f3f,0 8px 16px #28563c14;font-size:15px;font-weight:550;transition:transform .18s,box-shadow .18s,background .18s}
.home-primary-action:hover{background:#225b47;transform:translateY(-1px)}
.home-primary-action:active{transform:translateY(3px);box-shadow:0 1px 0 #1d4f3f}
.home-secondary-action{display:inline-flex;align-items:center;gap:16px;min-height:44px;font-size:14px;color:#55664e}
.home-secondary-action:hover{color:#286451;text-decoration:underline;text-underline-offset:5px}
.home-code-preview{position:relative;min-width:0;background:#fffdf8;border:1px solid #d3d9c9;border-radius:15px;box-shadow:0 7px 0 -2px #e7e6d8,0 8px 0 -2px #d9dece,0 20px 42px -14px #594d3629;overflow:hidden}
.home-code-toolbar{display:flex;align-items:center;gap:18px;padding:13px 20px;border-bottom:1px solid #e0e4d8;background:#eef1e7;color:#5e6e57;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}
.home-window-dots{display:flex;gap:5px}.home-window-dots i{width:8px;height:8px;border-radius:50%;background:#c89c74}.home-window-dots i:nth-child(2){background:#d6c690}.home-window-dots i:nth-child(3){background:#94b6a0}
.home-code-language{margin-left:auto;font-size:11px;color:#69775f}
.home-code-caption{margin:18px 26px 10px;font-size:12px;color:#7a715c}
.home-code-source{margin:0;padding:0 26px 18px;overflow-x:auto;font:14px/1.85 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#3b4c40;tab-size:4}
.home-code-source code{font:inherit}
.home-code-directive{color:#9a5b38}.home-code-keyword{color:#286451;font-weight:600}.home-code-string{color:#886437}.home-code-function{color:#416d7d}.home-code-number{color:#94603e}
.home-code-result{display:flex;gap:26px;align-items:center;padding:13px 26px;background:#f6f7f0;border-top:1px solid #e6e9de;font-size:11px;color:#6a7661}
.home-code-result>div{display:flex;align-items:center;gap:14px}.home-code-result code{font:14px ui-monospace,SFMono-Regular,Consolas,monospace;color:#334e3b}.home-result-arrow{color:#92a18a}
.home-editor-action{display:flex;align-items:center;justify-content:space-between;padding:14px 26px;border-top:1px solid #e6e9de;color:#286451;font-size:13px;font-weight:550;min-height:48px;background:#fffdf8;transition:background .18s}
.home-editor-action:hover{background:#edf2e7}
.home-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:0 0 18px}
.home-section-heading h2{font-size:18px;font-weight:600;margin:0;letter-spacing:.02em}.home-section-heading p{font-size:12px;margin:0;color:#747b6b}
.home-page .home-portals{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.home-page .home-portal{min-height:246px;padding:24px 26px 22px;border-radius:14px;background:#fffdf8;border-color:#dde2d5;box-shadow:0 3px 0 #e6e7d9,0 8px 22px #5b513507;transition:transform .2s,box-shadow .2s,border-color .2s}
.home-page .home-portal.featured{background:linear-gradient(145deg,#f2f6eb,#edf2e6)}
.home-page .home-portal-competition{background:linear-gradient(145deg,#fffdf7,#f5efdf);border-color:#e4ddca}
.home-page .home-portal-policy{background:linear-gradient(145deg,#fffdf8,#f0f0e9)}
.home-page .home-portal::before{display:none}
.home-portal-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.home-page .home-icon{width:42px;height:42px;margin:0;border-radius:11px;box-shadow:inset 0 1px #fff,0 2px 3px #34573b12;background:#fffdf8;border:1px solid #dfe5d6}
.home-page .featured .home-icon{background:#e1ebd9;border-color:#cedcc3}
.home-page .home-icon img{width:31px;height:31px;filter:none}
.home-portal-category{font-size:11px;letter-spacing:.03em;color:#6c765f}
.home-portal-competition .home-portal-category{color:#8b6b3e}
.home-page .home-portal h2{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:22px;font-weight:600;line-height:1.5;margin:0 0 10px;letter-spacing:.02em}
.home-page .home-portal p{font-size:14px;line-height:1.85;color:#647064}
.home-page .home-entry{font-size:13px;padding-top:20px;font-weight:500}
.home-page .home-portal-competition .home-entry{color:#876236}
.home-page .home-portal:focus-visible{outline:2px solid #286451;outline-offset:4px}
@media(hover:hover) and (pointer:fine){.home-page .home-portal:hover{transform:translateY(-3px);border-color:#a1b294;box-shadow:0 5px 0 #e5e7d8,0 15px 26px #394e3010}}
@media(max-width:1000px){.home-hero{gap:36px;padding-top:44px}.home-hero h1{font-size:40px}.home-page .home-portal{padding:22px}.home-page .home-portals{gap:16px}.home-code-source{font-size:13px}.home-hero-description{font-size:14px}}
@media(max-width:800px){.home-page .home-main{width:calc(100% - 40px)}.home-hero{grid-template-columns:1fr;gap:34px;padding:34px 0 40px}.home-hero h1{font-size:clamp(32px,6vw,44px)}.home-eyebrow{margin-bottom:16px}.home-hero-description{margin:16px 0 24px}.home-code-preview{width:100%;max-width:570px;justify-self:center}.home-page .home-portals{grid-template-columns:1fr}.home-page .home-portal{min-height:210px;padding:22px 24px}.home-portal-top{margin-bottom:14px}.home-section-heading{align-items:flex-start;flex-direction:column;gap:7px}.home-code-source{font-size:14px}.home-page .home-main{padding-bottom:36px}}
@media(max-width:380px){.home-page .home-main{width:calc(100% - 32px)}.home-hero h1{font-size:29px}.home-hero-description{font-size:13px}.home-hero-actions{gap:12px 18px}.home-primary-action{padding:10px 18px;gap:22px;font-size:14px}.home-secondary-action{font-size:13px;gap:8px}.home-code-source{font-size:12px;padding-left:18px;padding-right:18px}.home-code-caption{margin-left:18px}.home-code-result{padding:13px 18px;gap:16px}.home-code-result>div{gap:9px}.home-editor-action{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){.home-primary-action,.home-editor-action,.home-page .home-portal{transition:none}.home-primary-action:hover,.home-primary-action:active,.home-page .home-portal:hover{transform:none}}
