﻿/*
  这个 CSS 文件负责：
  1) 让页面在 PC / H5（手机浏览器）都好看（自适应）
  2) 提供一些“卡片、按钮、网格、加载动画”等通用样式

  你可以把它理解成“网页的皮肤”。
*/

:root {
  --brand: #f97316;
  --brand-2: #f59e0b;
  --brand-3: #fb923c;

  --bg: #f6f8fc;
  --bg-2: #eef2f8;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.62);
  --border: rgba(11, 18, 32, 0.10);

  --radius: 16px;
  --shadow: 0 14px 40px rgba(2, 6, 23, 0.18);
  --shadow-soft: 0 10px 22px rgba(2, 6, 23, 0.10);

  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 18% 6%, rgba(249, 115, 22, 0.10), transparent 60%),
    radial-gradient(900px 520px at 82% 8%, rgba(245, 158, 11, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* 页面整体容器：用于居中 + 留白 */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 22px) clamp(12px, 2.2vw, 18px) 56px;
}

/* 顶部导航条：用于嵌入现有网站时，页面也能自带标题/返回等 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
  position: sticky;
  top: 10px;
  z-index: 10;
}
.topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar .title {
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(11, 18, 32, 0.92);
}
.topbar .title {
  letter-spacing: 0.2px;
}

body[data-page="detail"] .topbar .title {
  font-size: 18px;
  font-weight: 900;
}

body[data-page="detail"] .topbar .meta {
  color: rgba(11, 18, 32, 0.62);
}

body[data-page="detail"] .topbar .left {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

body[data-page="detail"] .topbar .meta {
  font-size: 14px;
  white-space: normal;
}

.mini-topbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 24px));
  top: 10px;
  z-index: 800;
  background:
    radial-gradient(900px 420px at 18% 10%, rgba(255, 255, 255, 0.20), transparent 55%),
    radial-gradient(700px 420px at 86% 16%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.90), rgba(245, 158, 11, 0.86));
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-page="detail"] .mini-topbar .left {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
body[data-page="detail"] .mini-topbar .title {
  font-size: 15px;
  font-weight: 900;
  max-width: 72vw;
  color: rgba(255, 255, 255, 0.98);
}
body[data-page="detail"] .mini-topbar .meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 72vw;
  white-space: normal;
  word-break: break-word;
}

.detail-hero {
  margin-top: 12px;
  border-radius: 22px;
  padding: 18px 16px 14px;
  color: rgba(11, 18, 32, 0.92);
  background:
    radial-gradient(1000px 460px at 18% 10%, rgba(249, 115, 22, 0.14), transparent 58%),
    radial-gradient(900px 460px at 86% 16%, rgba(245, 158, 11, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.08);
}
.detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-hero-left {
  min-width: 0;
}
.detail-hero-title {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
}
.detail-hero-meta {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.90;
}
body[data-page="detail"] .detail-hero-meta {
  opacity: 0.92;
  color: rgba(11, 18, 32, 0.86);
  font-weight: 900;
  max-width: 72ch;
}
.detail-hero-right .btn {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(11, 18, 32, 0.10);
  color: rgba(11, 18, 32, 0.88);
  white-space: nowrap;
}
.detail-hero-intro {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  padding: 12px 12px;
  color: rgba(11, 18, 32, 0.90);
}
.detail-hero-intro.highlight {
  background:
    radial-gradient(800px 220px at 10% 0%, rgba(249, 115, 22, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(249, 115, 22, 0.22);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
}
.detail-hero-desc {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 900;
  color: rgba(11, 18, 32, 0.86);
}

@media (max-width: 480px) {
  .detail-hero {
    padding: 16px 14px 12px;
  }
  .detail-hero-meta {
    font-size: 13px;
  }
  .detail-hero-desc {
    font-size: 13px;
  }
}
.topbar .meta {
  font-size: 12px;
  color: rgba(11, 18, 32, 0.56);
  white-space: nowrap;
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 主视觉（专题首页头图） */
.hero {
  margin-top: 14px;
  padding: clamp(18px, 2.8vw, 28px);
  border-radius: 22px;
  color: rgba(11, 18, 32, 0.92);
  background:
    radial-gradient(1200px 500px at 18% 8%, rgba(249, 115, 22, 0.14), transparent 60%),
    radial-gradient(900px 420px at 86% 12%, rgba(245, 158, 11, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.08);
}
.hero h1 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.2px;
  line-height: 1.15;
}
.hero p {
  margin: 10px 0 0;
  opacity: 0.92;
  line-height: 1.55;
  font-size: 13px;
  max-width: 58ch;
}

.hero.hero-tabs {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.hero.hero-tabs {
  padding: 14px 14px;
}

.home-hero {
  margin-top: 10px;
  border-radius: 24px;
  padding: 18px 16px 14px;
  color: rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(1100px 520px at 18% 10%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(900px 520px at 86% 16%, rgba(255, 255, 255, 0.10), transparent 58%),
    linear-gradient(135deg, rgba(234, 88, 12, 0.95), rgba(245, 158, 11, 0.88));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.home-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-hero-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 950;
  letter-spacing: 0.2px;
}
.home-hero-back {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 900;
}
.home-hero-back:hover { background: rgba(255, 255, 255, 0.16); }
.home-hero-tabs {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.home-hero-tabs::-webkit-scrollbar { height: 0; }
.home-tab {
  flex: 0 0 auto;
  min-width: 240px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 12px 12px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  scroll-snap-align: start;
  position: relative;
}
.home-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
.home-tab:active { transform: translateY(0); }
.home-tab.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 18px 40px rgba(2, 6, 23, 0.26);
  color: rgba(11, 18, 32, 0.92);
}
.home-tab.is-active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 950;
  color: rgba(249, 115, 22, 0.95);
}
.home-tab.is-active .home-tab-title { color: rgba(11, 18, 32, 0.92); }
.home-tab.is-active .home-tab-desc { color: rgba(11, 18, 32, 0.62); }
.home-tab-title {
  font-weight: 950;
  font-size: 15px;
  line-height: 1.25;
}
.home-tab-desc {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.35;
}
@media (max-width: 520px) {
  .home-tab { min-width: 196px; padding: 10px 10px; border-radius: 16px; }
  .home-tab-title { font-size: 14px; }
  .home-tab-desc { font-size: 12px; }
  .home-tab.is-active::after { top: 8px; right: 8px; width: 20px; height: 20px; font-size: 12px; }
}

.tab-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.tab-strip::-webkit-scrollbar { height: 0; }

.tab-card {
  flex: 0 0 auto;
  min-width: 228px;
  max-width: 320px;
  text-align: left;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.90);
  color: rgba(11, 18, 32, 0.86);
  border-radius: 16px;
  padding: 12px 12px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.tab-card:hover {
  background: rgba(255, 255, 255, 1.0);
  border-color: rgba(249, 115, 22, 0.18);
  transform: translateY(-1px);
}
.tab-card:active { transform: translateY(0); }
.tab-card.is-active {
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.22);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
  transform: translateY(-1px);
  position: relative;
  color: rgba(249, 115, 22, 0.95);
}
.tab-card-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
}
.tab-card-desc {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.60);
  line-height: 1.35;
}
.tab-card.is-active .tab-card-desc {
  color: rgba(249, 115, 22, 0.78);
}

/* 分区标题（例如：2026重点项目清单 / 分类项目报告） */
.section {
  margin-top: 16px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 2px;
}
.section-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.section-title {
  font-size: 16px;
  font-weight: 850;
  color: rgba(11, 18, 32, 0.92);
}
.section-sub {
  font-size: 13px;
  color: rgba(11, 18, 32, 0.54);
}
.section-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.86);
  width: 100%;
  justify-content: flex-start;
}
.seg-tab {
  border: 0;
  background: rgba(11, 18, 32, 0.04);
  color: rgba(11, 18, 32, 0.66);
  font-weight: 900;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  min-width: 112px;
  text-align: center;
}
.seg-tab:hover { background: rgba(11, 18, 32, 0.06); }
.seg-tab.is-active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(245, 158, 11, 0.92));
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.16);
}
@media (max-width: 520px) {
  .seg-tab { padding: 9px 12px; font-size: 14px; min-width: 104px; }
}

/* 列表卡片容器 */
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.panel.panel-overflow {
  overflow: visible;
  position: relative;
  z-index: 30;
}
.panel.solid {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(11, 18, 32, 0.08);
  backdrop-filter: blur(8px);
}
.panel.solid .state {
  color: var(--muted);
}
.panel.solid .state.error,
.panel.solid .state.ok {
  color: rgba(11, 18, 32, 0.92);
  border-top-color: rgba(11, 18, 32, 0.10);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  background:
    radial-gradient(900px 220px at 12% 0%, rgba(249, 115, 22, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(249, 115, 22, 0.03));
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}
.panel-head.has-tabs {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}
.panel-head.has-tabs .section-tabs {
  border: 0;
  background: transparent;
  padding: 0;
}
.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tab-body { padding: 0; }
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 0px;
  position: relative;
}
.panel-head .state {
  flex: 1;
  min-width: 0;
}
.panel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.panel-search-input {
  width: min(44vw, 260px);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(11, 18, 32, 0.92);
  outline: none;
}
.panel-search-input:focus {
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.panel-search-clear {
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 999px;
}
.item-title .kw {
  padding: 0 3px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.14);
  color: rgba(249, 115, 22, 0.92);
}
.panel > .state {
  margin: 12px 12px 0;
  background:
    radial-gradient(900px 220px at 12% 0%, rgba(249, 115, 22, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(249, 115, 22, 0.03));
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 16px;
}

/* 通用列表项（用于“报告列表”） */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  text-decoration: none;
  color: rgba(11, 18, 32, 0.92);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover {
  background: rgba(11, 18, 32, 0.03);
  transform: translateY(-1px);
}
.list-item:active { transform: translateY(0); }

.item-main {
  min-width: 0;
}
.item-title {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}
.item-desc {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.60);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.pill {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.08);
  color: rgba(249, 115, 22, 0.92);
}
.arrow {
  font-weight: 800;
  color: rgba(11, 18, 32, 0.42);
}

/* 项目列表：使用网格布局，PC 多列、手机单列 */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}
@media (min-width: 880px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 单个项目卡片（整个卡片可点击跳转） */
.project-card {
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-width: 0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
  border-color: rgba(249, 115, 22, 0.28);
}
.project-title-row {
  display: block;
}
.project-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
}
.project-title:link,
.project-title:visited,
.project-title:hover,
.project-title:active {
  color: inherit;
  text-decoration: none;
}
.project-tags {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.tag {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(31, 45, 61, 0.03);
}
.tag.primary {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.10);
  color: #c2410c;
}
.project-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.project-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: rgba(31, 45, 61, 0.80);
  min-width: 0;
}
.project-meta > div {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-meta .muted {
  color: var(--muted);
}

.project-bond-tips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bond-tips-icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(249, 115, 22, 0.96);
  color: rgba(255, 255, 255, 0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  flex: 0 0 auto;
}

.bond-tips-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 操作区：例如“加载更多” */
.actions {
  display: flex;
  justify-content: center;
  padding: 12px 14px 18px;
}
.btn {
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.90);
  color: rgba(11, 18, 32, 0.88);
  font-weight: 850;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  font-size: 14px;
  white-space: nowrap;
}
.btn.btn-ghost {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.16);
  font-size: 13px;
}
.btn.btn-ghost:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.22);
}
.btn.btn-primary {
  background: rgba(249, 115, 22, 0.96);
  border-color: rgba(249, 115, 22, 0.25);
  color: rgba(255, 255, 255, 0.98);
}
.btn.btn-primary:hover {
  background: rgba(234, 88, 12, 0.98);
  border-color: rgba(234, 88, 12, 0.30);
}
.btn:hover {
  background: rgba(11, 18, 32, 0.03);
  border-color: rgba(11, 18, 32, 0.14);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 错误/空状态 */
.state {
  padding: 0;
  color: rgba(11, 18, 32, 0.62);
  font-size: 14px;
  border: 0;
  background: transparent;
}
.state.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 52px;
  padding: 12px 0;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(520px, calc(100vw - 48px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 18, 32, 0.10);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.35);
  overflow: hidden;
  z-index: 900;
}
.dropdown.in-modal {
  position: static;
  width: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.dropdown.in-modal .dropdown-body {
  flex: 1;
  overflow: auto;
  max-height: none;
  padding: 12px 12px 12px;
}
.dropdown.in-modal .dropdown-foot {
  position: sticky;
  bottom: 0;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.98);
  z-index: 2;
  padding: 12px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 520px) {
  .dropdown {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 78vh;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 60px rgba(2, 6, 23, 0.26);
  }
  .dropdown-body {
    max-height: calc(78vh - 72px);
    overflow: auto;
  }
}
.dropdown-body {
  padding: 12px 12px 10px;
  max-height: min(62vh, 520px);
  overflow: auto;
}
.dropdown-foot {
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.98);
}
.dropdown-foot .btn {
  min-width: 120px;
}
.dropdown-foot .btn.btn-primary {
  min-width: 150px;
}

.insight-content {
  padding: 14px 14px;
  color: rgba(11, 18, 32, 0.90);
  white-space: normal;
  word-break: break-word;
  line-height: 1.65;
  font-size: 14px;
  overflow-x: hidden;
}
.insight-content * { max-width: 100%; }
.insight-content img { max-width: 100%; height: auto; }
.insight-content table { max-width: 100%; display: block; overflow: auto; }
.insight-content :is(h1,h2,h3) {
  margin: 10px 0 6px;
  line-height: 1.25;
}
.insight-content a { color: rgba(249, 115, 22, 0.95); }

.pdf-panel {
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdf-preview {
  width: 100%;
  border: 1px solid rgba(11, 18, 32, 0.10);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.03);
}
.pdf-preview-img {
  width: 100%;
  display: block;
}
.pdf-preview-fallback {
  padding: 26px 14px;
  text-align: center;
  font-weight: 900;
  color: rgba(11, 18, 32, 0.60);
}
.pdf-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
.modal-sheet {
  width: min(720px, 100%);
  max-height: min(78vh, 680px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.40);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-head {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.10);
}
.modal-title {
  font-size: 16px;
  font-weight: 900;
  color: rgba(11, 18, 32, 0.92);
}
.modal-close {
  border: 0;
  background: transparent;
  color: rgba(11, 18, 32, 0.62);
  font-weight: 850;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.modal-close:hover { background: rgba(11, 18, 32, 0.06); }
.modal-body {
  padding: 12px 14px 10px;
  overflow: auto;
}
.modal-foot {
  padding: 12px 14px;
  border-top: 1px solid rgba(11, 18, 32, 0.10);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
}
.contact-modal-desc {
  font-size: 14px;
  font-weight: 850;
  color: rgba(11, 18, 32, 0.80);
  line-height: 1.5;
  text-align: center;
}
#contactModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 14px 12px;
}
#contactModal .modal-foot {
  justify-content: center;
}

.filter-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.type-tag {
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.90);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(11, 18, 32, 0.86);
  font-weight: 850;
}
.type-tag:hover { background: rgba(11, 18, 32, 0.04); }
.type-tag.is-active {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.10);
  color: rgba(249, 115, 22, 0.95);
}
.type-tag-count {
  font-size: 12px;
  font-weight: 850;
  color: rgba(11, 18, 32, 0.50);
}
.type-tag.is-active .type-tag-count { color: rgba(249, 115, 22, 0.70); }

.region-two-col {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.region-provs {
  background: rgba(11, 18, 32, 0.03);
  padding: 8px 6px;
  overflow: auto;
  max-height: min(54vh, 440px);
}
.region-prov-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  color: rgba(11, 18, 32, 0.70);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.region-prov-item:hover { background: rgba(11, 18, 32, 0.06); }
.region-prov-item.is-active {
  background: rgba(249, 115, 22, 0.12);
  color: rgba(249, 115, 22, 0.95);
}
.region-prov-badge {
  flex: none;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: rgba(249, 115, 22, 0.95);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
}
.region-cities-pane {
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 10px;
  overflow: auto;
  max-height: min(54vh, 440px);
}
.region-cities-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 10px;
}
.region-cities-title {
  font-weight: 900;
  color: rgba(11, 18, 32, 0.86);
}
.region-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
  color: rgba(11, 18, 32, 0.62);
}
.region-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}
.city-tag {
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 850;
  color: rgba(11, 18, 32, 0.82);
}
.city-tag:hover { background: rgba(11, 18, 32, 0.04); }
.city-tag.is-active {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.10);
  color: rgba(249, 115, 22, 0.95);
}
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 12px 12px;
}
.filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.filter-name {
  font-weight: 900;
  color: rgba(11, 18, 32, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-count {
  color: rgba(11, 18, 32, 0.56);
  font-size: 13px;
  flex: none;
}
.filter-check {
  width: 18px;
  height: 18px;
  accent-color: rgba(249, 115, 22, 0.95);
}
.region-prov {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.88);
}
.region-prov-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-toggle {
  border: 0;
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.62);
  font-weight: 850;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
}
.region-cities {
  margin-top: 10px;
  padding: 0 4px 2px 4px;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}
.region-city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 8px 10px;
}
.region-city-name {
  font-weight: 850;
  color: rgba(11, 18, 32, 0.86);
  font-size: 13px;
}

@media (max-width: 480px) {
  .tab-card {
    min-width: 200px;
    padding: 11px 11px;
  }
}
.state.error {
  color: rgba(180, 35, 24, 0.92);
}
.state.ok {
  color: rgba(11, 18, 32, 0.80);
}

#filterModal .modal-sheet {
  max-height: min(calc(100vh - 24px - env(safe-area-inset-bottom, 0px)), 720px);
}
#filterModal .modal-body {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  #filterModal .modal-sheet {
    max-height: min(calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)), 720px);
  }
}

/* 轻量加载动画：用于“正在加载...” */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.92);
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
