/* 财言家 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{scrollbar-gutter:stable;scroll-behavior:auto}body{margin:0;background:var(--cyj-paper);color:var(--cyj-body);font:17px/1.8 var(--cyj-font)}h1,h2,h3,p,figure,blockquote,dl,dd{margin:0}h1,h2,h3{color:var(--cyj-ink)}a{color:var(--cyj-blue);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:5px}a:focus-visible,button:focus-visible{outline:2px solid var(--cyj-blue);outline-offset:5px}[hidden]{display:none!important}
.results-page{width:min(1160px,calc(100% - 96px));margin-inline:auto}.results-intro{padding:28px 0 24px}.results-intro h1{font-size:32px;line-height:1.4;font-weight:650}.results-intro p{font-size:18px;margin-top:12px}
.results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}.result-card{min-width:0;border-bottom:1px solid var(--cyj-line);scroll-margin-top:24px;display:flex;flex-direction:column}.result-preview{height:232px;display:flex;align-items:center;justify-content:center;background:#f7f9fb;border:1px solid var(--cyj-line);border-radius:4px;overflow:hidden;color:var(--cyj-body)}.result-preview:hover{text-decoration:none}.result-preview>img{display:block;height:100%;max-width:100%;width:auto;object-fit:contain}.document-preview{width:100%;height:100%;background:#fff;padding:18px 20px;overflow:hidden}.preview-label{font-size:13px;color:var(--cyj-muted);margin-bottom:12px}.document-preview table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.7;text-align:left}.document-preview th,.document-preview td{border:1px solid var(--cyj-line);padding:8px;vertical-align:top;font-weight:400}.document-preview th{background:var(--cyj-wash);color:var(--cyj-ink)}.document-preview th:first-child{width:20%}.positioning-preview h3{font-size:18px;line-height:1.5;margin-bottom:10px}.positioning-preview>p:last-child{font-size:15px;line-height:1.85}.result-card-body{padding:18px 0 22px;flex:1;display:flex;flex-direction:column}.result-card-meta{font-size:14px;line-height:1.7;color:var(--cyj-muted);display:flex;flex-wrap:wrap;gap:2px 12px}.result-card-meta>span:first-child{color:var(--cyj-blue)}.result-card h2{font-size:21px;line-height:1.5;font-weight:600;margin-top:12px}.result-card h2 a{color:var(--cyj-ink)}.result-card-description{font-size:17px;margin-top:12px}.result-card-action{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:16px;font-weight:550;margin-top:auto;padding-top:16px}.result-same-topic{font-size:14px;color:var(--cyj-muted);margin-top:16px}.results-next{display:flex;justify-content:space-between;gap:32px;border-top:1px solid var(--cyj-line);padding:24px 0 40px;margin-top:24px}.results-next p{font-size:16px}.results-next a{margin-left:12px;font-weight:550}
.results-detail{max-width:800px;padding-top:24px}.results-navigation{display:flex;gap:24px;align-items:center;min-height:36px;font-size:14px}.results-navigation [data-all-results]{margin-left:auto}.result-heading{padding:16px 0 24px;margin-bottom:28px;border-bottom:1px solid var(--cyj-line)}.result-eyebrow{font-size:14px;line-height:1.7;color:var(--cyj-blue)}.result-heading h1{font-size:32px;line-height:1.5;font-weight:650;margin-top:10px;letter-spacing:-.02em}.result-description{font-size:18px;line-height:1.8;margin-top:12px}.result-meta{font-size:14px;line-height:1.7;color:var(--cyj-muted);margin-top:10px}.work-article,.ip-original{font-size:18px;line-height:1.9}.work-article>p,.ip-original p{margin:18px 0}.work-article h2,.ip-original h2{font-size:26px;line-height:1.6;margin:38px 0 18px}.work-article h3,.ip-original h3{font-size:21px;line-height:1.6;margin:30px 0 16px}.work-article>p:first-child{margin-top:0}.work-article table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.8;margin:24px 0}.work-article th,.work-article td{border:1px solid var(--cyj-line);padding:12px;vertical-align:top;text-align:left}.work-article th{background:var(--cyj-wash);font-weight:600;color:var(--cyj-ink)}
.ip-original section+section{margin-top:44px}.ip-original section:first-child h2:first-child{margin-top:0}.ip-original .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ip-original .card{padding:20px;background:var(--cyj-wash);border-radius:4px}.ip-original .card h3{margin-top:0}.ip-original .label{font-size:14px;color:var(--cyj-blue);margin-bottom:10px}.ip-original .box{padding:20px 24px;border-left:2px solid #afc4df;background:var(--cyj-wash);margin:24px 0}.ip-original .box h3{margin-top:0}.ip-original .example{padding-left:18px;border-left:2px solid var(--cyj-line);margin:18px 0}.ip-original .muted,.ip-original .source{font-size:15px;color:var(--cyj-muted)}
.result-reading-end{border-top:1px solid var(--cyj-line);padding:24px 0 42px;margin-top:40px;font-size:16px}.result-reading-end>div{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}.related-work{margin-bottom:24px}
.gallery-detail{max-width:980px}.gallery-detail>.result-heading,.gallery-detail>.results-navigation{max-width:800px;margin-inline:auto}.gallery-detail .result-heading{padding-bottom:20px;margin-bottom:20px}.work-gallery{max-width:800px;margin:auto}.gallery-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:16px;font-size:16px}.gallery-toolbar [data-zoom]{margin-left:auto}.work-gallery button{font:inherit;min-height:44px;padding:6px 14px;border:1px solid #b8cbea;background:#fff;border-radius:4px;color:var(--cyj-blue);cursor:pointer}.work-gallery button:disabled{color:var(--cyj-muted);border-color:var(--cyj-line);background:var(--cyj-wash);cursor:default}.gallery-stage img{display:block;width:100%;max-width:648px;height:auto;margin:auto;border:1px solid var(--cyj-line)}.gallery-stage figure{margin-bottom:24px}.gallery-stage figcaption{font-size:14px;color:var(--cyj-muted);text-align:center;padding-top:10px}.gallery-open{display:block;cursor:zoom-in}.work-gallery.is-enhanced{--gallery-height:clamp(320px,calc(100vh - 414px),640px)}.is-enhanced .gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:24px}.is-enhanced .gallery-stage img{height:var(--gallery-height);width:auto;max-width:100%;object-fit:contain}.is-enhanced .gallery-open{display:flex;justify-content:center}.is-enhanced .gallery-stage figure{margin-bottom:0}.gallery-thumbs{display:flex;flex-direction:column;gap:7px}.gallery-thumbs button{position:relative;display:flex;justify-content:center;padding:2px;height:calc((var(--gallery-height) - 35px)/6);min-height:0;border:2px solid transparent;border-radius:3px}.gallery-thumbs button[aria-pressed=true]{border-color:var(--cyj-blue)}.gallery-thumbs img{height:100%;width:auto;max-width:100%;object-fit:contain}.gallery-thumbs span{position:absolute;right:2px;bottom:0;padding:0 4px;background:#fff;font-size:12px;line-height:1.4}.work-caption{max-width:800px;margin:32px auto 0;border-top:1px solid var(--cyj-line);padding-top:24px}.work-caption h2{font-size:22px;margin-bottom:18px}.work-caption p{font-size:18px;line-height:1.9;margin:16px 0}.gallery-detail .result-reading-end{max-width:800px;margin-inline:auto}
.gallery-dialog{width:min(1160px,calc(100vw - 96px));max-height:calc(100vh - 64px);padding:20px 24px 24px;border:1px solid var(--cyj-line);border-radius:6px;background:#fff;overflow:hidden}.gallery-dialog::backdrop{background:rgb(21 43 67 / .55)}.dialog-toolbar{display:flex;gap:14px;align-items:center;margin-bottom:16px;font-size:16px}.dialog-toolbar [data-close]{margin-left:auto}.dialog-image-scroll{max-height:calc(100vh - 180px);overflow:auto;overscroll-behavior:contain}.dialog-image-scroll img{display:block;width:100%;height:auto;max-width:1080px;margin:auto}body.results-image-open{overflow:hidden}
.document-preview td:first-child{white-space:nowrap}
.work-gallery.is-enhanced{--gallery-height:clamp(320px,calc(100vh - 454px),640px)}
@media(max-width:1280px){.results-grid{gap:28px}.document-preview{padding:16px}.result-card-meta{gap:2px 9px}}
