/* TradingTony 滚仓教学 · 金色主题 · 深色优先 · 亮/暗自适应 · 中文阅读优先 · 零 webfont */

/* ---------- 设计变量 ---------- */
:root{
  /* 浅色(默认 = 温暖纸感) */
  --bg:#faf8f3; --bg-soft:#f2eee5; --surface:#ffffff; --surface-2:#f6f2ea;
  --text:#191b1e; --text-soft:#4a5057; --muted:#858b93;
  --line:#e7e1d4; --line-strong:#d8d1c1;
  --accent:#a76a00; --accent-hover:#8a5700;      /* 交互金(纸上够对比) */
  --gold:#d99500; --gold-ink:#1a1204;            /* 装饰实金 */
  --accent-soft:rgba(217,149,0,.12);
  --shadow:0 1px 2px rgba(30,25,10,.04), 0 8px 24px rgba(30,25,10,.06);
  --shadow-lift:0 2px 6px rgba(30,25,10,.08), 0 16px 40px rgba(30,25,10,.10);
  --maxw:1120px; --readw:720px; --radius:16px; --radius-sm:10px;
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"Noto Serif SC","Songti SC","STSong",Georgia,"Times New Roman",serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    --bg:#0d0f13; --bg-soft:#12151b; --surface:#161a21; --surface-2:#1c2129;
    --text:#e9ebee; --text-soft:#aab1bd; --muted:#79818e;
    --line:#252b34; --line-strong:#333b46;
    --accent:#f5b400; --accent-hover:#ffc733;
    --gold:#f5b400; --gold-ink:#0d0f13;
    --accent-soft:rgba(245,180,0,.13);
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lift:0 2px 8px rgba(0,0,0,.4), 0 20px 50px rgba(0,0,0,.5);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0d0f13; --bg-soft:#12151b; --surface:#161a21; --surface-2:#1c2129;
  --text:#e9ebee; --text-soft:#aab1bd; --muted:#79818e;
  --line:#252b34; --line-strong:#333b46;
  --accent:#f5b400; --accent-hover:#ffc733;
  --gold:#f5b400; --gold-ink:#0d0f13;
  --accent-soft:rgba(245,180,0,.13);
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lift:0 2px 8px rgba(0,0,0,.4), 0 20px 50px rgba(0,0,0,.5);
  color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);
  font-size:17px;line-height:1.75;-webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;overflow-x:hidden}
a{color:var(--accent);text-decoration:none;transition:color .18s}
a:hover{color:var(--accent-hover)}
img{max-width:100%;height:auto}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.skip{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--gold-ink);
  padding:10px 16px;border-radius:0 0 8px 0;z-index:100}
.skip:focus{left:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* ---------- 阅读进度条 ---------- */
.reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:60;background:transparent}
.reading-progress span{display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--gold),var(--accent-hover))}

/* ---------- 顶栏 ---------- */
.site-header{position:sticky;top:0;z-index:50;
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:20px;height:64px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:700;white-space:nowrap}
.brand-mark{width:34px;height:34px;border-radius:9px;object-fit:cover;display:block;
  border:1px solid var(--line);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.brand-name{font-size:17px;letter-spacing:.2px}
.brand-name b{font-weight:600;color:var(--muted);font-size:13px;margin-left:4px}
.site-nav{display:flex;flex-wrap:nowrap;gap:3px;margin-left:auto}
.site-nav a{color:var(--text-soft);font-size:15px;padding:8px 14px;border-radius:8px;white-space:nowrap;transition:color .18s,background .18s}
.site-nav a:hover{color:var(--text);background:var(--surface-2)}
.site-nav a.on{color:var(--accent);background:var(--accent-soft);font-weight:600}
.header-actions{display:flex;align-items:center;gap:6px;margin-left:8px}
.icon-btn{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);
  background:var(--surface);color:var(--text-soft);border-radius:10px;cursor:pointer;
  transition:color .18s,border-color .18s,background .18s}
.icon-btn:hover{color:var(--accent);border-color:var(--line-strong)}
.nav-toggle{display:none}
.i-sun{display:none}.i-moon{display:inline}
@media (prefers-color-scheme:dark){:root:not([data-theme]) .i-sun{display:inline}:root:not([data-theme]) .i-moon{display:none}}
:root[data-theme="dark"] .i-sun{display:inline}:root[data-theme="dark"] .i-moon{display:none}

@media (max-width:940px){
  .site-header .wrap{gap:12px}
  .nav-toggle{display:grid}
  .site-nav{position:absolute;top:64px;left:0;right:0;margin:0;flex-direction:column;gap:0;
    background:var(--surface);border-bottom:1px solid var(--line);
    padding:8px 22px 14px;box-shadow:var(--shadow);
    max-height:0;overflow:hidden;opacity:0;pointer-events:none;transition:max-height .25s,opacity .2s}
  body.nav-open .site-nav{max-height:80vh;opacity:1;pointer-events:auto}
  .site-nav a{padding:12px 6px;border-bottom:1px solid var(--line);border-radius:0}
  .site-nav a:last-child{border-bottom:0}
}

/* ---------- 首页 Hero ---------- */
.home-hero{border-bottom:1px solid var(--line);
  background:radial-gradient(120% 140% at 85% -20%,var(--accent-soft),transparent 55%)}
.home-hero .wrap{padding:64px 22px 52px;max-width:var(--maxw)}
.eyebrow{color:var(--accent);font-size:13px;font-weight:700;letter-spacing:2px;
  text-transform:uppercase;margin:0 0 16px}
.home-hero h1{font-size:clamp(28px,4.6vw,46px);line-height:1.25;margin:0 0 18px;
  letter-spacing:-.01em;max-width:16em}
.home-hero .lead{font-size:clamp(16px,2vw,19px);color:var(--text-soft);margin:0 0 26px;max-width:40em}
.hero-links{display:flex;flex-wrap:wrap;gap:10px}
.hero-chip{padding:9px 16px;border:1px solid var(--line-strong);border-radius:999px;
  color:var(--text);font-size:14px;font-weight:500;background:var(--surface);
  transition:border-color .18s,color .18s,transform .12s}
.hero-chip:hover{border-color:var(--gold);color:var(--accent);transform:translateY(-1px)}

/* ---------- 分类 Hero ---------- */
.page-hero{border-bottom:1px solid var(--line)}
.page-hero .wrap{padding:52px 22px 34px}
.page-hero h1{font-size:clamp(26px,3.6vw,38px);margin:0 0 8px;letter-spacing:-.01em}
.page-hero .lead{color:var(--text-soft);margin:0;font-size:16px}

/* ---------- 列表 / 卡片 ---------- */
.list{padding:36px 0 64px}
.cards{display:flex;flex-direction:column}
.card{display:flex;gap:22px;padding:26px 0;border-bottom:1px solid var(--line);align-items:flex-start}
.card:first-child{padding-top:8px}
.card-cover{flex:0 0 190px;border-radius:var(--radius-sm);overflow:hidden;line-height:0;
  border:1px solid var(--line)}
.card-cover img{width:190px;height:124px;object-fit:cover;transition:transform .4s ease}
.card-cover:hover img{transform:scale(1.05)}
.card-text{min-width:0;flex:1}
.card-head{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted);margin-bottom:9px}
.card-cat{color:var(--accent);background:var(--accent-soft);padding:3px 10px;border-radius:6px;font-weight:600}
.card-pin{color:var(--gold-ink);background:var(--gold);padding:3px 10px;border-radius:6px;font-weight:700;font-size:12px;letter-spacing:.5px}
.card h2{font-size:20px;line-height:1.45;margin:0 0 8px;letter-spacing:-.005em}
.card h2 a{color:var(--text)}
.card h2 a:hover{color:var(--accent)}
.card p{margin:0 0 10px;color:var(--text-soft);font-size:14.5px;line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-more{font-size:13px;color:var(--muted);font-weight:600;transition:color .18s}
.card:hover .card-more{color:var(--accent)}

/* 首篇大卡 */
.card.feat{flex-direction:column;gap:20px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:0;overflow:hidden;box-shadow:var(--shadow);margin-bottom:28px;
  transition:box-shadow .25s,transform .2s,border-color .25s}
.card.feat:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px);border-color:var(--line-strong)}
.card.feat .card-cover{flex:none;width:100%;border:0;border-radius:0}
.card.feat .card-cover img{width:100%;height:300px}
.card.feat .card-text{padding:6px 30px 30px}
.card.feat h2{font-size:27px;line-height:1.35}
.card.feat p{font-size:16px;-webkit-line-clamp:3}

@media (max-width:620px){
  .card{flex-direction:column;gap:14px}
  .card-cover,.card-cover img{width:100%;flex:none}
  .card-cover img{height:200px}
  .card.feat .card-cover img{height:210px}
  .card.feat .card-text{padding:4px 20px 24px}
  .card.feat h2{font-size:22px}
}

/* ---------- 分页 ---------- */
.pager{display:flex;align-items:center;justify-content:center;gap:16px;margin:52px 0 10px}
.pager a{padding:10px 18px;border:1px solid var(--line-strong);border-radius:10px;
  color:var(--text);font-size:14.5px;font-weight:500;transition:border-color .18s,color .18s,background .18s}
.pager a:hover{border-color:var(--gold);color:var(--accent);background:var(--accent-soft)}
.pageno{color:var(--muted);font-size:13.5px}

/* ---------- 文章页 ---------- */
.article{padding:44px 0 72px;max-width:calc(var(--readw) + 44px)}
.article-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.chip{font-size:12.5px;font-weight:600;color:var(--accent);background:var(--accent-soft);
  padding:4px 12px;border-radius:999px}
.chip:hover{color:var(--accent-hover)}
.article h1{font-size:clamp(28px,4vw,40px);line-height:1.32;margin:0 0 16px;letter-spacing:-.012em}
.post-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;
  margin-bottom:36px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.post-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--muted);display:inline-block}
.post-body{font-size:17.5px;line-height:1.9}
.post-body p{margin:1.25em 0}
.post-body>p:first-of-type{font-size:18.5px;color:var(--text)}
.post-body h1,.post-body h2,.post-body h3,.post-body h4{line-height:1.4;margin:1.9em 0 .7em;font-weight:700;letter-spacing:-.01em}
.post-body h2{font-size:25px;padding-left:14px;border-left:4px solid var(--gold)}
.post-body h3{font-size:21px}
.post-body h4{font-size:18px;color:var(--text-soft)}
.post-body a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--accent-soft);text-decoration-thickness:2px}
.post-body a:hover{text-decoration-color:var(--accent)}
.post-body strong{color:var(--text);font-weight:700}
.post-body img{display:block;margin:1.8em auto;border-radius:var(--radius-sm);border:1px solid var(--line);box-shadow:var(--shadow)}
.post-body figure{margin:1.8em 0}
.post-body figcaption{text-align:center;color:var(--muted);font-size:13.5px;margin-top:10px}
.post-body blockquote{margin:1.6em 0;padding:.2em 1.3em;border-left:3px solid var(--gold);
  background:var(--surface-2);border-radius:0 10px 10px 0;color:var(--text-soft)}
.post-body ul,.post-body ol{padding-left:1.5em}
.post-body li{margin:.45em 0}
.post-body li::marker{color:var(--gold)}
.post-body hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
.post-body table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:15px;display:block;overflow-x:auto}
.post-body th,.post-body td{border:1px solid var(--line);padding:8px 12px;text-align:left}
.post-body th{background:var(--surface-2)}
.embed-link{padding:14px 18px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px}
.video-embed{position:relative;padding-bottom:56.25%;height:0;margin:1.8em 0;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.article-foot{margin-top:52px;padding-top:26px;border-top:1px solid var(--line)}
.back{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;
  padding:9px 16px;border:1px solid var(--line-strong);border-radius:10px;color:var(--text)}
.back:hover{border-color:var(--gold);color:var(--accent);background:var(--accent-soft)}

/* ---------- 文章顶部广告卡片(陪跑训练营) ---------- */
.promo{position:relative;display:flex;align-items:center;gap:18px;margin:6px 0 40px;
  padding:18px 22px;border-radius:16px;overflow:hidden;isolation:isolate;
  background:linear-gradient(125deg,#171a21 0%,#231a0b 58%,#2c2009 100%);
  border:1px solid rgba(245,180,0,.34);box-shadow:0 10px 30px rgba(0,0,0,.16);
  transition:transform .2s,box-shadow .25s,border-color .25s}
.promo:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(170,115,0,.26);
  border-color:rgba(245,180,0,.62);text-decoration:none}
.promo-glow{position:absolute;inset:0;z-index:-1;
  background:radial-gradient(120% 160% at 100% 0%,rgba(245,180,0,.20),transparent 55%)}
.promo-icon img{width:54px;height:54px;border-radius:12px;display:block;
  box-shadow:0 4px 12px rgba(0,0,0,.35)}
.promo-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.promo-tag{align-self:flex-start;font-size:11.5px;font-weight:700;letter-spacing:1px;
  color:#ffd166;background:rgba(245,180,0,.13);border:1px solid rgba(245,180,0,.3);
  padding:2px 10px;border-radius:999px;margin-bottom:2px}
.promo-title{font-size:18px;font-weight:700;color:#fff;line-height:1.35}
.promo-sub{font-size:13.5px;color:#c9c2b2;line-height:1.5}
.promo-cta{flex:none;display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,#f5b400,#e08a00);color:#1a1204;font-weight:700;
  font-size:14.5px;padding:11px 18px;border-radius:11px;white-space:nowrap;
  box-shadow:0 4px 14px rgba(245,180,0,.3);transition:filter .2s}
.promo:hover .promo-cta{filter:brightness(1.07)}
@media (max-width:560px){
  .promo{flex-wrap:wrap;gap:14px;padding:16px 18px}
  .promo-icon img{width:46px;height:46px}
  .promo-title{font-size:16px}
  .promo-body{order:2}
  .promo-cta{order:3;width:100%;justify-content:center}
}

/* ---------- 两侧公众号二维码(超宽屏)---------- */
.side-qr{position:fixed;top:50%;transform:translateY(-50%);width:150px;z-index:40;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:14px 12px;text-align:center;box-shadow:var(--shadow);display:none}
.side-left{left:22px}.side-right{right:22px}
.side-qr img{width:126px;height:126px;border-radius:9px;display:block;margin:0 auto 9px;background:#fff}
.side-qr-t{font-size:12.5px;font-weight:600;color:var(--text);margin:0}
.side-qr-s{font-size:11px;color:var(--muted);margin:3px 0 0;line-height:1.4}
@media (min-width:1520px){.side-qr{display:block}}

/* ---------- 文章底部:搜一搜关注横幅 ---------- */
.follow-cta{margin:50px 0 4px;padding-top:26px;border-top:1px dashed var(--line)}
.follow-t{font-size:15px;color:var(--text-soft);margin:0 0 14px;font-weight:600;line-height:1.5}
.follow-img{display:block;width:100%;max-width:580px;border-radius:12px;box-shadow:var(--shadow)}

/* ---------- 页脚友情链接 ---------- */
.foot-friends{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.foot-h{display:block;font-size:13px;font-weight:700;color:var(--text-soft);letter-spacing:.5px;margin-bottom:14px}
.friend-list{display:flex;flex-wrap:wrap;gap:14px}
.friend{flex:1 1 280px;min-width:0;display:block;padding:14px 16px;border:1px solid var(--line);
  border-radius:12px;background:var(--surface);transition:border-color .2s,transform .15s,box-shadow .2s}
.friend:hover{border-color:var(--gold);transform:translateY(-2px);box-shadow:var(--shadow);text-decoration:none}
.friend b{display:block;color:var(--text);font-size:15px;margin-bottom:5px}
.friend:hover b{color:var(--accent)}
.friend em{display:block;color:var(--muted);font-size:12.5px;font-style:normal;line-height:1.55}

/* ---------- 页脚 ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-soft);margin-top:20px;padding:44px 0}
.foot-brand{font-weight:700;font-size:17px;margin-bottom:16px}
.foot-nav{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:20px}
.foot-nav a{color:var(--text-soft);font-size:14px}
.foot-nav a:hover{color:var(--accent)}
.muted{color:var(--muted);font-size:13px;margin:.3em 0}

/* ---------- 无障碍 / 动效 ---------- */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
