/* 深圳通（www.0755tong.com）— 湾区蔚蓝城市门户本地样式表（零外部CDN） */
:root {
  --ink: #0f2137;
  --ink-2: #3b5169;
  --muted: #697f96;
  --brand: #0b5ed7;
  --brand-dark: #0848a8;
  --brand-soft: #eaf2ff;
  --cyan: #0891b2;
  --cyan-soft: #e6f7fa;
  --mint: #059669;
  --mint-soft: #e8f8f2;
  --amber-bg: #eff6ff;
  --amber-border: #bfdbfe;
  --canvas: #f3f6fa;
  --surface: #ffffff;
  --border: #dce4ee;
  --shadow-sm: 0 2px 10px rgba(15, 33, 55, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 33, 55, 0.09);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 页头导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-link.nav-accent {
  background: var(--mint-soft);
  color: var(--mint);
  font-weight: 600;
}

.nav-link.nav-accent:hover,
.nav-link.nav-accent.is-active {
  background: var(--mint);
  color: #ffffff;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  flex-shrink: 0;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  width: 145px;
  font-family: inherit;
}

.header-search button {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.header-search button:hover {
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== 首页顶部公告通栏（紧贴导航下方） ===== */
.site-announce {
  background: linear-gradient(90deg, var(--amber-bg) 0%, #f0fdfa 55%, #eef2ff 100%);
  border-bottom: 1px solid var(--amber-border);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}

.announce-badge {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  min-width: 160px;
}

.announce-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}

.announce-cta:hover {
  text-decoration: underline;
}

/* ===== 首页 Hero ===== */
.hero {
  position: relative;
  background: #0a192f;
  color: #ffffff;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(10, 25, 47, 0.90) 0%, rgba(11, 58, 114, 0.72) 54%, rgba(8, 145, 178, 0.36) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 54px 0 60px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  color: #bae6fd;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats strong {
  display: block;
  font-size: 21px;
  color: #7dd3fc;
}

.hero-stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-tool-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.30);
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tool-head h2 {
  margin: 0;
  font-size: 18px;
}

.badge-blue {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-mint {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--canvas);
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-mint {
  background: var(--mint);
  color: #ffffff;
}

.btn-mint:hover {
  background: #047857;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-block {
  width: 100%;
}

/* ===== 区块与标题 ===== */
.section {
  padding: 52px 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.section-more:hover {
  text-decoration: underline;
}

/* ===== 便民频道金刚区（快捷入口） ===== */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.quick-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.quick-tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.tile-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.quick-tile strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.quick-tile span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ===== 表格与速查 ===== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 660px;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e9eef5;
}

.data-table th {
  background: #edf3fa;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: #f8fbff;
}

/* ===== 卡片网格 ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #dbe6f2;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 33, 55, 0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-tag.is-blue {
  background: var(--brand);
}

.card-tag.is-mint {
  background: var(--mint);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17.5px;
  line-height: 1.42;
  color: var(--ink);
}

.card-title a:hover {
  color: var(--brand);
}

.card-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
}

.link-go {
  font-weight: 600;
  color: var(--brand);
}

.link-go:hover {
  color: var(--cyan);
}

/* ===== 专题双栏横幅 ===== */
.feature-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: linear-gradient(135deg, #0b2447 0%, #0b5ed7 60%, #0891b2 100%);
  color: #ffffff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-banner-body {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-banner-body h2 {
  margin: 10px 0 12px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.feature-banner-body p {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pill-row span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.feature-banner-media {
  min-height: 250px;
}

.feature-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 内页页头、筛选与正文 ===== */
.page-hero {
  background: linear-gradient(135deg, #0c2340 0%, #0d4b8c 65%, #0891b2 100%);
  color: #ffffff;
  padding: 34px 0 38px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 10px;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.panel-box,
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.side-card {
  padding: 20px;
  margin-bottom: 20px;
}

.side-card h3 {
  margin: 0 0 14px;
  font-size: 16.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.kv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #e3eaf3;
  font-size: 14px;
}

.kv-list li:last-child {
  border-bottom: 0;
}

.kv-list span {
  color: var(--muted);
  flex-shrink: 0;
}

.kv-list strong {
  color: var(--ink);
  text-align: right;
}

.prose h2 {
  margin: 24px 0 12px;
  font-size: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 16.5px;
}

.prose p {
  margin: 0 0 14px;
  color: #273b52;
  font-size: 15.5px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
  color: #273b52;
}

.callout-info {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 14px 18px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 16px 0;
  font-size: 14.5px;
}

.callout-mint {
  background: var(--mint-soft);
  border-left: 4px solid var(--mint);
  padding: 14px 18px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 16px 0;
  font-size: 14.5px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.kpi-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 12px;
  text-align: center;
}

.kpi-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.kpi-card strong {
  display: block;
  font-size: 20px;
  color: var(--brand);
  margin-top: 4px;
}

.kpi-card.is-mint strong {
  color: var(--mint);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0b1b30;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 26px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chips span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #bae6fd;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0;
}

.footer-beian a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-beian a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ===== 响应式布局（保障 375px 零横向滚动） ===== */
@media (max-width: 1024px) {
  .hero-grid,
  .feature-banner,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .quick-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    display: block;
    padding: 10px 12px;
  }
  .header-search {
    width: 100%;
  }
  .header-search input {
    flex: 1;
    width: auto;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 15px;
  }
  .brand-logo img {
    height: 36px;
  }
  .hero-grid {
    padding: 32px 0 38px;
    gap: 22px;
  }
  .hero-tool-card,
  .panel-box {
    padding: 18px;
  }
  .form-grid-2,
  .kpi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .quick-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feature-banner-body {
    padding: 24px 20px;
  }
  .section {
    padding: 38px 0;
  }
  .announce-cta {
    display: none;
  }
}
