/* ============================================================
   Peach Core — 站点样式
   风格：低饱和、明亮、留白充足、克制圆角
   ============================================================ */

:root {
  --paper: #faf8f3;
  --paper-2: #ffffff;
  --ink: #1d211e;
  --ink-2: #5a625c;
  --ink-3: #8a8375;
  --line: #e4dfd4;
  --line-strong: #cfc7b8;
  --accent: #c05a3a;
  --accent-soft: #f3e4dc;
  --green: #3f5c4a;
  --green-soft: #e9eee8;

  --radius: 6px;
  --radius-lg: 10px;
  --max: 1120px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }

::selection { background: var(--accent-soft); color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 13px;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav a { transition: color 0.18s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { position: relative; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- 通用区块 ---------- */

.section { padding: 84px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-head h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section-head .more {
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.section-head .more:hover { color: var(--accent); border-color: var(--accent); }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

/* ---------- 首页 hero ---------- */

.hero {
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  font-size: clamp(15.5px, 1.8vw, 18px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.85;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1;
}
.hero-art div {
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(29, 33, 30, 0.5);
}
.hero-art .a1 { background: #e9dfd1; }
.hero-art .a2 { background: #dfe5dc; }
.hero-art .a3 { background: #f0ded5; }
.hero-art .a4 { background: #e4e2d8; }

/* ---------- 卡片 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px -18px rgba(29, 33, 30, 0.35);
}

.thumb {
  aspect-ratio: 4 / 3;
  background: #ece7dc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.placeholder {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.025) 0 10px,
    transparent 10px 20px
  );
}

.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.card-meta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- 游戏大卡 ---------- */

.game-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color 0.25s, transform 0.25s;
}
.game-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.game-card .thumb { aspect-ratio: auto; min-height: 300px; }
.game-card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.game-card-body h3 {
  margin: 10px 0 12px;
  font-size: 26px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.game-card-body p { color: var(--ink-2); font-size: 14.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #d6e0d4;
  width: fit-content;
}
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: #ecd4c8; }

/* ---------- 游戏页 ---------- */

.game-hero {
  position: relative;
  padding: 108px 0 68px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.game-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f3e9dd 0%, #ece2d4 45%, #e3dccd 100%);
  z-index: 0;
}
.game-hero-bg::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(192, 90, 58, 0.08);
}
.game-hero .wrap { position: relative; z-index: 1; }
.game-hero h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  font-weight: 700;
}
.game-hero .lede { margin-bottom: 28px; }

.subnav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 68px;
  z-index: 40;
}
.subnav-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-row::-webkit-scrollbar { display: none; }

.game-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .game-overview { grid-template-columns: 1fr; gap: 36px; }
}
.subnav a {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- 播放器 ---------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #15181a;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8d8f8a;
  font-size: 13px;
  letter-spacing: 0.06em;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0 12px,
    transparent 12px 24px
  );
}
.player-empty strong { color: #c9c7bd; font-weight: 500; letter-spacing: 0.02em; }

/* ---------- 日志列表 ---------- */

.log-list { border-top: 1px solid var(--line); }
.log-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s, padding-left 0.18s;
}
.log-item:hover { background: rgba(255, 255, 255, 0.6); padding-left: 12px; }
.log-date { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-item h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.log-item p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.log-tag { font-size: 12px; color: var(--accent); white-space: nowrap; }

/* ---------- 文章 ---------- */

.article-head {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}
.article-head h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.article-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }

.prose {
  max-width: 68ch;
  padding: 44px 0 72px;
  font-size: 16.5px;
  line-height: 1.95;
}
.prose h2 { margin: 2.1em 0 0.6em; font-size: 22px; letter-spacing: -0.01em; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 18px; }
.prose img { border-radius: var(--radius); margin: 1.8em 0; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
}
.prose code {
  background: #efeade;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.prose pre {
  background: #1d211e;
  color: #e8e4d8;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(192, 90, 58, 0.3); }
.prose a:hover { border-bottom-color: var(--accent); }

/* ---------- 信息块 ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-cell { background: var(--paper-2); padding: 26px 24px; }
.info-cell dt { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.info-cell dd { margin: 0; font-size: 15px; }

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--ink-2);
  margin: 32px 0;
}
.note strong { color: var(--ink); }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 60px;
  font-size: 13px;
  color: var(--ink-2);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { border-bottom: 1px solid transparent; transition: border-color 0.18s; }
.footer-links a:hover { border-bottom-color: var(--line-strong); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .thumb { min-height: 220px; }
  .game-card-body { padding: 28px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 60px; }
  .nav { gap: 18px; font-size: 13px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .log-item { grid-template-columns: 1fr; gap: 6px; padding: 22px 4px; }
  .log-tag { display: none; }
  .subnav { top: 60px; }
  .subnav-row a { white-space: nowrap; padding: 14px 14px; }
  .prose { font-size: 16px; }
  .article-head { padding: 44px 0 28px; }
}

@media print {
  .site-header, .subnav, .site-footer, .hero-actions { display: none; }
  body { background: #fff; }
  .prose { max-width: none; }
}
