:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf5ef;
  --text: #17231c;
  --muted: #66756d;
  --line: #dce6df;
  --brand: #0f7b55;
  --brand-dark: #07563b;
  --accent: #d9861f;
  --shadow: 0 18px 45px rgba(18, 58, 38, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}
.brand-text { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.nav a, .more-nav summary {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.nav a:hover, .nav a.active, .more-nav[open] summary { background: var(--surface-soft); color: var(--brand-dark); }
.more-nav { position: relative; }
.more-nav summary { list-style: none; }
.more-nav summary::-webkit-details-marker { display: none; }
.more-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: 360px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.home-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: stretch;
}
.hero-copy {
  min-height: 360px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(110deg, rgba(15,123,85,.88), rgba(7,86,59,.78)),
    url("/assets/images/placeholders/17e2ba82cf9f.svg") center/cover;
  color: #fff;
  border-radius: 8px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-copy .eyebrow { color: #ffe0a6; }
h1, h2, p { margin-top: 0; }
.hero-copy h1, .category-hero h1 { margin-bottom: 16px; font-size: 42px; line-height: 1.12; }
.hero-copy p, .category-hero p { max-width: 720px; margin-bottom: 0; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions a {
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
}
.hero-actions a + a { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.hero-panel {
  padding: 34px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-panel span, .hero-panel strong { font-size: 56px; line-height: 1; color: var(--brand); }
.hero-panel p { color: var(--muted); margin: 8px 0 28px; }
.page-shell, .section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
}
.category-hero {
  margin-top: 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.search-panel {
  padding: 20px;
  background: var(--surface-soft);
  border-radius: 8px;
}
.search-panel label { display: block; margin-bottom: 10px; font-weight: 700; }
.local-search {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 24px; }
.section-head span { color: var(--muted); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.category-grid a {
  padding: 18px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.category-grid a:hover { border-color: rgba(15,123,85,.45); box-shadow: var(--shadow); }
.category-grid strong { font-size: 18px; }
.category-grid span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.module-block + .module-block { margin-top: 42px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.app-card {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.app-card:hover { border-color: rgba(15,123,85,.45); box-shadow: var(--shadow); }
.app-link {
  min-height: 162px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
}
.app-link img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #eef3f0;
}
.app-link strong {
  width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-size: 15px;
}
.qr-pop {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 172px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 10;
  text-align: center;
}
.qr-pop img { width: 148px; height: 148px; object-fit: cover; }
.qr-pop span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.app-card:hover .qr-pop { display: block; }
.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.65);
}
.site-footer {
  margin-top: 36px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: #e9f0ec;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 6px 0; }
@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .more-panel { left: 0; right: auto; }
  .home-hero, .category-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 34px; min-height: 300px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-hero { padding-top: 34px; }
  .hero-copy, .category-hero { padding: 24px; }
  .hero-copy h1, .category-hero h1 { font-size: 32px; }
  .category-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; flex-direction: column; }
}
