/* ============================================================
   有屁有游戏 · 门户导航站
   设计语言与旗下攻略站（植物大战僵尸攻略百科）同源：草坪战场风
   ============================================================ */

:root {
  /* 主色：草坪绿 */
  --lawn-900: #1B4D2A;
  --lawn-700: #2E7D32;
  --lawn-500: #43A047;
  --lawn-300: #7CB342;
  --lawn-100: #DCEDC8;

  /* 辅色：木牌棕 */
  --wood-900: #4E342E;
  --wood-700: #6D4C41;
  --wood-500: #8D6E63;
  --wood-100: #EFEBE9;

  /* 点缀 */
  --sun-500: #F9A825;
  --sun-300: #FFD54F;
  --sun-100: #FFF8E1;
  --danger: #D84315;

  /* 中性 */
  --paper: #FFFDF5;
  --ink: #263238;
  --ink-soft: #546E6A;
  --line: #D7CCC8;

  --font-display: "ZCOOL KuaiLe", "Yuanti SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shadow-card: 0 6px 0 rgba(78, 52, 46, 0.22);
  --shadow-pop: 0 10px 0 rgba(78, 52, 46, 0.25);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    repeating-linear-gradient(180deg,
      rgba(124, 179, 66, 0.05) 0 56px,
      rgba(104, 159, 56, 0.09) 56px 112px),
    var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--lawn-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1040px, 92vw); margin: 0 auto; }

/* ============ 顶栏：木牌导航 ============ */
.topbar {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.06) 0 2px, transparent 2px 96px),
    linear-gradient(180deg, var(--wood-700), var(--wood-900));
  border-bottom: 4px solid var(--wood-900);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sun-100);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 var(--wood-900);
}
.logo:hover { text-decoration: none; }
.logo .logo-icon {
  font-size: 26px;
  background: var(--sun-300);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 3px solid var(--wood-900);
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  color: var(--wood-100);
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.nav a:hover {
  background: rgba(255, 248, 225, 0.14);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav a.active {
  background: var(--sun-300);
  color: var(--wood-900);
  border-color: var(--wood-900);
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-100, #E1F5FE) 0%, #E1F5FE 46%, transparent 46.2%),
    repeating-linear-gradient(180deg,
      var(--lawn-300) 0 44px,
      var(--lawn-500) 44px 88px);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 46%;
  height: 10px;
  background: var(--wood-700);
  opacity: 0.85;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 64px;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-block;
  background: var(--wood-900);
  color: var(--sun-300);
  font-family: var(--font-display);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.25;
  color: var(--wood-900);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--lawn-700);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.9);
}
.hero p.lead {
  color: var(--wood-900);
  font-size: 17px;
  margin-bottom: 26px;
  max-width: 34em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 8px rgba(255, 255, 255, 0.5);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 3px solid var(--wood-900);
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(78,52,46,0.22); }
.btn-primary { background: var(--sun-300); color: var(--wood-900); }
.btn-green { background: var(--lawn-500); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.25); }

.hero-art {
  border: 4px solid var(--wood-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  transform: rotate(1.2deg);
  background: var(--sun-100);
}

/* ============ 纯 CSS 渐变封面横幅（去第三方接口依赖） ============ */
.art-banner {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
}
.art-banner .art-emoji {
  position: relative;
  z-index: 2;
  font-size: clamp(46px, 9vw, 84px);
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.18));
}
.art-banner .art-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.4vw, 20px);
  letter-spacing: 1px;
  color: var(--wood-900);
  background: var(--sun-300);
  padding: 5px 16px;
  border-radius: 999px;
  border: 2px solid var(--wood-900);
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}
.art-deco {
  position: absolute;
  z-index: 1;
  font-size: 30px;
  opacity: 0.92;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.15));
}
/* Hero 横幅：天空 + 太阳 + 草坪 */
.art-banner--hero {
  aspect-ratio: 16/9;
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 26%, rgba(255,213,79,0.95) 0 6%, rgba(255,213,79,0) 22%),
    radial-gradient(circle at 16% 22%, rgba(255,255,255,0.7) 0 3%, rgba(255,255,255,0) 13%),
    linear-gradient(180deg, #C5E8FF 0%, #EAF6FF 44%, rgba(234,246,255,0) 44.2%),
    repeating-linear-gradient(180deg, var(--lawn-300) 0 22px, var(--lawn-500) 22px 44px);
}
.art-banner--hero .art-deco--1 { top: 12%; left: 12%; }
.art-banner--hero .art-deco--2 { top: 14%; right: 12%; font-size: 26px; }
/* PVZ 横幅：斜向草坪 + 阳光 */
.art-banner--pvz {
  aspect-ratio: 16/7;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,213,79,0.92) 0 7%, rgba(255,213,79,0) 26%),
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.45) 0 3%, rgba(255,255,255,0) 11%),
    repeating-linear-gradient(135deg, var(--lawn-500) 0 22px, var(--lawn-700) 22px 44px);
}
.art-banner--pvz .art-deco--1 { bottom: 10%; right: 12%; }
.art-banner--pvz .art-deco--2 { top: 12%; right: 14%; font-size: 24px; }

/* ============ 区块标题 ============ */
.section { padding: 56px 0 40px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--wood-900);
  position: relative;
  padding-left: 18px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 8px;
  background: var(--lawn-500);
  border-radius: 4px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.12);
}
.section-head .more { font-weight: 500; white-space: nowrap; color: var(--ink-soft); }

/* ============ 攻略站卡片 ============ */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.site-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sun-100) 100%);
  border: 3px solid var(--wood-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  color: var(--ink);
}
.site-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}
.site-cover {
  border-bottom: 3px solid var(--wood-700);
  background: var(--lawn-100);
}
.site-cover-tbd {
  display: grid;
  place-items: center;
  aspect-ratio: 16/7;
  font-size: 52px;
  background: repeating-linear-gradient(45deg,
    var(--wood-100) 0 14px, #FFFFFF 14px 28px);
}
.site-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.site-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--wood-900);
}
.site-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  flex: 1;
}
.site-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-stats span {
  background: var(--lawn-100);
  border: 2px solid var(--lawn-300);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lawn-900);
}
.site-go {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--lawn-700);
}
.site-card-tbd { opacity: 0.72; border-style: dashed; }
.site-go-tbd { color: var(--ink-soft); }

/* ============ 页脚 ============ */
.footer {
  border-top: 4px solid var(--wood-900);
  background: linear-gradient(180deg, var(--wood-700), var(--wood-900));
  color: var(--wood-100);
  padding: 26px 0;
  text-align: center;
  font-size: 14px;
}
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer a { color: var(--sun-300); }
.footer-links { opacity: 0.85; font-size: 13px; }

/* ============ 响应式（与旗下站同款三档断点） ============ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero-art { max-width: 560px; margin: 0 auto; transform: rotate(0deg); }
  .nav a { padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 560px) {
  .section { padding: 40px 0 32px; }
  .section-head h2 { font-size: 24px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  .btn { font-size: 16px; padding: 11px 20px; }
  .site-grid { grid-template-columns: 1fr; }
  .logo { font-size: 19px; }
}
@media (max-width: 420px) {
  .wrap { width: 94vw; }
  .hero-inner { padding: 32px 0 40px; }
  .site-body { padding: 14px 16px 16px; }
}
