:root {
  --surface: #ffffff;
  --surface-alt: #ecf4ea;
  --text: #172014;
  --muted: #587058;
  --line: #d8e6d5;
  --brand: #1d6b3a;
  --brand-soft: #dff3e4;
  --shadow: 0 18px 48px rgba(17, 53, 30, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(203, 232, 107, 0.35), transparent 28%),
    linear-gradient(180deg, #eef8ec 0%, #f8fbf7 40%, #f3f7f2 100%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.page-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.site-header {
  background: linear-gradient(145deg, rgba(29, 107, 58, 0.96), rgba(17, 74, 38, 0.94));
  color: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.brand-row,
.ticker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d7f07b, #9ed868);
  color: #163317;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-subtitle {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

h1 { font-size: clamp(28px, 5vw, 40px); }

.primary-link,
.slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.primary-link {
  min-height: 44px;
  padding: 0 18px;
  background: #f4ffd8;
  color: #163317;
}

.category-nav,
.hero-grid,
.quick-grid,
.section-grid,
.gallery-grid,
.countdown-wrap {
  display: grid;
  gap: 16px;
}

.category-nav {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.category-nav a {
  padding: 12px 10px;
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.category-nav a span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.category-nav a.active {
  background: rgba(244, 255, 216, 0.16);
}

.hero-grid {
  grid-template-columns: 1.5fr 1fr;
  margin-top: 20px;
}

.hero-card,
.quick-card,
.section-block,
.ticker,
.site-footer {
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-main h2 {
  font-size: 28px;
  margin: 8px 0 10px;
}

.hero-main p,
.draw-summary span,
.draw-time {
  color: rgba(255, 255, 255, 0.82);
}

.hero-tag,
.ticker-label,
.slot-badge {
  padding: 6px 10px;
  font-size: 12px;
}

.hero-tag {
  display: inline-block;
  border-radius: 999px;
  background: rgba(244, 255, 216, 0.18);
  color: #efffc1;
}

.draw-summary {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.draw-summary li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.countdown-wrap {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.countdown-item {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.countdown-item strong {
  display: block;
  font-size: 28px;
}

.countdown-item span { color: rgba(255, 255, 255, 0.72); }
.draw-time { margin-top: 14px; }

.ticker,
.quick-grid,
.section-block,
.site-footer {
  margin-top: 22px;
}

.ticker {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.ticker-label,
.slot-badge {
  background: var(--brand-soft);
  color: var(--brand);
}

.ticker-list {
  display: grid;
  gap: 10px;
}

.quick-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quick-card,
.section-block {
  background: var(--surface);
  border: 1px solid var(--line);
}

.quick-card {
  border-radius: 22px;
  padding: 20px;
}

.quick-card p,
.content-card p,
.gallery-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.quick-card h3,
.gallery-card h3 {
  margin: 10px 0 8px;
}

.section-block {
  border-radius: 28px;
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title span {
  width: 6px;
  height: 28px;
  border-radius: 999px;
}

.section-title h2 { font-size: 26px; }

.section-grid { grid-template-columns: repeat(2, 1fr); }
.gallery-grid { grid-template-columns: repeat(2, 1fr); }

.content-card,
.gallery-card {
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.content-card { padding: 18px; }
.card-meta { margin-bottom: 12px; }
.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}

.empty-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.gallery-card { padding: 16px; }

.image-placeholder {
  height: 160px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 107, 58, 0.9), rgba(203, 232, 107, 0.8));
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  text-align: center;
  padding: 18px;
}

@media (max-width: 768px) {
  .brand-row,
  .ticker {
    flex-direction: column;
    align-items: stretch;
  }

  .category-nav,
  .hero-grid,
  .quick-grid,
  .section-grid,
  .gallery-grid,
  .countdown-wrap {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 14px 12px 28px;
  }
}
