/* ==========================================================
   玻璃拟态高级风 · 技术博客  v2026.10.31 (v3)
   柔和紫蓝渐变 + 半透明磨砂玻璃卡片 + 细边框 + 轻盈阴影
   整体框架重排，全部功能保留。
========================================================== */

/* ---------- 主题变量 ---------- */
:root {
  --bg-1: #f3f5ff;
  --bg-2: #eef1fd;
  --bg-3: #f7f3ff;
  --glass: rgba(255, 255, 255, 0.55);           /* 玻璃卡片 */
  --glass-strong: rgba(255, 255, 255, 0.72);    /* 玻璃(强) */
  --glass-soft: rgba(255, 255, 255, 0.42);       /* 玻璃(弱) */
  --line: rgba(120, 130, 210, 0.20);             /* 细边框 */
  --line-strong: rgba(120, 130, 210, 0.36);

  --violet: #8b5cf6;
  --blue: #4f8fef;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #4f8fef 52%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,.14), rgba(79,143,239,.12));

  --text: #2a3040;
  --text-2: #565e74;
  --muted: #8a92a8;
  --muted-2: #a7aec4;

  --green: #10b981;
  --red: #ef4444;
  --gold: #b06a1e;
  --gold-2: #c98a34;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 30px rgba(84, 90, 160, 0.10);
  --shadow-hover: 0 14px 40px rgba(84, 90, 160, 0.16);

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", "Menlo", monospace;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  line-height: 1.75;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(760px 460px at 4% -4%, rgba(34,211,238,.14), transparent 55%),
    radial-gradient(1000px 600px at 50% 120%, rgba(79,143,239,.10), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
  background-attachment: fixed;
  min-height: 100vh;
}
::selection { background: rgba(139,92,246,.22); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,.28); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 22px; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet); }

/* ---------- 顶部导航（毛玻璃） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 14px;
}
.logo {
  font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: .3px;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(139,92,246,.35);
}
.logo span.logo-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted); font-size: 14.5px; padding: 8px 13px; border-radius: 11px;
  transition: all .2s; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--text); background: rgba(139,92,246,.08); }
.nav-link.active {
  color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(139,92,246,.32);
}
.nav-icon { font-size: 15px; }

/* 汉堡菜单（仅移动端显示） */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--glass-strong); border: 1px solid var(--line);
  flex-direction: column; gap: 5px; padding: 0; transition: .2s;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 搜索框 */
.nav-search { position: relative; order: 99; }
.nav-search input {
  width: 158px; padding: 8px 12px 8px 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass-strong); color: var(--text);
  font-size: 13px; outline: none; transition: .2s;
}
.nav-search input:focus { border-color: rgba(139,92,246,.5); width: 200px; box-shadow: 0 0 0 4px rgba(139,92,246,.12); }
.nav-search .s-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }

/* ---------- 主内容 ---------- */
main { min-height: 62vh; padding: 26px 0 56px; }
.loading { text-align: center; padding: 70px 0; color: var(--muted); font-size: 14px; }
.loading::before {
  content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 14px;
  border: 3px solid var(--line); border-top-color: var(--violet);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty, .error { text-align: center; padding: 70px 0; color: var(--muted); }
.error { color: var(--red); }

.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  color: var(--muted); font-size: 14px; transition: .2s; font-weight: 600;
}
.back:hover { color: var(--violet); transform: translateX(-3px); }

/* ---------- 通用玻璃容器 ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65); border-left: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius); backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}

/* ---------- 首页 Hero（大玻璃卡） ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 34px 34px 30px; margin-bottom: 24px;
  background: var(--glass);
  border: 1px solid var(--line); border-top: 1px solid rgba(255,255,255,.7);
  border-radius: 24px; backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(500px 220px at 90% -20%, rgba(139,92,246,.18), transparent 60%),
              radial-gradient(400px 200px at 8% 120%, rgba(34,211,238,.16), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-title { font-size: 36px; font-weight: 800; line-height: 1.22; margin: 0 0 8px; letter-spacing: .4px; }
.hero-sub { color: var(--text-2); font-size: 15px; max-width: 660px; }

/* 统计条 */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 30px;
}
.stat-item {
  padding: 18px 14px; text-align: center; border-radius: var(--radius-sm);
  background: var(--glass-soft); border: 1px solid var(--line);
  backdrop-filter: blur(12px); transition: transform .2s, box-shadow .2s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-num {
  display: block; font-size: 28px; font-weight: 800; line-height: 1.2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 12.5px; }

/* ---------- 首页布局 ---------- */
.home-layout {
  display: grid; grid-template-columns: 1fr 306px; gap: 24px; align-items: start;
}
.home-main { min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 4px; }
.section-title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: 0 4px 10px rgba(139,92,246,.3); }

.post-list { display: flex; flex-direction: column; gap: 16px; }

/* 文章卡片（玻璃） */
.post-card {
  position: relative; overflow: hidden;
  padding: 24px 24px 20px 28px; cursor: pointer; transition: all .22s;
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
}
.post-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.post-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(139,92,246,.10), transparent 65%); pointer-events: none;
}
.post-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.post-card:hover::before { opacity: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.post-category {
  background: linear-gradient(120deg, rgba(139,92,246,.14), rgba(79,143,239,.14));
  color: var(--violet); padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.post-date { display: inline-flex; align-items: center; gap: 5px; }
.post-title { font-size: 19px; font-weight: 700; margin: 10px 0 6px; line-height: 1.4; }
.post-title:hover { color: var(--violet); }
.post-summary { color: var(--text-2); font-size: 14px; }
.post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.post-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  background: rgba(79,143,239,.10); color: var(--blue); padding: 2px 10px;
  border-radius: 999px; font-size: 12px; cursor: pointer; transition: .2s; font-weight: 600;
}
.tag:hover { background: rgba(139,92,246,.18); color: var(--violet); }
.post-views { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }

/* 侧边栏（玻璃） */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  padding: 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow);
}
.sidebar-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 13px; display: flex; align-items: center; gap: 9px; }
.sidebar-card h3::before { content: ""; width: 5px; height: 16px; border-radius: 4px; background: var(--grad); }
.author-card { text-align: center; }
.author-avatar {
  width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(139,92,246,.32);
}
.author-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.author-bio { color: var(--text-2); font-size: 13px; line-height: 1.65; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { font-size: 12.5px; }

/* 友站链接（2026-11-01 新增，首页侧栏） */
.friend-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.friend-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--glass-soft); transition: .2s; color: var(--text);
}
.friend-item:hover {
  border-color: rgba(139, 92, 246, .45);
  background: var(--grad-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, .14);
}
.friend-icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 143, 239, .28);
}
.friend-info { flex: 1; min-width: 0; }
.friend-name {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.friend-item:hover .friend-name { color: var(--violet); }
.friend-arrow { flex: none; color: var(--muted); font-size: 12.5px; transition: .2s; }
.friend-item:hover .friend-arrow { color: var(--violet); transform: translate(1px, -1px); }
.friend-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 8px 0; }
.side-links { list-style: none; }
.side-links li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.side-links li:last-child { border-bottom: none; }
.side-links a { color: var(--text-2); font-weight: 600; }
.side-links a:hover { color: var(--violet); }

/* ---------- 文章详情 ---------- */
.post-detail {
  padding: 40px 42px;
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65);
  border-radius: 22px; backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--shadow);
}
.post-detail-title { font-size: 30px; margin: 14px 0 16px; line-height: 1.3; font-weight: 800; }
.post-detail .post-meta { margin-bottom: 14px; }
.post-content { margin-top: 26px; font-size: 16px; }
.post-content h1, .post-content h2, .post-content h3 { margin: 26px 0 12px; font-weight: 800; }
.post-content h1 { font-size: 24px; } .post-content h2 { font-size: 22px; } .post-content h3 { font-size: 18px; }
.post-content p { margin: 12px 0; }
.post-content li { margin: 6px 0; }
.post-content ul, .post-content ol { padding-left: 26px; margin: 12px 0; }
.post-content code { background: rgba(139,92,246,.08); color: var(--violet); padding: 2px 6px; border-radius: 5px; font-family: var(--font-mono); font-size: .9em; }
.code-block {
  background: rgba(30,34,60,.92); color: #dfe6ff; padding: 18px; border-radius: 12px;
  overflow-x: auto; font-size: 13.5px; font-family: var(--font-mono);
  margin: 16px 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.post-content blockquote {
  border-left: 3px solid var(--violet); background: linear-gradient(120deg, rgba(139,92,246,.08), rgba(79,143,239,.05));
  padding: 12px 18px; margin: 14px 0; color: var(--text-2); border-radius: 0 12px 12px 0;
}
.post-content a { border-bottom: 1px dashed var(--blue); }
.post-views-bar {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; align-items: center;
}

/* 阅读进度条 */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad); z-index: 100; transition: width .1s linear; }

/* ---------- 归档 ---------- */
.archive-year { margin-bottom: 30px; }
.archive-year h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.archive-list { list-style: none; border-left: 1px solid var(--line); padding-left: 22px; }
.archive-list li { position: relative; padding: 10px 0 10px 6px; }
.archive-list li::before { content: ""; position: absolute; left: -27px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.archive-list a { color: var(--text); font-size: 15px; font-weight: 600; }
.archive-list a:hover { color: var(--violet); }
.archive-list .date { color: var(--muted); font-size: 12.5px; margin-left: 8px; }

/* ---------- 统计页 ---------- */
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  padding: 28px; text-align: center; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow); transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.big-num { font-size: 36px; font-weight: 800; margin-bottom: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card div:last-child { color: var(--muted); font-size: 14px; }
.trend-chart {
  display: flex; align-items: flex-end; gap: 12px; padding: 20px; min-height: 220px;
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius); backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow);
}
.trend-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.trend-bar { width: 62%; background: var(--grad); border-radius: 7px 7px 0 0; transition: .3s; min-height: 4px; }
.trend-bar:hover { filter: brightness(1.1); }
.trend-label { font-size: 11px; color: var(--muted); }
.trend-val { font-size: 12px; color: var(--violet); font-weight: 700; }

/* ---------- 搜索 ---------- */
.search-box { margin-bottom: 24px; }
.search-box input {
  width: 100%; padding: 15px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass); color: var(--text);
  font-size: 16px; outline: none; transition: .2s;
  backdrop-filter: blur(16px) saturate(160%);
}
.search-box input:focus { border-color: rgba(139,92,246,.5); box-shadow: 0 0 0 4px rgba(139,92,246,.12); }
.search-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- 金价 / 油价 ---------- */
.gold-sub { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.gold-card {
  position: relative; overflow: hidden;
  padding: 32px; margin-bottom: 26px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,224,180,.35), rgba(255,255,255,.55) 55%);
  border: 1px solid rgba(240,190,120,.40); border-top: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px) saturate(160%); box-shadow: var(--shadow);
}
.gold-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(250,190,90,.22), transparent 60%); pointer-events: none;
}
.gold-price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.gold-price-cny { font-size: 48px; font-weight: 800; color: var(--gold); letter-spacing: -1px; line-height: 1.1; }
.gold-unit { font-size: 18px; font-weight: 500; color: var(--gold-2); margin-left: 2px; }
.gold-change { font-size: 18px; font-weight: 700; }
.gold-change.up { color: var(--red); }
.gold-change.down { color: var(--green); }
.gold-price-sub { color: var(--muted); font-size: 13px; margin-top: 12px; }
.gold-range { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.range-btn {
  padding: 7px 18px; border-radius: 999px; font-size: 14px; text-decoration: none; font-weight: 600;
  background: var(--glass-strong); border: 1px solid var(--line); color: var(--muted); transition: .2s;
}
.range-btn:hover { border-color: rgba(139,92,246,.5); color: var(--violet); }
.range-btn.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(139,92,246,.3); }
.gold-chart { padding: 16px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gold-svg { width: 100%; height: auto; display: block; }
.gold-note { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; }
.gold-tip { color: var(--muted); font-size: 12.5px; margin-top: 14px; line-height: 1.7; }
.gold-stale { background: rgba(246,173,85,.14); border: 1px solid rgba(246,173,85,.4); color: var(--gold); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }

/* ---------- 回到顶部 ---------- */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 20px;
  box-shadow: 0 10px 26px rgba(139,92,246,.35); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: all .3s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { filter: brightness(1.08); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp .45s ease both; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
/* 平板/手机：汉堡菜单导航 */
@media (max-width: 820px) {
  .header-inner { height: 62px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 10px 16px 16px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover);
  }
  .nav.open { display: flex; }
  .nav-search { order: 0; width: 100%; margin-bottom: 6px; }
  .nav-search input, .nav-search input:focus { width: 100%; }
  .nav-link { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
  .logo { font-size: 18px; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .hero { padding: 24px 20px; }
  .hero-title { font-size: 26px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .post-detail { padding: 20px 16px; }
  .post-detail-title { font-size: 22px; }
  .gold-price-cny { font-size: 34px; }
  .post-title { font-size: 17px; }
  .site-footer { padding: 20px 0; }
}

/* ========== 游戏列表页（card 入口） ========== */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.game-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line);
  border-top: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
}
.game-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(139,92,246,.14), transparent 62%); pointer-events: none;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.game-card:hover .game-play { background: var(--grad); color: #fff; border-color: transparent; }
.game-card:hover .game-thumb { transform: scale(1.06); }
.game-thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 58px; transition: transform .3s;
  border-bottom: 1px solid var(--line);
}
.game-thumb-gomoku {
  background:
    radial-gradient(circle at 30% 35%, rgba(30,34,60,.10), transparent 55%),
    repeating-linear-gradient(0deg, rgba(90,100,150,.16) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(90,100,150,.16) 0 1px, transparent 1px 24px),
    linear-gradient(150deg, rgba(255,224,180,.30), rgba(255,255,255,.45));
  text-shadow: 0 6px 18px rgba(30,34,60,.25);
}
.game-thumb-2048 {
  font-size: 40px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(150deg, rgba(139,92,246,.16), rgba(34,211,238,.12));
  color: transparent;
  -webkit-text-stroke: 0;
  position: relative;
}
.game-thumb-2048::before {
  content: "2048"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: inherit; font-weight: 800; letter-spacing: inherit;
  text-shadow: 0 8px 22px rgba(139,92,246,.3);
}
/* 翻转棋盘：格子明暗 */
.game-thumb-flip {
  background:
    linear-gradient(90deg, transparent 32%, rgba(120,130,210,.28) 32% 34%, transparent 34% 66%, rgba(120,130,210,.28) 66% 68%, transparent 68%),
    linear-gradient(0deg, transparent 32%, rgba(120,130,210,.28) 32% 34%, transparent 34% 66%, rgba(120,130,210,.28) 66% 68%, transparent 68%),
    linear-gradient(150deg, rgba(139,92,246,.14), rgba(34,211,238,.10));
}
.game-thumb-flip::after { content: none; }
/* 飞机大战：夜空 */
.game-thumb-plane {
  background:
    radial-gradient(1.5px 1.5px at 22% 30%, #fff 40%, transparent),
    radial-gradient(1.5px 1.5px at 68% 18%, #fff 40%, transparent),
    radial-gradient(1.5px 1.5px at 82% 62%, #fff 40%, transparent),
    radial-gradient(1.5px 1.5px at 38% 72%, #fff 40%, transparent),
    linear-gradient(160deg, #232a46, #12172b);
  text-shadow: 0 0 18px rgba(245,247,255,.6);
}
/* 合成大西瓜：西瓜红绿 */
.game-thumb-melon {
  background:
    radial-gradient(circle at 68% 60%, rgba(253,164,175,.5) 0 16%, transparent 17%),
    radial-gradient(circle at 30% 40%, rgba(167,139,250,.4) 0 12%, transparent 13%),
    radial-gradient(circle at 46% 70%, rgba(250,204,21,.4) 0 10%, transparent 11%),
    linear-gradient(150deg, rgba(34,197,94,.22), rgba(255,255,255,.42));
  text-shadow: 0 6px 16px rgba(34,120,60,.35);
}
/* 数独：九宫格 */
.game-thumb-sudoku {
  font-size: 34px; font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, transparent 32.5%, rgba(120,130,210,.4) 32.6% 33.6%, transparent 33.7% 66%, rgba(120,130,210,.4) 66.1% 67.1%, transparent 67.2%),
    linear-gradient(0deg, transparent 32.5%, rgba(120,130,210,.4) 32.6% 33.6%, transparent 33.7% 66%, rgba(120,130,210,.4) 66.1% 67.1%, transparent 67.2%),
    linear-gradient(150deg, rgba(79,143,239,.14), rgba(255,255,255,.4));
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
}
.game-thumb-sudoku::before {
  content: ""; position: absolute; inset: 12%;
  background:
    linear-gradient(90deg, transparent 32.5%, rgba(120,130,210,.4) 32.6% 33.6%, transparent 33.7% 66%, rgba(120,130,210,.4) 66.1% 67.1%, transparent 67.2%),
    linear-gradient(0deg, transparent 32.5%, rgba(120,130,210,.4) 32.6% 33.6%, transparent 33.7% 66%, rgba(120,130,210,.4) 66.1% 67.1%, transparent 67.2%);
}
.game-info { padding: 18px 20px 20px; }
.game-name { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.game-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.65; margin-bottom: 14px; }
.game-play {
  display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--violet); background: rgba(139,92,246,.10); border: 1px solid rgba(139,92,246,.30);
  transition: .22s;
}

/* ========== 背景点击特效：点击处随机方向散发 3 颗星星 ========== */
.fx-star {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 20px; height: 20px;
  animation: fx-fly .95s ease-out forwards;
}
.fx-star::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.6));
}
@keyframes fx-fly {
  0% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(var(--sc, 1)); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot, 0deg)) scale(calc(var(--sc, 1) * 0.12)); opacity: 0; }
}
/* 熊猫下载站：纸箱打包带 */
.game-thumb-download {
  background:
    linear-gradient(90deg, transparent 28%, rgba(180,140,90,.38) 28% 34%, transparent 34% 66%, rgba(180,140,90,.38) 66% 72%, transparent 72%),
    linear-gradient(0deg, transparent 44%, rgba(180,140,90,.38) 44% 56%, transparent 56%),
    linear-gradient(150deg, rgba(217,119,6,.16), rgba(255,255,255,.42));
  text-shadow: 0 6px 16px rgba(146,94,40,.35);
}

/* 友站链接（首页侧栏，2026-11-01） */
.friend-links a::before { content: "\1F517 "; font-size: 11px; opacity: .75; }
.friend-links a:hover { color: var(--violet); }
