:root {
  --blue: #2f7ff5;
  --blue-dark: #1f63cc;
  --ink: #1b2430;
  --ink-2: #4a5566;
  --ink-3: #7c8797;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(24, 44, 74, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #4f95ff, #2f7ff5);
  color: #fff; font-size: 17px; font-weight: 800;
  display: grid; place-items: center;
}
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--blue); }

/* hero */
.hero {
  background: radial-gradient(1200px 420px at 15% -10%, #dfeaff 0%, rgba(223,234,255,0) 60%), linear-gradient(180deg, #f7faff, #fff);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 46px;
}
.hero h1 { font-size: 38px; letter-spacing: -.5px; }
.hero-sub { margin-top: 14px; color: var(--ink-2); max-width: 640px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(47,127,245,.25); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: #c9d8f0; color: var(--blue-dark); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--blue); margin-right: 6px; font-weight: 700; }

/* sections */
.section { padding: 46px 0; }
.section-muted { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 24px; }
.more { color: var(--blue); font-size: 14px; }
.empty { color: var(--ink-3); padding: 28px 0; }

/* grid & cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d7e3f7; }
.card-link { display: block; height: 100%; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #eef2f7; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 10px; left: 10px; }
.card-body { padding: 14px 15px 16px; }
.card-title { font-size: 17px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { margin-top: 8px; color: var(--ink-3); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.card-meta span { background: #f3f6fb; border-radius: 6px; padding: 2px 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pill { font-size: 12px; color: var(--blue-dark); background: #eaf2ff; padding: 3px 9px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.join { font-size: 13px; color: var(--ink-3); }

/* badges */
.badge { display: inline-block; font-size: 12px; line-height: 22px; padding: 0 9px; border-radius: 999px; font-weight: 600; background: #fff; }
.badge-live { background: #e8f3ff; color: #1c6fe0; }
.badge-done { background: #e9f7ef; color: #168c4b; }
.badge-expired { background: #f1f3f6; color: #7a8698; }
.badge-note { background: #fff4e5; color: #b5710a; }
.badge-place { background: rgba(27,36,48,.72); color: #fff; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.chip span { font-size: 12px; color: var(--ink-3); }
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* page head */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.page-head h1 { font-size: 30px; margin-top: 8px; }
.page-sub { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-3); font-size: 13px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--blue); }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.tabs { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { padding: 7px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.tabs a.on { background: var(--blue); color: #fff; font-weight: 600; }
.search { display: flex; flex: 1 1 260px; gap: 8px; }
.search input {
  flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; font-size: 14px; color: var(--ink); background: #fff; outline: none;
}
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,127,245,.12); }
.search button {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink);
  color: #fff; font-size: 14px; cursor: pointer;
}
.clear { font-size: 13px; color: var(--blue); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }
.pg { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.pg:hover { border-color: var(--blue); color: var(--blue); }
.pg-info { font-size: 13px; color: var(--ink-3); }

/* detail */
.detail { padding: 26px 0 10px; }
.detail-head { margin: 14px 0 22px; }
.detail-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.detail-badges .badge-place { background: #eef2f7; color: var(--ink-2); }
.detail-head h1 { font-size: 30px; }
.detail-sub { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.gallery-item { border-radius: 10px; overflow: hidden; background: #eef2f7; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.prose p { margin: 0 0 14px; color: #2a3442; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose ol, .prose ul { padding-left: 22px; color: #2a3442; }
.prose li { margin: 6px 0; }
.notice-box { margin-top: 22px; background: #f5f8fd; border: 1px solid #e2ebf9; border-radius: 12px; padding: 16px 18px; }
.notice-box strong { display: block; margin-bottom: 6px; font-size: 15px; }
.notice-box p { color: var(--ink-2); font-size: 14px; }
.detail-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: fit-content; }
.detail-side h2 { font-size: 17px; margin-bottom: 12px; }
.facts { margin: 0; }
.facts div { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.facts dt { width: 64px; flex: none; color: var(--ink-3); font-size: 13px; }
.facts dd { margin: 0; font-size: 14px; color: var(--ink); }
.facts div:last-child { border-bottom: 0; }
.publisher { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.publisher img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eef2f7; }
.pub-label { display: block; font-size: 12px; color: var(--ink-3); }

/* about strip / prose wrap */
.about-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-strip h2 { font-size: 22px; margin-bottom: 8px; }
.about-strip p { color: var(--ink-2); max-width: 680px; }
.prose-wrap { max-width: 860px; }

/* notfound */
.notfound { text-align: center; padding: 40px 0 20px; }
.notfound .code { font-size: 64px; font-weight: 800; color: #d7e3f7; line-height: 1; }
.notfound h1 { font-size: 24px; margin: 10px 0; }
.notfound p { color: var(--ink-3); }
.notfound .hero-actions { justify-content: center; }

/* footer */
.site-footer { margin-top: 20px; border-top: 1px solid var(--line); background: #fbfcfe; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 30px 18px 10px; }
.footer-brand strong { font-size: 16px; }
.footer-brand p { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-2); }
.footer-links a:hover { color: var(--blue); }
.footer-copy { padding: 14px 18px 28px; color: var(--ink-3); font-size: 12px; }

/* responsive */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery-item.main { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .hero { padding: 74px 0 60px; }
  .hero h1 { font-size: 46px; }
  .detail-grid { grid-template-columns: 1fr 340px; gap: 36px; }
  .detail-side { position: sticky; top: 84px; }
  .detail-head h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav a:nth-child(3) { display: none; }
  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: 29px; }
  .section { padding: 34px 0; }
  .page-head h1 { font-size: 24px; }
  .detail-head h1 { font-size: 23px; }
  .tabs a { padding: 7px 14px; }
  .toolbar { gap: 10px; }
}
