/* =========================================================
   HuangGua Clips · 博客共享样式
   与 landing.html / 主站风格一致：深色 + 黄色强调
   ========================================================= */
:root {
  --bg: #08080a;
  --bg2: #0f0f13;
  --card: #15151b;
  --border: #23232c;
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --accent: #f5c518;
  --green: #2ee6a8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
header.blog-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 700; font-size: 17px; color: var(--text); }
.nav-cta {
  background: var(--accent); color: #111; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
}
.nav-cta:hover { text-decoration: none; opacity: .92; }

/* Blog index */
.blog-index { max-width: 860px; margin: 0 auto; padding: 56px 20px 64px; }
.blog-head { margin-bottom: 36px; }
.blog-head h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.blog-head p { color: var(--muted); font-size: 17px; }

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.post-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.post-card .tag { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.post-card h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.post-card .meta { color: var(--muted); font-size: 13px; }

/* Article */
article.post { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.post-head { margin-bottom: 32px; }
.post-head .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.post-head .tag { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.post-head h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin-bottom: 14px; }
.post-head .dek { color: var(--muted); font-size: 18px; }
.post-head .meta { color: var(--muted); font-size: 13px; margin-top: 16px; }

.post-body h2 { font-size: 26px; font-weight: 700; margin: 36px 0 14px; }
.post-body h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.post-body p { margin-bottom: 18px; color: #d8d8dd; font-size: 17px; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; color: #d8d8dd; font-size: 17px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--text); }
.post-body em { color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; font-size: 15px; }
thead th { background: var(--card); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
td.yes { color: var(--green); font-weight: 700; }
td.no { color: #666; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; margin-top: 8px;
  transition: transform .12s, opacity .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #111; }

/* Footer */
footer.blog-foot { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.foot-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-inner a { color: var(--muted); }

@media (max-width: 600px) {
  .post-body p, .post-body ul, .post-body ol { font-size: 16px; }
}

