/* P哥研究刊物 / 2026-11-01. Presentation only; no signal/data/auth changes. */
:root {
  color-scheme: light;
  --desk-paper: #f6f5f1;
  --desk-ink: #192d3a;
  --desk-muted: #53616a;
  --desk-rule: #d4d8d8;
  --desk-navy: #173b59;
  --desk-accent: #805c12;
  --desk-paper: oklch(0.97 0.006 85);
  --desk-ink: oklch(0.29 0.033 240);
  --desk-muted: oklch(0.48 0.02 240);
}
html { scroll-padding-top: 70px; }
html *,html *::before,html *::after { box-sizing:border-box; }
html body { background:var(--desk-paper); color:var(--desk-ink); line-height:1.6; font-variant-numeric:tabular-nums; }
body :is(h1,h2,h3) { text-wrap:pretty; }
body :is(input,select,textarea) { border-radius:4px; }
body :is(button,.button) { border-radius:4px; }
body :is(a,button,input,select,summary):focus-visible { outline:3px solid #9a6a13; outline-offset:3px; }
body button:disabled { cursor:not-allowed; }
body .wrap { margin:16px auto; }
body>.wrap { max-width:1200px; padding:0 24px 32px; }
body .brand-header { display:block; padding:0 0 16px; margin:0 0 12px; border:0; border-bottom:2px solid var(--desk-navy); border-radius:0; background:transparent; }
body .brand-left { gap:16px; align-items:center; }
body .brand-left img { width:68px; height:68px; border-radius:8px; }
body .brand-name { font-family:"Songti TC","Noto Serif TC",serif; font-size:calc(clamp(22px,2.6vw,32px) + 2px); text-align:left; line-height:1.3; letter-spacing:-.025em; }
body .brand-sub { max-width:80ch; margin:6px 0 0; font-size:16px; color:var(--desk-muted); line-height:1.65; }
body .brand-right { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:12px; }
body .brand-right .brand-link { flex:none; min-height:44px; padding:6px 0; background:transparent; color:var(--desk-navy); border:0; border-radius:0; border-bottom:1px solid var(--desk-rule); font-size:16px; font-weight:600; }
body .brand-right .youtube { color:#a3221d; }
body .brand-right .tiktok { color:#232323; }
body .tab-nav { gap:0; padding:0; margin:0 0 20px; background:var(--desk-paper); border-bottom:1px solid var(--desk-rule); backdrop-filter:none; }
body .tab-nav .tab-btn { flex:none; min-height:48px; padding:10px 18px; background:transparent; color:var(--desk-muted); border:0; border-bottom:3px solid transparent; border-radius:0; font-size:17px; transform:none; }
body .tab-nav .tab-btn.active { color:var(--desk-navy); background:transparent; border-bottom-color:var(--desk-navy); }
body .tab-nav .tab-btn:hover { background:#eaece9; transform:none; }
body section { margin-bottom:20px; }
body :is(.home-module,.card,.panel,.member-auth-card,.market-dashboard,.home-foundation,.result-conversion) { border-radius:4px; box-shadow:none; }
body :is(.home-module,.card,.panel) { padding:16px; margin-bottom:16px; }
body .market-dashboard { padding:16px; background:#173b59; }
body :is(.market-pulse-card,.market-overview-item) { border-radius:3px; background:#ffffff0d; }
body .market-pulse-card { min-height:128px; }
body .market-dashboard-head h2 { font-family:"Songti TC","Noto Serif TC",serif; font-size:26px; }
body .market-dashboard .market-dashboard-note { color:#d9e3eb; }
body .home-foundation { background:#efeee7; }
body .home-foundation summary { padding:12px 16px; }
body .section-title { font-size:22px; padding-bottom:8px; border-bottom:1px solid var(--desk-rule); }
body :is(.stock-row,.review-box,.forecast-card,.match-card,.candidate,.stat-box) { border-radius:4px; box-shadow:none; }
body :is(.stock-row,.review-box,.candidate) { padding:12px; }
body :is(.status,.meta,.muted,.subtitle,.review-note) { color:var(--desk-muted); }
body :is(.table-wrap,.chart-wrap,.chart-box) { border-radius:4px; }
body th { background:#eff1f1; }
body :is(td,th) { line-height:1.55; }
body .footer-cta { margin-top:20px; }
/* Download catalogue: content-sized rows, never equal-height cards. */
body .app-hub { margin:12px 0 0; padding:16px 0 0; border-radius:0; box-shadow:none; background:transparent; color:var(--desk-ink); border-top:1px solid var(--desk-rule); }
body .app-hub .app-promo-head { display:flex; align-items:baseline; gap:10px; margin:0 0 4px; }
body .app-hub .app-promo-kicker { padding:0; background:transparent; color:var(--desk-accent); border-radius:0; font:600 11px/1.5 ui-monospace,monospace; font-size:13px; letter-spacing:.08em; }
body .app-hub h2 { font-size:22px; color:var(--desk-ink); letter-spacing:0; }
body .app-hub .app-promo-head p { width:auto; color:var(--desk-muted); font-size:15px; }
body .app-hub-grid { display:block; }
body .app-hub-product { display:grid; grid-template-columns:52px minmax(190px,1fr) auto; align-items:center; gap:12px; padding:10px 0; background:transparent; border:0; border-bottom:1px solid var(--desk-rule); border-radius:0; min-height:0; }
body .app-hub-product>img { width:48px; height:48px; object-fit:cover; border-radius:8px; }
body .app-hub-product h3 { margin:0; font-size:19px; line-height:1.4; color:var(--desk-ink); }
body .app-hub-product .app-hub-description { min-height:0; margin:3px 0 0; font-size:15px; line-height:1.5; color:var(--desk-muted); }
body .app-hub-store-list { display:flex; align-items:center; flex-wrap:wrap; gap:0 4px; margin:0; }
body .app-hub .store-badge { display:inline-flex; align-items:center; justify-content:center; min-height:64px; padding:10px; background:transparent; border:0; border-radius:0; text-decoration:none; }
body .app-hub .store-badge img { display:block; height:42px; width:auto; max-width:none; object-fit:contain; border-radius:0; }
body .app-hub .store-badge.play { padding:0; }
body .app-hub .store-badge.play img { height:64px; }
body .app-hub .store-badge:hover { opacity:.8; }
body .app-hub-footnote { margin:8px 0!important; font-size:14px!important; color:var(--desk-muted)!important; }
body .app-hub-resources { display:flex; flex-wrap:wrap; align-items:center; gap:0 20px; margin:0; padding:8px 0; border-top:0; }
body .app-hub-resources h3 { flex:0 0 130px; margin:0; font-size:15px; color:var(--desk-muted); }
body .app-hub-resource { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:4px 0; border:0; border-radius:0; background:transparent; color:var(--desk-navy); text-decoration:none; }
body .app-hub-resource strong { font-size:15px; font-weight:600; }
body .app-hub-resource small { display:block; font-size:14px; color:var(--desk-muted); }
body .app-hub-resource>b { font-size:18px; color:var(--desk-navy); }
body .app-hub-resource>img { width:36px; height:36px; border-radius:0; }
/* Shared public guides and all private workspaces. Do not alter visibility/auth. */
body>.site-nav,body>nav.research-nav { max-width:1200px; margin:0 auto 12px; padding:8px 16px; border:0; border-bottom:1px solid var(--desk-rule); border-radius:0; background:var(--desk-paper); }
body :is(.site-nav,.research-nav) a { min-height:44px; border-radius:3px; font-size:16px; box-shadow:none; }
body nav.research-nav a { border:0; border-bottom:2px solid transparent; background:transparent; }
body nav.research-nav a[aria-current] { color:var(--desk-navy); background:#e7ebec; border-bottom-color:var(--desk-navy); }
body nav.research-nav a[aria-current="page"] { border-radius:3px; box-shadow:none; }
body :is(.head,.hero) a { color:var(--desk-navy)!important; }
body>main:not(.wrap) { max-width:1200px; padding:0 24px 32px; }
body main>header,body .head,body .hero { padding:16px 20px; border:0; border-left:3px solid var(--desk-navy); border-radius:0; margin:0 0 16px; background:#e9eeef; color:var(--desk-ink); box-shadow:none; }
body :is(main>header,.head,.hero) h1 { font-family:"Songti TC","Noto Serif TC",serif; font-size:calc(clamp(24px,3vw,32px) + 2px); line-height:1.35; margin:0 0 6px; text-align:left; }
body :is(main>header,.head,.hero) p { color:var(--desk-muted); margin:4px 0; }
body main>header .eyebrow { color:var(--desk-accent); }
body .time-state { margin-top:12px; border-radius:3px; background:#fff; color:var(--desk-ink); }
body .time-state.stale { background:#fff2d6; color:#65460a; }
body .time-grid>div { background:#eff1f1; border-radius:3px; padding:10px; }
body .page-shortcuts { display:flex; gap:0; margin:0 0 16px; border-bottom:1px solid var(--desk-rule); }
body .page-shortcuts a { flex:1; min-height:44px; padding:10px 12px; border:0; border-radius:0; background:transparent; color:var(--desk-navy); text-align:center; }
body>.brand,body>header .brand { font-family:"Songti TC","Noto Serif TC",serif; }
body>header { max-width:1200px; padding:16px 24px; }
body>header nav { margin-top:8px; gap:4px 20px; }
body>header nav a { display:inline-flex; align-items:center; min-height:44px; font-size:16px; }
body>main>h1 { font-family:"Songti TC","Noto Serif TC",serif; max-width:30ch; font-size:calc(clamp(26px,3.5vw,38px) + 2px); margin:16px 0 10px; line-height:1.35; }
body .lead { max-width:65ch; margin:8px 0 16px; color:var(--desk-muted); font-size:18px; }
body>main>section { margin-top:16px; }
body .kline-lessons { border-radius:4px; }
body .pattern-outlook { border-radius:4px; }
body .quiz-box { padding:16px 0; border:0; border-bottom:1px solid var(--desk-rule); border-radius:0; background:transparent; box-shadow:none; }
body #tab-learn .quiz-box p { font-size:17px!important; line-height:1.75!important; }
body #tab-learn .quiz-box .q-title { margin:0 0 8px; font-size:19px!important; font-weight:650; }
body :is(.match-panel,.tech-radar,.stock-chart-wrap,.stock-level-chip,.tech-evidence>div,.tech-item,.kl-lessons,.kl-card) { border-radius:4px; box-shadow:none; }
body .match-panel { padding:16px; }
body .match-kicker,body .match-result-rank { color:var(--desk-accent); }
body .match-btn { background:var(--desk-navy); }
body .tech-radar { background:#fff; }
body .upload-drop { border-radius:4px; background:#f0f2f2; border-color:#9aa9b2; color:var(--desk-navy); }
body .kl-lessons { margin:16px 0; padding:16px; }
body .kl-grid { gap:12px; margin-top:12px; }
body .kl-card figcaption { padding:12px; }
body>main>section { padding:16px; border-radius:4px; }
@media(max-width:900px) {
  body .app-hub-product { grid-template-columns:48px minmax(0,1fr); gap:8px 12px; }
  body .app-hub-store-list { grid-column:2; }
  body .app-hub-product>img { align-self:start; margin-top:4px; }
}
@media(max-width:620px) {
  html { scroll-padding-top:60px; }
  body>.wrap { width:100%; padding:0 14px 24px; margin:12px auto; }
  body .brand-left { gap:10px; }
  body .brand-left img { width:52px; height:52px; }
  body .brand-name { font-size:24px; }
  body .brand-sub { font-size:15px; line-height:1.55; }
  body .brand-right { gap:4px 16px; margin-top:8px; }
  body .brand-right .brand-link { width:auto; font-size:15px; padding:5px 0; min-height:44px; }
  body .tab-nav { margin:0 -14px 16px; padding:0 10px; overflow-x:auto; flex-wrap:nowrap; }
  body .tab-nav .tab-btn { flex:1 0 auto; padding:10px 8px; font-size:15px; }
  body :is(.home-module,.panel,.card) { padding:14px; margin-bottom:12px; }
  body .market-dashboard { padding:14px; }
  body .app-hub { padding-top:12px; }
  body .app-hub .app-promo-head { gap:3px 8px; margin-bottom:4px; }
  body .app-hub h2 { font-size:20px; }
  body .app-hub .app-promo-head p { width:100%; font-size:14px; }
  body .app-hub-product { padding:10px 0; }
  body .app-hub-product h3 { font-size:18px; }
  body .app-hub-store-list { grid-column:1/-1; gap:0; margin:-6px 0; }
  body .app-hub .store-badge { min-height:64px; }
  body .app-hub-resources { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; padding:8px 0; }
  body .app-hub-resources h3 { grid-column:1/-1; font-size:14px; margin-bottom:4px; }
  body .app-hub-resource { min-width:0; align-items:center; }
  body .app-hub-resource small { font-size:13px; line-height:1.5; }
  body .app-hub-footnote { font-size:13px!important; }
  body>main:not(.wrap) { padding:0 14px 24px; }
  body main>header,body .head,body .hero { padding:14px; }
  body>header { padding:12px 14px; }
  body>header nav { gap:0 14px; }
  body>.site-nav,body>nav.research-nav { padding:6px 10px; margin:0 auto 10px; }
  body>.site-nav { gap:0; flex-wrap:wrap; overflow:visible; white-space:normal; }
  body>.site-nav a { padding:8px; font-size:15px; }
  body :is(input[type=text],input[type=password],input[type=email],input[type=number],select) { font-size:18px; min-height:44px; }
  body :is(.lead,.hero p) { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  body :is(.brand-link,.tab-btn,.app-hub-resource,.store-badge) { transition:none; animation:none; }
}
