:root {
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --card: #ffffff;
  --line: #e8eaee;
  --line-strong: #d5dae3;
  --blue: #2b6de5;
  --blue-2: #2b6de5;
  --cyan: #2b6de5;
  --text: #1c1f26;
  --muted: #667085;
  --dim: #98a2b3;
  --ok: #12b76a;
  --warn: #f79009;
  --danger: #f04438;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --header-h: 64px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  min-height: 100%;
}
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(43, 109, 229, 0.16); }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.bg-grid { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue);
  display: grid; place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark svg path { stroke: #fff; }
.brand b { display: block; font-size: 15px; letter-spacing: .02em; }
.brand em { display: block; font-style: normal; font-size: 11px; color: var(--dim); letter-spacing: .12em; }

.search {
  flex: 1; display: flex; align-items: center; gap: 0;
  background: #f5f6f8; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; min-width: 0;
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 9px 8px 9px 16px;
}
.search button {
  border: 0; background: transparent; color: var(--blue);
  padding: 8px 16px; cursor: pointer; white-space: nowrap; font-weight: 600;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--text); background: #eef2f7; }
.menu-btn {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; top: 20px; height: 2px; background: var(--text);
}
.menu-btn span::before,
.menu-btn span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--text);
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

.announce {
  position: relative; z-index: 1;
  background: #eef4ff;
  border-bottom: 1px solid #dbe6fb;
  color: #3d5a99; font-size: 13px; padding: 8px 0;
}

.hero {
  position: relative; z-index: 1;
  padding: 36px 0 28px;
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(28px, 6vw, 40px); line-height: 1.2; letter-spacing: .01em;
  font-weight: 700;
}
.hero h1 span { color: var(--blue); }
.hero p { margin: 0 0 18px; color: var(--muted); max-width: 560px; }
.hero-search { max-width: 560px; }
.hero-search .search { background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow); }
.hero-search input { padding: 14px 12px 14px 18px; }
.hero-search button {
  background: var(--blue); color: #fff;
  font-weight: 700; border-radius: 999px; margin: 6px; padding: 10px 18px;
}

.sec { position: relative; z-index: 1; padding: 8px 0 28px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.sec-head a { color: var(--blue); font-size: 13px; }

.cat-row {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.cat-chip {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 8px 6px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--muted); font-size: 13px;
}
.cat-chip:hover, .cat-chip.active {
  color: var(--blue); border-color: #c9d8f8; background: #f4f8ff;
}

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 168px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; overflow: hidden;
  background: #eef2f7;
  display: grid; place-items: center; font-weight: 700; color: var(--blue); font-size: 20px;
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.card .meta { color: var(--dim); font-size: 12px; margin-top: 4px; }
.card .sum {
  color: var(--muted); font-size: 13px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag {
  font-size: 11px; color: var(--blue); background: #f0f5ff;
  border: 1px solid #dbe6fb; padding: 2px 8px; border-radius: 999px;
}
.dl {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 13px;
}
.dl.ghost {
  background: transparent; color: var(--blue); border: 1px solid var(--line-strong);
}

.detail { position: relative; z-index: 1; padding: 22px 0 100px; }
.detail-hero {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow);
}
.detail-hero .icon { width: 88px; height: 88px; font-size: 32px; border-radius: 20px; }
.detail-hero h1 { margin: 0 0 6px; font-size: 26px; }
.crumbs { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.crumbs a { color: var(--blue); }
.kv { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.kv b { color: var(--text); font-weight: 600; }
.detail-body { display: grid; grid-template-columns: 1.6fr .9fr; gap: 16px; margin-top: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 10px; font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.shots img { width: 100%; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); color: var(--muted); background: #fff;
}
.pager .on { background: var(--blue); color: #fff; border-color: var(--blue); }

.empty {
  text-align: center; color: var(--muted); padding: 48px 16px;
  border: 1px dashed var(--line); border-radius: 16px; background: #fff;
}

.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 12px;
  padding: 22px 0 calc(22px + var(--safe-b));
  text-align: center; background: #fff;
}
.site-foot a { color: var(--muted); }

.sticky-dl {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-dl .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-dl .dl { flex: 1; height: 44px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-row { grid-template-columns: repeat(4, 1fr); }
  .detail-hero { grid-template-columns: 64px 1fr; }
  .detail-hero .icon { width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }
  .detail-hero h1 { font-size: 20px; }
  .detail-hero .dl-desk { display: none; }
  .detail-body { grid-template-columns: 1fr; }
  .sticky-dl { display: block; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .nav, .brand em { display: none; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
  }
  .menu-btn { display: block; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px; min-height: 0; }
  .icon { width: 42px; height: 42px; border-radius: 12px; }
  .hero { padding: 22px 0 16px; }
  .header-inner > .search { display: none; }
  .header-inner .search.mobile-on { display: flex; position: absolute; left: 16px; right: 62px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
