/* ============================================
   墨渐长博客 · Poetize 风格暗色主题
   ============================================ */
:root {
  --bg: #0b0f1a;
  --bg-soft: #101728;
  --card: rgba(21, 30, 50, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e6eaf3;
  --text-dim: #9aa6bf;
  --text-faint: #66738f;
  --accent: #8a7cff;
  --accent2: #4dc3ff;
  --pink: #ff7eb6;
  --grad: linear-gradient(135deg, #8a7cff, #4dc3ff 55%, #ff7eb6);
  --grad-soft: linear-gradient(135deg, rgba(138,124,255,.16), rgba(77,195,255,.10));
  --radius: 16px;
  --shadow: 0 10px 40px rgba(3, 6, 18, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(138,124,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(77,195,255,.12), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(255,126,182,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }
::selection { background: rgba(138,124,255,.35); }

/* ---------- 顶部导航（玻璃拟态） ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: rgba(11, 15, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  transition: background .3s;
}
.logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: .5px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo:hover { color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  color: var(--text-dim); font-size: .95rem; transition: all .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.rss-link { font-size: 1.05rem; }

/* ---------- Hero（全屏 + 打字机） ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 6vw 140px; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,124,255,.22), transparent 65%);
  filter: blur(10px); animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
.hero h1 {
  position: relative; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900;
  letter-spacing: 2px; line-height: 1.25;
  background: linear-gradient(120deg, #fff 20%, #b8b2ff 55%, #7fd6ff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp .9s ease both;
}
.hero .type-line {
  position: relative; margin-top: 22px; font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--text-dim); min-height: 2em; letter-spacing: 1px;
  animation: fadeUp .9s .25s ease both;
}
.hero .type-line .caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 3px;
  background: var(--accent2); vertical-align: -2px;
  animation: blink .85s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-btns { position: relative; margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeUp .9s .45s ease both; }
.btn-hero {
  padding: 13px 34px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  transition: transform .25s, box-shadow .25s;
}
.btn-hero.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(138,124,255,.4); }
.btn-hero.ghost { border: 1px solid var(--card-border); color: var(--text-dim); background: rgba(255,255,255,.04); }
.btn-hero:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 12px 34px rgba(77,195,255,.35); }
.scroll-hint {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  color: var(--text-faint); font-size: 1.4rem; animation: float 2.2s ease-in-out infinite;
}

/* 波浪分隔 */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.wave path { fill: var(--bg); }

/* ---------- 主布局：内容 + 侧边栏 ---------- */
.layout {
  max-width: 1180px; margin: 0 auto; padding: 30px 4vw 70px;
  display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ---------- 文章卡片 ---------- */
.post-card {
  display: flex; gap: 0; margin-bottom: 24px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(138,124,255,.4); box-shadow: 0 18px 50px rgba(3,6,18,.7); }
.post-cover {
  flex: 0 0 38%; min-height: 190px; position: relative; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.post-cover .cover-char {
  font-size: 4.6rem; font-weight: 900; color: rgba(255,255,255,.85);
  text-shadow: 0 6px 30px rgba(0,0,0,.35); letter-spacing: 2px;
}
.post-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.05), rgba(0,0,0,.28));
}
.post-body { flex: 1; padding: 24px 26px; display: flex; flex-direction: column; }
.post-body h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.45; }
.post-body h2 a { color: var(--text); }
.post-body h2 a:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-meta { margin-top: 8px; font-size: .82rem; color: var(--text-faint); display: flex; gap: 14px; flex-wrap: wrap; }
.post-summary { margin-top: 10px; color: var(--text-dim); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.read-more { font-size: .88rem; font-weight: 600; }
.read-more:hover { letter-spacing: 1px; }

@media (max-width: 640px) {
  .post-card { flex-direction: column; }
  .post-cover { flex-basis: auto; min-height: 120px; }
  .post-cover .cover-char { font-size: 3rem; }
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem;
  background: var(--grad-soft); border: 1px solid rgba(138,124,255,.28);
  color: #c4bcff; cursor: pointer; transition: all .2s;
}
.tag:hover { border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.tag.active { background: var(--grad); color: #fff; border-color: transparent; }
.tags-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }

/* ---------- 侧边栏 ---------- */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }
.side-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); padding: 22px;
}
.side-card h3 {
  font-size: 1rem; margin-bottom: 14px; padding-left: 10px;
  border-left: 3px solid; border-image: linear-gradient(#8a7cff, #4dc3ff) 1;
  color: #fff; letter-spacing: 1px;
}
.author-card { text-align: center; }
.avatar {
  width: 92px; height: 92px; margin: 4px auto 12px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 0 4px rgba(138,124,255,.18), 0 10px 26px rgba(138,124,255,.35);
  animation: float 5s ease-in-out infinite;
}
.author-name { font-size: 1.15rem; font-weight: 700; }
.author-bio { margin-top: 6px; font-size: .85rem; color: var(--text-dim); }
.author-stats { display: flex; margin-top: 16px; border-top: 1px solid var(--card-border); padding-top: 14px; }
.author-stats div { flex: 1; }
.author-stats b { display: block; font-size: 1.15rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.author-stats span { font-size: .76rem; color: var(--text-faint); }
.notice-card p { font-size: .88rem; color: var(--text-dim); line-height: 1.9; }
.cloud { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- 文章详情 ---------- */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 110px 4vw 60px; }
.article-head { text-align: center; margin-bottom: 34px; }
.article-head h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 900; line-height: 1.35;
  background: linear-gradient(120deg, #fff 30%, #b8b2ff 70%, #7fd6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article-meta { margin-top: 16px; color: var(--text-faint); font-size: .88rem; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.article-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px); backdrop-filter: blur(8px);
}
.back-link { display: inline-block; margin-bottom: 22px; color: var(--text-dim); font-size: .9rem; }
.back-link:hover { color: var(--accent2); }

/* Markdown 正文 */
.prose { line-height: 1.9; font-size: 1rem; color: #d6dcea; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.7em 0 .7em; line-height: 1.4; color: #fff; }
.prose h1 { font-size: 1.7rem; } .prose h2 { font-size: 1.42rem; padding-left: 12px; border-left: 4px solid; border-image: linear-gradient(#8a7cff,#4dc3ff) 1; }
.prose h3 { font-size: 1.18rem; }
.prose p { margin: .9em 0; }
.prose a { color: var(--accent2); border-bottom: 1px dashed rgba(77,195,255,.5); }
.prose ul, .prose ol { padding-left: 1.5em; margin: .9em 0; }
.prose li { margin: .35em 0; }
.prose blockquote {
  margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--accent);
  background: rgba(138,124,255,.08); border-radius: 0 12px 12px 0; color: var(--text-dim);
}
.prose code { background: rgba(138,124,255,.14); color: #ffd6ea; padding: 2px 8px; border-radius: 6px; font-family: Consolas, Monaco, monospace; font-size: .88em; }
.prose pre { background: #0d1322; border: 1px solid var(--card-border); padding: 18px; border-radius: 12px; overflow-x: auto; margin: 1.2em 0; }
.prose pre code { background: none; color: #d6e2ff; padding: 0; font-size: .88rem; line-height: 1.65; }
.prose img { max-width: 100%; border-radius: 12px; margin: 1em 0; }
.prose hr { border: none; height: 1px; background: var(--card-border); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--card-border); padding: 9px 14px; text-align: left; }
.prose th { background: rgba(138,124,255,.1); }

/* ---------- 评论区 ---------- */
.comments { max-width: 860px; margin: 26px auto 0; padding: 0 4vw 60px; }
.comments-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px);
}
.comments h3 { font-size: 1.15rem; margin-bottom: 18px; padding-left: 10px; border-left: 3px solid; border-image: linear-gradient(#8a7cff,#4dc3ff) 1; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--card-border); }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: center; gap: 10px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: .95rem; }
.comment-name { font-weight: 600; font-size: .92rem; }
.comment-time { font-size: .78rem; color: var(--text-faint); }
.comment-body { margin-top: 8px; margin-left: 46px; color: var(--text-dim); font-size: .93rem; white-space: pre-wrap; }
.comment-form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.comment-form input, .comment-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: .92rem;
  font-family: inherit; outline: none; transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form .hp { position: absolute; left: -9999px; opacity: 0; }
.btn-submit {
  align-self: flex-start; padding: 11px 30px; border: none; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138,124,255,.4); }
.comment-tip { font-size: .8rem; color: var(--text-faint); }
.empty { text-align: center; color: var(--text-faint); padding: 40px 0; }

/* ---------- 归档（时间线） ---------- */
.archive-wrap { max-width: 760px; margin: 0 auto; padding: 110px 4vw 70px; }
.archive-title { text-align: center; margin-bottom: 40px; }
.archive-title h1 { font-size: 2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.archive-title p { color: var(--text-faint); margin-top: 8px; font-size: .9rem; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 0; width: 2px; background: linear-gradient(#8a7cff, #4dc3ff, #ff7eb6); border-radius: 2px; opacity: .5; }
.tl-year { position: relative; margin: 30px 0 14px; font-size: 1.2rem; font-weight: 800; }
.tl-year::before, .tl-item::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(138,124,255,.18);
}
.tl-item { position: relative; padding: 8px 0 8px 6px; display: flex; gap: 14px; align-items: baseline; }
.tl-item::before { width: 8px; height: 8px; top: 16px; left: -24px; opacity: .85; }
.tl-date { flex: 0 0 78px; font-size: .8rem; color: var(--text-faint); font-family: Consolas, monospace; }
.tl-item a { color: var(--text-dim); font-size: .95rem; }
.tl-item a:hover { color: #fff; }

/* ---------- 关于页 ---------- */
.about-wrap { max-width: 760px; margin: 0 auto; padding: 110px 4vw 70px; }
.about-hero { text-align: center; margin-bottom: 30px; }
.about-hero .avatar { width: 110px; height: 110px; font-size: 2.8rem; }
.about-hero h1 { font-size: 1.9rem; font-weight: 900; margin-top: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero p { color: var(--text-dim); margin-top: 8px; }
.about-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); margin-bottom: 24px; }
.about-card h2 { font-size: 1.15rem; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid; border-image: linear-gradient(#8a7cff,#4dc3ff) 1; }
.about-card p { color: var(--text-dim); font-size: .95rem; line-height: 1.9; }

/* ---------- 无 Hero 页面顶部间距 ---------- */
.page-top { padding-top: 104px; }

/* ---------- 首页（自我介绍） ---------- */
.hero-avatar { width: 110px; height: 110px; font-size: 2.9rem; margin-bottom: 18px; position: relative; }
.home-wrap { max-width: 860px; margin: 0 auto; padding: 30px 4vw 70px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.entry-card {
  display: block; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px;
  text-align: center; transition: transform .25s, border-color .25s;
}
.entry-card:hover { transform: translateY(-5px); border-color: rgba(138,124,255,.45); }
.entry-icon { font-size: 2.2rem; }
.entry-title { margin-top: 10px; font-size: 1.08rem; font-weight: 700; color: var(--text); }
.entry-desc { margin-top: 6px; font-size: .84rem; color: var(--text-faint); }

/* ---------- 游戏列表 ---------- */
.game-wrap { max-width: 960px; margin: 0 auto; padding: 110px 4vw 70px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.game-card {
  display: block; overflow: hidden; background: var(--card);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
a.game-card:hover { transform: translateY(-6px); border-color: rgba(138,124,255,.45); }
.game-card.coming-soon { opacity: .55; }
.game-cover { height: 130px; display: flex; align-items: center; justify-content: center; }
.game-cover-icon { font-size: 3.2rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.game-body { padding: 18px 20px 20px; }
.game-title { font-size: 1.12rem; font-weight: 700; color: var(--text); }
.game-desc { margin-top: 8px; font-size: .86rem; color: var(--text-dim); min-height: 2.6em; }
.game-meta { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-play { margin-left: auto; font-size: .88rem; font-weight: 600; color: var(--accent2); }

/* ---------- 文章筛选 ---------- */
.filter-box { display: flex; flex-direction: column; gap: 8px; }
.flt-label { font-size: .8rem; color: var(--text-faint); letter-spacing: 1px; margin-top: 4px; }
.flt-input {
  width: 100%; padding: 9px 12px; border-radius: 10px; font-size: .88rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  color: var(--text); outline: none; font-family: inherit;
  color-scheme: dark;
}
.flt-input:focus { border-color: var(--accent); }
.filter-dates { display: flex; align-items: center; gap: 8px; }
.filter-dates .flt-input { flex: 1; min-width: 0; }
.filter-sep { color: var(--text-faint); font-size: .82rem; flex-shrink: 0; }
.flt-btns { display: flex; gap: 10px; margin-top: 8px; }
.flt-btn {
  flex: 1; padding: 10px 0; border-radius: 999px; font-size: .88rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--card-border); transition: all .2s;
}
.flt-btn.apply { background: var(--grad); color: #fff; border-color: transparent; }
.flt-btn.apply:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(138,124,255,.35); }
.flt-btn.reset { background: transparent; color: var(--text-dim); }
.flt-btn.reset:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.flt-info { font-size: .8rem; color: var(--accent2); text-align: center; min-height: 1em; margin-top: 4px; }

/* ---------- 游戏视图切换 / 列表视图 ---------- */
.view-toggle { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 18px; }
.vt-btn {
  padding: 8px 18px; border-radius: 999px; font-size: .88rem; cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text-dim);
  transition: all .2s;
}
.vt-btn:hover { color: #fff; border-color: rgba(138,124,255,.4); }
.vt-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.game-list { display: flex; flex-direction: column; gap: 14px; }
.game-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
a.game-row:hover { transform: translateX(6px); border-color: rgba(138,124,255,.45); }
.game-row.coming-soon { opacity: .55; }
.game-row-icon {
  flex: 0 0 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.game-row-main { flex: 1; min-width: 0; }
.game-row-main .game-desc { margin-top: 4px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 560px) {
  .game-row-main .game-desc { white-space: normal; }
  .game-row-side { flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* ---------- 俄罗斯方块 ---------- */
.tetris-wrap { max-width: 640px; margin: 0 auto; padding: 96px 4vw 50px; }
.tetris-layout { display: flex; gap: 20px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.tetris-stage {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
  line-height: 0; background: #0d1322;
}
#board { display: block; max-width: 72vw; height: auto; }
.tetris-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(9, 12, 22, .82); backdrop-filter: blur(4px); line-height: 1.6;
  transition: opacity .25s;
}
.tetris-overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-title { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.overlay-sub { font-size: .9rem; color: var(--text-dim); }
.tetris-side { display: flex; flex-direction: column; gap: 12px; width: 130px; }
.tetris-panel {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px 14px; text-align: center;
}
.panel-label { font-size: .74rem; color: var(--text-faint); letter-spacing: 2px; }
.panel-value { font-size: 1.35rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tetris-panel canvas { margin: 4px auto 0; display: block; }
.keys-help p { font-size: .74rem; color: var(--text-faint); line-height: 1.8; margin-top: 4px; text-align: left; }
.touch-controls {
  display: none; margin-top: 18px; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.touch-controls button {
  width: 58px; height: 52px; border-radius: 12px; font-size: 1.25rem;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text);
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.touch-controls button:active { background: rgba(138,124,255,.3); transform: scale(.95); }
.touch-controls button.wide { width: 86px; font-size: 1rem; }
@media (max-width: 920px), (pointer: coarse) {
  .touch-controls { display: flex; }
  .keys-help { display: none; }
}

/* ---------- 页脚（含备案号） ---------- */
footer {
  margin-top: 40px; padding: 34px 5vw 30px; text-align: center;
  border-top: 1px solid var(--card-border);
  color: var(--text-faint); font-size: .85rem; line-height: 2.1;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent2); }
.beian { display: inline-flex; align-items: center; gap: 6px; }
.beian img { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- 小屏导航 ---------- */
@media (max-width: 600px) {
  .nav { padding: 0 4vw; }
  .nav-links a { padding: 7px 9px; font-size: .88rem; }
  .hero { min-height: 78vh; }
  .author-stats { flex-wrap: wrap; }
}
