/* =========================================================
   知序律师事务所 · 家事法律事务部
   前端样式：编辑式排版 / 纸感 / 金线
   ========================================================= */

:root {
  --paper: #fcfaf6;
  --cream: #f6f0e4;
  --cream-deep: #efe6d3;
  --gold: #a9823f;
  --gold-bright: #c19a55;
  --gold-soft: #d8c29a;
  --gold-wash: #f4ecdb;
  --navy: #1f2a3c;
  --navy-deep: #16202f;
  --ink: #191713;
  --slate: #5f5c55;
  --ash: #8d877a;
  --line: #e5dcc9;
  --line-soft: #f0e9da;

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --space-xs: clamp(4px, 0.5vw, 8px);
  --space-sm: clamp(8px, 1vw, 16px);
  --space-md: clamp(18px, 2.4vw, 34px);
  --space-lg: clamp(28px, 4.5vw, 64px);
  --space-xl: clamp(52px, 8vw, 116px);

  --max: 68rem;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.35vw, 16.5px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--slate);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 620px at 82% -10%, rgba(216, 194, 154, 0.16), transparent 62%),
    radial-gradient(900px 500px at 0% 8%, rgba(239, 230, 211, 0.5), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

::selection { background: var(--gold-soft); color: var(--navy-deep); }

/* ---------- 通用 ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px); }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.serif { font-family: var(--font-serif); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- 头部 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 246, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(252, 250, 246, 0.94);
}

.header-inner {
  max-width: 78rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: clamp(14px, 1.7vw, 20px) clamp(20px, 4vw, 44px);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.brand-text { min-width: 0; }
@media (max-width: 560px) {
  .brand-name { font-size: 13.5px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-firm { font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 32px; height: 32px; font-size: 15px; }
}
.brand-mark {
  width: 38px; height: 38px; border: 1px solid var(--gold-soft); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 17px; color: var(--gold);
  letter-spacing: 0; flex-shrink: 0;
  background: linear-gradient(140deg, #fffdf8, var(--gold-wash));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-name {
  font-family: var(--font-serif); font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600; color: var(--navy); letter-spacing: 0.035em;
}
.brand-firm {
  font-size: 11px; color: var(--ash); letter-spacing: 0.12em; font-weight: 300;
}
.brand:hover .brand-name { color: var(--gold); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); }
.nav > a, .nav-trigger {
  font-size: 13.5px; font-weight: 400; color: var(--slate);
  letter-spacing: 0.06em; padding: 4px 0; position: relative;
  border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s;
  cursor: pointer; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: var(--font-sans);
}
.nav > a:hover, .nav-trigger:hover, .nav > a.active { color: var(--navy); border-bottom-color: var(--gold); }

.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-trigger::after {
  content: ""; display: inline-block; width: 4px; height: 4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 7px; opacity: 0.55;
}
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px);
  min-width: 208px; background: #fffdf9; border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px -22px rgba(31, 42, 60, 0.32);
  padding: 10px 0; opacity: 0; visibility: hidden;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-menu a {
  display: block; padding: 9px 22px; font-size: 13.5px; color: var(--slate);
  letter-spacing: 0.05em; transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--gold); background: var(--gold-wash); }

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 14px; color: var(--navy) !important;
  border: 1px solid var(--gold-soft); padding: 8px 16px !important;
  letter-spacing: 0.03em; transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-phone:hover { background: var(--gold-wash); border-color: var(--gold); }
.nav-phone svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 18px; height: 1px; background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-phone { display: none; }
  .nav { gap: 16px; }
  .nav > a, .nav-trigger { font-size: 12.8px; letter-spacing: 0.02em; }
}

@media (max-width: 900px) {
  /* 关闭毛玻璃：backdrop-filter 会让 fixed 子元素以头部为包含块，导致抽屉定位错乱 */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fffdf9; border-bottom: 1px solid var(--line-soft);
    padding: 14px 24px 26px; box-shadow: 0 24px 40px -28px rgba(31, 42, 60, 0.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    max-height: none; overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > a, .nav-trigger {
    font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  }
  .nav-trigger { display: block; width: 100%; text-align: left; }
  .nav-drop { display: block; }
  .nav-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 4px 0 8px 14px; min-width: 0;
    display: none;
  }
  .nav-drop.is-open .nav-menu { display: block; }
  .nav-menu a { padding: 8px 0; font-size: 14px; }
  .nav-phone { display: inline-flex; justify-content: center; margin-top: 16px; padding: 12px 16px !important; }
}

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

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 clamp(42px, 6vw, 76px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(169, 130, 63, 0.05) 0 1px, transparent 1px 160px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.82fr);
  gap: clamp(32px, 6vw, 76px); align-items: center;
}
.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); font-size: 12.5px; letter-spacing: 0.32em;
  color: var(--gold); margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--gold-soft); }

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-wrap: balance;
  margin-bottom: 18px;
}
.hero h1 .thin { display: block; font-size: 0.62em; font-weight: 400; color: var(--slate); letter-spacing: 0.06em; margin-top: 14px; }

.hero-slogan {
  font-family: var(--font-serif); font-size: clamp(15px, 1.5vw, 18px);
  color: var(--gold); letter-spacing: 0.14em; margin-bottom: 26px;
}

.hero-phone {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--font-serif); color: var(--navy);
  font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: 0.06em;
  line-height: 1.1; margin-bottom: 24px; transition: color 0.25s;
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 6px;
}
.hero-phone span.hint { font-family: var(--font-sans); font-size: 12px; font-weight: 300; letter-spacing: 0.16em; color: var(--ash); }
.hero-phone:hover { color: var(--gold); border-bottom-color: var(--gold); }

.hero-lead {
  font-size: clamp(14.5px, 1.3vw, 16px);
  line-height: 2.05; color: var(--slate);
  max-width: 36rem; margin-bottom: 32px;
  text-align: justify;
}
.hero-lead strong { color: var(--navy); font-weight: 400; }

.hero-stats {
  display: flex; gap: clamp(26px, 4vw, 52px);
  padding-top: 26px; border-top: 1px solid var(--line);
  max-width: 34rem;
}
.stat-num {
  display: block; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600; color: var(--gold); line-height: 1.1;
}
.stat-label { display: block; font-size: 11.5px; color: var(--ash); letter-spacing: 0.14em; margin-top: 6px; }

/* 右侧徽章 */
.hero-figure { position: relative; display: grid; place-items: center; }
.medallion {
  position: relative; width: clamp(210px, 24vw, 300px); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 28%, #fffdf8 0%, #fbf5e8 46%, #f0e6d1 100%);
  border: 1px solid var(--gold-soft);
  box-shadow: 0 30px 70px -40px rgba(31, 42, 60, 0.45), inset 0 0 0 8px rgba(255, 255, 255, 0.55);
}
.medallion::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(169, 130, 63, 0.28);
}
.medallion::after {
  content: ""; position: absolute; inset: -46px; border-radius: 50%;
  border: 1px dashed rgba(169, 130, 63, 0.18);
}
.medallion-inner { text-align: center; }
.medallion-seal {
  white-space: nowrap;
  font-family: var(--font-serif); font-size: clamp(46px, 6vw, 68px);
  color: var(--navy); line-height: 1; letter-spacing: 0.04em;
  text-shadow: 0 1px 0 #fff;
}
.medallion-sub {
  margin-top: 14px; font-size: 10.5px; letter-spacing: 0.3em; color: var(--gold);
  white-space: nowrap;
}
.medallion-caption {
  position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.22em; color: var(--ash); white-space: nowrap;
}

@media (max-width: 860px) {
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { order: -1; }
  .medallion { width: 158px; }
  .medallion::after { inset: -26px; }
  .medallion-seal { font-size: 40px; }
  .medallion-caption { bottom: -24px; font-size: 10px; }
  .medallion-sub { font-size: 8px; letter-spacing: 0.16em; margin-top: 10px; }
  .hero-figure { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(23px, 6vw, 30px); }
  .hero-lead { font-size: 14.5px; line-height: 1.95; }
}

/* ---------- 区块 ---------- */

.section { padding: clamp(46px, 6.5vw, 84px) 0; }
.section--tight { padding-top: clamp(30px, 4vw, 52px); }
.section--line { border-top: 1px solid var(--line-soft); }

.section--cream {
  background: linear-gradient(180deg, rgba(246, 240, 228, 0.85), rgba(246, 240, 228, 0.35));
  border-top: 1px solid rgba(229, 220, 201, 0.7);
  border-bottom: 1px solid rgba(229, 220, 201, 0.7);
}

.section-head { margin-bottom: clamp(24px, 3vw, 40px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-main { max-width: 44rem; }
.section-rule { width: 34px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.section h2, .page-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(21px, 2.4vw, 29px); color: var(--navy);
  letter-spacing: 0.02em; line-height: 1.45;
}
.section-sub {
  margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--ash);
  letter-spacing: 0.02em; max-width: 40rem;
}
.section-aside { font-size: 12.5px; color: var(--ash); letter-spacing: 0.1em; }

/* ---------- 行式列表 ---------- */

.rows { border-top: 1px solid var(--line); }
.rows--numbered { counter-reset: row; }

.row {
  display: flex; align-items: flex-start; gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(16px, 2vw, 24px) 2px;
  border-bottom: 1px solid var(--line);
  position: relative; transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
  color: var(--navy);
}
.row:hover { background: rgba(244, 236, 219, 0.42); padding-left: 10px; }
.row-no {
  font-family: var(--font-serif); font-size: 12px; color: var(--gold-soft);
  letter-spacing: 0.08em; line-height: 2.1; min-width: 22px; padding-top: 1px;
}
.rows--numbered .row::before {
  counter-increment: row;
  content: counter(row, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 12px; color: var(--gold);
  opacity: 0.7; line-height: 2.1; min-width: 24px;
}
.row-body { flex: 1; min-width: 0; }
.row h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(15px, 1.45vw, 17.5px); line-height: 1.75;
  color: var(--navy); letter-spacing: 0.01em; transition: color 0.25s;
}
.row:hover h3 { color: var(--gold); }
.row-sub {
  margin-top: 7px; font-size: 13px; color: var(--ash); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  font-family: var(--font-serif); font-size: 12.5px; color: var(--ash);
  letter-spacing: 0.06em; padding-top: 4px;
}
.row-meta .arrow { color: var(--gold-soft); transition: transform 0.3s var(--ease), color 0.3s; }
.row:hover .row-meta .arrow { transform: translateX(4px); color: var(--gold); }

.outlet {
  display: inline-block; flex-shrink: 0; font-size: 11.5px; color: var(--gold);
  border: 1px solid var(--gold-soft); padding: 2px 9px; letter-spacing: 0.08em;
  line-height: 1.6; margin-top: 2px; background: rgba(255, 253, 248, 0.6);
}
.outlet--key { color: #fffdf8; background: var(--gold); border-color: var(--gold); }

.more-link {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px; font-size: 13px; letter-spacing: 0.1em; color: var(--gold);
  font-family: var(--font-serif); transition: gap 0.3s var(--ease), color 0.25s;
}
.more-link:hover { gap: 15px; color: var(--navy); }

@media (max-width: 620px) {
  .row-meta time { display: none; }
  .row { gap: 10px; }
  .row-sub { -webkit-line-clamp: 3; }
}

/* ---------- 卡片网格（案例） ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 2.2vw, 28px);
  background: rgba(255, 253, 249, 0.75);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
  color: var(--navy); min-height: 100%;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-soft); background: #fffdf8; box-shadow: 0 26px 46px -34px rgba(31, 42, 60, 0.4); }
.card:hover::after { width: 100%; }
.card-tag {
  align-self: flex-start; font-size: 11px; letter-spacing: 0.14em; color: var(--gold);
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px;
}
.card h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.72; letter-spacing: 0.01em;
}
.card:hover h3 { color: var(--gold); }
.card p { font-size: 13px; color: var(--slate); line-height: 1.85; }
.card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-serif); font-size: 12px; color: var(--ash); letter-spacing: 0.06em;
}
.card-foot .arrow { color: var(--gold-soft); transition: transform 0.3s var(--ease); }
.card:hover .card-foot .arrow { transform: translateX(4px); }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

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

.practice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice-item {
  position: relative; padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; background: transparent;
  transition: background 0.35s var(--ease);
}
.practice-item:hover { background: rgba(244, 236, 219, 0.5); }
.practice-no { font-family: var(--font-serif); font-size: 11px; color: var(--gold-soft); letter-spacing: 0.16em; }
.practice-item h3 { font-family: var(--font-serif); font-weight: 600; font-size: 16.5px; color: var(--navy); letter-spacing: 0.03em; }
.practice-item p { font-size: 13px; color: #6b675e; line-height: 1.85; }
.practice-item .arrow { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--gold-soft); transition: transform 0.3s var(--ease), color 0.3s; }
.practice-item:hover .arrow { transform: translateX(4px); color: var(--gold); }

@media (max-width: 900px) { .practice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .practice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-item { padding: 18px 14px; }
  .practice-item h3 { font-size: 15.5px; }
  .practice-item p { font-size: 12px; }
}

/* ---------- 时间轴（活动） ---------- */

.timeline { border-top: 1px solid var(--line); }
.tl-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: clamp(14px, 2.4vw, 30px);
  align-items: baseline; padding: clamp(15px, 1.9vw, 22px) 0;
  border-bottom: 1px solid var(--line); transition: background 0.3s, padding-left 0.3s var(--ease);
  color: var(--navy);
}
.tl-item:hover { background: rgba(244, 236, 219, 0.4); padding-left: 8px; }
.tl-date { font-family: var(--font-serif); font-size: 12.5px; color: var(--gold); letter-spacing: 0.05em; }
.tl-item h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(14.5px, 1.35vw, 16.5px); line-height: 1.75; }
.tl-item:hover h3 { color: var(--gold); }
.tl-arrow { color: var(--gold-soft); font-size: 13px; }
@media (max-width: 620px) {
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-arrow { display: none; }
}

/* ---------- 两栏知识 / 媒体块 ---------- */

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.cols-2 .row { flex-direction: column; gap: 0; }
.cols-2 .row h3 { min-height: 3.5em; }
.cols-2 .row-meta { order: -1; padding: 0 0 6px; }
.cols-2 .row-meta .arrow { display: none; }
.cols-2 .row-sub { -webkit-line-clamp: 2; }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- 引用块 ---------- */

.quote-block {
  border-left: 2px solid var(--gold-soft);
  padding: 6px 0 6px clamp(18px, 3vw, 30px);
  font-family: var(--font-serif); font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.9; color: var(--navy); letter-spacing: 0.02em;
}
.quote-block cite { display: block; margin-top: 14px; font-family: var(--font-sans); font-style: normal; font-size: 12px; letter-spacing: 0.14em; color: var(--ash); }

/* ---------- 联系区 ---------- */

.contact {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #1d2738 0%, #182232 52%, #1a2534 100%);
  color: rgba(255, 253, 248, 0.74);
  padding: clamp(48px, 7vw, 92px) 0;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 18%, rgba(193, 154, 85, 0.22), transparent 46%),
                    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 120px);
  pointer-events: none;
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact h2 { font-family: var(--font-serif); color: #fdf9f0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; line-height: 1.5; letter-spacing: 0.03em; }
.contact .section-rule { background: var(--gold-bright); margin-bottom: 20px; }
.contact p { font-size: 13.5px; line-height: 2; color: rgba(255, 253, 248, 0.62); margin-top: 14px; max-width: 30rem; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.12em;
  padding: 15px 26px; border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--gold { background: var(--gold-bright); color: #1b2433; font-weight: 600; }
.btn--gold:hover { background: #d6ae6b; color: #121a26; }
.btn--ghost { border-color: rgba(255, 253, 248, 0.28); color: rgba(255, 253, 248, 0.86); }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.contact-note { font-size: 11.5px; letter-spacing: 0.1em; color: rgba(255, 253, 248, 0.42); margin-top: 4px; }
@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; } }

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

.site-footer { background: #141c28; color: rgba(255, 253, 248, 0.46); padding: clamp(38px, 5vw, 60px) 0 26px; font-size: 12.5px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 253, 248, 0.1); }
.footer-brand .brand-name { color: #fdf9f0; font-size: 16px; }
.footer-brand .brand-firm { color: rgba(255, 253, 248, 0.45); }
.footer-brand p { margin-top: 14px; line-height: 1.95; max-width: 26rem; color: rgba(255, 253, 248, 0.42); }
.footer-col h4 { font-family: var(--font-serif); font-size: 13px; color: rgba(255, 253, 248, 0.82); font-weight: 500; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: rgba(255, 253, 248, 0.46); padding: 4px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 11.5px; line-height: 1.9; color: rgba(255, 253, 248, 0.42); }
.footer-bottom a { color: inherit; }
.disclaimer { margin-top: 10px; font-size: 11px; line-height: 1.8; color: rgba(255, 253, 248, 0.34); max-width: 52rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }

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

.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 3.5vw, 42px);
  border-bottom: 1px solid var(--line-soft);
}
.crumbs { font-size: 12px; color: var(--ash); letter-spacing: 0.06em; margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ash); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: var(--line); }
.page-title { font-size: clamp(24px, 3.2vw, 38px); }
.page-desc { margin-top: 16px; font-size: 14px; line-height: 1.95; color: var(--slate); max-width: 42rem; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 30px; }
.chip {
  font-size: 12.5px; letter-spacing: 0.08em; padding: 7px 16px;
  border: 1px solid var(--line); color: var(--slate); cursor: pointer;
  background: transparent; transition: all 0.25s; font-family: var(--font-sans);
}
.chip:hover { border-color: var(--gold-soft); color: var(--gold); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fdf9f0; }

.list-count { font-size: 12px; color: var(--ash); letter-spacing: 0.1em; margin-bottom: 6px; }

@media (max-width: 620px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    margin-right: calc(-1 * clamp(20px, 5vw, 48px));
    padding-right: clamp(20px, 5vw, 48px);
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .article-meta { gap: 10px; font-size: 12px; }
  .article-meta .dot, .meta-firm { display: none; }
}

/* 详情页 */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(32px, 5vw, 68px); padding-top: clamp(34px, 4.5vw, 56px); padding-bottom: var(--space-xl); align-items: start; }
.article-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article-head h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(22px, 2.8vw, 32px); line-height: 1.62; color: var(--navy);
  letter-spacing: 0.015em; text-wrap: balance;
}
.article-meta { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ash); letter-spacing: 0.08em; }
.article-meta .dot { width: 3px; height: 3px; background: var(--gold-soft); border-radius: 50%; }
.article-lead {
  font-family: var(--font-serif); font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2; color: var(--navy); padding: 0 0 26px;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 30px;
}
.prose { max-width: 40rem; }
.prose h2 {
  font-family: var(--font-serif); font-size: clamp(17px, 1.7vw, 20px); font-weight: 600;
  color: var(--navy); margin: 38px 0 14px; letter-spacing: 0.02em;
  padding-left: 14px; border-left: 2px solid var(--gold-soft); line-height: 1.6;
}
.prose p { margin-bottom: 18px; text-align: justify; line-height: 2.05; }
.prose strong { color: var(--navy); font-weight: 500; }
.prose ul { margin: 0 0 20px 18px; }
.prose li { margin-bottom: 9px; line-height: 1.95; }
.prose blockquote {
  margin: 30px 0; padding: 22px 26px; background: var(--gold-wash);
  border-left: 2px solid var(--gold); font-family: var(--font-serif);
  color: var(--navy); line-height: 1.95; font-size: 15.5px;
}
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ash); }

.aside-box { border: 1px solid var(--line); padding: 24px 22px; background: rgba(255, 253, 249, 0.8); }
.aside-box h3 { font-family: var(--font-serif); font-size: 15px; color: var(--navy); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 8px; }
.aside-box p { font-size: 12.5px; line-height: 1.9; color: var(--ash); margin-bottom: 16px; }
.aside-box .btn { width: 100%; font-size: 14px; padding: 12px 16px; background: var(--gold); color: #fffdf8; }
.aside-box .btn:hover { background: #95702f; color: #fffdf8; }
.aside-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.aside-list { font-size: 13px; }
.aside-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.7; color: var(--slate); }
.aside-list a:last-child { border-bottom: 0; }
.aside-list a:hover { color: var(--gold); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-sticky > * { flex: 1 1 260px; }
}

/* 关于页 */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-card {
  border: 1px solid var(--line); background: rgba(255, 253, 249, 0.7);
  padding: clamp(26px, 3vw, 36px); text-align: center;
}
.about-card .medallion { width: 190px; margin: 0 auto 30px; }
.about-card .medallion::after { inset: -24px; }
.about-card h2 { font-family: var(--font-serif); font-size: 22px; color: var(--navy); font-weight: 600; letter-spacing: 0.08em; }
.about-card .role { font-size: 12px; letter-spacing: 0.14em; color: var(--gold); margin-top: 8px; }
.about-facts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 10px; }
.about-facts div { display: flex; gap: 12px; font-size: 12.5px; line-height: 1.8; }
.about-facts dt { color: var(--ash); min-width: 54px; flex-shrink: 0; letter-spacing: 0.06em; }
.about-facts dd { color: var(--slate); }
.about-main h2 { font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--navy); font-weight: 600; margin-bottom: 16px; }
.about-main h2 + p { margin-top: 0; }
.about-main p { margin-bottom: 16px; line-height: 2.05; text-align: justify; }
.about-block { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag-list span { font-size: 12.5px; padding: 5px 13px; border: 1px solid var(--line); color: var(--slate); letter-spacing: 0.05em; background: rgba(255, 253, 249, 0.6); }
.timeline-mini { display: grid; gap: 0; }
.timeline-mini .tm {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.timeline-mini .tm:last-child { border-bottom: 0; }
.timeline-mini .tm b { font-family: var(--font-serif); font-size: 13px; color: var(--gold); font-weight: 400; letter-spacing: 0.04em; }
.timeline-mini .tm span { font-size: 13.5px; line-height: 1.8; color: var(--slate); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- 移动端底部呼叫条 ---------- */

.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(20, 28, 40, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.1em;
  padding: 11px 8px; color: #fdf9f0; border: 1px solid rgba(255, 253, 248, 0.24);
}
.mobile-bar a.primary { background: var(--gold-bright); color: #16202f; border-color: var(--gold-bright); font-weight: 600; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
  .site-footer { padding-bottom: 76px; }
}

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

.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 打印 */
@media print {
  .site-header, .mobile-bar, .contact, .site-footer, .aside-box { display: none; }
  body { background: #fff; }
}


/* =========================================================
   WordPress 适配
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav { top: 114px; }
}

.prose a { color: var(--navy); border-bottom: 1px solid var(--gold-soft); }
.prose a:hover { color: var(--gold); }
.prose h3 {
  font-family: var(--font-serif); font-size: 16.5px; color: var(--navy);
  margin: 30px 0 12px; font-weight: 600;
}
.prose img { margin: 26px 0; height: auto; }
.prose figure { margin: 26px 0; }
.prose figcaption { font-size: 12px; color: var(--ash); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--gold-wash); font-weight: 500; color: var(--navy); }
.prose ol { margin: 0 0 20px 20px; }
.prose ol li { margin-bottom: 8px; }

/* 分页 */
.pager { margin-top: 36px; }
.pager .navigation { display: block; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pager .page-numbers {
  display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--line); font-size: 13px;
  font-family: var(--font-serif); color: var(--slate); transition: all .25s;
}
.pager .page-numbers:hover { border-color: var(--gold-soft); color: var(--gold); }
.pager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fdf9f0; }
.pager .page-numbers.dots { border-color: transparent; }

/* 搜索与杂项 */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 24px auto; }

/* 详情页侧栏在窄屏的间距 */
@media (max-width: 960px) {
  .aside-sticky { margin-top: 8px; }
}
