/* ===========================================================
   李伟强律师个人网站 · 样式表
   设计基调：深墨蓝 + 铜金色 + 米纸白，衬线中文标题，克制留白
   =========================================================== */

:root {
  /* 色板 */
  --ink:        #0E1B26;
  --ink-2:      #15293A;
  --ink-3:      #1E384D;
  --paper:      #FAF7F1;
  --paper-2:    #F3EDE3;
  --gold:       #B08D57;
  --gold-l:     #D6BB8A;
  --gold-d:     #8E7043;
  --text:       #22303C;
  --muted:      #6E6459;
  --line:       rgba(14, 27, 38, .12);
  --line-2:     rgba(14, 27, 38, .07);
  --white:      #FFFFFF;

  /* 字体 */
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, system-ui, sans-serif;

  /* 尺度 */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --sec-gap: clamp(72px, 10vw, 130px);
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(14, 27, 38, .35);
  --shadow-s: 0 6px 20px -12px rgba(14, 27, 38, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: #fff; }

/* ---------- 通用容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec-gap) 0; }
.section + .section { border-top: 1px solid var(--line-2); }

/* ---------- 章节标题 ---------- */
.sec-head { margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head .num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: 14px;
}
.sec-head .num::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 34px; height: 1px; background: var(--gold); margin-right: 12px;
}
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: .04em; }
.sec-head .sub {
  margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 62ch;
}

/* ---------- 顶部导航 ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: 76px; display: flex; align-items: center;
  background: rgba(250, 247, 241, 0);
  transition: background .35s ease, height .35s ease, box-shadow .35s ease;
}
.hdr.on {
  height: 64px;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-2);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--serif); font-size: 19px; border-radius: 2px;
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.brand-name em { display: block; font-style: normal; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; color: var(--muted); }

.nav { display: flex; gap: 34px; }
.nav a {
  position: relative; font-size: 14.5px; letter-spacing: .06em; color: var(--ink);
  padding: 6px 0; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .28s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold-d); }

.nav-cta {
  border: 1px solid var(--ink); color: var(--ink);
  padding: 9px 20px; font-size: 14px; letter-spacing: .08em; border-radius: 2px;
  transition: background .25s, color .25s, border-color .25s;
}
.nav-cta:hover { background: var(--ink); color: #fff; }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: .3s; }
.menu-btn.on span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.on span:nth-child(2) { opacity: 0; }
.menu-btn.on span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 110% at 78% 8%, #22405A 0%, var(--ink-2) 42%, var(--ink) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(90% 80% at 70% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 80% at 70% 20%, #000 0%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: 40%;
  width: 620px; height: 620px; transform: translateY(-50%);
  border: 1px solid rgba(214, 187, 138, .18); border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .2em; color: var(--gold-l); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-l); }

.hero h1 {
  font-size: clamp(46px, 8.5vw, 92px); letter-spacing: .1em; line-height: 1.08;
  color: #fff; margin-bottom: 6px;
}
.hero .en {
  display: block; font-family: var(--sans); font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: .42em; color: rgba(255,255,255,.5); margin-top: 18px; font-weight: 400;
}
.hero .role {
  font-family: var(--serif); font-size: clamp(17px, 2.2vw, 22px);
  color: var(--gold-l); letter-spacing: .08em; margin: 24px 0 20px;
}
.hero .lead {
  color: rgba(255,255,255,.76); max-width: 50ch; font-size: 15.5px; line-height: 2;
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 14.5px; letter-spacing: .1em; border-radius: 2px;
  border: 1px solid transparent; transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1a1207; }
.btn-gold:hover { background: var(--gold-l); }
.btn-line { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

.hero-stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 54px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats li b { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold-l); line-height: 1; letter-spacing: .02em; }
.hero-stats li span { display: block; margin-top: 10px; font-size: 12.5px; letter-spacing: .1em; color: rgba(255,255,255,.58); }

/* 首屏右侧信息卡 */
.info-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  padding: 34px 30px; border-radius: 2px;
}
.info-card h4 {
  font-family: var(--serif); font-size: 17px; color: #fff; letter-spacing: .1em;
  padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.info-card dl { margin: 0; }
.info-card .row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.info-card .row:last-child { border-bottom: 0; }
.info-card dt { font-size: 12.5px; letter-spacing: .12em; color: rgba(255,255,255,.5); flex: none; }
.info-card dd { margin: 0; font-size: 14px; color: rgba(255,255,255,.9); text-align: right; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.about-text p + p { margin-top: 20px; }
.about-text .lead-p { font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); line-height: 1.95; color: var(--ink); }

.quote {
  margin-top: 34px; padding: 24px 28px; background: var(--paper-2);
  border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 17px; color: var(--ink);
}
.quote small { display: block; margin-top: 12px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }

/* 履历时间轴 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--gold);
}
.timeline .t-title { font-family: var(--serif); font-size: 17px; color: var(--ink); letter-spacing: .04em; }
.timeline .t-desc { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.timeline .t-tag {
  display: inline-block; margin-top: 10px; font-size: 11.5px; letter-spacing: .14em;
  color: var(--gold-d); border: 1px solid var(--gold); padding: 3px 10px; border-radius: 2px;
}

/* ---------- 专业领域 ---------- */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.field {
  position: relative; background: #fff; border: 1px solid var(--line-2);
  padding: 34px 30px 32px; border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.field:hover { transform: translateY(-6px); box-shadow: var(--shadow-s); border-color: rgba(176,141,87,.45); }
.field .ico { width: 44px; height: 44px; margin-bottom: 22px; color: var(--gold); }
.field .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.2; }
.field h3 { font-size: 19px; color: var(--ink); letter-spacing: .05em; margin-bottom: 12px; }
.field p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.field .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.field .tags span { font-size: 12px; color: var(--gold-d); background: var(--paper-2); padding: 4px 10px; border-radius: 2px; }
.field .no { position: absolute; right: 26px; top: 24px; font-family: var(--serif); font-size: 13px; color: rgba(14,27,38,.18); letter-spacing: .1em; }

/* ---------- 办案成果 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button {
  font: inherit; font-size: 13.5px; letter-spacing: .06em; cursor: pointer;
  padding: 8px 18px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 2px; transition: all .25s;
}
.filters button:hover { border-color: var(--gold); color: var(--gold-d); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  background: #fff; border: 1px solid var(--line-2); border-left: 2px solid var(--gold);
  padding: 22px 22px 20px; border-radius: 2px; transition: box-shadow .3s, transform .3s;
}
.case:hover { box-shadow: var(--shadow-s); transform: translateY(-3px); }
.case .c-no { font-family: var(--serif); font-size: 12px; color: rgba(14,27,38,.32); letter-spacing: .1em; }
.case .c-name { font-family: var(--serif); font-size: 16.5px; color: var(--ink); margin: 8px 0 10px; letter-spacing: .03em; }
.case .c-result { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.case .c-tag {
  display: inline-block; margin-top: 14px; font-size: 11.5px; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 2px;
}
.case[data-tag*="不诉无罪"] .c-tag,
.tag-无罪 { background: rgba(176,141,87,.14); color: var(--gold-d); }
.tag-取保 { background: rgba(30,56,77,.09); color: var(--ink-3); }
.tag-缓刑 { background: rgba(14,27,38,.06); color: var(--muted); }
.tag-轻判 { background: rgba(176,141,87,.2); color: var(--gold-d); }
.tag-毒品 { background: rgba(142,112,67,.14); color: #7a5e34; }

.cases-note {
  margin-top: 28px; padding: 20px 24px; background: var(--paper-2);
  font-size: 13px; color: var(--muted); line-height: 1.9; border-radius: 2px;
}
.cases-empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- 辩护方法 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 10px; }
.step { position: relative; padding: 0 20px; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line);
}
.step:first-child::before { left: 12%; }
.step:last-child::before { right: 12%; }
.step .dot {
  position: relative; z-index: 2; width: 45px; height: 45px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px; color: var(--gold-d); margin-bottom: 22px;
}
.step h4 { font-size: 16.5px; color: var(--ink); margin-bottom: 10px; letter-spacing: .04em; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* ---------- 联系 ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .sec-head h2, .contact .sec-head .num { color: #fff; }
.contact .sec-head .num { color: var(--gold-l); }
.contact .sec-head .sub { color: rgba(255,255,255,.6); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list li:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.contact-list .k { font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.45); }
.contact-list .v { display: block; margin-top: 8px; font-size: 16px; color: #fff; line-height: 1.7; }
.contact-list .v.big { font-family: var(--serif); font-size: 26px; color: var(--gold-l); letter-spacing: .04em; }

.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  padding: 38px 36px; border-radius: 2px;
}
.contact-card h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.contact-card > p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.contact-card ul { margin: 0 0 30px; }
.contact-card ul li { position: relative; padding-left: 22px; font-size: 14.5px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.contact-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1px; background: var(--gold-l);
}
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.foot { background: #0A131C; color: rgba(255,255,255,.55); padding: 46px 0 34px; font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot .f-brand { font-family: var(--serif); font-size: 16px; color: #fff; letter-spacing: .12em; margin-bottom: 10px; }
.foot .disclaimer { max-width: 70ch; line-height: 1.9; font-size: 12.5px; color: rgba(255,255,255,.4); }
.foot .beian { margin-top: 18px; }
.foot .beian a { color: rgba(255,255,255,.62); border-bottom: 1px solid rgba(255,255,255,.18); }
.foot .beian a:hover { color: var(--gold-l); border-color: var(--gold-l); }

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(250,247,241,.9); backdrop-filter: blur(8px); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .3s;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--ink); }
.totop:hover svg { stroke: #fff; }
.totop svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; }

/* ---------- 入场动画 ---------- */
/* reveal 动画见文件末尾（纯 CSS，不依赖 JS） */


/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .fields, .cases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .step::before { display: none; }
  .hero::after { display: none; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 8px var(--pad) 22px;
    box-shadow: 0 12px 30px -18px rgba(14,27,38,.4);
    transform: translateY(-14px); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .fields, .cases { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 120px; padding-bottom: 70px; }
  .hero-stats { flex-wrap: wrap; row-gap: 26px; }
  .hero-stats li b { font-size: 28px; }
  .hdr.on { height: 60px; }
  .nav { inset: 60px 0 auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==================== 版式修正 v2（2026-10-17） ==================== */

/* 专业领域：去掉彩色便签，改细点分隔 */
.fields .field .tags { margin-top: 16px; gap: 0; }
.fields .field .tags span {
  background: none; padding: 0; border-radius: 0;
  font-size: 12px; color: var(--muted); letter-spacing: .05em;
}
.fields .field .tags span + span::before {
  content: "／"; margin: 0 6px; color: rgba(14, 27, 38, .18);
}

/* 3) 成果统计条 */
.result-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); margin-bottom: 38px;
}
.result-stats .rs { background: var(--paper); padding: 26px 16px 22px; text-align: center; }
.result-stats .rs b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 38px; line-height: 1; color: var(--ink); letter-spacing: .02em;
}
.result-stats .rs span {
  display: block; margin-top: 10px; font-size: 12px;
  letter-spacing: .16em; color: var(--muted);
}

/* 4) 筛选：下划线式，去掉一排按钮框 */
.filters {
  display: flex; flex-wrap: wrap; gap: 30px;
  margin-bottom: 0; border-bottom: 1px solid var(--line-2);
}
.filters button {
  background: none; border: 0; border-radius: 0; padding: 0 0 14px;
  font: inherit; font-size: 13.5px; letter-spacing: .06em; color: var(--muted);
  position: relative; transition: color .2s; cursor: pointer;
}
.filters button i { font-style: normal; font-size: 11px; opacity: .55; margin-left: 5px; }
.filters button:hover { border: 0; color: var(--ink); }
.filters button.on { background: none; border: 0; color: var(--ink); }
.filters button.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--gold);
}

/* 5) 案例：细线网格，不再是便签卡 */
#cases .cases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); border-top: 0; margin-top: 0;
}
#cases .case {
  background: var(--paper); border: 0; border-radius: 0;
  padding: 26px 26px 24px; transition: background .25s;
}
#cases .case:hover { background: var(--paper-2); box-shadow: none; transform: none; }
#cases .case h4 {
  font-family: var(--serif); font-weight: 400; font-size: 15.5px;
  line-height: 1.6; color: var(--ink); letter-spacing: .02em; margin: 0 0 8px;
}
#cases .case p { font-size: 13px; line-height: 1.75; color: var(--muted); margin: 0 0 14px; }
#cases .case .c-tag {
  display: inline-block; font-size: 11px; letter-spacing: .1em;
  color: var(--gold-d); border: 1px solid rgba(176, 141, 87, .45);
  padding: 3px 9px; border-radius: 2px; background: none;
}
#cases .case[hidden] { display: none; }

/* 6) 展开按钮 */
.more-btn {
  display: block; margin: 30px auto 0; padding: 13px 40px;
  background: none; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 13.5px; letter-spacing: .1em; cursor: pointer;
  transition: border-color .25s, color .25s;
}
.more-btn:hover { border-color: var(--gold); color: var(--gold-d); }
.more-btn[hidden] { display: none; }

/* 7) 响应式补充 */
@media (max-width: 1000px) {
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  #cases .cases { grid-template-columns: repeat(2, 1fr); }
  .filters { gap: 20px; }
}
@media (max-width: 760px) {
  #cases .cases { grid-template-columns: 1fr; }
}

/* ==================== 入场动画（纯 CSS，不依赖 JS） ==================== */
.reveal { animation: revealUp .85s cubic-bezier(.2,.6,.2,1) both; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ==================== 首屏改版 v3（2026-10-17）：形象照置于页面最上方 ==================== */
.hero {
  position: relative;
  background: #0B0D0F;
  isolation: isolate;
  overflow: hidden;
}
.hero::before, .hero::after { display: none; }     /* 去掉网格与金圈，画面更干净 */

/* 底色：与照片同源的虚化图，保证色调一致 */
.hero-bg {
  position: absolute; inset: -8% -4% -2% -4%; z-index: 0;
  background: url(img/hero-bg.jpg) center / cover no-repeat;
  filter: blur(26px) saturate(.75) brightness(.46);
  transform: scale(1.08);
}
/* 压暗：左侧保文字对比度，顶部与页头衔接 */
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,8,10,.97) 0%, rgba(6,8,10,.92) 34%, rgba(6,8,10,.60) 62%, rgba(6,8,10,.30) 100%),
    linear-gradient(180deg, rgba(6,8,10,.72) 0%, rgba(6,8,10,.06) 34%, rgba(6,8,10,.42) 100%);
}

/* 形象照：贴右、贴顶、贴底，只留左缘柔化 */
.hero-portrait {
  position: absolute; right: 0; bottom: -46px; z-index: 2;
  width: min(42vw, 620px); margin: 0;
}
/* 底部化开，与信息条衔接 */
.hero-portrait::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 76px;
  background: linear-gradient(180deg, rgba(7,9,11,0), rgba(7,9,11,.78));
  pointer-events: none;
}
.hero-portrait img {
  width: 100%; height: auto; display: block;
  filter: contrast(1.14) brightness(1.09) saturate(1.08);
  -webkit-mask-image:
    linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 5%, rgba(0,0,0,.92) 12%, #000 18%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 8%, #000 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 5%, rgba(0,0,0,.92) 12%, #000 18%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 8%, #000 100%);
          mask-composite: intersect;
}

.hero .wrap { padding-top: 0; padding-bottom: 0; }
.hero .hero-main { position: relative; z-index: 3; }
.hero-copy {
  max-width: min(560px, calc(56vw - 2 * var(--pad) - 40px));
  padding-top: clamp(108px, 13.5vh, 148px);
  padding-bottom: clamp(44px, 6.5vh, 74px);
}
.hero h1 { font-size: clamp(42px, 5.2vw, 72px); letter-spacing: .08em; }
.hero .role { margin: 18px 0 16px; }
.hero .lead { font-size: 15px; }
.hero .trust {
  font-family: var(--serif); font-size: 12px; letter-spacing: .16em;
  color: rgba(214, 187, 138, .8); margin: -2px 0 22px;
}
.hero .lead { max-width: 520px; }
.hero-actions { margin-top: 30px; }

/* 底部：数据与执业信息条 */
.hero-bar {
  position: relative; z-index: 4;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 9, 11, .88);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
          backdrop-filter: blur(12px) saturate(120%);
}
.hero-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 22px; padding-bottom: 22px;
}
.hero-bar ul { display: flex; gap: clamp(20px, 4vw, 52px); flex-wrap: wrap; }
.hero-bar li { display: flex; align-items: baseline; gap: 9px; }
.hero-bar b {
  font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1;
  color: var(--gold-l); letter-spacing: .02em;
}
.hero-bar span { font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .46); }
.hero-bar .lic {
  font-size: 11.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .32);
  white-space: nowrap;
}

/* 导航在首屏为白字，滚动后恢复深色 */
.hdr:not(.on) .brand-mark { border-color: rgba(255, 255, 255, .5); color: #fff; }
.hdr:not(.on) .brand-name { color: #fff; }
.hdr:not(.on) .brand-name em { color: rgba(255, 255, 255, .5); }
.hdr:not(.on) .nav a { color: rgba(255, 255, 255, .84); }
.hdr:not(.on) .nav a.active { color: var(--gold-l); }
.hdr:not(.on) .nav-cta { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hdr:not(.on) .nav-cta:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hdr:not(.on) .menu-btn span { background: #fff; }

/* 响应式：窄屏改为上下结构，照片置于文字之上 */
@media (max-width: 1080px) {
  .hero-portrait {
    position: static; width: 100%; height: min(43vh, 350px); overflow: hidden;
    margin-top: clamp(78px, 10vh, 104px);          /* 整体下移，让开导航栏 */
  }
  .hero-portrait img {
    height: 100%; object-fit: cover; object-position: 50% 8%;
    filter: contrast(1.2) brightness(1.14) saturate(1.12);
    -webkit-mask-image: none;            /* 手机端完全去掉渐隐，图片 100% 实心 */
            mask-image: none;
  }
  .hero-portrait::after { display: none; }          /* 移动端不要底部压暗层 */
  .hero-copy {
    max-width: none;
    padding-top: 38px; padding-bottom: 42px;
  }
  .hero-bar .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-bar b { font-size: 23px; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .hero .trust { font-size: 11px; letter-spacing: .08em; line-height: 1.9; }
  .hero-portrait { height: min(40vh, 330px); }
  .hero-bar ul { gap: 12px 24px; }
  .hero-bar span { font-size: 11px; letter-spacing: .05em; }
  .hero-bar .lic { font-size: 10.5px; letter-spacing: .04em; }
}

/* 平板宽度（761–980）：导航收起为汉堡，避免换行 */
@media (min-width: 761px) and (max-width: 980px) {
  .hdr .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 8px var(--pad) 22px;
    box-shadow: 0 12px 30px -18px rgba(14,27,38,.4);
    transform: translateY(-14px); opacity: 0; pointer-events: none; transition: .3s;
  }
  .hdr .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .hdr .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
  .hdr:not(.on) .nav a { color: var(--ink); }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .hdr:not(.on) .menu-btn span { background: #fff; }
  .hdr.on .menu-btn span, .hdr .nav.open ~ .menu-btn span { background: var(--ink); }
}
