:root {
  --ink-900: #0f1e24;
  --ink-700: #1e3a44;
  --ink-500: #2d5464;
  --ink-300: #4a7a8e;
  --ink-100: #a0bfc8;
  --gold-500: #c9a84c;
  --gold-300: #e2c97e;
  --gold-100: #f2e6b8;
  --paper-900: #d4c8a8;
  --paper-700: #e8dfc4;
  --paper-500: #f0e9d6;
  --paper-100: #faf7f0;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 1px 4px rgba(15,30,36,.1), 0 0 0 1px rgba(15,30,36,.05);
  --font-body: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --font-title: 'STKaiti','KaiTi','FangSong',serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper-100);
  color: var(--ink-700);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold-500); text-decoration: none; }
a:hover { color: var(--gold-300); }
img { max-width: 100%; height: auto; display: block; }

/* ── 顶部导航 ─────────────────────────────────── */
.site-header {
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-700);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
}
.site-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--gold-300);
  font-weight: bold;
}
.site-logo:hover { color: var(--gold-100); }

/* 汉堡菜单 */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper-700);
  border-radius: 2px;
  transition: .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-700);
  z-index: 99;
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; }
.site-nav li { border-top: 1px solid var(--ink-700); }
.site-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--paper-700);
  font-size: 1rem;
}
.site-nav .nav-more-games a { color: var(--gold-500); }

/* ── HERO ────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-700) 70%, var(--ink-500) 100%);
  padding: 48px 16px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201,168,76,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  font-size: .75rem;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: .06em;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
}
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero-sub {
  font-size: .92rem;
  color: var(--ink-100);
  margin-bottom: 28px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: bold;
  min-height: 48px;        /* 44px 触控最小尺寸 */
  min-width: 200px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--ink-900);
  box-shadow: 0 2px 10px rgba(201,168,76,.4);
}
.btn-outline {
  border: 1.5px solid var(--gold-500);
  color: var(--gold-300);
  background: transparent;
}

/* ── 特色板块 ─────────────────────────────────── */
.section-features {
  padding: 40px 16px;
  background: var(--paper-500);
  border-top: 1px solid var(--paper-900);
  border-bottom: 1px solid var(--paper-900);
}
.section-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--ink-700);
  text-align: center;
  margin-bottom: 6px;
}
.section-title span { color: var(--gold-500); }
.section-subtitle {
  text-align: center;
  color: var(--ink-300);
  font-size: .85rem;
  margin-bottom: 28px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-card {
  background: var(--paper-100);
  border: 1px solid var(--paper-900);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.feature-card p { font-size: .82rem; color: var(--ink-300); line-height: 1.6; }

/* ── 内容列表 ─────────────────────────────────── */
.section-posts { padding: 32px 16px; }
.posts-col { margin-bottom: 32px; }
.posts-col-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--ink-700);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.posts-col-title a { font-size: .82rem; font-family: var(--font-body); color: var(--ink-300); }

.post-list { list-style: none; }
.post-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--paper-900);
}
.post-list li:last-child { border-bottom: none; }
.post-list .post-date {
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--ink-100);
  min-width: 52px;
}
.post-list a {
  color: var(--ink-700);
  font-size: .92rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ── 文章页 ───────────────────────────────────── */
.article-wrap { padding: 20px 16px 40px; }
.article-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--ink-700);
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-meta {
  font-size: .8rem;
  color: var(--ink-100);
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-body {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--ink-700);
}
.article-body h2,
.article-body h3 { font-family: var(--font-title); color: var(--ink-700); margin: 24px 0 10px; }
.article-body h2 { font-size: 1.15rem; border-left: 3px solid var(--gold-500); padding-left: 8px; }
.article-body h3 { font-size: 1rem; }
.article-body p { margin-bottom: 14px; }
.article-body img { border-radius: var(--radius-md); margin: 14px 0; }

/* 文章底部下载条 */
.article-cta {
  margin: 32px 0 0;
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}
.article-cta p {
  color: var(--gold-300);
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 12px;
}
.article-cta .btn { width: 100%; }

/* ── 面包屑 ───────────────────────────────────── */
.breadcrumb {
  font-size: .8rem;
  color: var(--ink-100);
  padding: 10px 16px;
  border-bottom: 1px solid var(--paper-900);
  background: var(--paper-500);
}
.breadcrumb a { color: var(--ink-300); }

/* ── 分页 ─────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  border: 1px solid var(--paper-900);
  color: var(--ink-500);
}
.pagination .current { background: var(--gold-500); color: var(--ink-900); border-color: var(--gold-500); font-weight: bold; }

/* ── FOOTER ───────────────────────────────────── */
.site-footer {
  background: var(--ink-900);
  border-top: 1px solid var(--ink-700);
  padding: 28px 16px 20px;
  color: var(--ink-100);
  font-size: .82rem;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-links a { color: var(--ink-100); }
.footer-links a:hover { color: var(--gold-300); }
.footer-icp { margin-bottom: 8px; }
.footer-icp a { color: var(--ink-100); }
.footer-copy { color: rgba(160,191,200,.5); }
