/* ============================================================
   易辩律师事务所 — 前台样式
   设计语言「衡」：墨青 × 鎏金 × 朱印，衬线为骨，栏序为纲
   Warm rice-paper base · running index numerals · seal motif
   ============================================================ */
:root {
  /* ink */
  --ink-950: #08131f;
  --ink-900: #0b1a2a;
  --ink-850: #0f2136;
  --ink-800: #12283f;
  --ink-700: #1b3855;
  --ink-600: #274a6b;
  /* gold */
  --gold-700: #94702f;
  --gold-600: #a6803a;
  --gold-500: #b9944c;
  --gold-400: #cca866;
  --gold-300: #ddc492;
  /* seal (vermilion) */
  --seal: #a6322a;
  --seal-bright: #c0392c;
  /* neutrals — warm */
  --paper: #f5f0e6;
  --paper-2: #efe8d9;
  --paper-3: #e9e0cd;
  --card: #fffdf8;
  --ink: #1c2530;
  --body: #37424f;
  --muted: #5f6a76;
  --muted-2: #8b95a0;
  --line: #e2dbcb;
  --line-soft: #ebe5d7;
  --line-ink: rgba(221, 196, 146, 0.16);
  /* type */
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  /* fx */
  --shadow-card: 0 22px 50px -24px rgba(9, 20, 33, 0.34);
  --shadow-soft: 0 14px 34px -20px rgba(9, 20, 33, 0.28);
  --shadow-ink: 0 30px 70px -30px rgba(6, 15, 26, 0.7);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--body); line-height: 1.85; font-size: 16px;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(185, 148, 76, 0.05), transparent 42%),
    radial-gradient(circle at 84% 82%, rgba(18, 40, 63, 0.045), transparent 46%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: inline-block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold-500); color: #fff; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 26px; }
.ic { display: inline-block; vertical-align: middle; }

/* ---------------- seal motif ---------------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex-shrink: 0; position: relative;
  background: linear-gradient(155deg, var(--seal-bright), var(--seal));
  color: #fbeee5; font-family: var(--serif); font-weight: 700; font-size: 24px;
  border-radius: 8px; box-shadow: 0 6px 16px -6px rgba(166, 50, 42, 0.6);
  letter-spacing: 0;
}
.seal::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(251, 238, 229, 0.55);
  border-radius: 4px; pointer-events: none;
}

/* ---------------- buttons ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 34px; font-size: 14.5px; font-family: var(--sans); letter-spacing: 0.16em;
  border: 1px solid transparent; border-radius: 3px; cursor: pointer; overflow: hidden;
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-align: center; white-space: nowrap;
}
.btn::after {
  content: "→"; font-size: 13px; opacity: 0; width: 0; margin-left: -10px;
  transition: opacity 0.35s var(--ease), width 0.35s var(--ease), margin 0.35s var(--ease);
}
.btn:hover::after { opacity: 1; width: 13px; margin-left: 0; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff; box-shadow: 0 12px 26px -14px rgba(166, 128, 58, 0.9);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(166, 128, 58, 0.95); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.42); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-300); background: rgba(221, 196, 146, 0.06); }
.btn-outline { border-color: var(--ink-800); color: var(--ink-800); background: transparent; }
.btn-outline:hover { background: var(--ink-800); color: #fff; transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ---------------- header ---------------- */
.header-top {
  background: var(--ink-950); color: rgba(240, 233, 218, 0.62); font-size: 12.5px;
  letter-spacing: 0.08em; border-bottom: 1px solid var(--line-ink);
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.header-top-inner .slogan { display: inline-flex; align-items: center; gap: 12px; }
.header-top-inner .slogan::before { content: ""; width: 16px; height: 1px; background: var(--gold-500); }
.header-phone strong { color: var(--gold-300); font-family: var(--serif); font-size: 14.5px; letter-spacing: 0.08em; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 240, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow 0.35s, background 0.35s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(9, 20, 33, 0.4); background: rgba(250, 247, 240, 0.96); }
.header-main { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-logo { height: 50px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--ink-850); letter-spacing: 0.14em; white-space: nowrap; }
.brand-en { font-size: 10px; color: var(--gold-600); text-transform: uppercase; letter-spacing: 0.3em; white-space: nowrap; margin-top: 2px; }

.nav-wrap { display: flex; align-items: center; gap: 22px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { position: relative; padding: 10px 14px; font-size: 15.5px; color: var(--ink); letter-spacing: 0.04em; white-space: nowrap; transition: color 0.25s; }
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-700); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; font-size: 20px; padding: 5px 13px; cursor: pointer; color: var(--ink-850); }

/* ---------------- hero ---------------- */
.hero { position: relative; height: 640px; overflow: hidden; background: var(--ink-950); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4;
  background: linear-gradient(90deg, transparent 0%, rgba(185, 148, 76, 0.85) 20%, var(--seal) 50%, rgba(185, 148, 76, 0.85) 80%, transparent 100%);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  display: flex; align-items: center; visibility: hidden; overflow: hidden;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg); background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; visibility: visible; }
.hero-slide.active::before { animation: kenburns 9s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 14, 24, 0.86) 24%, rgba(6, 14, 24, 0.5) 56%, rgba(6, 14, 24, 0.15) 82%),
    radial-gradient(120% 120% at 12% 50%, transparent 40%, rgba(4, 10, 18, 0.45) 100%);
}
.hero-plain .hero-overlay { background: linear-gradient(180deg, rgba(6, 14, 24, 0.34) 0%, rgba(6, 14, 24, 0) 34%, rgba(6, 14, 24, 0.28) 100%); }
.hero-content { position: relative; z-index: 3; color: #fff; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 16px; font-family: var(--serif);
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 28px;
}
.hero-eyebrow::before { content: ""; width: 52px; height: 1px; background: var(--gold-500); }
.hero-content h1 {
  font-family: var(--serif); font-size: clamp(36px, 4.8vw, 60px); font-weight: 700;
  letter-spacing: 0.1em; line-height: 1.32; margin-bottom: 24px; max-width: 15em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-content p { font-size: 18px; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.08em; margin-bottom: 44px; max-width: 34em; line-height: 1.9; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-side {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%); z-index: 3;
  writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--serif);
  font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(221, 196, 146, 0.55);
  display: flex; align-items: center; gap: 20px;
}
.hero-side::after { content: ""; width: 1px; height: 64px; background: linear-gradient(rgba(221, 196, 146, 0.5), transparent); }
.hero-dots { position: absolute; bottom: 32px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; z-index: 4; }
.hero-dot { width: 34px; height: 2px; border: none; padding: 0; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.35s; }
.hero-dot.active { background: var(--gold-400); height: 3px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 4;
  width: 24px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 14px; pointer-events: none;
}
.hero-scroll::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px;
  background: var(--gold-300); transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------------- sections ---------------- */
.section { padding: 104px 0; position: relative; }
.section-white { background: #fff; }
.section-paper { background: var(--paper-2); }
.section-ink {
  background:
    repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 18px),
    linear-gradient(120deg, var(--ink-950) 0%, var(--ink-800) 100%);
  color: #fff;
}

/* editorial section header */
.sec-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 60px; position: relative; }
.sec-idx {
  font-family: var(--serif); font-size: clamp(50px, 6vw, 74px); font-weight: 700; line-height: 0.72;
  color: transparent; -webkit-text-stroke: 1px rgba(166, 128, 58, 0.4); flex-shrink: 0; letter-spacing: 0.02em;
}
.section-ink .sec-idx { -webkit-text-stroke-color: rgba(221, 196, 146, 0.42); }
.sec-head-text { flex-shrink: 0; }
.sec-eyebrow {
  display: block; font-family: var(--serif); font-size: 11.5px; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px;
}
.section-ink .sec-eyebrow { color: var(--gold-300); }
.sec-head h2 { font-family: var(--serif); font-size: clamp(27px, 3.2vw, 38px); font-weight: 700; color: var(--ink-850); letter-spacing: 0.12em; line-height: 1.2; }
.section-ink .sec-head h2 { color: #fff; }
.sec-rule { flex: 1; height: 1px; background: var(--line); margin-bottom: 12px; position: relative; min-width: 40px; }
.sec-rule::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 1px; background: linear-gradient(90deg, var(--gold-500), transparent); }
.section-ink .sec-rule { background: var(--line-ink); }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.sec-head.center .sec-rule { display: none; }
.section-more { text-align: center; margin-top: 56px; }

/* ---------------- home · about ---------------- */
.about-flex { display: grid; grid-template-columns: 1.15fr 1fr; gap: 68px; align-items: center; position: relative; }
.about-watermark {
  position: absolute; left: -18px; top: -66px; font-family: var(--serif); font-size: 190px; font-weight: 700;
  color: rgba(18, 40, 63, 0.035); line-height: 1; pointer-events: none; user-select: none; z-index: 0;
}
.about-text { position: relative; z-index: 1; }
.about-lead { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.7; color: var(--ink-850); letter-spacing: 0.04em; margin-bottom: 26px; }
.about-lead .accent { color: var(--gold-700); }
.about-text > p { font-size: 16px; line-height: 2.1; color: var(--body); margin-bottom: 32px; }
.about-text .btn { align-self: flex-start; }
.about-points { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: pt; }
.about-points li {
  counter-increment: pt; background: var(--card); border: 1px solid var(--line);
  padding: 26px 24px 22px; transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.about-points li::before {
  content: counter(pt, decimal-leading-zero); position: absolute; right: 18px; top: 14px; font-family: var(--serif);
  font-size: 16px; letter-spacing: 0.1em; color: transparent; -webkit-text-stroke: 0.8px rgba(166, 128, 58, 0.55);
}
.about-points li::after { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px; background: var(--gold-500); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.about-points li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--line); }
.about-points li:hover::after { transform: scaleY(1); }
.about-points strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink-850); letter-spacing: 0.12em; margin-bottom: 8px; }
.about-points span { font-size: 13px; color: var(--muted); line-height: 1.75; display: block; }

/* ---------------- practice ---------------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  padding: 42px 34px 34px; display: block; transition: all 0.4s var(--ease); overflow: hidden;
}
.practice-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(150deg, var(--ink-900), var(--ink-800));
  clip-path: inset(0 0 100% 0); transition: clip-path 0.45s var(--ease);
}
.practice-idx {
  position: absolute; right: 26px; top: 24px; font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em;
  color: transparent; -webkit-text-stroke: 0.8px rgba(166, 128, 58, 0.5); z-index: 2; transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.practice-icon { position: relative; z-index: 2; color: var(--gold-600); display: block; transition: color 0.4s, transform 0.4s var(--ease); }
.practice-card h3 { position: relative; z-index: 2; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink-850); letter-spacing: 0.1em; margin: 22px 0 12px; transition: color 0.4s; }
.practice-card p { position: relative; z-index: 2; font-size: 13.5px; color: var(--muted); line-height: 1.9; transition: color 0.4s; }
.practice-more {
  position: relative; z-index: 2; display: inline-block; margin-top: 22px; font-size: 12.5px; letter-spacing: 0.14em; color: var(--gold-700);
  opacity: 0; transform: translateX(-8px); transition: all 0.4s var(--ease);
}
.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.practice-card:hover::before { clip-path: inset(0 0 0 0); }
.practice-card:hover .practice-icon { color: var(--gold-300); transform: scale(1.06); }
.practice-card:hover h3 { color: #fff; }
.practice-card:hover p { color: rgba(255, 255, 255, 0.72); }
.practice-card:hover .practice-idx { -webkit-text-stroke-color: rgba(221, 196, 146, 0.6); }
.practice-card:hover .practice-more { opacity: 1; transform: none; color: var(--gold-300); }

/* ---------------- team ---------------- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.team-card {
  width: 262px; max-width: 100%; background: var(--card); border: 1px solid var(--line); text-align: center;
  padding-bottom: 28px; display: block; overflow: hidden; transition: all 0.4s var(--ease); position: relative;
}
.team-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(0); transition: transform 0.4s var(--ease); z-index: 3; }
.team-card:hover { box-shadow: var(--shadow-card); border-color: var(--line); transform: translateY(-6px); }
.team-card:hover::before { transform: scaleX(1); }
.team-photo { aspect-ratio: 3 / 3.6; overflow: hidden; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; background: linear-gradient(158deg, var(--ink-800) 0%, var(--ink-600) 100%); position: relative; }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 19, 31, 0.45)); opacity: 0; transition: opacity 0.4s; }
.team-card:hover .team-photo::after { opacity: 1; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo-placeholder {
  width: 96px; height: 96px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(221, 196, 146, 0.5); border-radius: 50%;
  font-family: var(--serif); font-size: 44px; color: var(--gold-300);
}
.team-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink-850); letter-spacing: 0.12em; }
.team-title { font-size: 12px; color: var(--gold-700); letter-spacing: 0.1em; margin: 7px 0 9px; }
.team-specialty { font-size: 13px; color: var(--muted); padding: 0 20px; }

/* ---------------- news ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { position: relative; background: var(--card); border: 1px solid var(--line); padding: 32px 30px 30px; display: flex; flex-direction: column; transition: all 0.4s var(--ease); overflow: hidden; }
.news-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.news-card:hover::after { transform: scaleX(1); }
.news-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.news-cat { font-size: 11.5px; color: var(--gold-700); border: 1px solid rgba(166, 128, 58, 0.4); padding: 3px 13px; letter-spacing: 0.12em; }
.news-date { font-family: var(--serif); font-size: 13px; color: var(--muted-2); letter-spacing: 0.06em; }
.news-card h3 {
  font-size: 17.5px; font-weight: 600; color: var(--ink-850); line-height: 1.6; margin-bottom: 14px; letter-spacing: 0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; transition: color 0.3s;
}
.news-card:hover h3 { color: var(--gold-700); }
.news-card p { font-size: 13.5px; color: var(--muted); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-readmore { margin-top: auto; padding-top: 18px; font-size: 12px; letter-spacing: 0.14em; color: var(--gold-700); display: inline-flex; align-items: center; gap: 8px; }

/* ---------------- CTA ---------------- */
.cta-band {
  position: relative; color: #fff; padding: 84px 0; overflow: hidden;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 17px),
    linear-gradient(112deg, var(--ink-950) 0%, var(--ink-700) 100%);
  border-top: 1px solid var(--gold-600);
}
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--seal) 50%, transparent); }
.cta-watermark {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 300px; font-weight: 700;
  color: rgba(255, 255, 255, 0.035); line-height: 1; pointer-events: none; user-select: none;
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta-text-wrap { display: flex; align-items: center; gap: 24px; }
.cta-inner h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 33px); letter-spacing: 0.14em; margin-bottom: 12px; }
.cta-inner p { color: rgba(255, 255, 255, 0.74); letter-spacing: 0.04em; }
.cta-inner strong { color: var(--gold-300); font-family: var(--serif); font-size: 20px; letter-spacing: 0.06em; }
.cta-band .btn-gold { padding: 16px 42px; }

/* ---------------- page banner (interior) ---------------- */
.page-banner {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 17px),
    linear-gradient(115deg, var(--ink-950) 0%, var(--ink-800) 100%);
  color: #fff; padding: 74px 0 64px; border-bottom: 1px solid var(--gold-600);
}
.page-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--seal) 50%, transparent); }
.page-banner::after {
  content: ""; position: absolute; right: 5%; top: 50%; width: 210px; height: 210px;
  transform: translateY(-50%); border: 1px solid rgba(221, 196, 146, 0.22); border-radius: 50%; pointer-events: none;
}
.page-banner .container { position: relative; }
.page-banner h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: 0.18em; position: relative; padding-bottom: 20px; }
.page-banner h1::before { content: "YIBIAN LAW FIRM"; display: block; font-family: var(--serif); font-size: 11.5px; font-weight: 400; letter-spacing: 0.4em; color: var(--gold-300); margin-bottom: 16px; }
.page-banner h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 2px; background: var(--gold-500); }
.page-banner-icon-row { display: flex; align-items: center; gap: 20px; }
.page-banner-icon { color: var(--gold-300); flex-shrink: 0; }
.page-banner-icon-row h1::before { content: none; }
.page-banner-icon-row h1 { padding-bottom: 16px; }

/* ---------------- article list ---------------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.cat-tabs a {
  padding: 9px 26px; border: 1px solid var(--line); font-size: 14px; letter-spacing: 0.08em;
  color: var(--muted); background: var(--card); transition: all 0.28s;
}
.cat-tabs a:hover { border-color: var(--ink-800); color: var(--ink-850); }
.cat-tabs a.active { background: var(--ink-850); border-color: var(--ink-850); color: #fff; }
.article-list { display: flex; flex-direction: column; }
.article-row { display: flex; gap: 30px; padding: 32px 14px; border-bottom: 1px solid var(--line); transition: background 0.28s, padding 0.3s var(--ease); position: relative; }
.article-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-500); transform: scaleY(0); transition: transform 0.35s var(--ease); }
.article-row:first-child { border-top: 1px solid var(--line); }
.article-row:hover { background: var(--card); padding-left: 22px; }
.article-row:hover::before { transform: scaleY(1); }
.article-thumb { flex: 0 0 224px; height: 148px; overflow: hidden; background: var(--paper-2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.article-row:hover .article-thumb img { transform: scale(1.06); }
.article-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-info h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink-850); margin-bottom: 11px; letter-spacing: 0.04em; transition: color 0.25s; }
.article-row:hover h3 { color: var(--gold-700); }
.article-info p { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: 22px; font-size: 12.5px; color: var(--muted-2); font-family: var(--serif); letter-spacing: 0.05em; }
.article-meta-center { justify-content: center; margin-bottom: 34px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 52px; font-size: 14px; color: var(--muted); font-family: var(--serif); }
.pagination a { padding: 10px 26px; border: 1px solid var(--line); background: var(--card); transition: all 0.25s; font-family: var(--sans); }
.pagination a:hover { border-color: var(--ink-800); color: var(--ink-850); }

/* ---------------- article detail ---------------- */
.content-with-side { display: flex; gap: 56px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.side-col { flex: 0 0 312px; }
.article-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 31px); font-weight: 700; color: var(--ink-850); text-align: center; line-height: 1.55; letter-spacing: 0.05em; margin-bottom: 18px; }
.article-cover { display: block; margin: 0 auto 32px; border-radius: 2px; }
.rich-content { font-size: 16.5px; color: #333e4c; line-height: 2.1; }
.rich-content p { margin-bottom: 22px; }
.rich-content h2 {
  font-family: var(--serif); font-size: 23px; color: var(--ink-850); letter-spacing: 0.06em;
  margin: 44px 0 20px; padding-left: 16px; border-left: 3px solid var(--gold-500);
}
.rich-content h3 { font-family: var(--serif); font-size: 19px; color: var(--ink-850); margin: 32px 0 15px; letter-spacing: 0.04em; }
.rich-content ul, .rich-content ol { margin: 0 0 22px 2em; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin-bottom: 11px; }
.rich-content li::marker { color: var(--gold-600); }
.rich-content img { display: block; margin: 28px auto; border-radius: 2px; }
.rich-content blockquote { border-left: 3px solid var(--gold-500); background: var(--paper-2); padding: 18px 24px; margin-bottom: 22px; color: var(--muted); font-style: italic; }
.rich-content a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.rich-content strong { color: var(--ink-850); }
.back-link { margin-top: 48px; }
.back-link a { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; transition: color 0.25s; }
.back-link a:hover { color: var(--gold-700); }

/* ---------------- sidebar ---------------- */
.side-box { border: 1px solid var(--line); background: var(--card); padding: 28px 28px 24px; margin-bottom: 22px; }
.side-box h4 { font-family: var(--serif); font-size: 18px; color: var(--ink-850); letter-spacing: 0.12em; margin-bottom: 6px; }
.side-box h4::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold-500); margin: 13px 0 15px; }
.side-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-list li:last-child { border-bottom: none; padding-bottom: 0; }
.side-list a { transition: color 0.2s; display: block; }
.side-list a:hover { color: var(--gold-700); }
.side-icon-link { display: flex; align-items: center; gap: 11px; }
.side-icon-link .ic { color: var(--gold-600); flex-shrink: 0; }
.side-contact { position: relative; background: linear-gradient(155deg, var(--ink-900), var(--ink-800)); border-color: var(--ink-800); color: #fff; overflow: hidden; }
.side-contact::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(221, 196, 146, 0.28); pointer-events: none; }
.side-contact h4 { color: #fff; }
.side-contact p { font-family: var(--serif); font-size: 16.5px; color: var(--gold-300); letter-spacing: 0.05em; margin-bottom: 8px; position: relative; }
.side-contact .btn { margin-top: 16px; }

/* ---------------- lawyer profile ---------------- */
.lawyer-profile { display: flex; gap: 60px; align-items: flex-start; }
.lawyer-photo-large {
  flex: 0 0 340px; aspect-ratio: 3 / 3.7; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(158deg, var(--ink-800) 0%, var(--ink-600) 100%); border: 1px solid var(--line); position: relative;
}
.lawyer-photo-large::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(221, 196, 146, 0.25); pointer-events: none; }
.lawyer-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-photo-large .team-photo-placeholder { width: 116px; height: 116px; font-size: 54px; }
.lawyer-detail { flex: 1; min-width: 0; }
.lawyer-detail h1 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 33px); font-weight: 700; color: var(--ink-850); letter-spacing: 0.16em; }
.lawyer-title-line { color: var(--gold-700); font-size: 14px; letter-spacing: 0.1em; margin: 10px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.lawyer-detail > p { margin-bottom: 10px; font-size: 15px; }
.lawyer-detail strong { color: var(--ink-850); }
.lawyer-bio { margin-top: 28px; }

/* ---------------- documents ---------------- */
.doc-list { display: flex; flex-direction: column; gap: 16px; }
.doc-row {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border: 1px solid var(--line); background: var(--card); padding: 26px 32px; transition: all 0.35s var(--ease);
}
.doc-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-500); transform: scaleY(0); transition: transform 0.35s var(--ease); }
.doc-row:hover { box-shadow: var(--shadow-soft); border-color: var(--line); transform: translateX(4px); }
.doc-row:hover::before { transform: scaleY(1); }
.doc-info h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink-850); margin-bottom: 9px; letter-spacing: 0.03em; }
.doc-meta { display: flex; gap: 20px; font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; font-family: var(--serif); }

/* ---------------- contact ---------------- */
.contact-flex { display: flex; gap: 62px; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-info h2, .contact-form-box h2 { font-family: var(--serif); font-size: 25px; color: var(--ink-850); letter-spacing: 0.14em; margin-bottom: 8px; }
.contact-info h2::after, .contact-form-box h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold-500); margin: 15px 0 20px; }
.contact-intro { color: var(--muted); font-size: 14.5px; line-height: 2; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--line); font-size: 15px; align-items: baseline; }
.contact-list strong { flex: 0 0 46px; color: var(--gold-700); font-family: var(--serif); letter-spacing: 0.1em; }
.contact-qr { margin-top: 30px; text-align: center; display: inline-block; }
.contact-qr img { width: 146px; border: 1px solid var(--line); padding: 9px; background: #fff; }
.contact-qr p { font-size: 12.5px; color: var(--muted); margin-top: 11px; letter-spacing: 0.08em; }
.contact-form-box { position: relative; flex: 1.05; background: var(--card); border: 1px solid var(--line); padding: 46px 46px; box-shadow: var(--shadow-soft); }
.contact-form-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.contact-form-box::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(166, 128, 58, 0.16); pointer-events: none; }
.contact-form { position: relative; }
.contact-form label { display: block; margin-bottom: 20px; font-size: 13.5px; color: var(--ink-850); font-weight: 600; letter-spacing: 0.04em; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 9px; padding: 13px 15px; border: 1px solid #d9d1c0;
  border-radius: 3px; font-size: 15px; font-family: var(--sans); background: #fff; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(185, 148, 76, 0.16); }
.contact-form .btn { margin-top: 8px; }
.req { color: var(--seal); }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; opacity: 0; }
.alert { padding: 15px 20px; font-size: 14.5px; margin-bottom: 24px; border-radius: 3px; }
.alert-success { background: #f0f7f1; color: #1e7a37; border: 1px solid #c4e3cb; }
.alert-error { background: #fbf1ef; color: var(--seal); border: 1px solid #eecdc7; }

/* ---------------- footer ---------------- */
.site-footer { position: relative; background: var(--ink-950); color: rgba(240, 233, 218, 0.6); font-size: 14px; overflow: hidden; border-top: 1px solid var(--gold-600); }
.site-footer::before {
  content: "易"; position: absolute; right: 3%; top: -80px; font-family: var(--serif); font-size: 380px; font-weight: 700;
  color: rgba(255, 255, 255, 0.016); line-height: 1; pointer-events: none; user-select: none;
}
.footer-brand-row { position: relative; border-bottom: 1px solid var(--line-ink); }
.footer-brand-row .container { display: flex; align-items: center; gap: 18px; padding: 32px 26px; }
.footer-brand-row .brand-name { color: #fff; }
.footer-brand-row .brand-en { color: var(--gold-400); }
.footer-brand-row .slogan { margin-left: auto; font-family: var(--serif); font-size: 15px; letter-spacing: 0.2em; color: var(--gold-300); }
.footer-grid { position: relative; display: flex; gap: 66px; padding: 60px 26px 48px; max-width: 1220px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-family: var(--serif); font-size: 16.5px; letter-spacing: 0.16em; margin-bottom: 8px; }
.footer-col h4::after { content: ""; display: block; width: 24px; height: 2px; background: var(--gold-500); margin: 13px 0 19px; }
.footer-about { flex: 1.5; }
.footer-about p { line-height: 2.05; font-size: 13.5px; }
.footer-col { flex: 1; }
.footer-col ul li { margin-bottom: 11px; font-size: 13.5px; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-qr { margin-top: 22px; }
.footer-qr img { width: 96px; display: block; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, 0.14); padding: 5px; background: rgba(255,255,255,0.03); }
.footer-qr span { font-size: 12px; letter-spacing: 0.08em; }
.footer-contact li { line-height: 1.95; }
.footer-bottom { position: relative; border-top: 1px solid var(--line-ink); padding: 22px 0; font-size: 12.5px; color: rgba(240, 233, 218, 0.4); }
.footer-bottom a:hover { color: var(--gold-300); }
.friendly-links { margin-top: 10px; }
.friendly-links a { margin-right: 16px; }

/* ---------------- misc ---------------- */
.empty-tip { text-align: center; color: var(--muted); padding: 64px 0; letter-spacing: 0.06em; }
.not-found { text-align: center; padding: 120px 26px; }
.not-found h1 { font-family: var(--serif); font-size: 96px; color: transparent; -webkit-text-stroke: 1.5px var(--gold-500); letter-spacing: 0.1em; }
.not-found p { color: var(--muted); margin: 20px 0 34px; }
.page-content { max-width: 900px; margin: 0 auto; }

/* ---------------- reveal on scroll ---------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-slide.active::before { animation: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-wrap { gap: 0; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; border-top: 1px solid var(--line); box-shadow: 0 18px 34px -18px rgba(9, 20, 33, 0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 26px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta { display: none; }
  .hero { height: 520px; }
  .hero-side { display: none; }
  .about-flex { grid-template-columns: 1fr; gap: 44px; }
  .contact-flex, .content-with-side, .lawyer-profile { flex-direction: column; }
  .side-col { flex: none; width: 100%; }
  .practice-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { flex-direction: column; gap: 40px; }
  .footer-brand-row .container { flex-wrap: wrap; }
  .footer-brand-row .slogan { margin-left: 0; width: 100%; }
  .lawyer-photo-large { width: 100%; max-width: 340px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 46px; }
  .cta-watermark { font-size: 200px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .page-banner::after { display: none; }
  .practice-grid, .news-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr 1fr; }
  .article-thumb { display: none; }
  .brand-name { font-size: 18px; letter-spacing: 0.08em; }
  .brand-en { display: none; }
  .brand-logo { height: 42px; }
  .header-top-inner .slogan { max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .header-main { height: 70px; }
  .hero { height: 480px; }
  .hero-content p { font-size: 15.5px; }
  .hero-eyebrow { letter-spacing: 0.28em; margin-bottom: 20px; }
  .sec-head { gap: 16px; }
  .sec-idx { font-size: 44px; }
  .contact-form-box { padding: 34px 24px; }
  .section { padding: 58px 0; }
  .cta-text-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .header-top-inner { font-size: 11px; }
}
