/* Law Firm - Frontend UI */
:root {
  /* ===== Font Families (报告 §1) ===== */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;

  /* ===== Typography Scale · 1.250 Major Third (报告 §2) ===== */
  --text-display: 56px;
  --text-h1: 44px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-h4: 20px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-micro: 12px;

  /* ===== Spacing · 8px base grid (报告 §5) ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ===== Brand (报告 §6) ===== */
  --navy: #172b57;
  --navy-2: #214476;
  --navy-3: #2d5a9e;
  --gold: #6f511a;
  --gold-2: #b89046;
  --gold-soft: rgba(111,81,26,.08);
  --green: #1f7a5c;

  /* ===== Neutral Gray Scale · 11-step (报告 §6) ===== */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* ===== Semantic (报告 §6) ===== */
  --success: var(--green);
  --warning: #b45309;
  --danger: #b42318;
  --info: var(--navy-3);

  /* ===== Surface Layers (报告 §6) ===== */
  --paper: #f6f3ed;
  --surface: #ffffff;
  --surface-soft: #faf8f3;
  --surface-elevated: #ffffff;

  /* ===== Ink & Borders ===== */
  --ink: #172033;
  --ink-soft: #475569;
  --muted: #6b7280;
  --line: rgba(23,32,51,.11);
  --line-strong: rgba(23,32,51,.14);

  /* ===== Shadow · 5-level system (报告 §4) — 统一基色 rgba(23,32,51) ===== */
  --shadow-xs: 0 1px 2px rgba(23,32,51,.04);
  --shadow-sm: 0 2px 8px rgba(23,32,51,.06);
  --shadow-md: 0 8px 24px rgba(23,32,51,.08);
  --shadow-lg: 0 16px 40px rgba(23,32,51,.10);
  --shadow-xl: 0 24px 56px rgba(23,32,51,.14);
  --shadow-gold: 0 8px 24px rgba(111,81,26,.15);
  /* legacy aliases — 向后兼容，现有引用不破坏 */
  --shadow: var(--shadow-lg);
  --shadow-soft: var(--shadow-md);

  /* ===== Radius ===== */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ===== Responsive Breakpoints (报告 §7) ===== */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Body background: clean, no decorative grid overlay */

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.narrow { width: min(900px, calc(100% - 40px)); }

.section { padding: var(--space-8) 0; }
.section + .section { padding-top: 0; }
.muted-section { background: rgba(255,255,255,.48); border-block: 1px solid var(--line); }

.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }

/* 标题统一衬线 + 负字距 (报告 §1.2) */
h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 700;
}

/* 正文用无衬线 (报告 §1.2) */
p, span, a, input, textarea, select { font-family: var(--font-sans); }

/* 衬线标题覆盖 (报告 §1.2) */
.hero-title, .page-banner h1, .section-heading-wide h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

p { color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 10px 22px rgba(23,32,51,.16); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: rgba(23,32,51,.28); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; color: var(--navy); border-color: rgba(23,32,51,.28); }
.btn-outline:hover { background: rgba(23,32,51,.06); border-color: var(--navy); }
.btn-outline.light { color: #fff; border-color: rgba(255,255,255,.62); }
.btn-outline.light:hover { background: rgba(255,255,255,.12); }
.btn-full { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: rgba(23,32,51,.08);
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.site-header.scrolled,
.site-header:not(.header-transparent) {
  position: fixed;
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-icon,
.logo-img-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logo-icon { background: rgba(255,255,255,.16); color: #fff; }
.site-header.scrolled .logo-icon,
.site-header:not(.header-transparent) .logo-icon { background: var(--navy); color: #fff; }

.logo-img-wrap {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

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

.logo-text .site-brand-name {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: .2px;
}

.logo-text p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  line-height: 1.4;
  white-space: pre-line;
  text-align: left;
  letter-spacing: .3px;
}

.site-header.scrolled .logo-text .site-brand-name,
.site-header:not(.header-transparent) .logo-text .site-brand-name { color: var(--navy); }
.site-header.scrolled .logo-text p,
.site-header:not(.header-transparent) .logo-text p { color: var(--muted); }

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 8px;
}
.main-nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.main-nav a:hover,
.main-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.site-header.scrolled .main-nav a,
.site-header:not(.header-transparent) .main-nav a { color: var(--ink); }
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active,
.site-header:not(.header-transparent) .main-nav a:hover,
.site-header:not(.header-transparent) .main-nav a.active { background: rgba(23,32,51,.08); color: var(--navy); }

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
}

.site-header.scrolled .mobile-menu-btn,
.site-header:not(.header-transparent) .mobile-menu-btn {
  color: var(--navy);
/* hero */
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 650;
}
.hero-copy h1 { color: #fff; font-size: 54px; }
.hero-lead { max-width: 620px; color: rgba(255,255,255,.88); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}
.hero-dots button {
/* home hero pro */
.home-professional .home-hero-v2,.home-professional .home-hero-v2 .taste-hero-inner { min-height:680px; }
.home-professional .home-hero-v2 .taste-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 720px;
  padding: 34px 0 82px;
}
.home-professional .home-hero-v2 .hero-title {
  width: 100%;
  max-width: none;
  min-height: 3.3em;
  margin: 0;
  font-size: clamp(46px, 3.1vw, 58px);
  line-height: 1.1;
  letter-spacing: .015em;
  text-wrap: pretty;
}
.home-professional .home-hero-v2 .hero-lead {
  width: min(620px, 100%);
  min-height: 3.5em;
  margin: 18px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--gold-2);
  font-size: 18px;
  line-height: 1.75;
}
.home-professional .home-hero-v2 .hero-actions {
  align-items: center;
  margin-top: 26px;
}
.home-professional .hero-intake-card li { align-items:flex-start; }
.home-professional .hero-intake-card li div { display:grid; gap:3px; }
.home-professional .hero-intake-card li small { color:#7b8490; font-size:12px; font-weight:400; line-height:1.45; }
.hero-intake-mobile { display:none; }
.hero-carousel-controls { display:flex; align-items:center; gap:8px; margin-top:24px; }
.hero-carousel-controls>button,.hero-carousel-dots button { display:inline-grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid rgba(255,255,255,.32); border-radius:50%; background:rgba(8,18,35,.28); color:#fff; cursor:pointer; }
.hero-carousel-dots { display:flex; align-items:center; gap:7px; padding:0 4px; }
.hero-carousel-dots button { width:24px; height:4px; border:0; border-radius:99px; background:rgba(255,255,255,.35); transition:width .2s ease,background-color .2s ease; }
.hero-carousel-dots button[aria-selected="true"] { width:42px; background:var(--gold-2); }
.hero-carousel-controls button:hover,.hero-carousel-controls button:focus-visible { border-color:var(--gold-2); color:var(--gold-2); outline:none; }
.home-professional .business-bento { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.home-professional .business-card,.home-professional .business-card.active { grid-column:auto; min-height:260px; transform:none; }
.home-professional .business-card:hover { transform:translateY(-3px); }
.home-professional .lawyer-home-section { padding-top:72px; padding-bottom:72px; }
.home-professional .lawyer-grid-featured { gap:16px; }
.home-professional .neutral-seat { background:#fff; }
.professional-seat-visual { display:grid; place-items:center; align-content:center; gap:18px; aspect-ratio:1/1.18; background:linear-gradient(135deg,rgba(184,134,31,.08),transparent 42%),linear-gradient(180deg,#13233f,#0c172c); color:#fff; }
.professional-seat-visual i { color:#d4ad58; font-size:52px; }
.professional-seat-visual span { color:rgba(255,255,255,.5); font-size:11px; letter-spacing:.22em; }
.home-professional .neutral-seat h3 { font-size:18px; }
.home-professional .neutral-seat p { min-height:66px; }
.home-professional .news-card .news-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.home-professional .news-card .news-meta time { color:#8a9098; font-size:12px; }
.home-professional .news-card h3,.home-professional .news-card p { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.home-professional .home-inquiry-phone { display:grid; gap:5px; margin-top:22px; }
.home-professional .home-inquiry-phone span { display:block; }
.home-professional .home-inquiry-phone small { color:var(--muted); }
@media (min-width:1024px) {
  .home-professional .home-hero-v2 .hero-carousel-controls {
    position:absolute;
    left:50%;
    bottom:34px;
    z-index:4;
    margin:0;
    transform:translateX(-50%);
  }
}
@media (max-width:1020px) {
  .home-professional .business-bento { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-professional .business-card,.home-professional .business-card.active { min-height:220px; }
}
@media (max-width:767px) {
  .home-professional .section { padding-top:52px; padding-bottom:52px; }
  .home-professional .home-hero-v2 { min-height:auto; padding:92px 0 30px; }
  .home-professional .home-hero-v2 .taste-hero-inner { min-height:auto; gap:22px; }
  .home-professional .home-hero-v2 .taste-hero-copy {
    display:flex;
    max-width:none;
    padding:0;
  }
  .home-professional .home-hero-v2 .hero-title {
    min-height:0;
    font-size:clamp(31px,10vw,40px);
    line-height:1.16;
  }
  .home-professional .home-hero-v2 .hero-lead {
    min-height:0;
    margin-top:18px;
    font-size:16px;
  }
/* header-phone */
.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent, #b8860b);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  margin-left: 12px;
  flex-shrink: 0;
}
.header-phone-btn:hover { background: #9a7209; transform: translateY(-1px); }
.header-phone-btn i { font-size: 13px; }

@media (max-width: 1000px) {
  .header-phone-btn span { display: none; }
  .header-phone-btn { padding: 8px 10px; margin-left: 8px; }
}
@media (max-width: 600px) {
  .header-phone-btn { display: none; }
}

/* ===== 面包屑导航 ===== */
/* breadcrumb */
.breadcrumb-nav {
  background: var(--surface-soft, #faf8f3);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted, #64748b);
}
.breadcrumb-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb-nav a {
  color: var(--accent, #b8860b);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-nav a:hover { color: var(--navy, #1e293b); }
.breadcrumb-sep { color: #cbd5e1; margin: 0 2px; }
.breadcrumb-current { color: var(--muted, #64748b); }
.page-banner + .breadcrumb-nav,
.taste-hero + .breadcrumb-nav { border-top: none; }

/* ===== Geo Summary (首页律所简介条) ===== */
.geo-summary-section {
  background: #f8f9fa;
  padding: 30px 0;
  margin: 0;
}
/* scroll-progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy-2));
  z-index: 9999;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* §8 可访问性：全局焦点可见样式（修复 hover:focus = 53:4） */
*:focus-visible {
  outline: 2px solid var(--navy-3);
  outline-offset: 2px;
/* skip-link */
/* §8 skip-link 跳到主内容（键盘可访问性） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: var(--text-body-sm);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* 内联样式提取（设计系统收敛）—— 替代 practice/lawyers/practice-detail 内联 style */
/* sr-only */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
