/* ======================
   COMMON.CSS — 全局共享样式
   设计系统 · 公共组件 · 响应式
   ====================== */

/* ====================== CSS 变量 · 深蓝 + 哑光金 ====================== */
:root {
  /* —— 品牌色 —— */
  --color-primary: #1A2332;
  --color-accent: #D4AF37;
  --color-accent-hover: #B8962E;
  --color-accent-deep: #8B6914;   /* 深金：正文强调/描边 */

  /* —— 语义色（全站统一：危险/成功/警告/信息） —— */
  --color-danger: #dc2626;
  --color-danger-hover: #b91c1c;
  --color-success: #16a34a;
  --color-warning: #a16207;
  --color-info: #2563eb;

  /* —— 文字色 —— */
  --text-white: #FFFFFF;
  --text-title: #1A2332;
  --text-body: #4A5568;
  --text-muted: #718096;
  --text-aux: var(--text-muted);
  --text-light: #A0AEC0;

  /* —— 中性灰阶（对齐 Tailwind slate，供背景/边框/次要文字） —— */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e7eb;
  --gray-250: #eef2f7;   /* 旧文件近似边框灰，保留原值零视觉变化 */
  --gray-300: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #4a5568;
  --gray-700: #334155;
  --gray-800: #0f1825;
  --gray-900: #0f172a;

  /* —— 背景 / 边框 —— */
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-gray-light: #F5F6F8;
  --border-color: #E2E8F0;
  --border-normal: var(--border-color);
  --border-light: var(--border-color);
  --bg-soft-gray: var(--bg-gray-light);
  --bg-soft-blue: var(--bg-gray-light);

  /* —— 阴影 —— */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);

  /* —— 圆角 —— */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* —— 过渡 —— */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ====================== 全局重置 ====================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 防止 100vw 全出血类布局把滚动条宽度计入视口，导致整页横向溢出（如 /about/ 团队横滑区）。
   用 clip 而非 hidden：clip 不产生滚动容器，不会破坏 position:sticky（顶部导航）与横向滚动组件。 */
html,
body {
  overflow-x: clip;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ====================== 公共动画 ====================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-item { opacity: 0; }
.fade-item.show { animation: fadeUp 0.6s ease-out forwards; }

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ====================== 按钮系统 ====================== */
.btn-solid {
  background: var(--color-accent);
  color: #000;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-solid:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-title);
  padding: 11px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* ====================== 标签系统 ====================== */
.tag-a {
  background: var(--color-primary);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

.tag-b {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--text-title);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

/* ====================== 布局工具 ====================== */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* 区块标题：居中层级（金线 → 标题 → 简介），无卡片外壳 */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.section-head::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
}
.section-head .section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--color-primary);
}
.section-head .section-desc {
  font-size: 15px;
  line-height: 1.75;
  max-width: 28em;
  margin: 0 auto;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .section-head {
    margin-bottom: 36px;
  }
  .section-head::before {
    width: 28px;
    margin-bottom: 14px;
  }
  .section-head .section-title {
    font-size: 24px;
    letter-spacing: 0.04em;
  }
  .section-head .section-desc {
    font-size: 14px;
    max-width: none;
    padding: 0 8px;
  }
}

/* ====================== 面包屑 ====================== */
.breadcrumb {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb-sep { color: var(--border-color); }

.breadcrumb-current {
  color: var(--text-title);
  font-weight: 500;
}

/* 深蓝 Hero 内的面包屑：保证对比度（手机/桌面） */
.page-hero .breadcrumb,
.articles-hero .breadcrumb,
.cases-hero .breadcrumb,
.lawyers-hero .breadcrumb,
.services-hero .breadcrumb,
.about-hero .breadcrumb,
.faq-hero .breadcrumb,
.topic-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.62);
  justify-content: center;
}
.page-hero .breadcrumb a,
.articles-hero .breadcrumb a,
.cases-hero .breadcrumb a,
.lawyers-hero .breadcrumb a,
.services-hero .breadcrumb a,
.about-hero .breadcrumb a,
.faq-hero .breadcrumb a,
.topic-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}
.page-hero .breadcrumb a:hover,
.articles-hero .breadcrumb a:hover,
.cases-hero .breadcrumb a:hover,
.lawyers-hero .breadcrumb a:hover,
.services-hero .breadcrumb a:hover,
.about-hero .breadcrumb a:hover,
.faq-hero .breadcrumb a:hover,
.topic-hero .breadcrumb a:hover {
  color: var(--color-accent);
}
.page-hero .breadcrumb-sep,
.articles-hero .breadcrumb-sep,
.cases-hero .breadcrumb-sep,
.lawyers-hero .breadcrumb-sep,
.services-hero .breadcrumb-sep,
.about-hero .breadcrumb-sep,
.faq-hero .breadcrumb-sep,
.topic-hero .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}
.page-hero .breadcrumb-current,
.articles-hero .breadcrumb-current,
.cases-hero .breadcrumb-current,
.lawyers-hero .breadcrumb-current,
.services-hero .breadcrumb-current,
.about-hero .breadcrumb-current,
.faq-hero .breadcrumb-current,
.topic-hero .breadcrumb-current {
  color: #fff !important;
  font-weight: 650;
  max-width: min(70vw, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====================== Page Hero（内页通用 · 深蓝金渐变） ====================== */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 85% 0%, rgba(212, 175, 55, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(212, 175, 55, 0.06), transparent 45%),
    linear-gradient(165deg, var(--color-primary) 0%, var(--gray-800) 100%);
  padding: 60px 0 64px;
  text-align: center;
  color: var(--text-white);
}

.page-hero-badge { margin-bottom: 20px; }

.page-hero h1 {
  font-size: 34px;
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 区块灰底 / 关于页 section-header */
.bg-gray { background: var(--bg-gray-light); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header .tag-a,
.section-header .tag-b {
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 整卡可点内容卡（列表/首页复用骨架） */
a.content-card {
  display: block;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
a.content-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), transparent 80%);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 1;
}
a.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 35, 50, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
}
a.content-card:hover::before { opacity: 1; }

/* ====================== 顶部导航 ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container { position: relative; }

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  flex-shrink: 1;
  min-width: 0;
  max-width: min(56vw, 320px);
}
.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 18px;
}

.nav-list {
  display: flex;
  gap: 28px;
  align-self: stretch;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-list > li {
  display: flex;
  align-items: center;
}

.nav-list a {
  font-size: 14px;
  color: var(--text-white);
  opacity: 0.88;
  transition: color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent);
  opacity: 1;
}

/* 下拉菜单 —— 右侧悬浮样式 */
.nav-list li.has-sub {
  position: relative;
}
/* 透明桥接区：扩大触发宽度 + 向下延伸，减少斜向移出丢 hover */
.nav-list li.has-sub::after {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  top: 0;
  bottom: -16px;
  z-index: 0;
}
.nav-list li.has-sub > a {
  position: relative;
  z-index: 1;
}
.nav-sub {
  position: absolute;
  top: calc(100% - 2px);
  left: auto;
  right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s;
  z-index: 9999;
  border: 1px solid var(--border-color);
}
/* 向上透明热区，保证从触发项移入面板不断开 */
.nav-sub::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
/* 小三角指示器 —— 靠右对齐，指向父菜单项 */
.nav-sub::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 20px;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}
.nav-sub li {
  width: 100%;
}
.nav-sub li a {
  display: block;
  padding: 11px 20px !important;
  font-size: 14px !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
  border-left: 3px solid transparent;
}
.nav-sub li a:hover {
  background: var(--bg-gray-light);
  color: var(--color-primary) !important;
  border-left-color: var(--color-accent);
  padding-left: 23px !important;
}
.nav-sub-meta {
  font-style: normal;
  font-size: 12px;
  opacity: 0.55;
  color: inherit;
}

.nav-list li.has-sub:hover .nav-sub,
.nav-list li.has-sub:focus-within .nav-sub,
.nav-list li.has-sub.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* has-sub 带箭头提示 */
.nav-list li.has-sub > a::after {
  content: ' ▾';
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s;
}
.nav-list li.has-sub:hover > a::after {
  opacity: 1;
}

/* ===== 方案 D：专业内容 Mega 面板 ===== */
.nav-list li.has-mega {
  position: static; /* mega 相对 header.container 居中定位 */
}
/* static 定位时不要用扩大 ::after，否则会盖住整条导航 */
.nav-list li.has-mega::after {
  display: none;
}
.nav-mega {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 48px));
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition: opacity 0.12s ease, visibility 0.12s;
  z-index: 9999;
  overflow: visible;
}
/* 顶部透明热区，消除「导航条 ↔ 面板」空隙导致的点不中 */
.nav-mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}
.nav-list li.has-mega:hover .nav-mega,
.nav-list li.has-mega:focus-within .nav-mega,
.nav-list li.has-mega.open .nav-mega,
.nav-list li.has-mega.is-open .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}
.nav-mega-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.nav-mega-col {
  padding: 22px 24px 24px;
}
.nav-mega-cats {
  background: var(--bg-gray-light);
  border-right: 1px solid var(--border-color);
}
.nav-mega-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.nav-mega-all {
  display: inline-block;
  font-size: 13px !important;
  color: var(--color-primary) !important;
  opacity: 1 !important;
  margin-bottom: 14px;
  font-weight: 600;
}
.nav-mega-cat-list,
.nav-mega-hot-list,
.nav-mega-kids {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mega-cat {
  margin-bottom: 10px;
}
.nav-mega-group {
  margin-bottom: 14px;
}
.nav-mega-group:last-of-type {
  margin-bottom: 8px;
}
.nav-mega-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent, #b8860b);
  margin: 0 0 6px;
}
.nav-mega-cat-link {
  display: block !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text-title) !important;
  opacity: 1 !important;
  padding: 4px 0 !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}
.nav-mega-cat-name {
  display: block;
}
.nav-mega-cat-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0;
  line-height: 1.4;
}
.nav-mega-cat-link:hover {
  color: var(--color-accent) !important;
}
.nav-mega-cat-link:hover .nav-mega-cat-hint {
  color: var(--text-secondary, #64748b) !important;
}
.nav-mega-tools--left {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.nav-mega-tools--left a {
  font-weight: 600 !important;
  color: var(--color-primary) !important;
}
.nav-mega-kids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  padding-left: 2px;
}
.nav-mega-kids a {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  opacity: 1 !important;
  padding: 2px 0 !important;
  white-space: nowrap !important;
}
.nav-mega-kids a:hover {
  color: var(--color-primary) !important;
}
.nav-mega-hot-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.nav-mega-rank {
  flex: 0 0 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-gray-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.nav-mega-hot-list li:nth-child(-n+3) .nav-mega-rank {
  background: rgba(212, 175, 55, 0.18);
  color: var(--color-warning);
}
.nav-mega-hot-list a {
  display: block !important;
  opacity: 1 !important;
  white-space: normal !important;
  line-height: 1.45;
  padding: 0 !important;
}
.nav-mega-hot-list a strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
}
.nav-mega-hot-list a:hover strong {
  color: var(--color-accent);
}
.nav-mega-hot-list a em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.nav-mega-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-mega-topics a {
  font-size: 12px !important;
  color: var(--color-primary) !important;
  opacity: 1 !important;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  padding: 5px 12px !important;
  white-space: nowrap !important;
}
.nav-mega-topics a:hover {
  background: rgba(212, 175, 55, 0.18);
  color: var(--color-warning) !important;
}
.nav-mega-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.nav-mega-tools a {
  font-size: 13px !important;
  color: #475569 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  padding: 0 !important;
}
.nav-mega-tools a:hover {
  color: var(--color-accent) !important;
}
.nav-mega-empty {
  font-size: 13px;
  color: var(--gray-400);
  padding: 8px 0;
}

.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-white);
  opacity: 0.85;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.nav-search:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  opacity: 1;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 188px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s, background 0.2s, width 0.25s ease, box-shadow 0.2s;
}
.header-search:focus-within {
  width: 220px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.header-search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.header-search:focus-within .header-search-icon {
  color: var(--color-accent);
}
.header-search-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  padding: 0 14px 0 36px;
}
.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.header-cta {
  padding: 8px 20px;
  font-size: 13px;
  flex-shrink: 0;
  height: 38px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  /* 移动端触控目标 ≥44px */
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  transition: 0.2s;
}

/* ====================== 页脚 ====================== */
.site-footer {
  background: var(--color-primary);
  padding: 48px 0 28px;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.footer-brand p,
.footer-slogan {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 14px;
}

.footer-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.footer-phone-cta:hover {
  background: rgba(212, 175, 55, 0.28);
  color: #f5d76e;
  transform: translateY(-1px);
}

.footer-col h5 {
  font-size: 14px;
  color: var(--text-white);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
  line-height: 1.5;
}

.footer-col a:hover { color: var(--color-accent); }

.footer-contact-row,
.footer-contact-addr {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none;
}
.footer-contact-row em,
.footer-contact-addr em {
  flex: 0 0 2em;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
  line-height: 1.5;
}
.footer-contact-row span,
.footer-contact-addr span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.footer-links {
  margin-top: 28px;
  padding: 22px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.footer-links-mark {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-accent, #d4af37);
  flex-shrink: 0;
}
.footer-links-head h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}
.footer-links-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}
.footer-links-sub::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.22);
}
.footer-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links-list li {
  margin: 0;
  padding: 0;
}
.footer-links-list a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.footer-links-list a:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
}

.footer-bottom { text-align: center; }

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.footer-disclaimer {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.footer-icp {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.footer-icp a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.footer-icp a:hover {
  color: var(--color-accent, #D4AF37);
  border-bottom-color: rgba(212, 175, 55, 0.8);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ====================== 悬浮咨询按钮 ====================== */
.float-consult {
  position: fixed;
  bottom: 32px;
  right: 32px;
  height: 56px;
  padding: 0 20px 0 16px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
  z-index: 999;
  border: none;
}

.float-consult:hover {
  background: var(--color-accent-hover);
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
}

/* 夜间紧急热线按钮（标红+闪烁动画） */
.float-consult--urgent {
  background: var(--color-danger);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.45);
  animation: floatUrgentBlink 1.4s ease-in-out infinite;
}

.float-consult--urgent:hover {
  background: var(--color-danger-hover);
  color: #fff;
  box-shadow: 0 6px 28px rgba(220, 38, 38, 0.6);
}

@keyframes floatUrgentBlink {
  0%, 100% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(220, 38, 38, 0.85), 0 0 0 4px rgba(220, 38, 38, 0.15); }
}

/* 留置紧急横幅（顶部红色横幅） */
.liuzhi-urgent-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 52px;
  height: auto;
  background: linear-gradient(90deg, #991b1b, var(--color-danger));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 16px;
  font-size: 14px;
  z-index: 1500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  animation: liuzhiBannerIn 0.4s ease-out;
}
/* 留置横幅出现时：顶栏下移，避免被挡住 */
html.has-liuzhi-banner {
  --liuzhi-banner-h: 52px;
}
html.has-liuzhi-banner .site-header {
  top: var(--liuzhi-banner-h);
}
html.has-liuzhi-banner .reading-progress {
  top: var(--liuzhi-banner-h);
}

@keyframes liuzhiBannerIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.liuzhi-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.liuzhi-banner-text {
  font-weight: 500;
}

.liuzhi-banner-btn {
  background: #fff;
  color: var(--color-danger) !important;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

.liuzhi-banner-btn:hover {
  transform: scale(1.05);
  background: #fef2f2;
}

@media (max-width: 768px) {
  .liuzhi-urgent-banner {
    font-size: 12px;
    gap: 8px;
    padding: 0 12px;
  }
  .liuzhi-banner-text { font-size: 12px; }
  .liuzhi-banner-btn { padding: 5px 12px; font-size: 12px; }
}

/* ====================== 右侧悬浮 AI 法律工具面板 ====================== */
.ai-float-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
}

/* 折叠状态：贴边竖条按钮 */
.ai-float-toggle {
  position: relative;
  right: 0;
  width: 44px;
  height: auto;
  min-height: 80px;
  background: linear-gradient(180deg, var(--color-primary) 0%, #2D3A50 100%);
  color: #fff;
  border: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  box-shadow: -4px 4px 20px rgba(26, 35, 50, 0.25);
  transition: right 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  z-index: 10;
}
.ai-float-toggle:hover {
  background: linear-gradient(180deg, #2D3A50 0%, #3F4E68 100%);
  box-shadow: -6px 6px 24px rgba(26, 35, 50, 0.35);
}
.ai-float-toggle svg {
  flex-shrink: 0;
}
.ai-float-toggle span {
  font-size: 11px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.9;
}

/* 展开状态：面板滑出 */
.ai-float-panel.open .ai-float-toggle {
  right: 0;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-primary);
  box-shadow: -6px 6px 24px rgba(212, 175, 55, 0.45);
  z-index: 11;
}
.ai-float-panel.open .ai-float-toggle:hover {
  background: linear-gradient(180deg, #E2C048 0%, #C9A634 100%);
}

/* 弹出菜单 */
.ai-float-menu {
  position: fixed;
  right: -250px;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  background: #fff;
  border-radius: 14px 0 0 14px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              visibility 0.3s ease;
  z-index: 5;
  border-left: 3px solid var(--color-accent);
}
.ai-float-panel.open .ai-float-menu {
  right: 0;
  opacity: 1;
  visibility: visible;
}

/* 菜单头部 */
.ai-float-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2D3A50 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ai-float-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-float-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 菜单项 */
.ai-float-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s, padding-left 0.2s;
  cursor: pointer;
}
.ai-float-item:last-child {
  border-bottom: none;
}
.ai-float-item:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 100%);
  padding-left: 20px;
}
.ai-float-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray-light);
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.2s;
}
.ai-float-item:hover .ai-float-icon {
  background: rgba(212, 175, 55, 0.18);
  transform: scale(1.05);
}
.ai-float-text {
  flex: 1;
  min-width: 0;
}
.ai-float-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.ai-float-text em {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--text-muted);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .ai-float-toggle {
    width: 42px;
    min-height: 72px;
    padding: 10px 5px;
  }
  .ai-float-toggle span {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .ai-float-menu {
    width: 200px;
    right: -200px;
  }
  .ai-float-panel.open .ai-float-menu {
    right: 0;
  }
  .ai-float-item {
    padding: 12px 14px;
  }
  .ai-float-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .ai-float-text strong {
    font-size: 13px;
  }
  .ai-float-text em {
    font-size: 11px;
  }
}

/* ====================== 咨询弹窗 & 表单 ====================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  max-height: min(90vh, 920px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  background: var(--color-primary);
  color: var(--text-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  /* 扩大触控目标（视觉仍是 × 符号） */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover { color: var(--color-accent); }

.modal-body {
  background: var(--bg-card);
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-title);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-body);
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg-page);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* 表单双列栅格（全局补充：原仅 contact.css 有作用域限定版本，
   sentence 主表单 / lawyer-match 等页面复用时无样式导致字段竖向堆叠） */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
}

.modal-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* 电话咨询弹窗（电脑端） */
.phone-modal-box {
  max-width: 400px;
}
.phone-modal-body {
  text-align: center;
  padding-top: 8px;
}
.phone-modal-lawyer {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.phone-modal-number {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-title);
  margin: 8px 0 16px;
  font-variant-numeric: tabular-nums;
}
.phone-modal-tip {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.phone-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.phone-modal-actions .btn-solid,
.phone-modal-actions .btn-ghost {
  min-width: 120px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-text-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  font-weight: 500;
  cursor: pointer;
}
.phone-text-btn:hover {
  color: var(--color-accent);
}

/* ====================== CTA 转化区（内页通用） ====================== */
.cta-section {
  padding: 60px 0 80px;
  background: var(--bg-page);
}

.cta-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}

.cta-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  font-size: 16px;
  padding: 14px 40px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cta-actions .btn-solid,
.cta-actions .btn-ghost,
.cta-actions .cta-btn,
.cta-actions .btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  min-height: 48px;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}
.cta-card .btn-lg {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
}

.cta-card .btn-ghost,
.cta-card .cta-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.cta-card .btn-ghost:hover,
.cta-card .cta-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

/* ====================== 通用卡片 ====================== */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 16px;
  color: var(--text-title);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

/* ====================== 响应式（共享组件） ====================== */
@media (max-width: 1280px) {
  .nav-list { gap: 20px; }
  .nav-list a { font-size: 13px; }
  .header-cta { padding: 8px 16px; font-size: 12px; }
  .logo { font-size: 16px; }
}

@media (max-width: 1100px) {
  /* 屏幕较窄时：提前切汉堡菜单，避免一级菜单被挤出视口 */
  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    position: fixed;
    top: calc(68px + var(--liuzhi-banner-h, 0px));
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1100;
    max-height: calc(100vh - 68px - var(--liuzhi-banner-h, 0px));
    overflow-y: auto;
  }

  .nav-list.open { display: flex; }

  body.nav-open .float-consult,
  body.nav-open .ai-float-panel,
  body.nav-open .back-to-top {
    visibility: hidden;
    pointer-events: none;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 15px !important;
  }

  /* 汉堡菜单模式下：has-sub 点击展开/收起子项 */
  .nav-list li.has-sub > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-list li.has-sub > a::after {
    content: '▼';
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.25s;
  }
  .nav-list li.has-sub.open > a::after {
    transform: rotate(180deg);
  }
  .nav-sub {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 8px 16px !important;
    border-radius: 0 !important;
    display: none !important;
    min-width: auto !important;
  }
  .nav-sub::before { display: none !important; }
  .nav-list li.has-sub::after { display: none !important; }
  .nav-list li.has-sub.open .nav-sub {
    display: block !important;
  }
  .nav-list li.has-mega {
    position: relative;
  }
  /* 专业内容 Mega：手机改为深色手风琴，避免浅底+浅字看不见 */
  .nav-mega {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: none !important;
    margin: 0;
    padding: 0 0 10px !important;
    overflow: visible !important;
    z-index: auto !important;
  }
  .nav-mega::before { display: none !important; }
  .nav-list li.has-mega.open .nav-mega,
  .nav-list li.has-mega.is-open .nav-mega {
    display: block !important;
  }
  .nav-mega-inner {
    display: block !important;
    min-height: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    grid-template-columns: none !important;
  }
  .nav-mega-col {
    padding: 4px 0 8px 4px !important;
    background: transparent !important;
    border: none !important;
  }
  .nav-mega-cats {
    background: transparent !important;
    border-right: none !important;
  }
  .nav-mega-title {
    color: rgba(255, 255, 255, 0.42) !important;
    margin: 10px 0 8px !important;
    font-size: 11px !important;
  }
  .nav-mega-all {
    display: inline-flex !important;
    align-items: center;
    margin: 0 0 10px !important;
    padding: 8px 0 !important;
    color: var(--color-accent) !important;
    font-size: 14px !important;
  }
  .nav-mega-cat {
    margin-bottom: 2px !important;
  }
  .nav-mega-cat-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 0 !important;
  }
  .nav-mega-kids {
    padding: 0 0 6px 14px !important;
  }
  .nav-mega-kids a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
    padding: 8px 0 !important;
    display: block !important;
  }
  /* 手机导航只保留栏目，热门/专题/工具进独立页，避免菜单过长难用 */
  .nav-mega-hot {
    display: none !important;
  }
  .nav-mega-empty {
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 8px 0;
  }
  .nav-sub li {
    border-bottom: none;
  }
  .nav-sub li a {
    padding: 10px 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }
  .nav-sub li a:hover {
    background: transparent !important;
    color: var(--color-accent) !important;
  }
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header-cta { display: none; }
  .logo { max-width: calc(100vw - 130px); }
  .header-tools { gap: 6px; }
  .header-search {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  .header-search-icon {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  /* 透明输入层铺满按钮，可点击聚焦（禁止 pointer-events:none） */
  .header-search-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    z-index: 2;
    font-size: 16px; /* 避免 iOS 聚焦放大 */
    caret-color: transparent;
  }
  /* 展开：固定顶栏浮层，不挤掉汉堡位置 */
  .header-tools:has(.header-search:focus-within)::before {
    content: '';
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .header-search:focus-within {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: calc(10px + var(--liuzhi-banner-h, 0px));
    width: auto;
    height: 48px;
    z-index: 1200;
    background: rgba(15, 24, 37, 0.98);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
  .header-search:focus-within .header-search-icon {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
  }
  .header-search:focus-within .header-search-input {
    opacity: 1;
    padding: 0 14px 0 42px;
    caret-color: #fff;
  }

  .section {
    padding: 48px 0;
  }

  /* ===== 页脚 · 手机端 ===== */
  .site-footer {
    padding: 36px 0 calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    padding-bottom: 22px;
    margin-bottom: 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0 4px 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-logo {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .footer-slogan {
    font-size: 12.5px;
    line-height: 1.7;
    max-width: 22em;
    margin: 0 auto 16px;
  }

  .footer-phone-cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 18px;
    font-size: 15px;
  }

  .footer-col h5 {
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 0.06em;
  }

  .footer-col a {
    font-size: 12.5px;
    margin-bottom: 8px;
    padding: 2px 0;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-col--contact h5 {
    margin-bottom: 12px;
    text-align: center;
  }

  .footer-contact-row,
  .footer-contact-addr {
    padding: 10px 4px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .footer-contact-addr { border-bottom: 0; }
  .footer-contact-row:active {
    color: var(--color-accent) !important;
  }

  .footer-links {
    margin-top: 12px !important;
    padding: 18px 0 6px !important;
  }
  .footer-links-head {
    justify-content: center;
    margin-bottom: 12px !important;
  }
  .footer-links-list {
    justify-content: center;
    gap: 8px !important;
  }
  .footer-links-list a {
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .footer-links-list a:hover {
    color: #fff !important;
    background: rgba(212, 175, 55, 0.14) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
  }

  .footer-bottom {
    padding-top: 6px;
  }
  .footer-bottom p {
    font-size: 11px;
    line-height: 1.65;
    margin-bottom: 5px;
  }
  .footer-disclaimer {
    max-width: none;
    padding: 0 4px;
  }

  /* 悬浮按钮 → 圆形图标 + safe-area */
  .float-consult {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .float-consult span { display: none; }

  .ai-float-panel {
    top: auto;
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    transform: none;
    right: 0;
  }
  .ai-float-toggle {
    min-height: 64px;
  }

  /* Page Hero */
  .page-hero h1 { font-size: 26px; }

  /* CTA */
  .cta-card { padding: 36px 20px; }
  .cta-card h2 { font-size: 22px; }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-actions .btn-solid,
  .cta-actions .btn-ghost,
  .cta-actions .btn-lg,
  .cta-actions .cta-btn {
    width: 100%;
  }
  .cta-section {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* 返回顶部：叠在咨询球上方，避开 AI 条 */
  .back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
  }
}

/* ====================== Toast 提示 ====================== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.toast--show {
  transform: translateX(-50%) translateY(0);
}

.toast--error {
  background: #D32F2F;
  color: #fff;
}

.toast--success {
  background: #2E7D32;
  color: #fff;
}

/* ====================== 返回顶部按钮 ====================== */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
}

/* ========== GEO 可引用摘要 ========== */
.geo-cite-box {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-left: 4px solid #1a2233;
  background: linear-gradient(135deg, #f7f8fa 0%, #eef1f5 100%);
  border-radius: 0 10px 10px 0;
}
.geo-cite-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e6a017;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.geo-cite-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #1a2233;
  font-weight: 500;
}
.geo-cite-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
.geo-cite-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--gray-400);
}
.geo-plain-box {
  margin: 12px 0 18px;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}
.lawyer-hero .geo-cite-box {
  background: linear-gradient(135deg, #f7f8fa 0%, #eef1f5 100%);
  border-left-color: #e6a017;
  color: inherit;
}
.lawyer-hero .geo-cite-text,
.lawyer-hero .geo-cite-meta {
  color: #1a2233;
}
.lawyer-hero .geo-cite-note {
  color: var(--gray-400);
}
.geo-faq-block {
  margin: 28px 0 8px;
  padding-top: 8px;
}
.geo-faq-title {
  margin: 0 0 14px;
  font-size: 20px;
}
.geo-faq-item {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #fff;
}
.geo-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1a2233;
}
.geo-faq-a {
  margin-top: 10px;
  color: #475569;
  line-height: 1.7;
  font-size: 14px;
}

/* ========== 全站分页（办案成果/专业内容/标签/罪名等共用） ========== */
.pagination-wrap,
.tag-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  padding: 8px 0 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span,
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm, 6px);
  font-size: 14px;
  line-height: 1;
  color: var(--text-body, #334155);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.pagination a:hover,
.pagination button:hover:not(:disabled) {
  border-color: var(--color-accent, #c9a227);
  color: var(--text-title, #0f172a);
}
.pagination .active,
.pagination span.active,
.pagination button.active {
  background: var(--color-primary, #1a2332);
  border-color: var(--color-primary, #1a2332);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
.pagination .ellipsis,
.pagination .page-ellipsis {
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  cursor: default;
  min-width: 24px;
}
.pagination .disabled,
.pagination span.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.pagination .prev,
.pagination .next {
  font-size: 16px;
}

