/* ==========================================================================
   法律服务 · 事务所气质
   深色页头 + 衬线正文 + 业务领域清单。不用项目符号图标、不用卡片阴影，
   靠字号层级与细分隔线建立秩序，是这类机构网站的通行语汇。
   ========================================================================== */

:root {
  --ink: #12151a;
  --ink-2: #343b45;
  --muted: #767d88;
  --line: #e0ddd7;
  --paper: #fdfcfa;
  --paper-2: #f4f1eb;
  --navy: #16243b;
  --navy-2: #1e3150;
  --gold: #9a7b46;
  --serif: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(20px, 5vw, 56px);
  --wrap: 1160px;
}

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

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

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

::selection { background: var(--navy); color: var(--paper); }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- 顶栏 ---------- */

.crown {
  background: var(--navy);
  color: #c8cdd6;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.crown__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px var(--gut);
  max-width: var(--wrap);
  margin: 0 auto;
  font-family: var(--mono);
}

.crown__inner span { white-space: nowrap; }

/* ---------- 页头 ---------- */

.head {
  background: var(--navy);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
}

.head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px var(--gut);
  max-width: var(--wrap);
  margin: 0 auto;
}

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

.firm__glyph {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
  flex: none;
}

.firm__text { min-width: 0; }

.firm__name {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firm__en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #8d97a8;
  margin-top: 4px;
}

.headnav { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); }

.headnav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #ccd2dc;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.headnav a:hover, .headnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

.headnav .counsel {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 16px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}

.headnav .counsel:hover { background: var(--gold); color: var(--navy); }

.headtoggle {
  display: none;
  background: none;
  border: 1px solid #3a4a63;
  color: #ccd2dc;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--sans);
}

/* ---------- 首屏 ---------- */

.stage {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stage__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 100px) var(--gut) clamp(56px, 8vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.stage__kick {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 22px;
}

.stage h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.stage h1 em { font-style: normal; color: var(--gold); }

.stage__lede {
  margin-top: clamp(20px, 3vw, 30px);
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.95;
  color: #b9c0cb;
}

.stage__acts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.act {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.act--gold { background: var(--gold); color: var(--navy); }
.act--gold:hover { background: #b0894f; }

.act--line { border-color: #3d4f6b; color: #d5dae3; }
.act--line:hover { border-color: var(--gold); color: #fff; }

/* 天平线稿 */
.stage__art { opacity: 0.95; }
.stage__art svg { display: block; width: 100%; height: auto; }

.stage__bgnum {
  position: absolute;
  right: -2%;
  bottom: -14%;
  font-family: var(--serif);
  font-size: min(46vw, 520px);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 业务领域 ---------- */

.areas { padding: clamp(50px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }

.areas__head {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  margin-bottom: clamp(30px, 4vw, 54px);
  align-items: end;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 14px;
}

.areas__head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.areas__head p { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; max-width: 46ch; }

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.area {
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 38px) clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.22s;
}

.area:nth-child(even) { padding-left: clamp(20px, 3vw, 38px); border-right: 0; }
.area:hover { background: var(--paper-2); }

.area__no {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 12px;
}

.area h3 {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 24px);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.area p { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); margin-bottom: 14px; }

.area ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }

.area li {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-left: 10px;
  position: relative;
}

.area li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 团队 ---------- */

.firm-sec { padding: clamp(50px, 7vw, 96px) 0; background: var(--paper-2); }

.firm-sec__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.firm-sec h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.firm-sec p { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); margin-bottom: 16px; }

.partners { border-top: 1px solid var(--ink); }

.partner {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.partner__yr { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--gold); }
.partner__name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; margin-bottom: 5px; }
.partner__spec { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 案例 ---------- */

.record { padding: clamp(50px, 7vw, 96px) 0; }

.record__head { margin-bottom: clamp(26px, 4vw, 44px); max-width: 42em; }
.record__head h2 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 36px); letter-spacing: 0.02em; margin-bottom: 16px; }
.record__head p { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }

.record-list { border-top: 1px solid var(--ink); }

.rec {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 3vw, 44px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rec__yr { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.rec__title { font-family: var(--serif); font-size: clamp(16px, 1.9vw, 20px); letter-spacing: 0.04em; line-height: 1.5; }
.rec__meta { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.rec__meta b { color: var(--ink-2); font-weight: 500; }

/* ---------- 咨询 ---------- */

.consult { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }

.consult__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.consult h2 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.35; letter-spacing: 0.02em; }
.consult p { margin-top: 16px; color: #b0b8c4; font-size: 14.5px; line-height: 1.9; max-width: 44ch; }

.consult__card {
  border: 1px solid #33455f;
  padding: clamp(22px, 3vw, 32px);
}

.consult__card dl { margin: 0; display: grid; gap: 16px; }
.consult__card dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: #7f8a9c; }
.consult__card dd { margin: 4px 0 0; font-size: 15px; color: #e4e8ee; letter-spacing: 0.02em; }
.consult__card dd a { border-bottom: 1px solid #3d4f6b; }

.consult__note { margin-top: 22px; padding-top: 18px; border-top: 1px solid #29394f; font-size: 12px; color: #8892a3; line-height: 1.8; }

/* ---------- 页脚 ---------- */

.base { background: #0c1017; color: #7d8798; padding: clamp(36px, 5vw, 58px) 0 24px; font-size: 13px; }

.base__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.base h3 { font-size: 10.5px; letter-spacing: 0.26em; color: #5e6777; margin-bottom: 14px; font-weight: 400; font-family: var(--sans); }
.base p, .base li { line-height: 1.95; }
.base ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.base a { color: #99a3b3; transition: color 0.16s; }
.base a:hover { color: #fff; }

.base__mark { font-family: var(--serif); font-size: 19px; letter-spacing: 0.14em; color: #dfe4ec; margin-bottom: 12px; }
.base__mark span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: #5e6777; }

.legal {
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: 16px;
  border-top: 1px solid #1c2530;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 11.5px;
  color: #5e6777;
  letter-spacing: 0.04em;
}

/* ---------- 内页 ---------- */

.article-head { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 76px) 0 clamp(34px, 5vw, 56px); }
.article-head__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.article-head .eyebrow { color: var(--gold); }
.article-head h1 { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 48px); line-height: 1.3; letter-spacing: 0.02em; max-width: 24ch; }
.article-head p { margin-top: 18px; max-width: 50ch; color: #b0b8c4; font-size: 15px; line-height: 1.9; }

.body-cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 72px) var(--gut) clamp(46px, 7vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}

.body-cols__side { position: sticky; top: 26px; }
.body-cols__side h3 { font-size: 10.5px; letter-spacing: 0.24em; color: var(--muted); margin-bottom: 14px; font-family: var(--sans); }
.body-cols__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.body-cols__side li { font-size: 13px; line-height: 1.75; color: var(--ink-2); }

.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: 0.04em;
  margin: 42px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15px; line-height: 1.95; color: var(--ink-2); margin-bottom: 16px; }
.prose ul { margin: 0 0 20px; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 18px; margin-bottom: 11px; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 6px; height: 1px; background: var(--gold); }
.prose strong { font-weight: 600; color: var(--ink); }

.prose blockquote {
  margin: 26px 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink);
}

.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.85; margin-top: 14px; }

/* ---------- 动效 ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .stage__inner { grid-template-columns: minmax(0, 1fr); }
  .stage__art { display: none; }
  .areas__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .firm-sec__inner { grid-template-columns: minmax(0, 1fr); }
  .consult__inner { grid-template-columns: minmax(0, 1fr); }
  .body-cols { grid-template-columns: minmax(0, 1fr); }
  .body-cols__side { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .body-cols__side ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
}

@media (max-width: 780px) {
  .headtoggle { display: inline-block; }
  .headnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gut) 18px;
    z-index: 30;
    border-bottom: 3px solid var(--gold);
  }
  .headnav.is-open { display: flex; }
  .headnav a { padding: 13px 0; border-bottom: 1px solid #2c3d56; }
  .headnav .counsel { margin-top: 12px; text-align: center; }
  .head__inner { position: relative; }
  .crown__inner span:nth-child(2) { display: none; }
  .area-list { grid-template-columns: minmax(0, 1fr); }
  .area, .area:nth-child(even) { padding-left: 0; border-right: 0; }
  .rec { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 16px; }
  .rec__meta { grid-column: 2 / -1; }
  .base__grid { grid-template-columns: 1fr 1fr; }
  .base__grid > :first-child { grid-column: 1 / -1; }
  .partner { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
  .base__grid { grid-template-columns: minmax(0, 1fr); }
  .stage__acts .act { width: 100%; justify-content: space-between; }
  .firm__en { display: none; }
}
