
:root {
  --font-heading: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --bg-50: #fbf9f6;
  --bg-100: #f5f1ec;
  --bg-200: #ebe4dc;
  --bg-300: #ddd3c8;
  --primary-50: #fdf2f3;
  --primary-100: #f9e4e6;
  --primary-200: #f0c9ce;
  --primary-300: #e09aa3;
  --primary-500: #a83242;
  --primary-600: #8f2836;
  --primary-700: #761f2c;
  --primary-800: #5c1a24;
  --primary-900: #45151c;
  --primary-950: #2a1016;
  --accent-100: #f6edd0;
  --accent-300: #e0c86a;
  --accent-400: #d4b84a;
  --accent-500: #c9a227;
  --accent-600: #b08c1e;
  --accent-700: #8a6c18;
  --accent-900: #5c4810;
  --fg-400: #9a8e86;
  --fg-500: #7a6e66;
  --fg-600: #5c524c;
  --fg-700: #433c38;
  --fg-800: #2e2824;
  --fg-900: #1c1614;
  --white: #fff;
  --radius: 8px;
  --radius-md: 6px;
  --header-h: 64px;
  --hero-fallback: linear-gradient(160deg, #45151c 0%, #8f2836 42%, #2a1016 100%);
}

@supports (color: oklch(0.57 0.15 24)) {
  :root {
    --bg-50: oklch(0.99 0.003 85);
    --bg-100: oklch(0.975 0.004 85);
    --bg-200: oklch(0.95 0.006 85);
    --bg-300: oklch(0.91 0.008 85);
    --primary-50: oklch(0.973 0.008 22);
    --primary-100: oklch(0.946 0.016 22);
    --primary-200: oklch(0.893 0.035 22);
    --primary-300: oklch(0.815 0.065 22);
    --primary-500: oklch(0.57 0.15 24);
    --primary-600: oklch(0.5 0.14 24);
    --primary-700: oklch(0.44 0.13 24);
    --primary-800: oklch(0.38 0.11 24);
    --primary-900: oklch(0.32 0.09 24);
    --primary-950: oklch(0.23 0.07 24);
    --accent-100: oklch(0.958 0.035 90);
    --accent-300: oklch(0.86 0.1 85);
    --accent-400: oklch(0.79 0.12 82);
    --accent-500: oklch(0.73 0.13 80);
    --accent-600: oklch(0.66 0.12 78);
    --accent-700: oklch(0.58 0.11 75);
    --accent-900: oklch(0.41 0.07 70);
    --fg-400: oklch(0.63 0.012 30);
    --fg-500: oklch(0.51 0.014 30);
    --fg-600: oklch(0.43 0.013 30);
    --fg-700: oklch(0.36 0.012 30);
    --fg-800: oklch(0.29 0.01 30);
    --fg-900: oklch(0.23 0.008 30);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg-800);
  background: var(--bg-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-600); text-decoration: none; }
button { font-family: inherit; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.td-narrow { max-width: 768px; }
@media (min-width: 768px) {
  :root { --header-h: 80px; }
  .wrap { width: min(1200px, calc(100% - 64px)); }
}

.td-heading { font-family: var(--font-heading); font-weight: 700; color: var(--fg-900); }
.td-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; color: var(--primary-600);
}
.td-eyebrow span { width: 32px; height: 1px; background: currentColor; }
.td-eyebrow-left { justify-content: flex-start; }
.td-eyebrow-left span:last-child { display: none; }
.td-eyebrow-gold { color: var(--accent-300); }

.td-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md); border: 0;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.td-btn-primary { background: var(--primary-600); color: var(--white); }
.td-btn-primary:hover { background: var(--primary-700); color: var(--white); }
.td-btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.td-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.td-btn-outline {
  background: transparent; color: var(--primary-600);
  border: 1px solid var(--primary-300);
}
.td-btn-outline:hover { background: var(--primary-50); }
.td-btn-gold { background: var(--accent-500); color: var(--primary-950); font-weight: 600; }
.td-btn-gold:hover { background: var(--accent-600); color: var(--primary-950); }
.td-btn-light { background: var(--white); color: var(--primary-700); }
.td-btn-light:hover { background: var(--bg-100); color: var(--primary-700); }
.td-btn-lg { padding: 14px 32px; font-size: 16px; }
.td-btn-block { width: 100%; }
.td-link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary-600); font-size: 14px; font-weight: 500;
}
.td-link-more i { transition: transform .2s; }
.td-link-more:hover i { transform: translateX(4px); }
.td-text-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--fg-900);
}

/* Header */
.td-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg-50);
  border-bottom: 1px solid var(--bg-200);
  transition: background .3s, border-color .3s;
}
.td-header.is-transparent,
body:has(.td-hero) .td-header:not(.is-solid) {
  background: transparent; border-bottom-color: transparent;
}
body.td-menu-open .td-header {
  background: var(--bg-50); border-bottom-color: var(--bg-200);
}
.td-header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1200px, calc(100% - 32px)); margin: 0 auto;
}
@media (min-width: 768px) {
  .td-header-inner { width: min(1200px, calc(100% - 64px)); }
}
.td-logo { display: flex; align-items: center; gap: 12px; color: var(--fg-900); min-width: 0; }
.td-header.is-transparent .td-logo,
body:has(.td-hero) .td-header:not(.is-solid) .td-logo { color: var(--white); }
body.td-menu-open .td-logo { color: var(--fg-900) !important; }
.td-logo-mark {
  width: 40px; height: 40px; border-radius: var(--radius-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-600); color: var(--white); font-size: 20px;
}
.td-logo-mark img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-md); }
.td-logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.2; display: block; }
.td-logo-full {
  display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--fg-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.td-header.is-transparent .td-logo-full,
body:has(.td-hero) .td-header:not(.is-solid) .td-logo-full { color: rgba(255,255,255,.7); }
body.td-menu-open .td-logo-full { color: var(--fg-500) !important; }
.td-nav { display: none; align-items: center; gap: 4px; }
.td-nav a {
  padding: 8px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  color: var(--fg-700); white-space: nowrap;
}
.td-nav a:hover, .td-nav a.is-active { color: var(--primary-600); }
.td-header.is-transparent .td-nav a,
body:has(.td-hero) .td-header:not(.is-solid) .td-nav a { color: rgba(255,255,255,.9); }
.td-header.is-transparent .td-nav a:hover,
.td-header.is-transparent .td-nav a.is-active,
body:has(.td-hero) .td-header:not(.is-solid) .td-nav a:hover,
body:has(.td-hero) .td-header:not(.is-solid) .td-nav a.is-active { color: var(--white); background: rgba(255,255,255,.1); }
.td-header-actions { display: none; align-items: center; gap: 16px; }
.td-header-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--fg-700); white-space: nowrap;
}
.td-header.is-transparent .td-header-phone,
body:has(.td-hero) .td-header:not(.is-solid) .td-header-phone { color: rgba(255,255,255,.9); }
.td-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: var(--radius-md); background: transparent;
  color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.td-header-mobile { display: flex; align-items: center; gap: 8px; color: var(--fg-800); }
.td-header.is-transparent .td-header-mobile,
body:has(.td-hero) .td-header:not(.is-solid) .td-header-mobile { color: var(--white); }
body.td-menu-open .td-header-mobile { color: var(--fg-800); }
.td-drawer {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  background: var(--bg-50); border-top: 1px solid var(--bg-200);
  padding: 16px; flex-direction: column; gap: 4px;
  max-height: calc(100vh - var(--header-h)); overflow: auto;
}
body.td-menu-open .td-drawer { display: flex; }
.td-drawer a, .td-drawer button {
  padding: 12px 16px; border-radius: var(--radius-md); font-size: 16px; font-weight: 500; color: var(--fg-700);
  text-align: left; background: none; border: 0; cursor: pointer;
}
.td-drawer a:hover, .td-drawer a.is-active { color: var(--primary-600); background: var(--primary-50); }
.td-drawer .td-btn { margin-top: 8px; text-align: center; justify-content: center; color: var(--white); }

@media (min-width: 1024px) {
  .td-nav, .td-header-actions { display: flex; }
  .td-header-mobile { display: none; }
  body { padding-bottom: 0; }
}

/* Hero */
.td-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 48px) 16px 80px;
  color: var(--white); overflow: hidden; text-align: center;
  background: var(--hero-fallback);
}
.td-hero-bg { position: absolute; inset: 0; }
.td-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.td-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(42,16,22,.7), rgba(69,21,28,.5), rgba(42,16,22,.85));
}
.td-hero-body { position: relative; z-index: 1; width: min(896px, 100%); }
.td-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 999px; margin-bottom: 32px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px); font-size: 13px; color: var(--accent-300);
}
.td-hero h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(32px, 5.5vw, 60px); line-height: 1.2; color: var(--white);
}
.td-hero-lead {
  margin: 28px auto 0; max-width: 36rem;
  font-size: 16px; color: rgba(255,255,255,.8); line-height: 1.8;
}
.td-hero-city { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: 0.12em; }
.td-hero-actions {
  margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.td-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(255,255,255,.6);
}
.td-scroll-hint i { font-size: 20px; animation: td-bounce 1.6s infinite; }
@keyframes td-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Stats */
.td-stats {
  background: var(--primary-950);
  padding: 48px 0;
}
.td-stats:not(:has(.td-stat)) { display: none; }
.td-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.td-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.td-stat strong {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); color: var(--accent-400); line-height: 1.1;
}
.td-stat span { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.7); }
@media (min-width: 768px) {
  .td-stats { padding: 56px 0; }
  .td-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
.td-section { padding: 80px 0; }
@media (min-width: 768px) { .td-section { padding: 112px 0; } }
.td-section-muted { background: var(--bg-100); }
.td-section-head { margin-bottom: 40px; }
@media (min-width: 768px) { .td-section-head { margin-bottom: 56px; } }
.td-section-head.td-center { text-align: center; }
.td-section-head.td-center .td-eyebrow { width: 100%; }
.td-section-head.td-center p { margin-left: auto; margin-right: auto; }
.td-section-head h2 {
  font-family: var(--font-heading); font-size: clamp(28px, 4vw, 36px);
  color: var(--fg-900); margin: 16px 0 16px; line-height: 1.25; font-weight: 700;
}
.td-section-head p { color: var(--fg-600); font-size: 15px; max-width: 40rem; line-height: 1.8; }
.td-section-head.td-split {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}

.td-grid { display: grid; gap: 24px; }
.td-grid-2, .td-grid-3, .td-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .td-grid-2 { grid-template-columns: 1fr 1fr; }
  .td-grid-3 { grid-template-columns: 1fr 1fr; }
  .td-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .td-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .td-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.td-card {
  display: block; background: var(--bg-100);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius); padding: 32px;
  color: inherit; transition: border-color .2s, background .2s;
}
.td-section-muted .td-card { background: var(--bg-50); }
.td-card:hover { border-color: var(--primary-300); background: var(--white); }
.td-card h2, .td-card h3 {
  font-family: var(--font-heading); font-size: 20px; color: var(--fg-900); margin: 12px 0; font-weight: 700;
}
.td-card .td-icon + h2, .td-card .td-icon + h3 { margin-top: 24px; }
.td-card .td-chip { margin-bottom: 4px; }
.td-card:hover h2, .td-card:hover h3 { color: var(--primary-600); }
.td-card p { color: var(--fg-600); font-size: 14px; line-height: 1.75; }
.td-card-foot {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--primary-600);
}

.td-icon {
  width: 56px; height: 56px; border-radius: var(--radius); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-50); color: var(--primary-600); font-size: 24px;
  transition: background .2s, color .2s;
}
.td-card:hover .td-icon { background: var(--primary-600); color: var(--white); }
.td-icon-sm { width: 40px; height: 40px; font-size: 18px; }
.td-icon-round { border-radius: 999px; width: 64px; height: 64px; }
.td-icon-gold { background: var(--accent-100); color: var(--accent-700); }
.td-card:hover .td-icon-gold { background: var(--accent-500); color: var(--primary-950); }
.td-icon-center { display: flex; margin: 0 auto 12px; }

.td-center-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px;
}

/* About */
.td-about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .td-about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.td-about-visual { position: relative; }
.td-about-frame {
  width: 100%; min-height: 280px; border-radius: var(--radius); overflow: hidden;
  background: var(--hero-fallback) center / cover;
}
@media (min-width: 768px) { .td-about-frame { min-height: 440px; } }
.td-about-frame img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: top; }
@media (min-width: 768px) { .td-about-frame img { min-height: 440px; } }
.td-about-badge {
  display: none; position: absolute; bottom: -24px; right: -16px;
  background: var(--primary-600); color: var(--white);
  border-radius: var(--radius); padding: 20px 24px;
}
@media (min-width: 768px) { .td-about-badge { display: block; } }
.td-about-badge strong { font-family: var(--font-heading); font-size: 28px; display: block; }
.td-about-badge span { font-size: 13px; color: rgba(255,255,255,.8); }
.td-about-copy h2 {
  font-family: var(--font-heading); font-size: clamp(28px, 4vw, 36px);
  color: var(--fg-900); margin: 16px 0 24px; line-height: 1.3; font-weight: 700;
}
.td-about-copy > p { color: var(--fg-600); font-size: 15px; margin-bottom: 16px; line-height: 1.8; }
.td-points { display: grid; gap: 16px; margin: 32px 0; }
@media (min-width: 640px) { .td-points { grid-template-columns: 1fr 1fr 1fr; } }
.td-point {
  padding: 20px; border-radius: var(--radius);
  background: var(--bg-50); border: 1px solid var(--bg-200);
}
.td-point h3 { font-family: var(--font-heading); font-size: 16px; color: var(--fg-900); margin: 16px 0 4px; }
.td-point p { font-size: 12px; color: var(--fg-500); margin: 0; }

/* Team */
.td-lawyer {
  display: block; background: var(--bg-100);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: border-color .2s;
}
.td-lawyer:hover { border-color: var(--primary-300); }
.td-lawyer-photo {
  height: 288px; background: var(--bg-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-200); font-size: 64px; overflow: hidden;
}
.td-lawyer-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .5s;
}
.td-lawyer:hover .td-lawyer-photo img { transform: scale(1.05); }
.td-lawyer-body { padding: 20px; }
.td-lawyer-body h2, .td-lawyer-body h3 {
  font-family: var(--font-heading); font-size: 18px; color: var(--fg-900); font-weight: 700;
}
.td-lawyer:hover h2, .td-lawyer:hover h3 { color: var(--primary-600); }
.td-lawyer-title { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--primary-600); }
.td-lawyer-meta { margin-top: 8px; font-size: 12px; color: var(--fg-400); }

.td-chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-600); color: var(--white);
  font-size: 12px; font-weight: 500;
}
.td-chip-gold { background: var(--accent-500); color: var(--primary-950); }
.td-chip-light { background: rgba(255,255,255,.18); color: var(--white); }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.td-chips .td-chip { margin: 0; background: var(--primary-50); color: var(--primary-700); }
.td-result { color: var(--accent-700) !important; font-weight: 500; margin-top: 16px; display: flex; align-items: center; gap: 6px; }
.td-news-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-400); }

/* Case / news cards with image area */
.td-media-card { padding: 0; overflow: hidden; }
.td-media-card .td-media {
  position: relative; height: 192px; overflow: hidden; background: var(--hero-fallback);
}
.td-media-card .td-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .5s;
}
.td-media-card:hover .td-media img { transform: scale(1.05); }
.td-media-card .td-chip { position: absolute; top: 16px; left: 16px; }
.td-media-card .td-media-body { padding: 24px; }
.td-media-card h3 { margin: 12px 0 8px; }

/* CTA band */
.td-cta-band {
  position: relative; overflow: hidden; padding: 80px 0; text-align: center; color: var(--white);
  background: var(--primary-950);
}
@media (min-width: 768px) { .td-cta-band { padding: 112px 0; } }
.td-cta-band-bg { position: absolute; inset: 0; }
.td-cta-band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.td-cta-band::after {
  content: ""; position: absolute; inset: 0; background: rgba(42,16,22,.8);
}
.td-cta-band .wrap { position: relative; z-index: 1; }
.td-cta-band h2 {
  font-family: var(--font-heading); font-size: clamp(28px, 4vw, 48px);
  color: var(--white); margin: 20px 0 20px; line-height: 1.25;
}
.td-cta-band p { color: rgba(255,255,255,.8); max-width: 36rem; margin: 0 auto 36px; }

/* Page hero */
.td-page-hero {
  position: relative; height: 320px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); background: var(--hero-fallback); text-align: center;
}
@media (min-width: 768px) { .td-page-hero { height: 420px; } }
.td-page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.td-page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(42,16,22,.8), rgba(69,21,28,.6), rgba(42,16,22,.8));
}
.td-page-hero .wrap { position: relative; z-index: 1; padding-top: var(--header-h); }
.td-page-hero h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(28px, 4vw, 48px); color: var(--white); margin: 8px 0 16px;
}
.td-page-hero p { color: rgba(255,255,255,.8); max-width: 40rem; margin: 0 auto; font-size: 15px; }
.td-crumb {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,.7); margin-top: 24px;
}
.td-crumb a { color: rgba(255,255,255,.7); }
.td-crumb a:hover { color: var(--accent-300); }
.td-crumb-gold { color: var(--accent-300); }

.td-page { padding: 48px 0 80px; }
.td-page-hero + .td-page,
.td-page-hero + .td-section { padding-top: 64px; }
.td-lead { font-size: 16px; color: var(--fg-600); margin-bottom: 20px; line-height: 1.8; }
.td-nap { font-size: 14px; color: var(--fg-500); }
.td-subhead {
  font-family: var(--font-heading); font-size: 22px; color: var(--fg-900); margin: 32px 0 16px; font-weight: 700;
}

.prose { color: var(--fg-600); font-size: 15px; line-height: 1.85; }
.prose h2 { font-family: var(--font-heading); color: var(--fg-900); font-size: 22px; margin: 28px 0 12px; }
.prose h3 { color: var(--fg-900); font-size: 18px; margin: 20px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 1.2em; }
.prose img { max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.prose th, .prose td { border: 1px solid var(--bg-300); padding: 8px 10px; }
.td-article {
  background: var(--bg-50); border: 1px solid var(--bg-200);
  border-radius: var(--radius); padding: 28px;
}
@media (min-width: 768px) { .td-article { padding: 40px; } }

.td-faq dt { font-weight: 700; color: var(--fg-900); margin-top: 16px; font-family: var(--font-heading); }
.td-faq dd { margin: 6px 0 0; color: var(--fg-600); font-size: 14px; }

.td-steps { display: grid; gap: 24px; }
@media (min-width: 768px) { .td-steps { grid-template-columns: repeat(3, 1fr); } }
.td-step { text-align: center; }
.td-step-num { font-family: var(--font-heading); font-size: 28px; color: var(--primary-300); }
.td-value { text-align: center; }
.td-value .td-icon { margin: 0 auto; }
.td-value img { max-height: 80px; margin: 0 auto 12px; }

/* Form */
.td-consult-grid { display: grid; gap: 40px; align-items: start; }
#consult-form { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 1024px) { .td-consult-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.td-contact-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.td-contact-row { display: flex; align-items: center; gap: 16px; }
.td-contact-row p { font-size: 12px; color: var(--fg-400); margin: 0; }
.td-contact-row strong { display: block; font-size: 14px; color: var(--fg-800); }
.td-contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px; }
.td-contact-card p { font-size: 13px; color: var(--fg-500); margin: 0; }
.td-contact-card strong { font-size: 14px; color: var(--fg-900); }
.td-form-card {
  background: var(--bg-100); border: 1px solid var(--bg-200);
  border-radius: var(--radius); padding: 24px;
}
@media (min-width: 768px) { .td-form-card { padding: 32px; } }
.td-form-card h3 {
  font-family: var(--font-heading); font-size: 20px; color: var(--fg-900); margin-bottom: 8px; font-weight: 700;
}
.td-form-card > p { font-size: 14px; color: var(--fg-600); margin-bottom: 20px; }
.td-form .td-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .td-form .td-row-2 { grid-template-columns: 1fr 1fr; } }
.td-form label { display: block; font-size: 13px; font-weight: 500; color: var(--fg-700); margin-bottom: 8px; }
.td-form input, .td-form textarea, .td-form select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--bg-300); background: var(--white);
  font: inherit; font-size: 14px; color: var(--fg-800); outline: none;
}
.td-form input:focus, .td-form textarea:focus, .td-form select:focus {
  border-color: var(--primary-300);
}
.td-form textarea { resize: vertical; min-height: 96px; }
.hp, .td-form .hp {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  opacity: 0 !important; pointer-events: none !important;
}
.td-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--fg-600); margin: 12px 0; }
.td-check input { width: auto; margin-top: 3px; }
.td-disclaimer { font-size: 12px; color: var(--fg-400); margin: 12px 0 16px; }
.consult-error { color: var(--primary-700); background: var(--primary-50); padding: 10px 12px; border-radius: var(--radius-md); margin-bottom: 12px; font-size: 14px; }

.td-author {
  display: flex; gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--radius); background: var(--bg-100); margin: 0 0 24px;
}
.td-author img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.td-note { font-size: 13px; color: var(--fg-500); margin-bottom: 16px; }
.td-result-box {
  padding: 20px; border-radius: var(--radius); margin-bottom: 24px;
  background: var(--primary-50); border: 1px solid var(--primary-200);
}
.td-result-box p { font-size: 13px; font-weight: 600; color: var(--primary-700); margin: 0 0 4px; }
.td-result-box strong { font-size: 16px; color: var(--fg-900); }

.td-team-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .td-team-layout { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
}
.td-team-card {
  border: 1px solid var(--bg-200);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-50);
}
.td-team-card .td-lawyer-photo { height: 320px; }
.td-team-meta { list-style: none; margin: 16px 0; font-size: 14px; color: var(--fg-600); }
.td-team-meta li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.td-team-meta i { color: var(--primary-600); margin-top: 2px; }
.td-team-card .td-btn { margin: 8px 20px 20px; width: calc(100% - 40px); }

.td-practice-row { display: flex; gap: 16px; align-items: flex-start; }
.td-practice-row h2 { margin-top: 0; }
.td-list-stack { display: flex; flex-direction: column; gap: 20px; }
.td-list-row {
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) {
  .td-list-row {
    flex-direction: row; justify-content: space-between; align-items: flex-end;
  }
}

.td-thanks { max-width: 640px; margin: 0 auto; text-align: center; padding: 48px 0; }
.td-thanks h1 { font-family: var(--font-heading); font-size: 28px; color: var(--fg-900); margin: 12px 0; }
.td-thanks .td-btn { margin: 8px 0; }
.td-qr { width: 180px; height: 180px; margin: 16px auto; object-fit: contain; }

.off-hours {
  margin: 16px 0; padding: 12px 16px; border-radius: var(--radius);
  background: var(--accent-100); color: var(--accent-900); font-size: 14px;
}

.td-404 {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--header-h) + 48px) 24px 48px; position: relative;
}
.td-404-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: clamp(120px, 20vw, 220px); font-weight: 800; color: var(--bg-100);
  font-family: var(--font-heading); pointer-events: none; line-height: 1;
}
.td-404 h1 { font-family: var(--font-heading); font-size: 28px; color: var(--fg-900); position: relative; }

/* Trust + footer */
.td-trust { background: var(--bg-100); border-top: 1px solid var(--bg-200); padding: 16px 0; }
.td-trust ul { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; font-size: 13px; color: var(--fg-500); }
.td-trust a { color: var(--fg-600); }

.td-footer {
  background: var(--primary-950); color: rgba(255,255,255,.75); padding: 56px 0 28px;
}
@media (max-width: 1023px) { .td-footer { padding-bottom: 120px; } }
.td-footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .td-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .td-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.td-footer h4 {
  font-family: var(--font-heading); font-size: 16px; color: var(--white); margin-bottom: 20px; font-weight: 600;
}
.td-footer ul { list-style: none; }
.td-footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.td-footer a:hover { color: var(--accent-300); }
.td-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.td-footer-practices {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.td-footer-practices li { margin: 0; }
.td-footer-brand p { font-size: 14px; line-height: 1.8; margin: 20px 0 0; color: rgba(255,255,255,.7); }
.td-footer-logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.td-footer-logo .td-logo-mark { background: var(--accent-500); color: var(--primary-950); }
.td-footer-logo .td-logo-name { color: var(--white); }
.td-footer-logo .td-logo-full { color: rgba(255,255,255,.55); }
.td-footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; margin-bottom: 16px; }
.td-footer-contact i { color: var(--accent-400); margin-top: 2px; }
.td-copy {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.td-copy a { color: rgba(255,255,255,.5); font-size: 12px; }
.td-copy a:hover { color: var(--accent-300); }
.footer-tech {
  margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.4); text-align: center;
}
.footer-tech a { color: rgba(255,255,255,.55); font-size: 12px; }
.footer-tech a:hover { color: var(--accent-300); }

/* Mobile tabbar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  background: var(--bg-50);
  border-top: 1px solid var(--bg-200);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a, .mobile-bar button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 4px; background: none; border: 0; color: var(--fg-500);
  font: inherit; font-size: 11px; font-weight: 500; cursor: pointer;
}
.mobile-bar i { font-size: 20px; }
.mobile-bar a:hover, .mobile-bar button:hover,
.mobile-bar a:focus, .mobile-bar button:focus { color: var(--primary-600); }
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
}

/* WeChat modal */
#wechat-modal {
  display: none; position: fixed; inset: 0; z-index: 60;
  align-items: center; justify-content: center; padding: 24px;
}
#wechat-modal.is-open { display: flex; }
#wechat-modal::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(28,22,20,.55);
}
.modal-box {
  position: relative; background: var(--bg-50); border-radius: var(--radius);
  width: min(320px, 100%); padding: 32px 24px; text-align: center;
}
.modal-box img { width: 180px; height: 180px; object-fit: contain; margin: 12px auto; }
.modal-box p { font-size: 13px; color: var(--fg-500); }
.td-modal-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--fg-900) !important; margin: 8px 0 6px; }
.td-modal-close { position: absolute; top: 12px; right: 12px; color: var(--fg-500); }
.modal-box [data-close-modal]:not(.td-icon-btn) {
  margin-top: 12px; border: 0; background: var(--bg-100); color: var(--fg-600);
  padding: 8px 16px; border-radius: var(--radius-md); cursor: pointer;
}

.wechat-id-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin: 14px 0 6px;
}
.wechat-id-label { font-size: 13px; color: var(--fg-500); }
.wechat-id-value { font-size: 16px; letter-spacing: .04em; color: var(--fg-900); }
.wechat-id-hint {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #c2410c !important;
  margin: 10px 0 12px !important;
}
.wechat-id-hint strong { font-size: 16px; color: #b91c1c; }
[data-copy-wechat] {
  border: 1px solid currentColor; background: transparent;
  color: inherit; padding: 6px 12px; cursor: pointer; font-size: 13px; border-radius: var(--radius-md);
}

/* PC convert */
.pc-convert {
  display: none; position: fixed; right: 24px; bottom: 24px; z-index: 40;
  flex-direction: column; gap: 8px;
}
@media (min-width: 1024px) {
  .pc-convert { display: flex; }
}

.td-related h2 {
  font-family: var(--font-heading); font-size: 22px; color: var(--fg-900); margin: 32px 0 16px;
}

/* ——— pager ——— */
.pager,
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
}
.pager a,
.pager span,
.pagination a,
.pagination span,
.pager li a,
.pager li span,
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border, var(--paper-200, var(--navy-100, #d7dee8)));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: inherit;
  background: var(--white, var(--surface, #fff));
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pager a:hover,
.pagination a:hover,
.pager li a:hover,
.pagination li a:hover {
  border-color: var(--gold-500, var(--gold, var(--primary, currentColor)));
  color: var(--gold-700, var(--gold-600, var(--primary, inherit)));
}
.pager .active,
.pager .current,
.pagination .active,
.pagination .current,
.pager span.current,
.pagination span.current,
.pager li.active span,
.pagination li.active span {
  background: var(--navy-700, var(--primary, var(--ink, var(--blue, #1a3a5c))));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.pager .disabled,
.pagination .disabled,
.pager li.disabled span,
.pagination li.disabled span {
  opacity: 0.45;
  pointer-events: none;
}
.pager ul,
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
