/* ==================================================================
 *   广东德曼律师事务所  -  styles.css
 *   Design language: Deep navy + champagne gold (matching logo)
 *   Serif headings + sans-serif body
 * ================================================================== */

/* ---------- Reset & Root ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
  /* palette */
  --bg: #f5f1ea;            /* ivory */
  --bg-alt: #efe9de;         /* ivory deeper */
  --paper: #ffffff;
  --ink: #1d2533;            /* deep navy text */
  --ink-soft: #4a5260;
  --ink-mute: #7a8290;
  --line: #e1d9c8;
  --gold: #c8a45c;           /* champagne gold */
  --gold-deep: #a07f3a;
  --gold-soft: #e2c98a;
  --navy: #102033;           /* deep navy */
  --navy-2: #1a2b43;
  --accent: #8b6332;

  /* layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;

  /* shadows */
  --shadow-sm: 0 6px 20px rgba(20, 28, 50, .08);
  --shadow-md: 0 20px 50px rgba(20, 28, 50, .12);
  --shadow-lg: 0 30px 80px rgba(20, 28, 50, .18);

  /* fonts */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
}

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Typography helpers ---------- */
.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
.section__head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section__eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep); padding-bottom: 14px; position: relative; font-weight: 500;
}
.section__eyebrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 1px; background: var(--gold);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.25; font-weight: 600;
  color: var(--navy);
  margin-top: 18px;
}
.section__title em { font-style: normal; color: var(--gold-deep); }
.section__sub {
  color: var(--ink-soft); margin-top: 18px; font-size: clamp(14px, 1.4vw, 16px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 164, 92, .35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 164, 92, .5); }
.btn--ghost {
  background: transparent; color: var(--navy);
  border: 1px solid rgba(16, 32, 51, .2);
}
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(20, 28, 50, .08);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo { height: 44px; width: auto; transition: transform .4s ease; }
.nav.is-scrolled .nav__logo { height: 36px; }
.nav__brandText { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brandCn { font-family: var(--font-serif); font-weight: 600; font-size: 17px; color: var(--navy); }
.nav__brandEn { font-size: 10px; letter-spacing: .3em; color: var(--gold-deep); margin-top: 4px; }
.nav__menu { display: flex; gap: 32px; }
.nav__menu a {
  position: relative; padding: 6px 0;
  font-size: 14px; color: var(--ink); font-weight: 500;
  transition: color .25s ease;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--gold);
  transition: width .3s ease;
}
.nav__menu a:hover { color: var(--gold-deep); }
.nav__menu a:hover::after { width: 100%; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__drawer {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px);
  flex-direction: column; padding: 24px var(--pad-x); gap: 8px;
  box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
  display: none;
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a { padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav__drawer a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 100px;
  background: linear-gradient(180deg, #f5f1ea 0%, #ede5d3 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
}
.hero__glow--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,164,92,.55), transparent 70%); top: -180px; left: -120px; }
.hero__glow--2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(16,32,51,.25), transparent 70%); bottom: -240px; right: -180px; }
.hero__lines {
  position: absolute; inset: 0; opacity: .14;
  background-image:
    linear-gradient(to right, rgba(16,32,51,.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,32,51,.4) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); padding: 6px 14px;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  background: rgba(255, 255, 255, .5); margin-bottom: 24px;
}
.hero__title { line-height: 1.1; }
.hero__titleCn {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 76px); color: var(--navy);
  letter-spacing: .04em;
}
.hero__titleEn {
  display: block;
  font-size: clamp(13px, 1.3vw, 17px); letter-spacing: .45em;
  color: var(--gold-deep); margin-top: 14px; font-weight: 400;
}
.hero__lede {
  margin-top: 28px; font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft); line-height: 1.9;
  font-weight: 400;
  max-width: 720px;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid var(--gold-deep); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
  transition: opacity .25s;
}
.hero__scroll span {
  display: block; width: 3px; height: 8px; border-radius: 2px; background: var(--gold-deep);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- About ---------- */
.about { background: var(--bg); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about__copy .section__title { text-align: left; }
.about__copy .section__eyebrow { display: inline-block; }
.about__copy .section__eyebrow::after { left: 0; transform: none; }
.about__text { color: var(--ink-soft); margin-top: 22px; }
.about__text strong { color: var(--navy); font-weight: 600; }
.about__pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.pillar__num {
  font-family: var(--font-serif); font-size: 36px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.pillar h3 {
  font-family: var(--font-serif); font-size: 22px; color: var(--navy);
  margin: 14px 0 10px; font-weight: 600;
}
.pillar p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Practice ---------- */
.practice { background: linear-gradient(180deg, var(--bg) 0%, #ece4d2 100%); }
.practice__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.pcard {
  position: relative; padding: 38px 30px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.pcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--gold), transparent);
  transform: scaleY(0); transform-origin: top; transition: transform .4s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pcard:hover::before { transform: scaleY(1); }
.pcard__num {
  font-family: var(--font-serif); font-size: 40px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.pcard h4 {
  font-family: var(--font-serif); font-size: 20px; color: var(--navy);
  margin: 16px 0 12px; font-weight: 600;
}
.pcard p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- Team ---------- */
.team { background: var(--paper); }
.team__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-size: 13px;
  background: var(--bg); color: var(--ink-soft);
  border: 1px solid var(--line); transition: all .25s ease;
}
.chip:hover { color: var(--navy); border-color: var(--gold); }
.chip.is-active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.team__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.tcard {
  background: var(--paper); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.tcard__photo {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: #d9e0e8;
}
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tcard:hover .tcard__photo img { transform: scale(1.06); }
.tcard__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(16,32,51,.35) 100%);
}
.tcard__position {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(200,164,92,.95); color: #fff;
  font-size: 11px; letter-spacing: .08em; z-index: 2;
}
.tcard__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.tcard__name {
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  color: var(--navy); letter-spacing: .04em;
}
.tcard__edu {
  font-size: 12px; color: var(--ink-mute); margin-top: 6px; line-height: 1.5;
}
.tcard__divider { width: 28px; height: 2px; background: var(--gold); margin: 16px 0; }
.tcard__summary {
  font-size: 13px; color: var(--ink-soft); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tcard__tag {
  font-size: 11px; padding: 4px 10px; border-radius: 4px;
  background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line);
}
.tcard__more {
  margin-top: 18px; font-size: 12px; letter-spacing: .12em; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.tcard__more::after { content: "→"; transition: transform .25s; }
.tcard:hover .tcard__more::after { transform: translateX(4px); }

/* ---------- Cases ---------- */
.cases { background: linear-gradient(180deg, #ece4d2 0%, var(--bg) 100%); }
.cases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ccard {
  background: var(--paper); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ccard__cat {
  display: inline-block; font-family: var(--font-serif);
  padding: 6px 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold-soft); font-size: 14px; letter-spacing: .12em;
  margin-bottom: 20px;
}
.ccard ul { display: flex; flex-direction: column; gap: 14px; }
.ccard li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.85;
}
.ccard li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 10px; height: 1px; background: var(--gold);
}
.ccard li strong { color: var(--navy); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.contact__copy .section__title { text-align: left; }
.contact__copy .section__eyebrow::after { left: 0; transform: none; }
.contact__text { color: var(--ink-soft); margin-top: 18px; }
.contact__list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact__list li {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__lbl {
  font-size: 12px; letter-spacing: .18em; color: var(--gold-deep);
  text-transform: uppercase;
}
.contact__val { font-size: 15px; color: var(--ink); line-height: 1.7; }
.contact__map {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg); padding: 0; overflow: hidden;
  position: relative; min-height: 460px;
  box-shadow: var(--shadow-md);
}
.contact__mapInner {
  position: relative; height: 100%; min-height: 460px;
  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: 30px 30px;
}
.contact__mapPin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(200,164,92,.25), 0 0 0 18px rgba(200,164,92,.12);
  animation: pinPulse 2.4s infinite;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(200,164,92,.25), 0 0 0 18px rgba(200,164,92,.12); }
  50%      { box-shadow: 0 0 0 14px rgba(200,164,92,.4), 0 0 0 28px rgba(200,164,92,.16); }
}
.contact__mapLabel {
  position: absolute; top: calc(50% + 28px); left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.96); color: var(--navy);
  padding: 14px 20px; border-radius: 10px;
  text-align: center; font-size: 13px; line-height: 1.7;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  white-space: nowrap;
}
.contact__mapLabel strong {
  display: block; font-family: var(--font-serif); font-size: 15px;
  color: var(--gold-deep); margin-bottom: 4px; letter-spacing: .08em;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 70px 0 30px; }
.footer__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: start;
}
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand img {
  height: 64px; width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
  /* 透明底logo直接放在深色footer上 */
  background: transparent;
}
.footer__brand strong {
  display: block; font-family: var(--font-serif); font-size: 18px; color: #fff;
  letter-spacing: .08em;
}
.footer__brand span {
  display: block; font-size: 11px; color: var(--gold-soft);
  letter-spacing: .2em; margin-top: 6px;
}
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__col h5 {
  font-family: var(--font-serif); color: var(--gold-soft);
  font-size: 13px; letter-spacing: .24em; margin-bottom: 16px; font-weight: 500;
}
.footer__col a {
  display: block; padding: 6px 0; font-size: 13px; color: rgba(255,255,255,.65);
  transition: color .25s;
}
.footer__col a:hover { color: var(--gold-soft); }
.footer__col p { font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ---------- ToTop ---------- */
.toTop {
  position: fixed; right: 28px; bottom: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .3s;
  z-index: 99;
}
.toTop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toTop:hover { background: var(--gold-deep); color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: .15s; }

/* Hero 入场：使用 transform-only 动画（始终保持可见），兼顾 headless 截图与真实浏览器体验 */
@keyframes heroReveal {
  from { transform: translateY(14px); }
  to   { transform: translateY(0); }
}
.hero__copy {
  animation: heroReveal .8s cubic-bezier(.2,.8,.2,1) both;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
}
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 32, 51, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .3s ease;
}
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(900px, 92vw); max-height: 88vh;
  background: var(--paper); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: modalIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -45%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--navy);
  font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: var(--gold); color: #fff; }
.modal__body { overflow-y: auto; padding: 48px 56px 24px; }
.modal__hero {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
  align-items: center;
}
.modal__photo {
  width: 220px; height: 290px; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-md); position: relative;
}
.modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.modal__name {
  font-family: var(--font-serif); font-size: 36px; font-weight: 600;
  color: var(--navy); letter-spacing: .08em;
}
.modal__position {
  margin-top: 8px; color: var(--gold-deep); font-size: 14px; letter-spacing: .18em;
}
.modal__edu { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.modal__cert { margin-top: 6px; font-size: 13px; color: var(--ink-mute); }
.modal__summary {
  margin-top: 18px; padding: 16px 18px; border-radius: 10px;
  background: var(--bg); border-left: 3px solid var(--gold);
  font-size: 14px; color: var(--ink-soft); line-height: 1.8;
}
.modal__section { margin-top: 32px; }
.modal__section h4 {
  font-family: var(--font-serif); font-size: 18px; color: var(--navy);
  margin-bottom: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.modal__section h4::before {
  content: ""; width: 24px; height: 2px; background: var(--gold);
}
.modal__section ul li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.85;
  margin-bottom: 8px;
}
.modal__section ul li::before {
  content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 700;
}
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__tag {
  font-size: 12px; padding: 6px 14px; border-radius: 4px;
  background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line);
}
.modal__contact {
  margin-top: 32px; padding: 22px 24px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.modal__contactItem { font-size: 13px; }
.modal__contactItem span {
  display: block; font-size: 11px; letter-spacing: .2em;
  color: var(--gold-soft); margin-bottom: 6px;
}
.modal__contactItem strong { font-size: 16px; color: #fff; font-weight: 500; word-break: break-all; }

.modal__nav {
  display: flex; justify-content: space-between; padding: 16px 56px 24px;
  border-top: 1px solid var(--line);
}
.modal__btn {
  font-size: 13px; padding: 10px 22px; border-radius: 999px;
  background: var(--bg); color: var(--ink); transition: all .25s;
}
.modal__btn:hover { background: var(--navy); color: #fff; }
.modal__btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .about__copy .section__title { text-align: center; }
  .about__copy .section__eyebrow::after { left: 50%; transform: translateX(-50%); }
  .practice__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .cases__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .modal__hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .modal__photo { width: 180px; height: 240px; }
  .modal__contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .nav__brandCn { font-size: 15px; }
  .nav__brandEn { font-size: 9px; }
  .nav__logo { height: 40px; }
  .hero { padding-top: 120px; padding-bottom: 80px; min-height: auto; }
  .hero__titleCn { font-size: 38px; }
  .practice__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tcard__name { font-size: 19px; }
  .modal__body { padding: 32px 24px 16px; }
  .modal__nav { padding: 16px 24px 20px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { font-size: 11px; }
  .toTop { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .team__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
 *   首页 cases 板块（5 个方向卡，沿用 pcard 样式）
 * ================================================================== */
.cases__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 12px;
}
.pcard__more {
  display: inline-block; margin-top: 18px;
  font-size: 12px; letter-spacing: .12em; color: var(--gold-deep);
  transition: transform .25s;
}
.pcard:hover .pcard__more { transform: translateX(4px); }

/* ==================================================================
 *   案例列表页（cases.html）
 * ================================================================== */
.crumbs {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 0 8px; font-size: 13px; color: var(--ink-mute);
}
.crumbs a { color: var(--ink-mute); transition: color .2s; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs__sep { color: var(--line); }

.casespage { padding-bottom: 80px; }
.casespage__head { text-align: center; padding: 24px 0 48px; }
.casespage__title {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px);
  color: var(--navy); margin-top: 18px; font-weight: 500;
}
.casespage__sub { color: var(--ink-soft); margin-top: 14px; }

.casespage__layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start;
}

/* 侧边栏分类 */
.cat__list { display: flex; flex-direction: column; gap: 6px; }
.cat__link {
  display: block; padding: 14px 18px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); transition: all .2s;
}
.cat__link:hover { color: var(--gold-deep); border-color: var(--gold-soft); }
.cat__link.is-active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* 搜索 */
.casespage__search {
  display: flex; align-items: center; margin-bottom: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.casespage__search input {
  flex: 1; padding: 14px 18px; border: 0; background: transparent;
  font: inherit; outline: none; color: var(--ink);
}
.casespage__search button {
  width: 52px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
}

/* 文章卡片列表 */
.acard__list { display: flex; flex-direction: column; gap: 14px; }
.acard {
  display: block; padding: 26px 30px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  transition: all .25s; text-decoration: none; color: inherit;
}
.acard:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.acard__cat {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold-soft); font-size: 12px; letter-spacing: .12em;
  margin-bottom: 14px;
}
.acard__title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--navy); line-height: 1.5; margin-bottom: 10px;
  transition: color .2s;
}
.acard:hover .acard__title { color: var(--gold-deep); }
.acard__excerpt {
  font-size: 14px; color: var(--ink-soft); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.acard__foot {
  display: flex; gap: 24px; margin-top: 14px;
  font-size: 12px; color: var(--ink-mute);
}
.acard__date, .acard__views { display: inline-flex; align-items: center; gap: 6px; }
.acard__empty {
  padding: 60px 0; text-align: center; color: var(--ink-mute); font-size: 14px;
}

/* ==================================================================
 *   文章详情页（articles/*.html）
 * ================================================================== */
.article { padding: 24px 0 80px; }
.article__body {
  max-width: 820px; margin: 0 auto; padding: 40px 0;
}
.article__head { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article__cat {
  display: inline-block; padding: 5px 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold-soft); font-size: 12px; letter-spacing: .12em;
  margin-bottom: 18px;
}
.article__title {
  font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 36px);
  color: var(--navy); font-weight: 500; line-height: 1.4; margin: 0 0 18px;
}
.article__meta {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; font-size: 13px; color: var(--ink-mute); flex-wrap: wrap;
}
.article__dot { color: var(--line); }
.article__excerpt {
  margin: 24px auto 0; max-width: 680px;
  padding: 18px 22px; border-radius: 8px;
  background: var(--bg); border-left: 3px solid var(--gold);
  font-size: 15px; color: var(--ink-soft); line-height: 1.85; text-align: left;
}

.article__content {
  margin-top: 40px; font-size: 16px; color: var(--ink);
  line-height: 1.95;
}
.article__content h2 {
  font-family: var(--font-serif); font-size: 22px; color: var(--navy);
  margin: 40px 0 18px; font-weight: 600;
  padding-left: 14px; border-left: 3px solid var(--gold);
}
.article__content h3 {
  font-family: var(--font-serif); font-size: 18px; color: var(--navy);
  margin: 30px 0 14px; font-weight: 600;
}
.article__content p { margin: 0 0 18px; color: var(--ink-soft); }
.article__content strong { color: var(--navy); font-weight: 600; }
.article__content em { color: var(--gold-deep); font-style: normal; }
.article__content blockquote {
  margin: 20px 0; padding: 16px 22px; border-left: 3px solid var(--gold);
  background: var(--bg); color: var(--ink-soft); border-radius: 0 8px 8px 0;
}
.article__content ul, .article__content ol {
  margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft);
}
.article__content li { margin-bottom: 6px; }
.article__content code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 14px; padding: 2px 6px; border-radius: 4px;
  background: var(--bg); color: var(--gold-deep);
}
.article__content hr {
  border: 0; height: 1px; background: var(--line);
  margin: 32px 0;
}

.article__foot {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ==================================================================
 *   响应式：cases/article 页
 * ================================================================== */
@media (max-width: 980px) {
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .casespage__layout { grid-template-columns: 1fr; }
  .cat__list { flex-direction: row; flex-wrap: wrap; }
  .cat__link { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 720px) {
  .cases__grid { grid-template-columns: 1fr; }
  .article__foot { flex-direction: column; }
  .article__foot .btn { width: 100%; }
}