/* ============================================================
   GYMTEST 内容站共享样式（文章页 / 静态页 / 文章中心）
   视觉变量与测试页(index.html)保持一致的橙色调。
   ============================================================ */
:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --card: #1c2029;
  --card-2: #232834;
  --line: #2c323f;
  --text: #e8ebf0;
  --muted: #9aa3b2;
  --accent: #ff7a3c;
  --accent-2: #ffb347;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --nav-h: 56px;
}
html[data-theme="light"] {
  --bg: #eef1f5;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f0f2f6;
  --line: #d9dee7;
  --text: #1a1f29;
  --muted: #667085;
  --accent: #ff6a2c;
  --accent-2: #f0883a;
  --shadow: 0 10px 30px rgba(20, 30, 50, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #1b2030 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .brand {
  font-weight: 800; font-size: 16px; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none; white-space: nowrap;
}
.site-nav .nav-links { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.site-nav .nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 4px; transition: color .15s ease;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { color: var(--accent-2); }
.site-nav #themeToggle {
  appearance: none; cursor: pointer; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
}
@media (max-width: 560px) {
  .site-nav { gap: 8px; padding: 0 12px; }
  .site-nav .nav-links { gap: 9px; }
  .site-nav .nav-links a { font-size: 12px; }
  .site-nav .brand { font-size: 14px; }
}

/* ---------- 主体容器 ---------- */
.shell { max-width: 760px; margin: 0 auto; padding: 28px 18px 80px; }

/* ---------- 文章卡片排版 ---------- */
.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin-bottom: 20px;
}
h1 { font-size: 26px; margin: 0 0 8px; color: var(--accent-2); line-height: 1.4; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
h2 { font-size: 19px; color: var(--accent-2); margin: 26px 0 10px; line-height: 1.5; }
h2 .num { color: var(--accent); margin-right: 8px; }
h3 { font-size: 16px; color: var(--text); margin: 20px 0 8px; }
p { margin: 10px 0; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--text); }
.tip {
  background: rgba(255, 122, 60, .08); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 12px 16px; margin: 14px 0; font-size: 14px; color: var(--muted);
}
blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--accent-2);
  background: var(--card-2); border-radius: 8px; color: var(--muted); font-size: 14px;
}

/* ---------- 文章列表（中心页） ---------- */
.article-grid { display: grid; gap: 14px; }
.article-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; transition: border-color .15s ease, transform .12s ease;
}
.article-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.article-card .ac-title { font-size: 17px; font-weight: 700; color: var(--text); }
.article-card .ac-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.article-card .ac-excerpt { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.article-card .ac-cat {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent);
  background: rgba(255, 122, 60, .12); border-radius: 6px; padding: 1px 8px; margin-right: 8px;
}
.section-title { font-size: 18px; font-weight: 700; margin: 4px 0 14px; color: var(--accent-2); }

/* ---------- 页脚 ---------- */
.site-footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 28px; padding-bottom: 20px; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--accent-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 8px; opacity: .5; }
.site-footer .icp-tip { opacity: .6; font-size: 11px; }

/* ---------- 好物推荐（淘宝联盟） ---------- */
.recommend { margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.rec-head { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rec-badge { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 560px) { .rec-grid { grid-template-columns: 1fr; } }
.rec-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .15s ease, transform .12s ease; }
.rec-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.rec-name { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 8px; }
.rec-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.rec-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.rec-price { font-size: 14px; font-weight: 800; color: var(--accent); }
.rec-go { font-size: 12px; font-weight: 700; color: var(--accent-2); }
.rec-footnote { font-size: 11px; color: var(--muted); margin-top: 12px; opacity: .8; line-height: 1.6; }

/* 推荐卡商品图：图覆盖在 emoji 兜底之上，加载失败自动露出 emoji，不裂图 */
.rec-media {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; background: linear-gradient(135deg, var(--card-2), rgba(255,122,60,.07));
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.rec-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-emoji { font-size: 40px; line-height: 1; }
