/* 财言家 desktop design tokens 1.0 — shared source, compile into existing assets. */
:root{
  --cyj-paper:#fff;--cyj-ink:#152b43;--cyj-body:#40546b;--cyj-muted:#637487;
  --cyj-blue:#245ccd;--cyj-line:#dde4eb;--cyj-wash:#f4f8fc;
  --cyj-up:#b93e38;--cyj-down:#287b5c;--cyj-disabled:#e8edf3;
  --cyj-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --cyj-header-height:72px;--cyj-header-width:1328px;--cyj-work-width:1328px;
  --cyj-public-width:1160px;--cyj-report-width:980px;--cyj-reading-width:760px;
  --cyj-gutter:48px;--cyj-column-gap:64px;
  --cyj-brand-size:28px;--cyj-page-size:40px;--cyj-section-size:28px;
  --cyj-card-size:22px;--cyj-detail-size:34px;--cyj-ui-size:16px;
  --cyj-reading-size:18px;--cyj-meta-size:14px;
  --cyj-control-height:44px;--cyj-radius:4px;--cyj-panel-radius:8px;
}
@media(min-width:701px) and (max-width:1280px){:root{--cyj-column-gap:48px}}

/* Product header only. Do not inject into saved originals or global article markup. */
.site-header{font-family:var(--cyj-font);background:var(--cyj-paper);border-bottom:1px solid var(--cyj-line);color:var(--cyj-ink)}
.site-header *{box-sizing:border-box}
.site-header .header-inner{width:min(var(--cyj-header-width),calc(100% - 2 * var(--cyj-gutter)));height:var(--cyj-header-height);margin-inline:auto;display:flex;align-items:center;gap:48px}
.site-header a,.site-header button,.site-header summary{font:inherit;text-decoration:none}
.site-header .brand{font-size:var(--cyj-brand-size);font-weight:700;line-height:1.2;letter-spacing:.025em;white-space:nowrap;color:var(--cyj-ink)}
.site-header .site-nav{display:flex;align-self:stretch;align-items:stretch;gap:32px}
.site-header .site-nav>a,.site-header .site-nav>button{display:flex;align-items:center;min-height:var(--cyj-control-height);padding:0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--cyj-muted);font-size:var(--cyj-ui-size);font-weight:500;white-space:nowrap}
.site-header .site-nav>[aria-current="page"]{color:var(--cyj-blue);border-bottom-color:var(--cyj-blue)}
.site-header .site-nav>a:hover,.site-header .site-personal a:hover{text-decoration:underline;text-underline-offset:5px}
.site-header .site-nav>button:disabled{color:var(--cyj-muted);cursor:default}
.site-header .site-personal{margin-left:auto;display:flex;align-items:center;gap:24px;min-width:0;font-size:var(--cyj-ui-size)}
.site-header .site-personal a,.site-header .site-personal button,.site-header .site-personal summary{display:inline-flex;align-items:center;min-height:var(--cyj-control-height);padding:0;border:0;background:transparent;color:var(--cyj-ink);white-space:nowrap}
.site-header .site-personal [aria-current="page"]{color:var(--cyj-blue);text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:2px}
.site-header .site-personal button:disabled{color:var(--cyj-muted);cursor:default}
.site-header :focus-visible{outline:2px solid var(--cyj-blue);outline-offset:5px}
.site-header .account-menu{position:relative}
.site-header .account-menu>summary{cursor:pointer;list-style:none;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.site-header .account-menu>summary::-webkit-details-marker{display:none}
.site-header .account-menu .account-options{position:absolute;right:0;top:100%;min-width:170px;z-index:20;background:var(--cyj-paper);border:1px solid var(--cyj-line);border-radius:var(--cyj-radius);padding:8px 16px}
.site-header .account-menu .account-options>a,.site-header .account-menu .account-options button{width:100%;font-size:var(--cyj-meta-size)}
@media(max-width:1100px){.site-header .header-inner{gap:32px}.site-header .site-nav{gap:24px}.site-header .site-personal{gap:16px}}
/* Existing narrow-width fallback only; mobile product design is a later scope. */
@media(max-width:700px){.site-header .header-inner{width:calc(100% - 40px);height:auto;min-height:106px;flex-wrap:wrap;gap:0;padding-top:12px}.site-header .brand{font-size:25px}.site-header .site-personal{order:1}.site-header .site-nav{order:2;width:100%;min-height:46px;gap:24px}.site-header .site-nav>a,.site-header .site-nav>button{font-size:14px}}

*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0;background:var(--cyj-paper);color:var(--cyj-body);font:17px/1.8 var(--cyj-font)}
a{color:var(--cyj-blue);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:5px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--cyj-blue);outline-offset:5px}
h1,h2,h3,p,figure,blockquote{margin:0}h1,h2,h3{color:var(--cyj-ink)}
.guide-width{width:min(var(--cyj-public-width),calc(100% - 96px));margin-inline:auto}
.guide-intro{padding:28px 0 24px}.guide-intro h1{font-size:32px;line-height:1.4;font-weight:650}.page-lead{max-width:800px;margin-top:12px;font-size:18px;line-height:1.8}
.guide-anchor-nav{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--cyj-line)}
.guide-anchor-nav .guide-width{display:flex;gap:36px}.guide-anchor-nav a{display:block;padding:13px 0 12px;border-bottom:2px solid transparent;color:var(--cyj-muted);font-size:16px;line-height:1.5}
.guide-anchor-nav a[aria-current="location"]{color:var(--cyj-blue);border-color:var(--cyj-blue)}
.guide-section{padding:36px 0 42px;border-bottom:1px solid var(--cyj-line);scroll-margin-top:78px}
.guide-section h2{font-size:26px;font-weight:650;line-height:1.5;margin-bottom:24px}.guide-section h2:focus{outline:none}
.public-entry{display:grid;grid-template-columns:104px minmax(0,1fr) 148px;gap:24px;align-items:baseline;padding:17px 0;border-top:1px solid var(--cyj-line)}
.public-entry h3{font-size:20px;font-weight:600;line-height:1.6}.public-entry>a{font-size:16px;justify-self:end;white-space:nowrap;font-weight:550}.public-entry a span,.guide-next a span{margin-left:8px}
.guide-note{font-size:14px;color:var(--cyj-muted);margin-top:12px}.guide-reading{max-width:800px}.guide-reading>p+p{margin-top:16px}.availability-note{font-size:15px;color:var(--cyj-muted);margin-bottom:16px}
.guide-steps{counter-reset:steps;list-style:none;margin:28px 0 0;padding:0}.guide-steps>li{position:relative;padding-left:42px;margin-top:30px;counter-increment:steps}.guide-steps>li:first-child{margin-top:0}.guide-steps>li:before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:0;font-size:15px;line-height:33px;color:var(--cyj-muted);font-variant-numeric:tabular-nums}
.guide-steps h3{font-size:21px;font-weight:600;line-height:1.6;margin-bottom:9px}.guide-steps p+p{margin-top:10px}.request-example{margin-top:16px;background:var(--cyj-wash);padding:15px 20px}.request-example>span{font-size:14px;color:var(--cyj-muted)}.request-example blockquote{margin-top:4px;color:var(--cyj-ink)}
.section-intro{margin-top:-12px}.spoken-request{border-left:2px solid var(--cyj-line);padding-left:16px;margin:12px 0;color:var(--cyj-ink)}
.guide-screenshot{margin:22px 0 8px}.enlarge-image{display:block;cursor:zoom-in}.guide-screenshot img{display:block;width:100%;height:auto;border:1px solid var(--cyj-line);border-radius:4px}.guide-screenshot figcaption{font-size:14px;color:var(--cyj-muted);margin-top:9px;display:flex;justify-content:space-between;gap:12px}
.guide-faq details{border-bottom:1px solid var(--cyj-line)}.guide-faq details:first-child{border-top:1px solid var(--cyj-line)}.guide-faq summary{cursor:pointer;padding:17px 32px 17px 0;color:var(--cyj-ink);list-style:none;position:relative}.guide-faq summary::-webkit-details-marker{display:none}.guide-faq summary:after{content:'+';position:absolute;right:3px;color:var(--cyj-muted);font-size:22px;top:12px}.guide-faq details[open] summary:after{content:'−'}.guide-faq details p{padding:0 28px 20px 0}
.guide-next{display:flex;gap:40px;flex-wrap:wrap;padding:28px 0 48px;font-size:16px;font-weight:550}
.image-dialog{max-width:min(1160px,calc(100vw - 96px));max-height:calc(100vh - 80px);padding:24px;border:1px solid var(--cyj-line);border-radius:6px;color:var(--cyj-body);background:#fff}.image-dialog::backdrop{background:rgb(21 43 67 / .55)}.image-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:20px}.image-dialog h2{font-size:20px;line-height:1.5}.close-image{border:1px solid var(--cyj-line);padding:8px 14px;background:#fff;border-radius:4px;color:var(--cyj-blue);font:inherit;cursor:pointer}.close-image span{margin-left:12px}.image-dialog>img{display:block;max-width:100%;height:auto}.image-dialog>p{font-size:14px;margin-top:14px;color:var(--cyj-muted)}body.image-open{overflow:hidden}
@media(max-width:1000px){.public-entry{grid-template-columns:90px minmax(0,1fr) 130px;gap:18px}.guide-anchor-nav .guide-width{gap:28px}}
