/* ==========================================================================
   广东恪公律师事务所 官网样式
   品牌色：墨蓝 / 铜金   字体：衬线标题 + 无衬线正文
   ========================================================================== */

:root {
  /* 印章红 · 纸白 · 墨色 —— 取自恪公 VI */
  --seal: #b3271d;
  --seal-deep: #8f1d13;
  --seal-soft: rgba(179, 39, 29, 0.08);
  --navy: #26231f;          /* 语义沿用：现为「墨色」，用于标题与深色文字 */
  --navy-2: #4a443c;
  --navy-3: #6b6459;
  --gold: var(--seal);      /* 原金色点缀统一并入印章红 */
  --gold-2: #d4715f;
  --ink: #26231f;
  --gray-1: #6b6459;
  --gray-2: #9a9284;
  --line: #e8e2d6;
  --line-seal: rgba(179, 39, 29, 0.35);
  --bg: #ffffff;
  --bg-soft: #faf8f4;       /* 宣纸米白 */
  --bg-deep: #f4f0e8;       /* 原「深色区」现用纸色深一档 */
  --radius: 2px;
  --shadow: 0 2px 20px rgba(74, 60, 40, 0.07);
  --shadow-lg: 0 12px 40px rgba(74, 60, 40, 0.12);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  /* 全站字体与 logo（宋体字标）保持一致 */
  --sans: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --header-h: 88px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--navy);
}
p {
  margin: 0 0 1em;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
table {
  width: 100%;
  border-collapse: collapse;
}

/* ============ 布局 ============ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 980px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -14px;
}
.col {
  padding: 0 14px;
  flex: 1 1 0;
  min-width: 0;
}

/* ============ 通用排版 ============ */
.section {
  padding: 88px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-deep {
  background: var(--bg-deep);
  color: var(--gray-1);
}
.section-deep h2,
.section-deep h3,
.section-deep .sec-title {
  color: var(--ink);
}
.sec-head {
  margin-bottom: 48px;
  text-align: center;
}
.sec-head.left {
  text-align: left;
}
.sec-label {
  font-family: var(--serif);
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sec-label::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--seal);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--seal-soft);
}
.sec-title {
  font-size: 34px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.sec-head.left .sec-title {
  display: block;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.sec-head.left .sec-title::after {
  left: 0;
  transform: none;
}
.sec-sub {
  margin-top: 14px;
  color: var(--gray-1);
  font-size: 15px;
}
.section-deep .sec-sub {
  color: var(--gray-2);
}

.text-gold {
  color: var(--gold);
}
.muted {
  color: var(--gray-2);
  font-size: 13px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 14px;
  letter-spacing: 1px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background: var(--navy-2);
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
/* 头部「联系迟律师」按钮：白底黑字红框，两行卡片式 */
.btn-tel-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 20px;
  min-width: 172px;
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1.5;
  background: #fff;
  border: 1px solid var(--seal);
  border-radius: 2px;
  color: var(--gray-1);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.btn-tel-card b {
  color: var(--seal);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  font-family: var(--serif);
}
.btn-tel-card.btn-consult:hover {
  background: var(--gold-soft, #fdf6e3);
}
/* 中窄屏下收紧导航与头部按钮，避免溢出 */
@media (max-width: 1500px) {
  .nav > li > a { padding: 10px 10px; font-size: 14.5px; }
  .header-cta { gap: 6px; }
  .nav > li > a { padding: 10px 6px; font-size: 14px; }
  .btn-tel-card { padding: 6px 8px; min-width: 136px; }
}
@media (max-width: 1300px) {
  .nav > li > a { padding: 10px 3px; font-size: 13.5px; }
  .btn-tel-card { padding: 5px 5px; min-width: 102px; }
  .btn-tel-card span { font-size: 9.5px; }
  .btn-tel-card b { font-size: 12px; }
  .btn-tel-card span { font-size: 10px; }
  .btn-tel-card b { font-size: 12.5px; }
}
/* 窄屏：头部按钮放不下，整体隐藏（移动端有抽屉菜单承接） */
@media (max-width: 1240px) {
  .header .header-cta { display: none; }
}
.btn-tel-card:hover {
  background: var(--seal-soft);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(38, 35, 31, 0.35);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.more-link:hover {
  color: var(--gold);
}
.more-link::after {
  content: "→";
  font-size: 13px;
}

/* ============ 顶部导航 ============ */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  color: var(--gray-1);
  font-size: 12.5px;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a:hover {
  color: var(--gold);
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar .lang {
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 2px;
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}
.header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-cn {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 3px;
}
.brand-en {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--gold);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.nav > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav > li > a:hover,
.nav > li.active > a {
  color: var(--navy);
}
.nav > li > a:hover::after,
.nav > li.active > a::after {
  transform: scaleX(1);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  margin: 4px auto;
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 12px rgba(60, 48, 34, 0.08);
}

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.drawer.open {
  pointer-events: auto;
}
.drawer-mask {
  position: absolute;
  inset: 0;
  /* 旧为墨蓝，现统一改为墨色，避免与主视觉冲突 */
  background: rgba(38, 35, 31, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
}
.drawer.open .drawer-mask {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: 24px 0 40px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.drawer.open .drawer-panel {
  transform: translateX(0);
}
.drawer-head {
  padding: 0 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.drawer-close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-1);
}
.drawer-nav > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  font-size: 16px;
  border-bottom: 1px solid #f0f1f3;
  color: var(--ink);
}
.drawer-nav > li > a::after {
  content: "›";
  color: var(--gray-2);
}
.drawer-nav > li.active > a {
  color: var(--gold);
}
.drawer-foot {
  padding: 22px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-tel {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 1px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 620px;
  height: calc(100vh - var(--header-h));
  max-height: 900px;
  min-height: 560px;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 60% at 82% 22%, rgba(179, 39, 29, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, #fbf9f5 0%, #f4f0e8 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(38, 35, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 35, 31, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(85% 75% at 18% 82%, #000 0%, transparent 92%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-seal);
  color: var(--seal);
  padding: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 2px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.6);
}
.hero-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--seal);
  border-radius: 50%;
}
.hero-title {
  font-size: 58px;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: 4px;
  white-space: pre-line;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero-sub {
  font-size: 16px;
  color: var(--gray-1);
  max-width: 640px;
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-metrics {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--seal);
  line-height: 1.2;
}
.hero-metric span {
  font-size: 13px;
  color: var(--gray-2);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gray-2);
  text-align: center;
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--seal), transparent);
  margin: 8px auto 0;
}

/* hero 右侧竖排印章（古风点缀） */
.hero-seal {
  position: absolute;
  right: 5%;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.hero-seal img {
  width: 132px;
  height: auto;
  padding: 18px;
  background: #fffdf9;
  /* 双线朱红印框：仿古籍钤印的边框层次 */
  box-shadow:
    inset 0 0 0 2px #fffdf9,
    inset 0 0 0 3px var(--line-seal),
    0 10px 34px rgba(143, 29, 19, 0.16);
  opacity: 0.96;
  filter: drop-shadow(0 4px 14px rgba(143, 29, 19, 0.18));
}
.hero-seal-text {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 12px;
  color: var(--navy-2);
  border-right: 1px solid var(--line-seal);
  padding-right: 12px;
}
/* 每列四字，固定两列，不自动折行 */
.hero-seal-text i {
  display: block;
  font-style: normal;
  white-space: nowrap;
}
.hero-seal-text i + i {
  margin-right: 3px;
}
/* 古籍四角回钩边框 */
.hero-frame {
  position: absolute;
  inset: 30px;
  z-index: 1;
  pointer-events: none;
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
}
.hero-frame::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--line-seal);
  border-left: 1px solid var(--line-seal);
}
.hero-frame::after {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--line-seal);
  border-right: 1px solid var(--line-seal);
}
/* 方胜纹分隔：朱红细线 + 中央菱形 */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 280px;
  margin: 44px auto;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-seal);
}
.ornament i {
  width: 9px;
  height: 9px;
  background: var(--seal);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
@media (max-width: 1100px) {
  .hero-seal { display: none; }
}

/* ============ 数据条 ============ */
.stats-bar {
  background: var(--bg-soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-item:last-child {
  border-right: 0;
}
.stat-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  color: var(--seal);
  line-height: 1.1;
}
.stat-item strong small {
  font-size: 17px;
  margin-left: 3px;
}
.stat-item span {
  font-size: 13.5px;
  color: var(--gray-1);
  letter-spacing: 1px;
}

/* ============ 关于 / 方法论 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-body p {
  color: var(--gray-1);
  line-height: 2;
}
.about-figure {
  position: relative;
}
/* 内嵌朱红细线框 · 与全站双线印框呼应 */
.about-figure::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line-seal);
  pointer-events: none;
  z-index: 1;
}
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 10px 34px rgba(38, 35, 31, 0.08);
}
.about-figure .badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-seal);
  border-left: 3px solid var(--seal);
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.6;
  box-shadow: var(--shadow);
}
.about-figure .badge b {
  color: var(--seal);
  display: block;
  font-size: 26px;
}

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px 30px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.method-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.method-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.method-card:hover::before {
  transform: scaleX(1);
}
.method-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.method-card h3 {
  font-size: 21px;
  margin-bottom: 6px;
}
.method-card .m-en {
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--gray-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.method-card p {
  color: var(--gray-1);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* ============ 业务领域 ============ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.practice-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 24px 26px;
  transition: var(--transition);
  position: relative;
}
.practice-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.practice-card.core {
  background: #fffdf9;
  border-color: var(--line-seal);
  box-shadow: inset 0 0 0 3px #fffdf9, inset 0 0 0 4px var(--line-seal);
}
.practice-card.core h3 {
  color: var(--ink);
}
.practice-card.core .p-ic {
  color: var(--seal);
}
.practice-card.core p {
  color: var(--gray-1);
}
.practice-card.core .p-tag {
  background: var(--seal);
  color: #fff;
}
.p-ic {
  width: 44px;
  height: 44px;
  color: var(--ink);
  margin-bottom: 18px;
}
.practice-card.core .p-ic {
  color: var(--seal);
}
.p-ic svg {
  width: 100%;
  height: 100%;
}
.practice-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.practice-card p {
  font-size: 13.5px;
  color: var(--gray-1);
  line-height: 1.85;
  margin: 0;
}
.p-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 3px 10px;
}
.p-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold);
}
.practice-card:hover .p-more {
  gap: 12px;
}

/* ============ 卡片通用 ============ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
}
.thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 1200 / 250;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.card:hover .thumb img {
  transform: scale(1.05);
}

/* ============ 文章 ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: var(--transition);
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.article-card .card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.a-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-2);
  margin-bottom: 12px;
}
.a-cat {
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 8px;
}
.article-card h3 {
  font-size: 18.5px;
  line-height: 1.6;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.article-card:hover h3 {
  color: var(--gold);
}
.article-card p {
  font-size: 13.5px;
  color: var(--gray-1);
  line-height: 1.85;
  margin: 0 0 16px;
  flex: 1;
}
.a-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-2);
}
.a-foot .arrow {
  color: var(--gold);
}

/* 首页文章列表（紧凑型） */
.post-list {
  display: flex;
  flex-direction: column;
}
.post-item {
  display: flex;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.post-item:last-child {
  border-bottom: 0;
}
.post-date {
  flex-shrink: 0;
  width: 76px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.post-date b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  line-height: 1.1;
}
.post-date span {
  font-size: 12px;
  color: var(--gray-2);
}
.post-main {
  flex: 1;
  min-width: 0;
}
.post-main h3 {
  font-size: 17.5px;
  line-height: 1.6;
  margin-bottom: 4px;
}
.post-main h3 a:hover {
  color: var(--gold);
}
.post-main p {
  font-size: 13.5px;
  color: var(--gray-1);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ============ 专业团队 ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  padding: 28px 18px 24px;
  transition: var(--transition);
}
.member-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.member-avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eae7e0;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-card h3 {
  font-size: 19px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.member-pos {
  font-size: 12.5px;
  color: var(--gold);
  margin-bottom: 12px;
}
.member-exp {
  font-size: 12.5px;
  color: var(--gray-1);
  line-height: 1.8;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin: 0;
}

/* ============ 团队页 · 大图风格 ============ */
/* 主任主展示：大幅照片 + 右侧信息面板 */
.team-feature-inner {
  display: grid;
  grid-template-columns: 58% 1fr;
  min-height: 480px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 3px #fffdf9, inset 0 0 0 4px var(--line-seal);
}
.tf-photo {
  display: block;
  overflow: hidden;
  position: relative;
}
.tf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.tf-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  gap: 10px;
}
.tf-name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 10px;
  color: var(--ink);
  margin: 0;
}
.tf-en {
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--gray-2);
  margin-bottom: 14px;
}
.tf-pos {
  font-size: 18px;
  color: var(--navy-2);
  line-height: 2;
  letter-spacing: 3px;
  margin-bottom: 26px;
}
.tf-more {
  font-size: 14px;
  color: var(--seal);
  letter-spacing: 2px;
  border-bottom: 1px solid var(--line-seal);
  padding-bottom: 3px;
  transition: var(--transition);
}
.tf-more:hover {
  color: var(--seal-deep);
  border-bottom-color: var(--seal);
}

/* 成员大卡：左照片右信息，两列 */
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.tcard {
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 320px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: var(--transition);
}
.tcard:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-seal);
}
.tcard-photo {
  overflow: hidden;
  background: var(--bg-soft);
}
.tcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s ease;
}
.tcard:hover .tcard-photo img {
  transform: scale(1.04);
}
.tcard-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  border-left: 1px solid var(--line);
}
.tcard-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  margin: 0 0 6px;
}
.tcard-en {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gray-2);
  margin-bottom: 16px;
}
.tcard-pos {
  font-size: 15px;
  color: var(--seal);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.tcard-mail {
  font-size: 13px;
  color: var(--gray-1);
  word-break: break-all;
}
@media (max-width: 900px) {
  .team-feature-inner { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px); }
  .tf-photo { max-height: 420px; }
  .tf-name { font-size: 34px; }
  .team-cards { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px); }
  .tcard { min-height: 240px; }
}

/* 律师详情 */
.lawyer-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.lawyer-avatar {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line-seal);
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}
.lawyer-name {
  font-size: 38px;
  letter-spacing: 4px;
  margin-bottom: 8px;
  color: var(--ink);
}
.lawyer-pos {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.lawyer-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--gray-1);
  margin-top: 16px;
}
.lawyer-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.info-block {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.info-block h4 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.info-block p {
  font-size: 13.5px;
  color: var(--gray-1);
  margin: 0;
  white-space: pre-line;
  line-height: 1.9;
}

/* ============ 典型案例 ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.case-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(200, 164, 92, 0.18);
  border-radius: 50%;
}
.case-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.case-cat {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--navy);
  font-size: 12px;
  padding: 3px 12px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.case-card h3 {
  font-size: 19.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.case-facts {
  display: flex;
  gap: 22px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.case-fact {
  font-size: 12px;
  color: var(--gray-2);
}
.case-fact b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
}
.case-fact.result b {
  color: var(--gold);
}
.case-card p {
  font-size: 13.5px;
  color: var(--gray-1);
  line-height: 1.85;
  margin: 0;
}

/* ============ 客户评价 ============ */
.quote-slider {
  position: relative;
  background: var(--bg-soft);
  color: var(--ink);
}
.quote-item {
  padding: 0 10px;
}
.quote-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2.05;
  color: var(--ink);
  position: relative;
  padding-left: 34px;
  margin-bottom: 26px;
}
.quote-text::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -14px;
  font-family: var(--serif);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 34px;
}
.quote-author .qa-line {
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.quote-author strong {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 1px;
}
.quote-author span {
  font-size: 13px;
  color: var(--gray-2);
  margin-left: 8px;
}
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}
.quote-dots button {
  width: 26px;
  height: 3px;
  border: 0;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.quote-dots button.on {
  background: var(--seal);
}

/* ============ 发展历程 ============ */
.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding-bottom: 30px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
}
.tl-year {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--gold);
  line-height: 1.2;
}
.tl-item h4 {
  font-size: 16.5px;
  margin: 2px 0 6px;
}
.tl-item p {
  font-size: 13.5px;
  color: var(--gray-1);
  line-height: 1.85;
  margin: 0;
}

/* ============ 首页 · 回款测评跳动 Banner ============ */
.quiz-banner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 24px 32px;
  background: linear-gradient(100deg, var(--seal-deep) 0%, var(--seal) 55%, #c3412f 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 40px rgba(143, 29, 19, 0.28);
  overflow: hidden;
  color: #fff;
  animation: quizFloat 2.4s ease-in-out infinite;
}
.quiz-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: quizShine 3.6s linear infinite;
}
.quiz-banner:hover {
  animation-play-state: paused;
}
.quiz-banner-pulse {
  position: absolute;
  left: 26px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #ffe9c9;
  animation: quizPulseRing 1.8s ease-out infinite;
}
.quiz-banner-txt {
  padding-left: 18px;
  position: relative;
  z-index: 1;
}
.quiz-banner-txt strong {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.quiz-banner-txt em {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
}
.quiz-banner-btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #fffdf9;
  color: var(--seal-deep);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px 26px;
  white-space: nowrap;
}
.quiz-banner-btn i {
  font-style: normal;
  display: inline-block;
  animation: quizArrow 1.2s ease-in-out infinite;
}
@keyframes quizFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes quizPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 233, 201, 0.85); }
  70% { box-shadow: 0 0 0 16px rgba(255, 233, 201, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 233, 201, 0); }
}
@keyframes quizArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
@keyframes quizShine {
  0% { left: -60%; }
  100% { left: 120%; }
}
@media (max-width: 900px) {
  .quiz-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .quiz-banner-txt strong { font-size: 18px; }
}

/* ============ AI 测试入口 / 为什么选择恪公 ============ */
.ai-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #fffdf9;
  border: 1px solid var(--line-seal);
  box-shadow: inset 0 0 0 3px #fffdf9, inset 0 0 0 4px var(--line-seal);
  padding: 40px 48px;
}
.ai-banner-txt h3 {
  font-size: 26px;
  letter-spacing: 2px;
  margin: 6px 0 10px;
}
.ai-banner-txt p {
  color: var(--gray-1);
  font-size: 15px;
  margin: 0;
}
.ai-banner-btn { flex-shrink: 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.why-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--seal);
  padding: 30px 28px;
}
.why-card h3 {
  font-size: 19px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--gray-1);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0;
}
.serve-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}
.serve-item {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.serve-item:first-child { border-left: none; }
.serve-item strong {
  display: block;
  font-size: 13px;
  color: var(--seal);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.serve-item span {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .ai-banner { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px); }
  .serve-bar { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px); }
  .serve-item { border-left: none; border-top: 1px solid var(--line); }
  .serve-item:first-child { border-top: none; }
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #fff;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 52px 18px 22px;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: var(--navy);
  line-height: 1.7;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 20px;
  color: var(--gold);
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-item.open .faq-q {
  color: var(--gold);
}
.faq-a {
  display: none;
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--gray-1);
  line-height: 2;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.faq-item.open .faq-a {
  display: block;
}

/* ============ 页面头图 ============ */
.page-hero {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-seal);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 70% at 88% 10%, rgba(179, 39, 29, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, #fbf9f5, #f4f0e8);
}
/* 内页顶部左下角回钩：与首页四角呼应 */
.page-hero::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: 28px;
  width: 96px;
  height: 96px;
  border-bottom: 1px solid var(--line-seal);
  border-left: 1px solid var(--line-seal);
  z-index: 1;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 70px 0 60px;
}
.page-title {
  font-size: 40px;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-weight: 600;
}
.page-sub {
  color: var(--gray-1);
  font-size: 15px;
  letter-spacing: 1px;
}
.crumb {
  font-size: 12.5px;
  color: var(--gray-2);
  margin-bottom: 22px;
}
.crumb a:hover {
  color: var(--gold);
}
.crumb i {
  font-style: normal;
  margin: 0 8px;
  color: var(--line-seal);
}

/* ============ 文章正文 ============ */
.content-wrap {
  padding: 64px 0 90px;
}
.article-head {
  text-align: center;
  margin-bottom: 40px;
}
.article-head h1 {
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 13px;
  color: var(--gray-2);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.markdown {
  font-size: 15.5px;
  line-height: 2.05;
  color: #2c3440;
}
.markdown h2 {
  font-size: 24px;
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  letter-spacing: 1px;
}
.markdown h3 {
  font-size: 19px;
  margin: 32px 0 14px;
  color: var(--navy-2);
}
.markdown h4 {
  font-size: 16.5px;
  margin: 24px 0 10px;
}
.markdown p {
  margin: 0 0 18px;
}
.markdown ul,
.markdown ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.markdown ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.markdown ol li {
  list-style: decimal;
  margin-bottom: 8px;
}
.markdown li::marker {
  color: var(--gold);
}
.markdown blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  color: var(--gray-1);
  font-size: 14.5px;
  line-height: 1.95;
}
.markdown blockquote p:last-child {
  margin-bottom: 0;
}
.markdown table {
  margin: 24px 0;
  font-size: 14px;
  border: 1px solid var(--line);
}
.markdown th {
  background: var(--bg-deep);
  color: var(--ink);
  border-bottom: 2px solid var(--seal);
  padding: 11px 14px;
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
}
.markdown td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--gray-1);
}
.markdown tbody tr:nth-child(even) td {
  background: #fafaf8;
}
.markdown pre {
  background: #2b2721;
  color: #eee7d9;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
  border-left: 3px solid var(--seal);
}
.markdown code {
  background: var(--bg-soft);
  padding: 2px 6px;
  font-size: 13px;
  color: var(--navy);
}
.markdown pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.markdown strong {
  color: var(--navy);
}
.markdown img {
  border-radius: 2px;
  margin: 10px 0;
}
.markdown hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 36px 0;
}
.markdown a {
  color: var(--navy-3);
  border-bottom: 1px solid var(--gold);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 50px;
  font-size: 14px;
}
.article-nav a {
  color: var(--gray-1);
}
.article-nav a:hover {
  color: var(--gold);
}
.tags-line {
  margin-top: 30px;
  font-size: 13px;
  color: var(--gray-2);
}
.tags-line span {
  display: inline-block;
  background: var(--bg-soft);
  padding: 3px 12px;
  margin-right: 8px;
  color: var(--gray-1);
}
.article-disclaimer {
  margin-top: 40px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray-2);
  line-height: 1.8;
}

/* ============ 表单 ============ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13px;
  color: var(--gray-1);
}
.field label i {
  color: #c0392b;
  font-style: normal;
  margin-right: 3px;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 2px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.12);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--gray-2);
  line-height: 1.8;
}
.alert {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  display: none;
}
.alert.show {
  display: block;
}
.alert-ok {
  background: #eaf6ee;
  color: #1e7a3c;
  border: 1px solid #b7e0c4;
}
.alert-err {
  background: #fdeceb;
  color: #b0302a;
  border: 1px solid #f5c2be;
}

/* ============ 联系 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
}
.contact-info li {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info li:last-child {
  border-bottom: 0;
}
.contact-info .ci-label {
  font-size: 12.5px;
  color: var(--gray-2);
  width: 72px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-info .ci-value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}
.contact-info .tel {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  letter-spacing: 1px;
}
.map-box {
  margin-top: 26px;
  height: 220px;
  background: linear-gradient(135deg, #efe9de, #e5ded0);
  position: relative;
  overflow: hidden;
}
.map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 1px;
}
.map-pin b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 4px;
}

/* ============ CTA ============ */
.cta-bar {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 52px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line-seal);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line-seal);
  padding: 36px 40px;
}
.cta-inner h3 {
  color: var(--ink);
  font-size: 26px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.cta-inner p {
  color: var(--gray-1);
  margin: 0;
  font-size: 14.5px;
}

/* ============ 分页 ============ */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--gray-1);
  background: #fff;
  transition: var(--transition);
}
.pager a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pager .current {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff;
}
.pager .disabled {
  opacity: 0.45;
}

/* ============ 搜索 ============ */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 26px auto 0;
}
.search-bar input {
  flex: 1;
  border: 1px solid var(--line-seal);
  background: #fff;
  color: var(--ink);
  padding: 13px 18px;
  border-radius: 2px;
  outline: none;
  font-size: 15px;
}
.search-bar input::placeholder {
  color: var(--gray-2);
}
.search-bar input:focus {
  border-color: var(--gold);
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-2);
}
.empty-state b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ============ 页脚 ============ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-seal);
  color: var(--gray-1);
  font-size: 13.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 62px 0 46px;
}
.footer-top h4 {
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.f-about p {
  line-height: 1.95;
  margin: 16px 0 0;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul li a:hover {
  color: var(--gold);
}
.f-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.f-contact .k {
  color: var(--gray-2);
  flex-shrink: 0;
}
.f-tel {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--seal);
  letter-spacing: 1px;
  line-height: 1.3;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--gray-2);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a:hover {
  color: var(--gold);
}
.f-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.f-links a {
  color: inherit;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}
.f-links a:hover { opacity: 1; text-decoration: underline; }
.disclaimer {
  padding: 0 0 26px;
  font-size: 12px;
  color: var(--gray-2);
  line-height: 1.8;
}

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .hero-title {
    font-size: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    gap: 40px;
  }
  .methods {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
  }
  .contact-grid {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2n) {
    border-right: 0;
  }
  .lawyer-head {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    gap: 24px;
  }
  .lawyer-avatar {
    width: 180px;
    height: 220px;
  }
}
@media (max-width: 860px) {
  :root {
    --header-h: 62px;
  }
  .section {
    padding: 56px 0;
  }
  .container {
    padding: 0 18px;
  }
  .topbar {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 0;
    padding: 56px 0 48px;
  }
  .hero-title {
    font-size: 30px;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }
  .hero-sub {
    font-size: 14.5px;
    margin-bottom: 26px;
  }
  .hero-actions {
    margin-bottom: 32px;
  }
  .hero-actions .btn {
    flex: 1;
    padding: 12px 16px;
  }
  .hero-metrics {
    gap: 24px;
    padding-top: 20px;
  }
  .hero-metric strong {
    font-size: 24px;
  }
  .hero-scroll {
    display: none;
  }
  .sec-title {
    font-size: 26px;
  }
  .sec-head {
    margin-bottom: 32px;
  }
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .practice-card {
    padding: 20px 16px 18px;
  }
  .practice-card h3 {
    font-size: 16.5px;
  }
  .practice-card p {
    display: none;
  }
  .practice-card .p-ic {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
  }
  .article-grid {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    gap: 18px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .member-card {
    padding: 20px 12px 18px;
  }
  .member-avatar {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
  }
  .member-card h3 {
    font-size: 16.5px;
  }
  .case-grid,
  .lawyer-info,
  .form-grid {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
  }
  .case-facts {
    gap: 16px;
  }
  .page-hero-inner {
    padding: 40px 0 32px;
  }
  .page-title {
    font-size: 27px;
    letter-spacing: 2px;
  }
  .content-wrap {
    padding: 36px 0 56px;
  }
  .article-head h1 {
    font-size: 23px;
  }
  .markdown {
    font-size: 15px;
    line-height: 1.95;
  }
  .markdown h2 {
    font-size: 20px;
    margin: 32px 0 14px;
  }
  .markdown h3 {
    font-size: 17px;
  }
  .post-item {
    gap: 14px;
    padding: 16px 0;
  }
  .post-date {
    width: 54px;
    padding-right: 12px;
  }
  .post-date b {
    font-size: 20px;
  }
  .post-main h3 {
    font-size: 15.5px;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-inner h3 {
    font-size: 21px;
  }
  .footer-top {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    gap: 28px;
    padding: 40px 0 30px;
  }
  .about-figure .badge {
    left: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .quote-text {
    font-size: 16px;
    line-height: 1.9;
  }
  .faq-q {
    font-size: 14.5px;
    padding: 15px 44px 15px 16px;
  }
  .faq-q::after {
    right: 14px;
    top: 14px;
  }
}
@media (max-width: 560px) {
  .practice-grid {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
  }
  .hero-metrics {
    gap: 18px;
  }
  .hero-metric {
    flex: 0 0 calc(50% - 9px);
  }
  .brand-cn {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .case-facts {
    gap: 12px;
  }
  .case-card {
    padding: 22px 18px;
  }
  .stats-bar .stat-item {
    padding: 24px 10px;
  }
  .stat-item strong {
    font-size: 30px;
  }
}

/* ============================================================
   移动端专项优化（追加在末尾，覆盖上方断点内的旧规则）
   ============================================================ */

/* iPhone 安全区：底部 Home 指示条 */
:root {
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 860px) {
  /* 1) 横版 Logo 必须保持比例（旧 560 断点把它锁成 34×34 方形，会变形） */
  .brand-logo {
    height: 30px;
    width: auto;
  }

  /* 2) 业务卡恢复简介文案（原来被 display:none 完全隐藏，手机上显得空洞） */
  .practice-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.8;
    margin-top: 8px;
  }

  /* 3) 团队成员大卡：手机上改为「上图下文」，避免文字区被挤成窄条 */
  .tcard {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    min-height: 0;
  }
  .tcard-photo {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
  .tcard-info {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 20px;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  /* 4) 主任主展示区：上下排布，图片限高避免占满整屏 */
  .team-feature-inner {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
    gap: 0;
  }
  .tf-photo {
    max-height: 400px;
  }
  .tf-info {
    padding: 30px 20px 34px;
    gap: 8px;
  }

  /* 5) 服务网络条：单列 */
  .serve-bar {
    grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px);
  }
  .serve-item {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
  }
  .serve-item:last-child {
    border-bottom: 0;
  }

  /* 6) 宽表格横向滚动，不撑破版面 */
  .markdown table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .markdown th,
  .markdown td {
    white-space: nowrap;
  }

  /* 7) 触控目标 ≥ 42px */
  .drawer-close {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .quote-dots button {
    width: 26px;
    height: 26px;
  }
  .quote-dots {
    gap: 10px;
  }
  .footer-links a,
  .footer-nav a,
  .breadcrumb a {
    display: inline-block;
    padding: 8px 0;
  }

  /* 8) 按钮统一占满一行，方便单手点 */
  .cta-inner .btn,
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* 9) 图片自适应，不允许超出容器 */
  .markdown img,
  .article-body img {
    max-width: 100%;
    height: auto;
  }

  /* 10) 文案与长标题自动断行，避免溢出 */
  h1, h2, h3, .tf-pos, .sec-title {
    word-break: break-word;
  }

  /* 11) 小号辅助文字放大到可读 */
  .m-en {
    font-size: 12.5px;
  }
  .p-tag {
    font-size: 12px;
    padding: 3px 9px;
  }
  .tf-more {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--line-seal);
    background: #fff;
  }
  .member-pos,
  .method-num {
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    height: 26px;
    width: auto;
  }
  .hero-title {
    font-size: 27px;
    line-height: 1.45;
    letter-spacing: 1px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.9;
  }
  .sec-title {
    font-size: 23px;
  }
  /* 主任主展示区字号收敛 */
  .tf-name {
    font-size: 30px;
    letter-spacing: 4px;
  }
  .tf-en {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .tf-pos {
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: 1.5px;
  }
  /* 数据条 */
  .stat-item strong {
    font-size: 26px;
  }
  .stat-item span {
    font-size: 12.5px;
  }
  /* 测评 banner */
  .quiz-banner {
    padding: 18px 16px;
    gap: 12px;
  }
  .quiz-banner-txt strong {
    font-size: 17px;
  }
  .quiz-banner-txt em {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .quiz-banner-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  /* 页脚避开 iPhone 底部指示条 */
  .footer-bottom,
  .footer-top {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* 打印 */
@media print {
  .header,
  .footer,
  .topbar,
  .cta-bar,
  .drawer {
    display: none !important;
  }
}


/* ============ 深圳迟律师专题 ============ */
.chi-intro {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: center;
}
.chi-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 40px rgba(38, 35, 31, 0.12);
}
.chi-badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--seal);
  border: 1px solid var(--seal);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  background: #fff;
}
.chi-name {
  font-family: var(--serif);
  font-size: 34px;
  margin: 0 0 8px;
  color: var(--ink);
}
.chi-en { font-size: 14px; letter-spacing: 3px; color: #9a938a; font-family: sans-serif; margin-left: 8px; }
.chi-pos { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.chi-fans {
  display: inline-block;
  font-size: 13.5px;
  color: var(--seal);
  margin: 6px 0 14px;
}
.chi-bio { color: #5c564e; line-height: 2; font-size: 15px; margin: 0 0 18px; }
.chi-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chi-tags span {
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 2px;
}
.chi-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.cp-shot {
  aspect-ratio: 1080 / 415;
  overflow: hidden;
}
.chi-platform {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--seal);
  padding: 28px 24px;
  text-align: center;
}
.chi-platform .cp-ico {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--seal);
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.chi-platform h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.chi-platform p { font-size: 13.5px; color: #6d675e; margin: 0 0 14px; line-height: 1.8; }
.cp-tip { font-size: 12.5px; color: #9a938a; }
.chi-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.chi-art {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
  transition: box-shadow 0.2s;
}
.chi-art:hover { box-shadow: 0 10px 30px rgba(38, 35, 31, 0.1); }
.ca-meta { display: flex; gap: 10px; font-size: 12px; color: #9a938a; margin-bottom: 10px; }
.ca-meta span:first-child { color: var(--seal); }
.chi-art h3 { font-size: 16.5px; margin: 0 0 8px; color: var(--ink); line-height: 1.6; }
.chi-art p { font-size: 13.5px; color: #6d675e; line-height: 1.8; margin: 0 0 12px; }
.ca-more { font-size: 13px; color: var(--seal); }
.chi-cta {
  background: var(--seal);
  color: #fff;
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.chi-cta h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.chi-cta p { margin: 0; opacity: 0.88; font-size: 14.5px; }
.chi-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.chi-cta .btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.chi-note { text-align: center; font-size: 12.5px; color: #9a938a; margin-top: 18px; }

@media (max-width: 900px) {
  .chi-intro { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px); gap: 26px; }
  .chi-photo { max-width: 420px; }
  .chi-platforms, .chi-articles { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 52vw, 260px); }
  .chi-cta { padding: 30px 24px; }
}

/* hero 三按钮在手机端逐行铺满 */
@media (max-width: 560px) {
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* 平台卡改版：标题行 + 主页截图 + 前往按钮，三卡统一 */
.chi-platform {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
}
.cp-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.chi-platform .cp-ico {
  margin: 0;
  width: 36px;
  height: 36px;
  font-size: 15px;
  flex: none;
}
.cp-head h3 { margin: 0; font-size: 18px; }
.cp-shot {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 18px;
}
.cp-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.chi-platform .btn-ghost,
.chi-platform .cp-tip {
  margin-top: auto;      /* 三卡按钮底对齐 */
  align-self: center;
  white-space: nowrap;
}

/* 平台卡账号名（截图上方） */
.cp-name {
  text-align: center;
  font-family: var(--serif);
  font-size: 14.5px;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin: -4px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ============ 团队页：每人一行海报 ============ */
.team-rows-sec { padding-top: 46px; }
/* 每行海报高度按视口自适应：一屏可见一张完整 + 下一张约一半 */
.team-rows {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 108vh;      /* 108vh / (16/9) ≈ 60vh 行高 */
  margin: 0 auto;
}
.team-row {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(38, 35, 31, 0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}
.team-row:hover {
  box-shadow: 0 14px 44px rgba(38, 35, 31, 0.16);
  transform: translateY(-2px);
}
.team-row img {
  display: block;
  width: 100%;
  height: auto;
}
.team-row-more {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(30, 27, 24, 0.55);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.team-row:hover .team-row-more { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .team-rows { gap: 16px; }
  .team-row-more { opacity: 1; transform: none; right: 12px; bottom: 10px; padding: 6px 12px; font-size: 12px; }
}
.team-rows > .team-row { width: 100%; min-width: 0; }
.team-row img { max-width: 100%; }

/* ============ 首页：律所实景（瀑布流，照片不裁切） ============ */
.office-gallery {
  columns: 3;
  column-gap: 14px;
}
.office-gallery figure {
  position: relative;
  margin: 0 0 14px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f5;
}
.office-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.office-gallery figure:hover img { transform: scale(1.03); }
.office-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 14px 10px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .05em;
  background: linear-gradient(transparent, rgba(10, 25, 45, .72));
}
.office-gallery figcaption b { display: block; font-size: 14.5px; margin-bottom: 2px; }
@media (max-width: 900px) {
  .office-gallery { columns: 2; column-gap: 10px; }
  .office-gallery figure { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .office-gallery { columns: 1; }
}

/* 团队页：外勤团队集体行（非链接，去掉悬浮位移） */
.team-row-static { cursor: default; }
.team-row-static:hover { transform: none; }
.team-row-static .team-row-more { opacity: 1; transform: none; }
