/* ===== 上海靖霖（南京）律师事务所 官网样式 ===== */
:root {
  --navy-900: #0b2545;
  --navy-800: #13325b;
  --navy-700: #1c4173;
  --navy-600: #27548f;
  --gold-600: #a8842f;
  --gold-500: #c8a45c;
  --gold-400: #d8b873;
  --gold-300: #e7d2a0;
  --ink: #1f2733;
  --muted: #5b6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-deep: #0b2545;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 69, .06);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, .12);
  --maxw: 1140px;
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy-900); font-weight: 700; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-500); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section.deep { background: var(--bg-deep); color: #e9eef6; }
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep p { color: #c9d6e8; }
.eyebrow {
  display: inline-block; letter-spacing: .22em; font-size: 13px; font-weight: 700;
  color: var(--gold-500); text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.section-lead { max-width: 760px; color: var(--muted); font-size: 17px; }
.section.deep .section-lead { color: #aebfd6; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: 42px; }
.brand .logo { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; box-sizing: border-box; }

/* Logo image variant */
.brand .logo[src*=".jpg"], .brand .logo[src*=".png"], .brand .logo[src*=".webp"] { width: 40px; height: 40px; }
.brand .name { font-weight: 800; color: var(--navy-900); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand .name small { display: block; font-size: 11px; font-weight: 600; color: var(--gold-500); letter-spacing: .12em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links li { flex-shrink: 0; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--navy-800); position: relative; white-space: nowrap; }
.nav-cta .btn { white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold-500); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; padding-left: 22px; border-left: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--gold-500); color: #3a2c08; }
.btn-primary:hover { background: var(--gold-400); color: #2c2106; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,164,92,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy-900); cursor: pointer; }

/*  intermediate widths: keep nav on one line without wrapping */
@media (max-width: 1180px) and (min-width: 921px) {
  .nav { gap: 8px; }
  .brand { gap: 8px; margin-right: 28px; }
  .brand .logo { width: 34px; height: 34px; }
  .brand .name { font-size: 14px; }
  .brand .name small { font-size: 10px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 13.5px; }
  .nav-cta { gap: 12px; padding-left: 16px; border-left: 1px solid var(--line); }
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(200,164,92,.22), transparent 60%),
    linear-gradient(135deg, #0b2545 0%, #13325b 55%, #1c4173 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 104px; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(200,164,92,.16); color: var(--gold-300); font-weight: 700; font-size: 14px; border: 1px solid rgba(200,164,92,.35);
}
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); margin: 22px 0 10px; letter-spacing: .01em; }
.hero .sub { font-size: clamp(17px, 2.2vw, 22px); color: #d7e2f2; max-width: 720px; }
.hero .motto { color: var(--gold-300); font-weight: 700; font-size: 18px; margin-top: 8px; letter-spacing: .04em; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 20px; text-align: center;
}
.stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.stat .num span { color: var(--gold-400); }
.stat .label { color: #b9c8de; font-size: 14px; margin-top: 4px; }

/* ===== Cards ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: var(--gold-400); margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* service list */
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: flex-start;
}
.service-list li:last-child { border-bottom: 0; }
.service-list .dot { color: var(--gold-500); font-weight: 800; flex: 0 0 auto; }
.service-list strong { color: var(--navy-900); }
.service-list span { color: var(--muted); font-size: 14px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-figure {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 18px; padding: 34px; color: #fff; box-shadow: var(--shadow-md);
}
.about-figure h3 { color: #fff; }
.about-figure ul { list-style: none; padding: 0; margin: 0; }
.about-figure li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #d7e2f2; display: flex; gap: 10px; }
.about-figure li:last-child { border-bottom: 0; }
.about-figure .k { color: var(--gold-300); font-weight: 700; flex: 0 0 84px; }
.about-figure a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }
.about-figure a:hover { color: #fff; }

/* ===== Team ===== */
.lawyer {
  display: flex; align-items: center; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.lawyer > div:last-child { flex: 1; }
.lawyer .avatar {
  width: 200px; height: 200px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 200px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-300); font-size: 64px; font-weight: 800;
}
.lawyer .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 16px; }
.lawyer h3 { margin-bottom: 4px; }
.lawyer .role { color: var(--gold-500); font-weight: 700; margin-bottom: 12px; }
.lawyer .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lawyer .tags span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--navy-700); }
.lawyer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.lawyer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.lawyer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lawyer-card .avatar { width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-300); font-size: 34px; font-weight: 800; margin-bottom: 16px; overflow: hidden; }
.lawyer-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lawyer-card h3 { margin-bottom: 2px; font-size: 19px; }
.lawyer-card .role { color: var(--gold-500); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.lawyer-card p { color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }
.lawyer-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lawyer-card .tags span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--navy-700); }

/* ===== Cases ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case .cat { color: var(--gold-500); font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.case h3 { font-size: 18px; margin: 8px 0 10px; }
.case p { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { margin-bottom: 14px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-row .ic { color: var(--gold-500); flex: 0 0 auto; font-weight: 800; }
.info-row .t { color: var(--muted); font-size: 13px; }
.info-row .v { color: var(--navy-900); font-weight: 600; }
.section.deep .info-row .t { color: #aebfd6; }
.section.deep .info-row .v { color: #fff; }
.section.deep .info-row .v a { color: #fff; text-decoration: underline; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200,164,92,.18); }
.note { font-size: 13px; color: var(--muted); }

/* ===== FAQ ===== */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; background: #fff; }
.faq-item h3 { font-size: 17px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== CTA band ===== */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d6e8; max-width: 640px; margin: 0 auto 26px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #aebfd6; padding: 38px 0 18px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 22px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer a { color: #aebfd6; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 16px; padding-top: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8295b3; font-size: 13px; }
.footer-bottom .filings { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-bottom .filings a { color: #9fb1cc; text-decoration: none; }
.footer-bottom .filings a:hover { color: #c8d6ea; }
.beian-badge { display: inline-flex; align-items: center; gap: 6px; }
.beian-badge svg { width: 15px; height: 15px; color: #9fb1cc; }
.disclaimer { max-width: 880px; margin-top: 8px; color: #7e90ad; font-size: 12.5px; line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 16px; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
  .grid-3, .case-grid, .grid-2, .stats { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .lawyer { flex-direction: column; text-align: center; }
  .lawyer .avatar { margin: 0 auto; }
  .lawyer .tags { justify-content: center; }
  .lawyer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .case-grid, .grid-2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 70px 0 80px; }
}

/* reveal on scroll */
/* reveal on scroll：默认直接可见，再由 JS 叠加 .in 实现渐入；即使 IntersectionObserver 未触发也不会白屏 */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Article / Prose (how-to-choose) ===== */
.article-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 400px at 85% -20%, rgba(200,164,92,.22), transparent 60%),
              linear-gradient(135deg, #0b2545 0%, #13325b 55%, #1c4173 100%);
  padding: 72px 0 60px;
}
.article-hero .tag {
  display: inline-flex; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(200,164,92,.16); color: var(--gold-300); font-weight: 700; font-size: 14px; border: 1px solid rgba(200,164,92,.35);
}
.article-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); margin: 18px 0 12px; line-height: 1.25; }
.article-meta { color: #b9c8de; font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.article-meta b { color: #fff; font-weight: 700; }
.prose { max-width: 840px; margin: 0 auto; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 1.7em 0 .5em; padding-bottom: .35em; border-bottom: 2px solid var(--gold-300); color: var(--navy-900); }
.prose h3 { font-size: 20px; margin: 1.3em 0 .4em; color: var(--navy-800); }
.prose p { font-size: 16.5px; color: #2b3543; }
.prose ul { color: #2b3543; font-size: 16px; }
.prose ul li { margin: .45em 0; }
.prose strong { color: var(--navy-900); }
.pullquote {
  border-left: 4px solid var(--gold-500); background: var(--bg-soft); color: var(--navy-800);
  padding: 18px 24px; margin: 26px 0; font-size: 18px; font-weight: 600; line-height: 1.7;
  border-radius: 0 12px 12px 0;
}
.prose .reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.reason {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.reason h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy-900); }
.reason p { margin: 0; font-size: 14.5px; color: var(--muted); }
.prose .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 22px 0; }
.prose .mini { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.prose .mini h3 { margin-top: 0; font-size: 16px; }
.prose .mini ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; }

/* ===== Success cases ===== */
.case-study {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 10px;
  min-width: 0; word-break: break-word; overflow-wrap: break-word;
}
/* 整个卡片可点击（a 包裹） */
a.case-study { text-decoration: none; color: inherit; cursor: pointer; }
.case-study:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
a.case-study:hover h3 { color: var(--gold-600); }
a.case-study:active { transform: translateY(-1px); }
.case-study .result {
  align-self: flex-start; background: rgba(39,84,143,.10); color: var(--navy-700);
  border: 1px solid rgba(39,84,143,.22); border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 13px;
  max-width: 100%;
}
.case-study h3 { font-size: 18px; margin: 0; transition: color .2s; }
.case-study .facts { font-size: 14.5px; color: var(--muted); margin: 0; }
.case-study .defense { font-size: 14.5px; color: #2b3543; margin: 0; }
.case-study .defense b { color: var(--navy-800); }
/* 明确的“可点击”提示，解决客户不知如何操作的问题 */
.case-go {
  margin-top: auto; align-self: flex-start; font-size: 13.5px; font-weight: 700;
  color: var(--gold-600); display: inline-flex; align-items: center; gap: 5px; padding-top: 4px;
}
.case-go i { font-style: normal; transition: transform .2s; }
a.case-study:hover .case-go i { transform: translateX(4px); }
@media (max-width: 560px) {
  .case-study { padding: 18px; }
}

/* ===== 匿名/简明案例列表 ===== */
.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.case-brief-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-brief-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}
.case-brief-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.case-brief-card .case-no {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-400);
  font-weight: 800;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}
.case-brief-card .case-charge {
  flex: 0 0 auto;
  background: rgba(39,84,143,.08);
  color: var(--navy-700);
  border: 1px solid rgba(39,84,143,.18);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
}
.case-brief-card .case-result {
  flex: 1 1 auto;
  background: rgba(34,139,34,.08);
  color: #228b22;
  border: 1px solid rgba(34,139,34,.18);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
}
.case-brief-card .case-sum {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #2b3543;
  text-align: justify;
}
@media (max-width: 920px) {
  .case-list { grid-template-columns: 1fr; }
}

/* ===== Featured reading (index) ===== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.feature {
  display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.feature .fno {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: var(--gold-400); font-size: 24px; font-weight: 800;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .prose .reason-grid, .prose .two-col, .feature-row { grid-template-columns: 1fr; }
}

/* ===== News / 律所动态 ===== */
.hero-sub { padding: 70px 0 56px; text-align: center; }
.hero-sub .sub { max-width: 760px; margin-left: auto; margin-right: auto; }
.news-list { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.news-item {
  display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.news-meta { flex: 0 0 132px; display: flex; flex-direction: column; gap: 10px; }
.news-date { font-size: 18px; font-weight: 800; color: var(--navy-700); letter-spacing: .5px; }
.news-tag { display: inline-block; align-self: flex-start; font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 600; }
.tag-lecture { background: #eaf1fb; color: #1d4e8c; }
.tag-article { background: #fbf2e0; color: #9a6b1c; }
.tag-train   { background: #eafaf1; color: #1d7a4d; }
.tag-history { background: #f0eef7; color: #5b4b8a; }
.news-body h3 { margin: 0 0 8px; font-size: 19px; }
.news-body h3 a { color: var(--navy-700); text-decoration: none; }
.news-body h3 a:hover { color: var(--gold-600); }
.news-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.news-thumb { margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: #f4f6f9; }
.news-thumb img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 12px; }
@media (max-width: 720px) {
  .news-item { flex-direction: column; gap: 10px; padding: 18px 20px; }
  .news-meta { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
  .news-date { font-size: 15px; }
  .news-body h3 { font-size: 17px; }
  .news-thumb { margin: 0 0 12px; }
  .news-thumb img { max-height: 260px; }
}

/* ===== New Homepage v2 (screenshot style) ===== */

/* Hero v2 */
.hero-v2 {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 380px at 78% -10%, rgba(200,164,92,.25), transparent 60%),
    linear-gradient(135deg, #081c36 0%, #0e2e52 45%, #163c66 100%);
}
.hero-v2::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(200,164,92,.06) 0, transparent 320px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,.04) 0, transparent 260px);
  pointer-events: none;
}
.hero-v2::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px; opacity: .45; pointer-events: none;
}
.hero-v2 .container { position: relative; z-index: 2; padding: 110px 22px 120px; text-align: center; }
.hero-v2 .pre-title {
  display: inline-block; letter-spacing: .28em; font-size: 12px; font-weight: 800;
  color: var(--gold-300); border: 1px solid rgba(200,164,92,.4); border-radius: 999px;
  padding: 6px 18px; margin-bottom: 22px;
}
.hero-v2 h1 { color: #fff; font-size: clamp(34px, 5.6vw, 60px); margin: 0 0 14px; letter-spacing: .02em; }
.hero-v2 .slogan { color: var(--gold-400); font-size: clamp(22px, 3vw, 34px); font-weight: 700; margin: 0 0 10px; }
.hero-v2 .slogan .highlight { color: #fff; }
.hero-v2 .sub { color: #c9d6e8; font-size: clamp(15px, 1.8vw, 18px); margin: 0 0 32px; }
.hero-v2 .hero-actions { justify-content: center; margin-top: 0; }
.hero-v2 .hero-actions .btn-primary { padding: 14px 32px; font-size: 16px; }
.hero-v2 .hero-actions .btn-primary::after { content: " →"; }
.hero-v2 .hero-traits { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; margin-top: 54px; color: #b9c8de; font-size: 15px; }
.hero-v2 .hero-traits span { position: relative; padding-left: 18px; }
.hero-v2 .hero-traits span::before { content: "●"; position: absolute; left: 0; top: -2px; color: var(--gold-500); font-size: 10px; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.why-card .icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400); margin-bottom: 18px;
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card .eyebrow-small { font-size: 12px; color: var(--gold-500); font-weight: 700; margin-bottom: 8px; display: block; letter-spacing: .06em; }
.why-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }

/* Services v2 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.service-card .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400); margin-bottom: 18px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }

/* Criminal topics / charges grid */
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.topic-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit; display: block;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.topic-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--navy-900); }
.topic-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }
@media (max-width: 1100px) {
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 律所宣传片 */
.about-video { text-align: center; }
.about-video .section-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.video-box { margin-top: 26px; max-width: 880px; margin-left: auto; margin-right: auto; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); background: #000; }
.video-box video { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
@media (max-width: 560px) {
  .video-box { border-radius: 12px; }
  .video-box video { width: 100%; max-width: 100%; height: auto !important; }
}

/* Section header center */
.section-header { text-align: center; margin-bottom: 34px; }
.section-header .section-title { margin-bottom: 8px; }
.section-header .section-lead { margin: 0 auto; }

/* Profile highlight (汪世龙) */
.profile-highlight {
  display: grid; grid-template-columns: 1.1fr 1.1fr; gap: 42px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-sm); margin-top: 28px;
}
.profile-highlight .photo {
  aspect-ratio: 3/4; max-height: 420px; border-radius: 16px;
  background: linear-gradient(135deg, #e8edf5, #d1d9e6); display: grid; place-items: center; color: var(--navy-800); font-size: 80px; font-weight: 800;
  overflow: hidden; position: relative;
}
.profile-highlight .photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,164,92,.12), transparent 60%);
}
.profile-highlight .photo span { position: relative; z-index: 1; }
.profile-highlight .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.profile-highlight .badge { display: inline-block; background: var(--navy-800); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.profile-highlight h2 { font-size: 32px; margin-bottom: 4px; }
.profile-highlight .role { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.profile-highlight .intro { color: #2b3543; font-size: 15.5px; line-height: 1.8; margin-bottom: 20px; }
.profile-highlight .profile-list { list-style: none; padding: 0; margin: 0 0 22px; }
.profile-highlight .profile-list li { padding: 7px 0; color: var(--ink); font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.profile-highlight .profile-list li:last-child { border-bottom: 0; }
.profile-highlight .contact-box { background: var(--bg-soft); border-radius: 12px; padding: 18px 22px; }
.profile-highlight .contact-box .phone { font-size: 22px; font-weight: 800; color: var(--navy-900); }
.profile-highlight .contact-box .license { font-size: 13px; color: var(--muted); }
.profile-highlight .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.profile-highlight .tags span { background: var(--navy-800); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 999px; }

/* Team preview grid */
.team-preview-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 28px; }
.team-preview-grid .lawyer-card { text-align: center; align-items: center; }
.team-preview-grid .lawyer-card .avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; }
.team-preview-grid .lawyer-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.team-preview-grid .lawyer-card h3 { font-size: 16px; }
.team-preview-grid .lawyer-card .role { font-size: 12px; }

/* Case preview */
.case-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.case-preview-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: 10px;
}
.case-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.case-preview-card .tag { display: inline-flex; align-self: flex-start; gap: 6px; align-items: center; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--navy-800); color: #fff; font-weight: 700; }
.case-preview-card .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.case-preview-card h3 { font-size: 18px; margin: 4px 0; }
.case-preview-card .result { font-size: 14px; color: var(--gold-600); font-weight: 700; }
.case-preview-card .desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; flex: 1; }
.case-preview-card .more { font-size: 14px; font-weight: 700; color: var(--navy-700); margin-top: 10px; }
.case-preview-card .more::after { content: " >"; }
.section-cta { text-align: center; margin-top: 32px; }
.section-cta .btn { border-radius: 999px; padding: 12px 28px; }

/* News cards preview */
.news-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.news-card .meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.news-card .meta .date { font-size: 12px; color: var(--muted); }
.news-card .meta .tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.news-card h3 { font-size: 16px; margin: 0 0 10px; line-height: 1.5; }
.news-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card .quote { font-size: 34px; color: var(--gold-400); line-height: 1; margin-bottom: 10px; }
.testimonial-card .stars { color: var(--gold-500); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card .text { color: #2b3543; font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
.testimonial-card .author { border-top: 1px solid var(--line); padding-top: 14px; }
.testimonial-card .author .name { font-weight: 800; color: var(--navy-900); font-size: 15px; }
.testimonial-card .author .title { font-size: 13px; color: var(--muted); }

/* Official reports */
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.report-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 10px;
}
.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.report-card .meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.report-card .meta .tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--navy-700); font-weight: 600; }
.report-card .meta .year { font-size: 14px; font-weight: 800; color: var(--gold-500); }
.report-card h3 { font-size: 16px; margin: 0; line-height: 1.5; color: var(--navy-800); }

/* Final CTA band */
.final-cta {
  background: var(--navy-900); color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 100%, rgba(200,164,92,.18), transparent 60%);
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.final-cta p { color: #aebfd6; margin: 0 0 28px; }
.final-cta .actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.final-cta .btn-gold { background: var(--gold-500); color: #2c2106; border-radius: 999px; padding: 14px 28px; font-weight: 700; }
.final-cta .btn-gold:hover { background: var(--gold-400); }
.final-cta .btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 14px 28px; font-weight: 700; }
.final-cta .btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* Floating news widget */
.float-news { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: flex-start; }
.float-news .tab {
  writing-mode: vertical-rl; text-orientation: mixed;
  background: var(--navy-800); color: #fff; padding: 14px 8px; border-radius: 10px 0 0 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-md); letter-spacing: .1em;
}
.float-news .tab::before { content: "📰"; margin-bottom: 6px; display: block; text-orientation: upright; }
.float-news .panel {
  width: 320px; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-right: 0;
  border-radius: 0 0 0 12px; box-shadow: var(--shadow-md); padding: 20px; display: none;
}
.float-news.open .panel { display: block; }
.float-news .panel h4 { font-size: 15px; margin-bottom: 14px; }
.float-news .panel ul { list-style: none; padding: 0; margin: 0; }
.float-news .panel li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.float-news .panel li:last-child { border-bottom: 0; }
.float-news .panel a { font-size: 14px; font-weight: 600; color: var(--navy-800); }
.float-news .panel a:hover { color: var(--gold-500); }
.float-news .panel .date { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.float-news .close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; }

/* Responsive v2 */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-highlight { grid-template-columns: 1fr; }
  .profile-highlight .photo { max-height: 320px; }
}
@media (max-width: 920px) {
  .hero-v2 .hero-traits { gap: 24px; }
  .case-preview-grid, .news-card-grid, .testimonial-grid, .report-grid, .service-grid, .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-highlight .photo { max-height: 300px; }
  .float-news { display: none; }
}
@media (max-width: 640px) {
  .why-grid, .service-grid, .case-preview-grid, .news-card-grid, .testimonial-grid, .report-grid, .team-preview-grid, .topics-grid { grid-template-columns: 1fr; }
  .hero-v2 .container { padding: 80px 22px 90px; }
  .hero-v2 .hero-traits { gap: 16px; font-size: 14px; }
  .profile-highlight { padding: 24px; }
  .section { padding: 60px 0; }
}

/* 页脚友情链接横条 */
.friend-links { border-top: 1px solid rgba(255,255,255,.08); margin-top: 10px; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #8295b3; font-size: 13px; }
.friend-links-title { color: #aebfd6; font-weight: 600; margin-right: 4px; }
.friend-links a { color: #aebfd6; text-decoration: none; }
.friend-links a:hover { color: var(--gold-400); }

/* 视觉隐藏但供 SEO/屏幕阅读器使用的 h1 */
.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; }

/* ===== 全站浮动转化组件（拨号 + 免费咨询 + 返回顶部）===== */
.fab-bar, .fab-group, .fab-item { box-sizing: border-box; }
.fab-bar a, .fab-item { -webkit-tap-highlight-color: transparent; }

/* 移动端：底部固定双按钮条 */
.fab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: none;
  grid-template-columns: 1fr 1fr; gap: 10px;
  background: rgba(11, 37, 69, .97);
  box-shadow: 0 -6px 24px rgba(11, 37, 69, .28);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.fab-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 12px; font-size: 16px; font-weight: 700;
  text-decoration: none; color: #fff;
}
.fab-bar .fab-call { background: var(--navy-600); }
.fab-bar .fab-consult { background: var(--gold-500); color: #3a2c08; }
.fab-bar .fab-ic { font-size: 18px; line-height: 1; }

/* 桌面端：右下悬浮组 */
.fab-group {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  display: none; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab-item {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; text-decoration: none; color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 37, 69, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab-item:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 37, 69, .34); }
.fab-group .fab-call { background: var(--navy-700); }
.fab-group .fab-consult { background: var(--gold-500); color: #3a2c08; }
.fab-group .fab-top { background: var(--navy-900); font-size: 24px; }
.fab-group .fab-top[hidden] { display: none; }

/* 移动端：右下角悬浮「返回顶部」，位于底栏之上，默认隐藏（由 JS 控制 hidden） */
.fab-top-mobile {
  position: fixed; right: 16px; bottom: 80px; z-index: 998;
  width: 46px; height: 46px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--navy-900); color: #fff; font-size: 22px; line-height: 1;
  border: none; cursor: pointer; box-shadow: 0 8px 22px rgba(11, 37, 69, .32);
  -webkit-tap-highlight-color: transparent;
}
.fab-top-mobile[hidden] { display: none; }

/* 响应式：移动端底栏 + 悬浮返回顶部，桌面端悬浮组 */
@media (max-width: 768px) {
  .fab-bar { display: grid; }
  .fab-group { display: none; }
  .fab-top-mobile { display: flex; }
  body { padding-bottom: 64px; }
}
@media (min-width: 769px) {
  .fab-bar { display: none; }
  .fab-group { display: flex; }
  .fab-top-mobile { display: none; }
}

/* 联系页：地图导航按钮 + 交通停车卡 */
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.map-btn {
  flex: 1 1 140px; text-align: center; padding: 11px 14px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}
.map-btn.amap { background: var(--navy-700); }
.map-btn.baidu { background: var(--gold-500); color: #3a2c08; }
.map-btn:hover { filter: brightness(1.06); }
.transport-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 20px;
}

/* ============================================================
   移动端体验重做（真正原生手机布局，非 PC 缩小）
   - 导航抽屉（≤919px，与汉堡显示断点一致）：全屏深蓝毛玻璃，大字号菜单，JS 动态构建
   - 视觉重排（≤768px）：深色全屏 Hero、毛玻璃深蓝顶栏、金色分段线、单列大卡片流、罪名列表式
   - 桌面 / 平板横向（>919px）完全不受影响
   ============================================================ */

/* 抽屉与遮罩默认隐藏，仅移动端启用 */
.m-scrim, .m-drawer { display: none; }

@media (max-width: 919px) {
  .m-scrim {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(4, 18, 38, .5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
    display: block;
  }
  .m-scrim.show { opacity: 1; visibility: visible; }
  .m-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
    width: min(86vw, 340px);
    display: flex; flex-direction: column;
    background: linear-gradient(165deg, #0b2545 0%, #103a6b 60%, #0e2f57 100%);
    box-shadow: -14px 0 44px rgba(0, 0, 0, .4);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
  .m-drawer.show { transform: translateX(0); }
  .m-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .m-brand { color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .02em; }
  .m-close {
    background: none; border: 0; color: rgba(255, 255, 255, .7);
    font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 8px;
  }
  .m-drawer-menu { flex: 1; overflow-y: auto; padding: 8px 10px; }
  .m-drawer-menu li { list-style: none; margin: 0; padding: 0; }
  .m-drawer-menu a {
    display: flex; align-items: center; justify-content: space-between;
    color: #eaf1fb; text-decoration: none; font-size: 19px; font-weight: 600;
    padding: 16px 14px; border-radius: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .m-drawer-menu a::after { content: "›"; color: #d4af37; font-size: 22px; font-weight: 800; }
  .m-drawer-menu a[aria-current="page"] { color: #d4af37; background: rgba(255, 255, 255, .07); }
  .m-drawer-foot { padding: 16px 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .m-call {
    display: block; text-align: center; text-decoration: none;
    background: #d4af37; color: #3a2c08; font-weight: 800; font-size: 16px;
    padding: 15px; border-radius: 14px;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.8; }
  .container { padding: 0 18px; }
  .section { padding: 54px 0; }
  .section-header { text-align: left; margin-bottom: 28px; }
  .eyebrow { color: #d4af37; }
  .section-title {
    font-size: clamp(24px, 6.4vw, 30px); color: #0b2545;
    position: relative; padding-bottom: 12px;
  }
  .section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 42px; height: 3px; border-radius: 2px; background: #d4af37;
  }
  .section-lead { font-size: 15px; }

  /* 顶栏：深蓝毛玻璃 */
  .site-header {
    background: rgba(11, 37, 69, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
  }
  .site-header .container.nav { height: 56px; }
  .brand .logo { width: 32px; height: 32px; border-radius: 8px; }
  .brand .name { font-size: 14px; color: #fff; }
  .brand .name small { color: rgba(255, 255, 255, .55); }
  .nav-cta .btn-primary, .nav-cta .btn-outline { display: none; }
  .nav-toggle { font-size: 24px; color: #fff; }

  /* 内容网格：单列大卡片流 */
  .why-grid, .service-grid, .case-preview-grid, .news-card-grid,
  .testimonial-grid, .topics-grid {
    grid-template-columns: 1fr; gap: 16px; margin-top: 24px;
  }
  .team-preview-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .why-card, .service-card, .case-preview-card, .news-card, .testimonial-card {
    background: #fff; border: 1px solid rgba(11, 37, 69, .08);
    border-radius: 20px; padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(11, 37, 69, .07);
  }
  .why-card .icon, .service-card .icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(212, 175, 55, .14); color: #b8860b;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 12px;
  }
  .why-card h3, .service-card h3 { font-size: 19px; }
  .why-card p, .service-card p { font-size: 15px; }

  /* 罪名卡 → 列表式带箭头 */
  .topics-grid { gap: 9px; }
  .topic-card {
    position: relative; display: flex; align-items: center;
    padding: 16px 44px 16px 18px;
    background: #fff; border: 1px solid rgba(11, 37, 69, .08);
    border-radius: 14px; box-shadow: 0 4px 14px rgba(11, 37, 69, .05);
  }
  .topic-card p { display: none; }
  .topic-card h3 { margin: 0; font-size: 16.5px; color: #0b2545; }
  .topic-card::after {
    content: "›"; position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%); color: #d4af37; font-size: 24px; font-weight: 800;
  }

  /* Hero：全屏深色渐变 */
  .hero-v2 { background: linear-gradient(160deg, #0b2545 0%, #103a6b 55%, #0e2f57 100%); }
  .hero-v2 .container { padding: 78px 18px 84px; }
  .hero-v2 .pre-title { color: #e8c46a; letter-spacing: .28em; }
  .hero-v2 h1 { font-size: clamp(30px, 9vw, 42px); color: #fff; }
  .hero-v2 .slogan { color: rgba(255, 255, 255, .85); font-size: 18px; }
  .hero-v2 .slogan .highlight { color: #e8c46a; }
  .hero-v2 .hero-actions .btn-primary {
    width: 100%; padding: 16px; font-size: 17px;
    background: #d4af37; color: #3a2c08; border: 0;
  }
  .hero-v2 .hero-traits { gap: 10px; margin-top: 34px; }
  .hero-v2 .hero-traits span {
    background: rgba(255, 255, 255, .1); color: #eaf1fb;
    padding: 7px 14px; border-radius: 999px; font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .15);
  }

  /* 主任介绍：单列大卡 */
  .profile-highlight { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; border-radius: 22px; }
  .profile-highlight .photo { max-height: 340px; border-radius: 16px; }
  .profile-highlight h2 { font-size: 28px; }
  .profile-highlight .intro { font-size: 15.5px; }

  /* 案例 / 新闻区块小元素 */
  .case-preview-card h3, .news-card h3 { font-size: 18px; }
  .case-preview-card .desc, .news-card p { font-size: 14.5px; line-height: 1.8; }
  .testimonial-card .text { font-size: 15.5px; line-height: 1.85; }

  /* 底部 CTA 全宽 */
  .final-cta .btn-gold { display: block; width: 100%; padding: 16px; font-size: 17px; }

  /* 页脚单列 */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* 联系页：深蓝底信息卡 + 全宽导航按钮 */
  .contact-grid { gap: 16px; }
  .contact-info, .transport-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px; padding: 22px 20px;
  }
  .contact-info h3 { font-size: 19px; }
  .info-row { padding: 14px 0; gap: 14px; }
  .info-row .t { font-size: 14px; }
  .info-row .v { font-size: 16px; font-weight: 700; }
  .map-actions { flex-direction: column; gap: 12px; margin-top: 20px; }
  .map-btn { flex: 1 1 auto; width: 100%; padding: 15px; font-size: 16px; border-radius: 14px; }

  /* 滚动入场微动效（渐进增强：无 JS 时内容默认可见，避免整片不显示） */
  .reveal { opacity: 1; }
  html.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  html.js-reveal .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .m-drawer, .m-scrim { transition: none; }
}

/* ============ 移动端底部固定 Tab 栏（≤919px，替代顶部导航与抽屉） ============ */
.m-tabbar { display: none; }
@media (max-width: 919px) {
  body { padding-bottom: 64px; }
  .m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002;
    display: flex; height: 56px;
    background: rgba(11, 37, 69, .96);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .m-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; text-decoration: none; color: rgba(255, 255, 255, .62);
    font-size: 10.5px; line-height: 1.1; -webkit-tap-highlight-color: transparent;
  }
  .m-tab .ic { font-size: 20px; line-height: 1; transition: transform .15s; }
  .m-tab.active { color: #d4af37; }
  .m-tab.active .ic { transform: translateY(-1px); }
  /* 隐藏 PC 顶栏导航按钮、旧浮动条与抽屉，移动端统一用底部 Tab */
  .nav-toggle, .nav-cta,
  .fab-bar, .fab-group, .fab-top-mobile,
  .m-scrim, .m-drawer { display: none !important; }
}

@media (max-width: 768px) {
  /* 律师介绍页手机端：主任照片与下方姓名/职务/证号拉开间距，避免贴底像叠在照片上 */
  .lawyer { padding: 24px 20px; }
  .lawyer .avatar { margin: 0 auto 18px; width: 180px; height: 180px; }
  .lawyer h3 { margin-top: 18px; font-size: 22px; }
  .lawyer .role { margin-bottom: 14px; font-size: 14px; line-height: 1.6; }
}

/* ============ 独立案例详情页（字段化，AI 易抽取） ============ */
.case-detail-sec { padding-top: 40px; }
.back-link {
  display: inline-block; margin-bottom: 16px;
  color: #b8860b; font-size: 14px; font-weight: 700; text-decoration: none;
}
.back-link:hover { color: #0b2545; }
.case-badge {
  display: inline-block; background: rgba(212,175,55,.14); color: #b8860b;
  font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.case-title { font-size: clamp(26px, 5vw, 34px); color: #0b2545; margin: 0 0 20px; }
.case-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(11,37,69,.08); border: 1px solid rgba(11,37,69,.08);
  border-radius: 16px; overflow: hidden; margin: 0 0 30px;
}
.case-meta > div { background: #fff; padding: 14px 18px; }
.case-meta dt { font-size: 13px; color: #8295b3; font-weight: 700; margin-bottom: 4px; }
.case-meta dd { margin: 0; font-size: 15px; color: #0b2545; font-weight: 600; line-height: 1.6; }
.case-block { margin-top: 26px; }
.case-block h3 { font-size: 20px; color: #0b2545; position: relative; padding-left: 14px; }
.case-block h3::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: #d4af37;
}
.case-block p { font-size: 16px; line-height: 1.9; color: #2b3a52; }
@media (max-width: 768px) {
  .case-meta { grid-template-columns: 1fr; }
  .case-title { font-size: 24px; }
  .case-block h3 { font-size: 18px; }
  .case-block p { font-size: 15px; }
}
