: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;
  --white: #fff;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-soft: 0 1px 4px rgba(15,30,36,.12), 0 0 0 1px rgba(15,30,36,.06);
  --shadow-float: 0 4px 20px rgba(15,30,36,.18);
  --font-body: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --font-title: 'STKaiti','KaiTi','FangSong','STFangsong',serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper-100);
  color: var(--ink-700);
  line-height: 1.7;
  min-height: 100vh;
  /* 宣纸纹理用细粒 CSS 噪点模拟 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='multiply'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

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

/* ── 布局容器 ─────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ──────────────────────────────────── */
.site-header {
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-700);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--gold-300);
  font-weight: bold;
  text-decoration: none;
}
.site-logo:hover { color: var(--gold-100); text-decoration: none; }
.site-logo img { width: 40px; height: 40px; border-radius: var(--radius-sm); }

.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a {
  display: block;
  padding: 6px 16px;
  color: var(--paper-700);
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  background: var(--ink-700);
  color: var(--gold-300);
  text-decoration: none;
}
.site-nav .nav-more-games a {
  color: var(--gold-500);
  border: 1px solid var(--gold-500);
}
.site-nav .nav-more-games a:hover {
  background: var(--gold-500);
  color: var(--ink-900);
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 60%, var(--ink-500) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .18;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 64px 0;
}
.hero-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  font-size: .8rem;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: .08em;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 8px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-300);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-100);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--ink-900);
  box-shadow: 0 2px 12px rgba(201,168,76,.4);
}
.btn-gold:hover { color: var(--ink-900); box-shadow: 0 4px 20px rgba(201,168,76,.5); }
.btn-outline {
  border: 1.5px solid var(--gold-500);
  color: var(--gold-300);
  background: transparent;
}
.btn-outline:hover { background: rgba(201,168,76,.1); color: var(--gold-100); }

/* ── 特色板块 ─────────────────────────────────── */
.section-features {
  padding: 72px 0;
  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.75rem;
  color: var(--ink-700);
  text-align: center;
  margin-bottom: 8px;
}
.section-title span { color: var(--gold-500); }
.section-subtitle {
  text-align: center;
  color: var(--ink-300);
  font-size: .95rem;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--paper-100);
  border: 1px solid var(--paper-900);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.feature-card p { font-size: .9rem; color: var(--ink-300); line-height: 1.6; }

/* ── 内容区（攻略/资讯） ──────────────────────── */
.section-posts {
  padding: 64px 0;
}
.section-posts .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.posts-col h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--ink-700);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.posts-col h2 a { font-size: .85rem; font-family: var(--font-body); color: var(--ink-300); }
.posts-col h2 a:hover { color: var(--gold-500); }

.post-list { list-style: none; }
.post-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 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: .78rem;
  color: var(--ink-100);
  min-width: 60px;
}
.post-list a {
  color: var(--ink-700);
  font-size: .95rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.post-list a:hover { color: var(--gold-500); text-decoration: none; }

/* ── 单篇文章 ─────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 48px 0;
}
.article-header { margin-bottom: 28px; }
.article-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--ink-700);
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-meta {
  font-size: .85rem;
  color: var(--ink-100);
  display: flex;
  gap: 16px;
}
.article-body {
  font-size: .97rem;
  line-height: 1.9;
  color: var(--ink-700);
}
.article-body h2,
.article-body h3 {
  font-family: var(--font-title);
  color: var(--ink-700);
  margin: 28px 0 12px;
}
.article-body h2 { font-size: 1.3rem; border-left: 3px solid var(--gold-500); padding-left: 10px; }
.article-body h3 { font-size: 1.1rem; }
.article-body p { margin-bottom: 16px; }
.article-body img { border-radius: var(--radius-md); margin: 16px 0; }

/* ── 侧边栏 ───────────────────────────────────── */
.sidebar { padding-top: 4px; }
.widget {
  background: var(--paper-500);
  border: 1px solid var(--paper-900);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--ink-700);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-900);
}
.widget ul { list-style: none; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--paper-700); font-size: .9rem; }
.widget ul li:last-child { border-bottom: none; }

/* ── 下载侧边栏 Widget ────────────────────────── */
.widget-download { background: var(--ink-900); border-color: var(--ink-700); text-align: center; }
.widget-download .widget-title { color: var(--gold-300); border-color: var(--ink-700); }
.widget-download .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── 分页 ─────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px 0;
}
.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  border: 1px solid var(--paper-900);
  color: var(--ink-500);
}
.pagination a:hover { background: var(--paper-500); text-decoration: none; }
.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: 40px 0 24px;
  color: var(--ink-100);
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: var(--ink-100); }
.footer-links a:hover { color: var(--gold-300); }
.footer-icp a { color: var(--ink-100); }
.footer-icp a:hover { color: var(--gold-300); }
.footer-copy { color: rgba(160,191,200,.6); }

/* ── 面包屑 ───────────────────────────────────── */
.breadcrumb {
  font-size: .85rem;
  color: var(--ink-100);
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-900);
}
.breadcrumb a { color: var(--ink-300); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span { margin: 0 6px; color: var(--paper-900); }
