/* VoltSnail · 主站共用样式
   深底 #0B0B0D + 闪电橙 #F5A03C + 白字，红色仅作 VI 点缀 */

:root {
  --bg: #0B0B0D;
  --bg-soft: #101013;
  --panel: #16161A;
  --panel-hover: #1C1C21;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(245, 160, 60, 0.42);
  --ink: #F5F5F6;
  --muted: #9A9AA3;
  --volt: #F5A03C;
  --volt-soft: rgba(245, 160, 60, 0.12);
  --red: #E8402C;
  --max: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 首页内容较短：撑满一屏，把页脚压到视口底部 */
body.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.home main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.home .hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0 22%, var(--volt) 22% 100%);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 17px;
}
/* logo.png 源图 550x442，按高度定尺寸以免被压成正方形变形 */
.brand img { width: auto; height: 30px; }
.brand .en { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--volt); }
.nav-links .dot { color: var(--volt); margin-right: 7px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.eyebrow {
  display: inline-block;
  color: var(--volt);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--volt);
  vertical-align: middle;
  margin-right: 10px;
}
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: .01em; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 620px; }
.en-sub { color: var(--muted); font-size: 13px; letter-spacing: .10em; font-weight: 500; margin-left: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vh, 72px) 0 clamp(28px, 5vh, 80px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(245, 160, 60, .11), transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
/* 尺寸随视口高度收缩，矮窗口也能一屏放下、页脚贴底 */
.hero-logo { width: clamp(140px, 23vh, 216px); height: auto; margin: 0 auto clamp(20px, 3.5vh, 44px); }
.hero h1 {
  font-size: clamp(28px, min(5vw, 7vh), 54px);
  letter-spacing: .01em;
}
.hero .slogan-cn { color: var(--volt); font-weight: 600; }
.hero .slogan-en {
  display: block;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: .14em;
  margin-top: clamp(8px, 1.6vh, 16px);
  font-weight: 400;
}
.hero .lede {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--muted);
}
.hero-actions { margin-top: clamp(18px, 3vh, 40px); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--volt); color: #171008; }
.btn-primary:hover { transform: translateY(-2px); background: #FFB055; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--volt-soft); }
.btn .arrow { font-size: 16px; line-height: 1; }

/* ---------- 分流卡片 ---------- */
.hub-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-soft));
  min-height: 230px;
}
a.hub-card { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
a.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(160deg, #1E1A16, var(--bg-soft));
}
.hub-card .kicker { color: var(--volt); font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.hub-card h3 { font-size: 24px; margin: 14px 0 10px; }
.hub-card p { color: var(--muted); margin: 0; max-width: 46ch; font-size: 14px; }
.hub-card .go { color: var(--volt); font-size: 14px; font-weight: 600; margin-top: 24px; }
.hub-note { border-style: dashed; }
.hub-note .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.hub-note .status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--volt); display: inline-block;
  box-shadow: 0 0 0 4px var(--volt-soft);
}

/* ---------- 已发布物料 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease;
}
a.work-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.work-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work-card .meta { padding: 20px 22px 24px; }
.work-card .tag {
  color: var(--volt); font-size: 12px; letter-spacing: .12em; font-weight: 700;
}
.work-card h3 { font-size: 18px; margin: 8px 0 6px; }
.work-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 据点 ---------- */
.elsewhere { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .2s ease, background .2s ease;
}
a.site-card:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.site-card .where { color: var(--muted); font-size: 13px; }
.site-card .handle { display: block; font-size: 18px; font-weight: 600; margin-top: 8px; }
.site-card .ext { color: var(--volt); font-size: 12px; margin-top: 10px; }
.note-line { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* ---------- 博客栏目页 ---------- */
.page-head { padding: 72px 0 8px; position: relative; }
.page-head::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 420px; height: 320px;
  background: radial-gradient(ellipse at center, rgba(245, 160, 60, .09), transparent 70%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(32px, 5vw, 52px); }
.page-head .lede { color: var(--muted); margin: 16px 0 0; max-width: 620px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumb a:hover { color: var(--volt); }
.crumb span { margin: 0 8px; color: #55555C; }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin: 32px 0 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--volt-soft);
  font-size: 14px;
  color: #E8D6BE;
}
.notice b { color: var(--volt); white-space: nowrap; }

.post-list { display: grid; gap: 18px; margin-top: 28px; }
.post {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg); border-radius: 10px; }
.post-body { padding: 8px 10px 8px 0; display: flex; flex-direction: column; justify-content: center; }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--volt-soft);
  color: var(--volt);
  font-weight: 600;
  letter-spacing: .04em;
}
.pill.dim { background: rgba(255,255,255,.06); color: var(--muted); }
.post h3 { font-size: 22px; margin: 14px 0 10px; }
.post p { color: var(--muted); font-size: 14px; margin: 0; max-width: 58ch; }
.post .more { color: var(--volt); font-size: 13px; margin-top: 16px; font-weight: 600; }

.empty {
  margin-top: 26px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer .sig { font-size: 13px; color: var(--muted); }
.footer .sig strong { color: var(--ink); font-weight: 600; }
.footer .slogan { font-size: 13px; color: var(--muted); }
.footer .slogan em { color: var(--volt); font-style: normal; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hub-grid, .work-grid, .elsewhere { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 16px; }
  .post-body { padding: 0 4px 8px; }
  .section { padding: 60px 0; }
  .hero { padding: clamp(24px, 4vh, 64px) 0 clamp(28px, 5vh, 72px); }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav-inner { min-height: 60px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .brand .en { display: none; }
  .hub-card, .site-card { padding: 22px; }
  .hero-logo { width: 156px; margin-bottom: 36px; }
  .hero-actions { margin-top: 34px; gap: 10px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}

/* ---------- 博客：标签筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 4px; }
.filter-btn {
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-btn.active { background: var(--volt); border-color: var(--volt); color: #171008; font-weight: 600; }
.filter-count { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.post[hidden] { display: none; }
a.post { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
a.post:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--panel-hover); }
.post .date { color: var(--muted); font-size: 12px; }
.post .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- 文章详情 ---------- */
.article { padding: 64px 0 96px; }
.article-head { max-width: 760px; margin: 0 auto; }
.article-head .meta { color: var(--volt); font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.article-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 16px 0 12px; }
.article-head .sub { color: var(--muted); font-size: 14px; margin: 0; }
.article-cover {
  display: block;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 30px auto 44px;
}
.article-body { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.95; }
.article-body p { color: #D8D8DC; margin: 0 0 20px; }
.article-body h2 { font-size: 21px; margin: 38px 0 14px; padding-left: 14px; border-left: 3px solid var(--volt); }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { color: #D8D8DC; padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 10px; }
.article-source {
  max-width: 720px;
  margin: 52px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.article-back { display: inline-block; margin-top: 22px; color: var(--volt); font-size: 14px; font-weight: 600; }

@media (max-width: 560px) {
  .article { padding: 40px 0 64px; }
  .article-body { font-size: 15px; }
}
