/* ============================================================
   易夫法律 —— 全球法律服务提供平台
   一期 · 中文版 · 静态站点样式
   ============================================================ */

:root {
  --navy: #0F2B46;
  --navy-2: #1E4A7A;
  --navy-3: #16395c;
  --gold: #C9A14A;
  --gold-soft: #E4C989;
  --bg: #F7F8FA;
  --bg-card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #6B7280;
  --line: #E6E9EF;
  --success: #2E9E5B;
  --danger: #D9534F;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 43, 70, .06);
  --shadow-md: 0 8px 24px rgba(15, 43, 70, .10);
  --shadow-lg: 0 16px 40px rgba(15, 43, 70, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", Cambria, serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--ink-2); letter-spacing: 2px; margin-top: -2px; }
.brand-logo-img { height: 64px; width: auto; display: block; }
.footer-logo { height: 66px; width: auto; display: block; border-radius: 6px; margin-bottom: 14px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; color: #33475c; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--navy); background: #eef3f8; }
.nav-links a.active { color: var(--navy); font-weight: 600; background: #e9f0f7; }
.nav-links a.nav-cta {
  background: var(--gold); color: #fff; font-weight: 600; padding: 10px 20px; margin-left: 8px;
  box-shadow: 0 4px 12px rgba(201, 161, 74, .35);
}
.nav-links a.nav-cta:hover { background: #b8913d; color: #fff; }

/* ---------- 下拉导航 ---------- */
.nav-item { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 8px; color: #33475c; font-size: 15px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.nav-caret { font-size: 10px; opacity: .55; }
.nav-item.has-dropdown:hover > .nav-dropdown-toggle,
.nav-item.has-dropdown.active > .nav-dropdown-toggle { color: var(--navy); background: #eef3f8; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 180px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.nav-item.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #33475c; font-size: 15px; font-weight: 500;
}
.nav-dropdown a:hover { background: #eef3f8; color: var(--navy); }
.nav-dropdown a.active { background: #e9f0f7; color: var(--navy); font-weight: 600; }
.lang-switch { position: relative; margin-left: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 2px; border: none; background: none;
  cursor: pointer; font-size: 14px; color: #33475c; line-height: 1;
}
.lang-toggle:hover { color: var(--navy); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; padding: 6px;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10); z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s ease;
}
.lang-switch.open .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  color: #33475c; font-size: 14px; font-weight: 500;
}
.lang-dropdown a:hover { background: #eef3f8; color: var(--navy); }
.lang-dropdown a.active { background: #e9f0f7; color: var(--navy); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 9px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(201, 161, 74, .35); }
.btn-gold:hover { background: #b8913d; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 600px at 80% -10%, #1E4A7A 0%, var(--navy) 45%, #0a1f33 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 88px; max-width: 860px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 3px; color: var(--gold-soft);
  border: 1px solid rgba(228, 201, 137, .4); padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero h1 { font-family: var(--serif); font-size: 46px; line-height: 1.25; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 30px; font-weight: 700; color: var(--gold-soft); font-family: var(--serif); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- 区块通用 ---------- */
.section { padding: 80px 0; }
.section.tinted { background: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow { font-size: 13px; letter-spacing: 3px; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.section-head h2 { font-family: var(--serif); font-size: 32px; line-height: 1.35; color: var(--navy); margin: 10px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 16px; }
.section-foot { text-align: center; margin-top: 40px; }

/* ---------- 全球地图 ---------- */
.world-map-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.10);
}
.world-map-tip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 16px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.world-map-tip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(201,161,74,.5); }
.world-map { position: relative; width: 100%; }

.map-svg-container { position: relative; width: 100%; padding-bottom: 51.67%; background: #eef3f8; }
.map-svg-container svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 国家配色（详细世界地图） */
.country-bg { fill: #e8ecf0; stroke: #fff; stroke-width: 0.4; transition: fill .25s; }
.country-bg:hover { fill: #d4d9df; }
.country-focus { fill: var(--gold); stroke: #fff; stroke-width: 1; cursor: pointer; transition: all .3s; filter: drop-shadow(0 3px 6px rgba(201,161,74,.5)); }
.country-focus:hover { fill: var(--gold-soft); filter: drop-shadow(0 6px 12px rgba(201,161,74,.7)); }
.country-available { fill: #6b9fd4; stroke: #fff; stroke-width: 0.6; cursor: pointer; transition: all .3s; }
.country-available:hover { fill: #8ab8e8; filter: drop-shadow(0 2px 4px rgba(107,159,212,.4)); }
[data-country] { cursor: pointer; }

/* 标记 overlay */
.map-markers-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.map-marker-dot { position: absolute; pointer-events: auto; cursor: pointer; transform: translate(-50%, -50%); transition: all .3s; }
.map-marker-dot .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); margin: 0 auto; }
.map-marker-dot .dot.pulse { animation: dotPulse 2s infinite; }
.map-marker-dot:hover .dot { transform: scale(1.4); }
.map-marker-dot .label { font-size: 11px; font-weight: 700; color: #1f2937; text-align: center; white-space: nowrap; margin-top: 2px; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,161,74,.6); }
  50% { box-shadow: 0 0 0 12px rgba(201,161,74,0); }
}

/* tooltip */
.map-tooltip { position: fixed; z-index: 200; pointer-events: none; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .15s ease; box-shadow: var(--shadow-md); white-space: nowrap; }

.map-legend { display: flex; gap: 24px; flex-wrap: wrap; padding: 16px 24px; background: #fff; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-dot.gold { background: var(--gold); }
.legend-dot.blue { background: #6b9fd4; }
.legend-dot.gray { background: #cbd5e0; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  min-width: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #eef3f8; color: var(--navy); margin-bottom: 16px; font-size: 24px;
}

/* ---------- 律师卡片 ---------- */
.lawyer-card { display: flex; flex-direction: column; }
.lawyer-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700; font-family: var(--serif);
}
.lawyer-name { font-size: 17px; font-weight: 600; color: var(--navy); }
.lawyer-qual { font-size: 13px; color: var(--gold); font-weight: 500; margin-top: 2px; }
.lawyer-firm { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.lawyer-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); }
.lawyer-meta span { background: #f2f5f9; padding: 3px 10px; border-radius: 100px; }
.lawyer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.lawyer-link { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gold); font-weight: 600; }
.lawyer-avatar { flex: none; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #eef2f7; display: block; }
.lawyer-zh { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ---------- 合作律所 ---------- */
.firm-card { display: flex; flex-direction: column; }
.firm-logo-wrap {
  height: 96px; display: flex; align-items: center; justify-content: center;
  background: #1f2937; border: 1px solid #111827; border-radius: 8px;
  padding: 12px; margin-bottom: 16px; overflow: hidden;
}
.firm-logo-wrap img { max-height: 72px; max-width: 100%; object-fit: contain; }
.firm-zh { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.firm-meta { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.country-block { margin-bottom: 64px; }
.country-block:last-child { margin-bottom: 0; }

/* ---------- 国家筛选 chip ---------- */
.country-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 100px;
  padding: 7px 16px; font-size: 14px; cursor: pointer; color: var(--ink);
  font-family: var(--font); transition: all .2s ease;
}
.country-chip:hover { border-color: var(--gold); color: var(--navy); }
.country-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 律所介绍事实条 ---------- */
.firm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.firm-facts .fact span { display: block; font-size: 13px; color: var(--ink-2); }
.firm-facts .fact b { display: block; font-size: 15px; color: var(--navy); font-weight: 600; margin-top: 3px; line-height: 1.5; }
.firm-facts .fact a { font-size: 15px; font-weight: 600; color: var(--navy-2); word-break: break-all; }
.firm-ranking { background: #f5efe2; border-radius: 8px; padding: 13px 16px; margin-bottom: 22px; font-size: 14px; color: #9a7a34; line-height: 1.7; }
.firm-ranking b { color: var(--navy); }

/* ---------- 业务领域两行截断 ---------- */
.firm-areas { position: relative; display: flex; flex-wrap: wrap; gap: 8px; max-height: 66px; overflow: hidden; }
.firm-areas.more::after {
  content: '…';
  position: absolute; right: 0; bottom: 2px;
  padding-left: 18px;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 55%);
  font-size: 15px; font-weight: 700; color: var(--ink-2); line-height: 24px;
}
.tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; background: #f5efe2; color: #9a7a34; font-size: 12.5px; padding: 4px 11px; border-radius: 100px; font-weight: 500; white-space: nowrap; }

/* ---------- 国家卡片 ---------- */
.country-card { display: flex; flex-direction: column; }
.country-flag { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.country-card h3 { margin-bottom: 4px; }
.country-card .law-system { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.country-stats { display: flex; gap: 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.country-stats b { color: var(--navy); font-size: 15px; }

/* ---------- 覆盖国家与地区（首页卡片网格） ---------- */
.countries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.country-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; cursor: pointer; transition: all .3s ease; display: flex; flex-direction: column;
}
.country-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.country-tile .flag { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.country-tile h3 { color: var(--navy); font-size: 18px; margin-bottom: 2px; }
.country-tile h3 small { color: #9ca3af; font-weight: 400; font-size: 13px; }
.country-tile .region-tag {
  display: inline-block; align-self: flex-start; font-size: 12px; color: var(--ink-2);
  background: #f3f4f6; padding: 2px 10px; border-radius: 20px; margin: 8px 0 10px;
}
.status-badge { display: inline-block; align-self: flex-start; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.status-badge.status-gold { background: #f5efe2; color: #9a7a34; }
.status-badge.status-green { background: #d1fae5; color: #065f46; }
.country-tile .services { list-style: none; margin-top: 4px; }
.country-tile .services li { font-size: 14px; color: var(--ink-2); padding: 3px 0; padding-left: 16px; position: relative; }
.country-tile .services li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.country-tile .services li.more { color: var(--gold); }

/* ---------- 诉讼指引国旗网格 ---------- */
.guide-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.flag-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.flag-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.flag-emoji { font-size: 46px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(15,43,70,.12)); }
.flag-name { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font); }
.faq-q .faq-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eef3f8; display: flex; align-items: center; justify-content: center; color: var(--navy); transition: transform .25s ease; font-size: 18px; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-field label .req { color: var(--danger); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(30, 74, 122, .12);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field .err { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: var(--danger); }
.form-field.invalid .err { display: block; }
.form-hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); grid-column: 1 / -1; }
.checkbox-row input { width: auto; margin-top: 4px; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: #e8f6ee; color: var(--success); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success h3 { color: var(--navy); font-size: 22px; margin-bottom: 10px; }

/* ---------- 面包屑 / 页头 ---------- */
.page-head { background: var(--navy); color: #fff; padding: 56px 0 60px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; opacity: .05; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 44px 44px; }
.page-head .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--gold-soft); }
.page-head h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; }
.page-head p { color: rgba(255,255,255,.82); max-width: 640px; margin-top: 12px; font-size: 16px; }

/* ---------- 筛选栏 ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.filter-bar label { font-size: 14px; color: var(--ink-2); }
.filter-bar select, .filter-bar input {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: var(--font); background: #fff; min-width: 150px;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--navy-2); }
.filter-count { margin-left: auto; font-size: 14px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1f33; color: rgba(255,255,255,.7); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; color: rgba(255,255,255,.6); }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(255,255,255,.65); font-size: 14px; }
.site-footer ul a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- 分步 / 指引 ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; margin-bottom: 22px; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); }
.step h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 14.5px; }
.step-link { border-radius: 10px; transition: background .2s ease, box-shadow .2s ease; }
.step-link:hover { background: #fafbfd; box-shadow: var(--shadow-sm); }
.step-link:hover h4 { color: var(--gold); }
.step-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---------- 八大服务领域（手风琴） ---------- */
.service-accordion { display: flex; flex-direction: column; gap: 14px; }
.service-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease; }
.service-group.open { border-color: var(--gold); box-shadow: var(--shadow-md); }
.service-group-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; user-select: none; }
.service-group-header:hover { background: #fafbfd; }
.service-group-icon { width: 46px; height: 46px; border-radius: 12px; background: #eef3f8; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.service-group-num { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold); width: 36px; flex: none; }
.service-group-title { flex: 1; }
.service-group-title h3 { color: var(--navy); font-size: 18px; }
.service-group-toggle { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #eef3f8; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 18px; line-height: 1; transition: transform .3s ease; }
.service-group.open .service-group-toggle { transform: rotate(45deg); background: var(--gold); color: #fff; }
.service-group-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.service-group-body-inner { padding: 4px 24px 24px; }
.service-group-body h4 { color: var(--navy); font-size: 15px; margin: 14px 0 6px; }
.service-scope { list-style: none; }
.service-scope li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2); display: flex; gap: 10px; }
.service-scope li:last-child { border-bottom: none; }
.service-scope .scope-arrow { color: var(--gold); flex: none; font-weight: 700; }
.service-scope li strong { color: var(--navy); font-weight: 600; }

/* ---------- 诉讼流程（流程图提取） ---------- */
.flow-timeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; }
.ft-step { background: #fff; border: 1px solid var(--line); padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.ft-step:first-child { border-color: var(--gold); color: var(--gold); }
.ft-arrow { color: #c3cad3; font-size: 15px; }

.phase-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; list-style: none; }
.phase-steps li { position: relative; padding: 6px 0 6px 16px; font-size: 14px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.phase-steps li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 560px) { .phase-steps { grid-template-columns: 1fr; } }

/* ---------- 侧边 CTA ---------- */
.cta-banner { background: linear-gradient(120deg, var(--navy), var(--navy-2)); border-radius: var(--radius); color: #fff; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.8); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 80px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; }
  .lang-switch { margin-left: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-item.has-dropdown { display: flex; flex-direction: column; }
  .nav-dropdown-toggle { padding: 13px 14px; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0; padding: 0 0 2px 14px;
  }
  .nav-dropdown a { padding: 11px 14px; }
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding: 64px 0 56px; }
  .hero h1 { font-size: 29px; }
  .hero-stats { gap: 28px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .page-head h1 { font-size: 30px; }
  .form-card { padding: 24px 20px; }
  .cta-banner { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-count { margin-left: 0; }
}

/* ============================================================
   易夫法律 (English) — additional components
   ============================================================ */

/* ---------- region / city tiles ---------- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.region-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; cursor: pointer; transition: all .3s ease; display: flex; flex-direction: column; gap: 6px;
}
.region-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.region-tile h3 { color: var(--navy); font-size: 17px; }
.region-tile .region-city { font-size: 13px; color: var(--ink-2); }
.region-tile .region-count { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---------- card footer link (legal need / sector) ---------- */
.need-card, .sector-card { display: flex; flex-direction: column; }
.card-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---------- "why choose us" feature list ---------- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 16px; }
.feature .feature-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #eef3f8; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.feature h3 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- China map (provinces) ---------- */
.china-map-svg-container { position: relative; width: 100%; padding-bottom: 70.63%; background: #e9eff5; overflow: hidden; }
.china-map-svg-container svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.province { fill: #eef2f6; stroke: #8aa2bb; stroke-width: 0.7; stroke-linejoin: round; transition: fill .2s ease; cursor: pointer; }
.province:hover { fill: #d6e4f2; }
.province.hot { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 0.9; }
.province.hot:hover { fill: #f0dca8; }
.province.mid { fill: #d6e4f2; stroke: #6b9fd4; stroke-width: 0.9; }
.province.mid:hover { fill: #c3d9ee; }

.map-city { cursor: pointer; }
.map-city circle { fill: #6b9fd4; stroke: #fff; stroke-width: 1; transition: r .2s ease; }
.map-city.t1 circle, .map-city.has-lawyers circle { fill: var(--gold); stroke: #fff; stroke-width: 1.2; }
.map-city:hover circle { stroke: var(--navy); }
.map-city text {
  font-family: var(--font); font-size: 10px; fill: #2b3a4a; text-anchor: middle;
  paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round;
}
.map-city.t1 text, .map-city.has-lawyers text { font-size: 11px; font-weight: 700; fill: #0F2B46; }

/* ---------- meta / info strip ---------- */
.info-strip { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.info-strip b { color: var(--navy); font-weight: 600; }

/* ---------- English headline tuning ---------- */
.hero h1 { font-family: var(--serif); font-size: 44px; line-height: 1.22; }
.brand-logo-img { height: 64px; }
@media (max-width: 860px) { .hero h1 { font-size: 32px; } }
@media (max-width: 560px) { .hero h1 { font-size: 27px; } }

/* ============================================================
   Common pitfalls — tabbed section + article pages
   ============================================================ */

/* ---------- tab bar ---------- */
.pitfall-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pitfall-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 100px;
  padding: 10px 18px; font-size: 14.5px; cursor: pointer; color: var(--ink);
  font-family: var(--font); font-weight: 500; transition: all .2s ease; white-space: nowrap;
}
.pitfall-tab .pt-count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 100px;
  background: #eef3f8; color: var(--ink-2); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pitfall-tab:hover { border-color: var(--gold); color: var(--navy); }
.pitfall-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pitfall-tab.active .pt-count { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- panels ---------- */
.pitfall-panel { display: none; }
.pitfall-panel.active { display: block; animation: pitfallIn .3s ease; }
@keyframes pitfallIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pitfall-panel-desc { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }

.pitfall-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .pitfall-list { grid-template-columns: minmax(0, 1fr); } }

.pitfall-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pitfall-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.pitfall-item .p-num { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px; }
.pitfall-item h4 { font-size: 16.5px; color: var(--navy); line-height: 1.4; }
.pitfall-item:hover h4 { color: var(--gold); }
.pitfall-item ul { list-style: none; }
.pitfall-item ul li { font-size: 14px; color: var(--ink-2); padding: 4px 0 4px 16px; position: relative; }
.pitfall-item ul li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.pitfall-item ul li strong { color: var(--navy); }

/* ---------- article pages ---------- */
.article-body h2 {
  font-family: var(--serif); font-size: 22px; color: var(--navy);
  margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 16.5px; color: var(--navy); margin: 22px 0 8px; }
.article-body p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.article-body li ul { list-style: disc; margin-top: 6px; }
.article-body strong { color: var(--navy); }
.article-body a { color: var(--navy-2); text-decoration: underline; }
.article-body a:hover { color: var(--gold); }
.article-body em { color: var(--ink); }

.key-takeaway {
  background: #f5efe2; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0;
  padding: 20px 22px; margin-top: 26px;
}
.key-takeaway h2 { border-bottom: none; margin: 0 0 10px; padding-bottom: 0; color: #9a7a34; }
.key-takeaway p { margin-bottom: 0; color: #6b5430; }
.key-takeaway strong { color: var(--navy); }

/* ---------- prev / next nav on article pages ---------- */
.pitfall-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 24px 0; flex-wrap: wrap;
}
.pitfall-nav a { font-size: 14px; font-weight: 600; color: var(--navy-2); }
.pitfall-nav a:hover { color: var(--gold); }
.pitfall-nav-all a { color: var(--gold); }

/* keep the pitfalls section title on a single line */
.section-head h2.oneline { white-space: nowrap; }
@media (max-width: 860px) { .section-head h2.oneline { font-size: 25px; } }
@media (max-width: 560px) { .section-head h2.oneline { font-size: 20px; } }
