/* ============================================================
    · Site styles (source file; copied to site/ by the build)
   Tone: authoritative (deep crimson #A22935 + gold #B98A2F), light background
   ============================================================ */
:root {
  --primary: #A22935;
  --primary-dark: #821F28;
  --primary-soft: #F7EDEE;
  --gold: #B98A2F;
  --gold-soft: #F6EFDF;
  --ink: #2E2A28;
  --muted: #6F665F;
  --bg: #FFFFFF;
  --bg-soft: #FBF8F5;
  --line: #EAE2DB;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 34, 30, .07);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif {
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-weight: 700;
  line-height: 1.35;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar and navigation ---------- */
.topbar { background: var(--primary-dark); color: #F5E9E4; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #F5E9E4; }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .container { display: flex; align-items: center; justify-content: space-between;
  gap: 10px 20px; flex-wrap: wrap; min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand .seal {
  width: 38px; height: 38px; background: var(--primary); color: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 21px; font-weight: 700; flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand .t1 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.15; white-space: nowrap;
}
.brand .t2 { font-size: 10px; color: var(--muted); letter-spacing: .9px; line-height: 1.3; white-space: nowrap; }
nav.main { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
nav.main a { color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
nav.main a:hover, nav.main a.active { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-size: 14px;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }
@media (max-width: 1120px) {
  nav.main { gap: 14px; }
  nav.main a { font-size: 13.5px; }
  .nav-cta { padding: 8px 15px; font-size: 13.5px; }
  .nav-lang { padding: 5px 11px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  header.site .container { padding-top: 10px; padding-bottom: 10px; }
  nav.main { width: 100%; justify-content: flex-start; gap: 10px 16px; margin-left: 0; }
  .hero .inner { padding: 56px 0 52px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  transition: .18s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); text-decoration: none; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(.94); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #A22935 0%, #8C2129 58%, #6E1A22 100%); color: #fff; }
.hero .inner { padding: 72px 0 64px; }
.hero .kicker {
  display: inline-block; border: 1px solid rgba(255,255,255,.4);
  padding: 5px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 2px; margin-bottom: 22px;
}
.hero h1 { font-size: 42px; letter-spacing: 1px; }
.hero h1 .gold { color: #E8C87A; }
.hero p.sub { margin: 18px 0 30px; font-size: 18px; color: #F3E2DC; max-width: 720px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats {
  margin-top: 52px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.hero .stat { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 18px 10px; text-align: center; }
.hero .stat b { display: block; font-size: 26px; color: #E8C87A; font-family: "Songti SC", serif; }
.hero .stat span { font-size: 12.5px; color: #F3E2DC; }
.hero .note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .hero .stats { grid-template-columns: repeat(3, 1fr); } .hero h1 { font-size: 30px; } }

/* ---------- Generic section ---------- */
section.block { padding: 72px 0; }
section.block.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-head .tag {
  color: var(--gold); font-size: 13px; letter-spacing: 3px; font-weight: 600;
  display: inline-block; margin-bottom: 10px;
}
.sec-head h2 { font-size: 30px; color: var(--ink); }
.sec-head p { color: var(--muted); margin-top: 12px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/*  */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card .slogan { color: var(--gold); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.card.soft-card { background: var(--bg-soft); }

/*  */
.pain { text-align: center; }
.pain .icon { margin: 0 auto 12px; }
.pain h3 { font-size: 17px; }
.pain p { font-size: 13.5px; }

/*  */
.vs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vs-table th, .vs-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.vs-table thead th { background: var(--primary); color: #fff; font-family: "Songti SC", serif; }
.vs-table td:first-child { font-weight: 600; width: 16%; }
.vs-table td.mediation { background: #FDF6F0; color: var(--primary-dark); }
@media (max-width: 640px) { .vs-table td, .vs-table th { padding: 10px 10px; font-size: 13px; } }

/* Lawyer cards (with photo) */
.lawyer { text-align: left; padding: 0; overflow: hidden; }
.lawyer .photo { background: #454548; aspect-ratio: 4 / 5; overflow: hidden; }
.lawyer .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.lawyer .lawyer-body { padding: 20px 22px 22px; }
.lawyer h3 { font-size: 18px; margin-bottom: 5px; }
.lawyer .role { color: var(--gold); font-size: 12.5px; font-weight: 600; line-height: 1.5; margin: 0 0 10px; }
.lawyer .bio { color: var(--muted); font-size: 13px; }
.lawyer .avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 30px; font-weight: 700;
}
.lawyer .chips { margin-top: 12px; }

/* Cases and testimonials */
.case-hero { background: linear-gradient(150deg, #FBF8F5, #F7EDEE); border: 1px solid var(--line); border-radius: 18px; padding: 40px; }
.case-hero .meta { display: flex; gap: 30px; flex-wrap: wrap; margin: 20px 0; }
.case-hero .meta div b { display: block; font-size: 26px; color: var(--primary); font-family: "Songti SC", serif; }
.case-hero .meta div span { font-size: 13px; color: var(--muted); }
.quote { background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; box-shadow: var(--shadow); }
.quote p { font-size: 14.5px; color: var(--ink); }
.quote .who { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Numbered advantages */
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv .num {
  min-width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: "Songti SC", serif; font-size: 22px;
}

/* CTA band */
.cta-band { background: linear-gradient(140deg, #A22935, #7C1D25); color: #fff; text-align: center; padding: 58px 0; }
.cta-band h2 { font-size: 28px; }
.cta-band p { color: #F3E2DC; margin: 12px 0 26px; }

/* Footer */
footer.site { background: #2B1E1C; color: #C9BBB4; padding: 52px 0 26px; font-size: 13.5px; }
footer.site h4 { color: #F3E9E4; font-size: 15px; margin-bottom: 12px; }
footer.site .cols { display: grid; grid-template-columns: 1.8fr 1.1fr 1.2fr .9fr 1.3fr; gap: 26px; margin-bottom: 30px; }
footer.site a { color: #E8C87A; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #9B8B84; font-size: 12px; }
@media (max-width: 1080px) { footer.site .cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ---------- Article page ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 54px 22px 80px; }
.article .crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.article h1 { font-size: 30px; margin-bottom: 10px; }
.article .meta { color: var(--muted); font-size: 13px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 21px; margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article h3 { font-size: 17px; margin: 22px 0 8px; }
.article p, .article li { color: #46403B; font-size: 15.5px; }
.article ul, .article ol { padding-left: 22px; margin: 12px 0; }
.article li { margin: 6px 0; }
.article .conclusion {
  background: var(--primary-soft); border-radius: var(--radius);
  padding: 18px 22px; margin: 22px 0; color: var(--primary-dark); font-weight: 600;
}
.article .tip {
  background: var(--gold-soft); border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: #6E5317;
}
.article .disclaimer { margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 12px 0; }
.faq-item .q { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.faq-item .a { color: var(--muted); font-size: 14.5px; }
.next-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.next-links a { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 13.5px; }

/* List cards */
.list-item { display: block; }
.list-item .date { color: var(--muted); font-size: 12.5px; }

/* Contact page */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.info-line { display: flex; gap: 12px; margin: 14px 0; font-size: 15px; }
.info-line .k { color: var(--muted); min-width: 76px; }
form .row { margin-bottom: 16px; }
form label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }

/* ---------- Shared content components ---------- */
/* Quick answer (the block AI systems quote from) */
.quick {
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, #FFFDF9, #FFFFFF);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px; margin: 26px 0 34px;
}
.quick-head {
  font-family: "Songti SC", "Noto Serif SC", serif; font-weight: 700;
  color: var(--primary); font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .quick-grid { grid-template-columns: 1fr; } }
.quick-cell .qk { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.quick-cell .qt { font-weight: 700; font-size: 15px; margin: 4px 0 6px; color: var(--ink); }
.quick-cell p { font-size: 13.5px; color: var(--muted); margin: 0; }

/*  */
.geo-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.geo-table th, .geo-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.geo-table thead th { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }

/*  */
.chips { margin-top: 12px; }
.chips span {
  display: inline-block; background: var(--gold-soft); color: #8A6A24;
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px; margin: 3px 4px 0 0;
}
.kicker-sm { color: var(--gold); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }

/*  */
.bilingual-note {
  background: var(--bg-soft); border-radius: 10px; padding: 12px 16px;
  font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 8px;
}
.bilingual-note .zh { color: #8A8078; }

/*  */
.qa-tip {
  background: var(--gold-soft); border-radius: 10px; padding: 14px 18px;
  font-size: 14px; color: #6E5317; margin: 16px 0;
}

/*  CTA */
.cta-inline {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(140deg, #A22935, #7C1D25); color: #fff;
  border-radius: var(--radius); padding: 24px 26px; margin: 34px 0 0;
}
.cta-inline p { color: #F3E2DC !important; font-size: 14px; margin: 6px 0 0; }
.cta-inline .btn-primary { background: var(--gold); }
.cta-inline .btn-primary:hover { filter: brightness(.94); }

/*  */
.related { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.related a {
  display: inline-block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; margin: 6px 8px 0 0;
}

/*  */
.group-h {
  font-size: 22px; margin: 46px 0 18px; padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.group-h:first-of-type { margin-top: 10px; }

.muted-note { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 22px; }
.info-line .big { font-size: 20px; font-weight: 700; }
.card form { margin-top: 6px; }


/* ---------- Scope and eligibility ---------- */
.scope-note {
  background: #FFF9F0; border: 1px solid #EAD9B8; border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 20px 0;
  font-size: 13.5px; color: #6E5317; line-height: 1.7;
}
.scope-note a { color: #8A6A24; font-weight: 600; white-space: nowrap; }
.scope-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
@media (max-width: 720px) { .scope-gate { grid-template-columns: 1fr; } }
.scope-gate .yes, .scope-gate .no { border-radius: 12px; padding: 18px 20px; }
.scope-gate .yes { background: #F1F7EC; border: 1px solid #C0DD97; }
.scope-gate .no { background: #FBF1F1; border: 1px solid #F09595; }
.scope-gate h3 { font-size: 15px; margin-bottom: 10px; }
.scope-gate ul { padding-left: 20px; margin: 0; }
.scope-gate li { font-size: 13.5px; color: #46403B; margin: 6px 0; }
.footer-scope {
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 12px 16px;
  font-size: 12.5px; color: #E0D2CA; margin-bottom: 22px; line-height: 1.7;
}

/* ---------- Language switcher (links to the Chinese-language site) ---------- */
.nav-lang {
  color: var(--ink) !important; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  white-space: nowrap;
}
.nav-lang:hover { border-color: var(--primary); color: var(--primary) !important; text-decoration: none; }

/* ---------- List pages: filters, pagination, metrics ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 26px; }
.cat-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; color: var(--muted);
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cat-chip.cat-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.cat-chip.cat-on:hover { color: #fff; }

.list-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 30px 0 6px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; }
.pg-btn, .pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 14px; line-height: 1;
}
.pg-num { padding: 0 8px; }
a.pg-btn:hover, a.pg-num:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pg-num.pg-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pg-off { opacity: .45; }

.case-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.case-metrics span { font-size: 12.5px; color: var(--muted); }
.case-metrics b { color: var(--primary); font-family: "Songti SC", Georgia, serif; font-size: 15px; }

ul.takeaways { padding-left: 22px; }
ul.takeaways li { color: #46403B; font-size: 15px; margin: 8px 0; }

/*  */
a.card.list-item { color: inherit; }
a.card.list-item:hover { text-decoration: none; border-color: var(--primary); }
a.card.list-item:hover h3 { color: var(--primary); }

/* ---------- Office photographs ---------- */
.env-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 0; }
.env-gallery.env-single { grid-template-columns: 1fr; }
.env-gallery.env-single .env-figure img { aspect-ratio: 21 / 9; }
@media (max-width: 780px) { .env-gallery, .env-gallery.env-single { grid-template-columns: 1fr; } }
.env-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.env-figure.env-wide { grid-column: 1 / -1; }
.env-figure img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.env-figure figcaption { padding: 16px 20px 18px; }
.env-figure figcaption b { display: block; font-family: "Songti SC", Georgia, serif; font-size: 16px; color: var(--ink); margin-bottom: 5px; }
.env-figure figcaption span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.65; }


/* ---------- Client commendation wall (masonry, natural aspect ratio) ---------- */
.banner-wall { columns: 4; column-gap: 16px; margin: 6px 0 0; }
.banner-wall figure {
  break-inside: avoid; margin: 0 0 16px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.banner-wall img { width: 100%; height: auto; display: block; }
@media (max-width: 1000px) { .banner-wall { columns: 3; } }
@media (max-width: 680px) { .banner-wall { columns: 2; column-gap: 12px; } .banner-wall figure { margin-bottom: 12px; } }
