/* ================= Reset & base ================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #e6e8ec;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(40, 92, 74, 0.42), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(72, 130, 104, 0.28), transparent 55%),
    radial-gradient(1000px 900px at 50% 110%, rgba(20, 55, 45, 0.55), transparent 55%),
    linear-gradient(160deg, #06110d 0%, #0b1f18 45%, #0e2a20 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.app-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

/* ================= Hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px 44px;
  background:
    linear-gradient(135deg, rgba(6, 22, 16, 0.78) 0%, rgba(10, 32, 24, 0.72) 45%, rgba(14, 44, 32, 0.7) 100%),
    url('images/hero-kv.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0a2018, #103828);
  border: 1px solid rgba(180, 220, 200, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(1px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 460px at 80% 40%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(500px 320px at 15% 90%, rgba(120, 200, 170, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 260px at 20% 25%, rgba(180, 230, 210, 0.10), transparent 55%),
    radial-gradient(500px 300px at 85% 85%, rgba(80, 160, 130, 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .hero-inner { position: relative; z-index: 1; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 8px;
}
.hero-title {
  margin: 0 0 14px 0;
  font-family: 'Noto Serif SC', serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
}
.title-oneline {
  display: inline-block;
  font-size: 40px;
  white-space: nowrap;
  background: linear-gradient(120deg, #f8ecd0 0%, #d9b177 55%, #a97e3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-slogan-img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(213, 183, 135, 0.22));
  opacity: 0.92;
}
.title-main {
  display: block;
  font-size: 44px;
  line-height: 1.1;
  background: linear-gradient(120deg, #f8ecd0 0%, #d9b177 55%, #a97e3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-sub {
  display: block;
  margin-left: 0;
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.15;
  color: #e6e8ec;
  opacity: 0.95;
}
.hero-desc {
  margin: 0;
  color: #9ea6b3;
  font-size: 14px;
  line-height: 1.75;
  max-width: 520px;
}
.hero-note {
  margin: 6px 0 0;
  color: #7a7f88;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
}
.hero-mid { display: flex; justify-content: flex-end; align-items: center; margin: 0; padding: 0; }
.hero-cursive {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: 34px;
  color: #d5b787;
  transform: rotate(-4deg);
  text-shadow: 0 0 24px rgba(213, 183, 135, 0.25);
  letter-spacing: 2px;
  opacity: 0.9;
}
.hero-right {
  display: flex;
  gap: 26px;
  justify-content: flex-end;
  margin-left: 8px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(120deg, #ffe5b7, #c68f4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: #8b93a1;
  letter-spacing: 3px;
}

/* ================= Toolbar ================= */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #8b93a1;
}
#search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e6e8ec;
  font-size: 14px;
  outline: none;
  transition: border 0.2s, background 0.2s;
}
#search::placeholder { color: #6b7385; }
#search:focus {
  border-color: rgba(213, 183, 135, 0.5);
  background: rgba(255,255,255,0.06);
}
.filter-summary {
  color: #8b93a1;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.btn-reset {
  padding: 8px 16px;
  background: rgba(213, 183, 135, 0.12);
  color: #e5c896;
  border: 1px solid rgba(213, 183, 135, 0.25);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-reset:hover { background: rgba(213, 183, 135, 0.2); }

/* ================= Section title ================= */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px;
}
.section-title { display: flex; align-items: baseline; gap: 12px; }
.section-bar {
  width: 4px; height: 18px;
  background: linear-gradient(180deg, #f2d597, #a97e3f);
  border-radius: 2px;
  display: inline-block;
  transform: translateY(3px);
}
.section-zh {
  font-size: 18px;
  font-weight: 700;
  color: #e6e8ec;
  font-family: 'Noto Serif SC', serif;
}
.section-en {
  font-size: 12px;
  letter-spacing: 4px;
  color: #6b7385;
}
.section-count { color: #9ea6b3; font-size: 13px; }
.section-count span { color: #e5c896; font-weight: 700; }

/* ================= Highlight panel ================= */
.highlight-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 22px;
}
.highlight-title { font-size: 12px; color: #6b7385; letter-spacing: 2px; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd4dd;
}
.chip strong { color: #f2d597; margin-left: 6px; font-weight: 700; }

/* ================= Filter row ================= */
.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.filter-group { display: flex; align-items: flex-start; gap: 14px; }
.filter-label {
  min-width: 84px;
  padding-top: 8px;
  font-size: 12px;
  color: #6b7385;
  letter-spacing: 2px;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  color: #cfd4dd;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: rgba(213, 183, 135, 0.4); color: #f2d597; }
.filter-btn.active {
  background: linear-gradient(120deg, rgba(242, 213, 151, 0.2), rgba(169, 126, 63, 0.2));
  border-color: rgba(242, 213, 151, 0.5);
  color: #ffe5b7;
}

/* ================= Card grid ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 26, 34, 0.55) 0%, rgba(10, 14, 20, 0.85) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(213, 183, 135, 0.25);
  border-color: rgba(213, 183, 135, 0.35);
}
.card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.card-tag-tl {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #f2e9c9;
  background: rgba(15, 45, 35, 0.30);
  border: 1px solid rgba(201, 169, 95, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.card-tag-tr {
  position: absolute; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #e6e8ec;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
/* 对外版：城市 · 上榜/特色 合并角标（右上角） */
.card-tag-listing {
  display: none;
}
.tag-listing-inline {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: inherit;
}
.footer-disclaimer {
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #5c626c;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-align: center;
  opacity: 0.7;
}
.footer-disclaimer + .footer-disclaimer {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.card-title-overlay {
  position: absolute;
  left: 16px; right: 16px; bottom: 12px;
  z-index: 2;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  line-height: 1.3;
}
.card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  color: #cfd4dd;
}
.meta-pill .k { color: #6b7385; margin-right: 4px; }
.meta-pill .v { color: #f2d597; font-weight: 600; }

.card-section-title {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: linear-gradient(120deg, rgba(242, 213, 151, 0.14), rgba(169, 126, 63, 0.14));
  border: 1px solid rgba(242, 213, 151, 0.25);
  color: #f2d597;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
}
.card-section-body {
  font-size: 13px;
  color: #b8c0cd;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 16px;
  border-top: 1px dashed rgba(255,255,255,0.06);
  color: #6b7385;
  font-size: 12px;
}
.card-detail {
  color: #e5c896;
  font-weight: 600;
  font-size: 13px;
}
.card-detail::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.2s;
  display: inline-block;
}
.card:hover .card-detail::after { transform: translateX(4px); }

/* ================= Empty ================= */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: #6b7385;
}
.empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-title { font-size: 18px; color: #cfd4dd; margin-bottom: 6px; }
.empty-desc { font-size: 13px; }

/* ================= Footer ================= */
.footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: #6b7385;
}
.footer-en {
  font-size: 13px;
  letter-spacing: 6px;
  color: #a97e3f;
  font-weight: 600;
}
.footer-meta { margin-top: 10px; font-size: 12px; }
.footer-meta a { color: #cfd4dd; border-bottom: 1px dashed rgba(255,255,255,0.15); }
.footer-meta a:hover { color: #f2d597; border-color: #f2d597; }
.footer-meta .dot { margin: 0 8px; color: #3c4453; }
.footer-logo {
  display: block;
  margin: 18px auto 0;
  max-width: 140px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(213, 183, 135, 0.18));
}

/* ================= Modal ================= */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(3, 6, 10, 0.85);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(17, 23, 32, 0.98), rgba(8, 12, 18, 0.99));
  border: 1px solid rgba(213, 183, 135, 0.15);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cfd4dd;
  cursor: pointer;
  font-size: 14px;
  z-index: 3;
}
.modal-close:hover { background: rgba(255,255,255,0.14); }
.modal-body { padding: 34px 40px 40px; }

.detail-head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 6px;
}
.detail-city {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: rgba(213, 183, 135, 0.12);
  border: 1px solid rgba(213, 183, 135, 0.25);
  color: #f2d597;
  border-radius: 6px;
  font-size: 12px;
}
.detail-brand {
  padding: 4px 12px;
  background: linear-gradient(120deg, rgba(120, 190, 200, 0.15), rgba(50, 130, 150, 0.15));
  border: 1px solid rgba(120, 190, 200, 0.3);
  color: #a8ddec;
  border-radius: 6px;
  font-size: 12px;
}
.detail-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 18px;
  letter-spacing: 2px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 8px;
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
}
.detail-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.detail-gallery img:hover { transform: scale(1.04); }
.detail-gallery .g0 { grid-row: span 2; }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-block {
  border-radius: 14px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
}
.detail-block h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #f2d597;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.detail-block h4::before {
  content: ''; width: 3px; height: 14px;
  background: linear-gradient(180deg, #f2d597, #a97e3f);
  border-radius: 2px;
}
.detail-block ol, .detail-block ul { margin: 0; padding-left: 22px; }
.detail-block li { margin-bottom: 8px; line-height: 1.75; font-size: 13.5px; color: #cfd4dd; }
.detail-block p { margin: 0; line-height: 1.8; font-size: 13.5px; color: #cfd4dd; }
.detail-block .muted { color: #6b7385; font-size: 13px; font-style: italic; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detail-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: rgba(213, 183, 135, 0.1);
  border: 1px solid rgba(213, 183, 135, 0.25);
  color: #e5c896;
}

.detail-files {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(213, 183, 135, 0.06);
  border: 1px dashed rgba(213, 183, 135, 0.3);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.detail-files .files-label {
  color: #f2d597; font-size: 13px; font-weight: 600;
}
.detail-files .file-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #cfd4dd;
  font-size: 12.5px;
}
.detail-files .file-pill svg { width: 14px; height: 14px; color: #d5b787; }

/* ================= Past-case gallery ================= */
.detail-cases {
  margin-top: 24px;
}
.detail-cases-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #f2d597;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.detail-cases-title::before {
  content: ''; width: 3px; height: 14px;
  background: linear-gradient(180deg, #f2d597, #a97e3f);
  border-radius: 2px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cases-grid .case-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cases-grid .case-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border-color: rgba(213, 183, 135, 0.4);
}

/* ================= Case lightbox ================= */
.case-lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(3, 6, 10, 0.9);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.case-lightbox[hidden] { display: none; }
.case-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}

/* ================= Responsive ================= */

/* ---- 平板 & 大手机横屏 ---- */
@media (max-width: 960px) {
  .app-shell { padding: 20px 20px 60px; }
  .hero { padding: 28px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-right { justify-content: flex-start; }
  .hero-mid { justify-content: flex-start; }
  .title-main { font-size: 32px; }
  .title-sub { font-size: 24px; }
  .stat-num { font-size: 30px; }
  .highlight-panel { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 120px; }
  .detail-gallery .g0 { grid-column: span 2; grid-row: auto; }
  .modal-body { padding: 24px 22px 28px; }
  .detail-title { font-size: 24px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ---- 手机竖屏（主流 375~430px） ---- */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.7; }
  .app-shell { padding: 16px 14px 48px; }

  /* Hero：整体居中垂直堆叠 */
  .hero {
    padding: 22px 16px;
    border-radius: 18px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }
  .hero-title { letter-spacing: 1px; margin-bottom: 10px; }
  .title-oneline { font-size: 26px; white-space: normal; }
  .title-main { font-size: 24px; }
  .title-sub { font-size: 17px; margin-top: 2px; }
  .hero-desc { font-size: 13px; line-height: 1.65; max-width: 100%; }
  .hero-slogan-img { max-height: 48px; }
  .hero-cursive { font-size: 26px; }
  .hero-mid { justify-content: center; width: 100%; }
  .hero-right { justify-content: center; gap: 40px; margin-left: 0; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11px; letter-spacing: 2px; }

  /* 工具栏：搜索独占一行，摘要/重置换行 */
  .toolbar { flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
  .search-wrap { flex: 1 1 100%; max-width: 100%; }
  .filter-summary { font-size: 12px; }

  /* Highlight chips */
  .highlight-panel { padding: 14px 16px; gap: 14px; margin-bottom: 18px; }
  .chip { padding: 5px 10px; font-size: 11px; }
  .chip strong { margin-left: 4px; }

  /* 筛选器：纵向堆叠 + 标签独占一行 */
  .filter-row { gap: 14px; margin-bottom: 20px; }
  .filter-group { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-label { min-width: 0; padding-top: 0; }
  .filter-btns { gap: 6px; }
  .filter-btn { padding: 6px 12px; font-size: 12px; }

  /* 卡片：单列全宽 */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-media { height: 0; padding-bottom: 62%; }
  .card-media img { position: absolute; inset: 0; }
  .card-title-overlay { font-size: 18px; }
  .card-body { padding: 14px 16px 12px; gap: 10px; }
  .card-section-body { font-size: 12.5px; }
  .card-footer { padding: 10px 16px 14px; }

  /* Section 标题 */
  .section-zh { font-size: 16px; }

  /* 详情弹层：近全屏 */
  .modal { padding: 0; }
  .modal-panel {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .modal-close {
    top: 10px; right: 12px;
    width: 44px; height: 44px;
    font-size: 18px;
  }
  .modal-body { padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .detail-head { gap: 8px; }
  .detail-title { font-size: 22px; margin: 6px 0 14px; letter-spacing: 1px; }

  /* gallery：横向滚动 */
  .detail-gallery {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    border-radius: 12px;
  }
  .detail-gallery img {
    flex: 0 0 82%;
    height: 200px;
    scroll-snap-align: center;
    border-radius: 10px;
  }
  .detail-gallery .g0 { grid-row: auto; grid-column: auto; }

  .detail-body { gap: 16px; }
  .detail-block { padding: 16px 16px; }

  /* 资料下载：全宽大按钮 */
  .detail-files { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .detail-files .file-pill {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    font-size: 13.5px;
  }

  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* 页脚：防长邮箱溢出 */
  .footer { margin-top: 44px; }
  .footer-en { font-size: 11px; letter-spacing: 3px; }
  .footer-meta { font-size: 11px; word-break: break-word; overflow-wrap: anywhere; }
}

/* ---- 小屏手机（≤400px） ---- */
@media (max-width: 400px) {
  .app-shell { padding: 14px 12px 40px; }
  body { font-size: 14px; }
  .title-main { font-size: 21px; }
  .title-sub { font-size: 15px; }
  .hero-desc { font-size: 12.5px; }
  .stat-num { font-size: 24px; }
  .hero-right { gap: 28px; }
  .card-title-overlay { font-size: 17px; }
  .detail-title { font-size: 20px; }
  .detail-gallery img { flex-basis: 88%; height: 180px; }
  .cases-grid { grid-template-columns: 1fr; }
  .filter-btn { font-size: 11px; }
  .chip { font-size: 11px; }
}
