/* ============================================================
   Trustone Law LLP · 美国晟合律师事务所
   Design system — "cornerstone of trust, union of two worlds"
   Palette: ink navy + brass + limestone paper
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0E2340;   /* deep ink navy — authority, the "stone" */
  --navy-800:    #14304F;
  --navy-700:    #1B3A6B;   /* from the source document */
  --brass:       #B4924F;   /* restrained gold accent */
  --brass-600:   #9C7C3D;
  --brass-soft:  #C9A84C;   /* from the source document */

  /* Neutrals — limestone, not cream */
  --paper:       #F4F2EC;   /* page background — limestone */
  --paper-2:     #ECE8DF;   /* alt band */
  --card:        #FBFAF6;
  --ink:         #17202B;   /* body text */
  --ink-soft:    #4A5560;   /* secondary text */
  --line:        #DED9CC;   /* hairline */
  --line-strong: #C8C0AD;

  /* Type */
  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, 'Songti SC', serif;
  --font-body:    'Hanken Grotesk', 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', sans-serif;

  /* Layout */
  --wrap:  1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Language switching ---------- */
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-zh { display: none !important; }
/* Chinese text tuned slightly for CJK rhythm */
html[data-lang="zh"] body { letter-spacing: 0.01em; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.section-eyebrow, .eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-600); margin: 0;
}
html[data-lang="zh"] .section-eyebrow,
html[data-lang="zh"] .eyebrow { letter-spacing: 0.28em; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--navy);
  margin-top: 0.7rem;
  font-weight: 500;
}
.section-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.5em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  letter-spacing: 0.01em;
}
.btn-arrow { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #F5F1E7; }
.btn-primary:hover { background: var(--navy-800); box-shadow: 0 10px 26px -12px rgba(14,35,64,.6); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(14,35,64,.04); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand-mark { display: inline-flex; }
.brand-mark-img { display: block; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en {
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem;
  color: var(--navy); letter-spacing: 0.005em;
}
.brand-zh {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--ink-soft); margin-top: 1px;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.site-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--brass); transition: width .25s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--navy); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong); background: transparent; color: var(--navy);
  padding: 0.42em 0.85em; border-radius: 999px; cursor: pointer;
  transition: all .2s var(--ease); min-width: 3.4em; text-align: center;
}
.lang-toggle:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-burger span + span { margin-top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(27,58,107,.06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-glyph {
  position: absolute; right: -0.12em; bottom: -0.28em; z-index: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20rem, 42vw, 40rem); line-height: 0.8;
  color: var(--navy); opacity: 0.045; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 60rem; }

.eyebrow { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.eyebrow-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }

.hero-title { margin-top: 1.4rem; }
.hero-name-en {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.4rem); color: var(--navy);
  letter-spacing: -0.02em; line-height: 0.98;
}
.hero-name-zh {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 2.3rem); color: var(--navy-700);
  letter-spacing: 0.08em; margin-top: 0.55rem;
}
.hero-lead {
  max-width: 40ch; margin-top: 1.8rem;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.3rem; }

.cred-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.cred-strip li {
  position: relative; padding-left: 1.1rem;
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 500;
}
.cred-strip li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg);
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-head { position: sticky; top: 96px; }
.about-body p { font-size: 1.12rem; color: var(--ink); max-width: 60ch; }
.about-body p + p { margin-top: 1.4rem; }
.about-body p .lang-en { line-height: 1.72; }

/* ============================================================
   两端对齐（律所 2026-08-03 要求：英文正文左右都要齐；手机端也提了）
   justify 对中英文都生效（客户要的就是"左右对齐"；实测中文卡片未出现字间距被拉大）。
   只作用于长段正文；标题、标签、按钮保持默认左对齐。

   **不断词**（hyphens: none）：第一版配了 hyphens: auto 来避免词间空隙，
   但刘律师 2026-08-03 11:57 明确要求「将这些单词都放在同一行，同时保持两边对齐」，
   圈出的就是 experi-enced / practical busi-ness / corpo-rate 这些断开的词。
   代价是词间距会变大（justify 的固有取舍，窄屏更明显）—— 这是客户在两者间的选择。

   overflow-wrap 是兜底：极端长的词（长邮箱、长 URL）单行放不下时才强制断，
   避免撑破窄栏；正常英文单词不受影响。
   ============================================================ */
.about-body p,
.person-bio,
.practice-card p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: break-word;
  /* 最后一行不拉伸（默认行为，写出来是防止将来有人误加 text-align-last） */
  text-align-last: start;
}

/* ============================================================
   PRACTICE
   ============================================================ */
.section-practice { background: var(--navy); color: #E8E4D8; }
.section-practice .section-eyebrow { color: var(--brass-soft); }
.section-practice .section-title { color: #F5F1E7; }

.practice-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
}
.practice-card {
  background: var(--navy); padding: clamp(1.6rem, 2.6vw, 2.4rem);
  transition: background .3s var(--ease);
}
.practice-card:hover { background: var(--navy-800); }
.practice-index {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--brass-soft);
  font-weight: 500; letter-spacing: 0.05em;
}
.practice-card h3 {
  font-family: var(--font-display); font-size: 1.5rem; color: #F5F1E7;
  margin-top: 0.9rem; font-weight: 500;
}
.practice-card p {
  margin-top: 0.7rem; color: rgba(232,228,216,.72); font-size: 0.98rem; line-height: 1.6;
}
.practice-more {
  margin-top: 2.2rem; color: rgba(232,228,216,.6); font-size: 0.95rem;
  border-left: 2px solid var(--brass); padding-left: 1rem;
}

/* ============================================================
   PEOPLE
   ============================================================ */
.section-people { background: var(--paper-2); }
.people-list { display: flex; flex-direction: column; gap: 1.25rem; }

.person {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 3vw, 2.6rem);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.person:hover {
  box-shadow: 0 26px 50px -32px rgba(14,35,64,.4);
  border-color: var(--line-strong);
}

.person-seal {
  width: 76px; height: 76px; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--brass-soft);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(201,168,76,.5), inset 0 0 0 5px var(--navy), inset 0 0 0 6px rgba(201,168,76,.28);
}
.person-seal span { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.person-seal .seal-initials { font-size: 1.55rem; letter-spacing: 0.03em; }

.person-head {
  display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
  padding-bottom: 0.9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.person-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.person-role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-600);
}
html[data-lang="zh"] .person-role { letter-spacing: 0.2em; }
.person-bio { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; max-width: 68ch; }
.person-bio + .person-bio { margin-top: 0.85rem; }

.person-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.person-tags li {
  font-size: 0.78rem; font-weight: 500; color: var(--navy-700);
  background: rgba(27,58,107,.07); border: 1px solid rgba(27,58,107,.12);
  padding: 0.3em 0.8em; border-radius: 999px;
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.section-insights { background: var(--paper); }
.insights-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.insights-lead { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 42ch; }
.insights-channels { display: flex; flex-direction: column; gap: 1rem; }
.insights-channels li {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 1.3rem 1.5rem; border-radius: var(--radius);
}
.channel-text { display: grid; gap: 0.35rem; min-width: 0; }
.channel-kind {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-600);
}
.channel-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.channel-note { font-size: 0.92rem; color: var(--ink-soft); }
.channel-qr { margin: 0; display: grid; justify-items: center; gap: 0.45rem; }
.channel-qr img {
  display: block; width: 112px; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.channel-qr figcaption {
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-soft); white-space: nowrap;
}

/* ---------- 首页「洞见」：最新文章（由 main.js 读 /insights/latest.json 填充） ---------- */
.insights-latest { margin-top: clamp(3rem, 6vw, 4.5rem); }
.insights-latest-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.insights-latest-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); font-weight: 600; }
.insights-more { font-size: 0.95rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--brass); }
.insights-more:hover { color: var(--brass-600); }

/* ============================================================
   ARTICLES — 列表（/insights/）与卡片（首页共用）
   文章内容由后台（cms/）发布生成，样式统一在这里维护
   ============================================================ */
.insights-index { background: var(--paper); min-height: 60vh; }
.post-list { display: flex; flex-direction: column; gap: 1.25rem; }
.post-card { min-width: 0; }
.post-link {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.4rem);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-link:hover { box-shadow: 0 26px 50px -32px rgba(14,35,64,.4); border-color: var(--line-strong); }
.post-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-link:hover .post-thumb img { transform: scale(1.03); }
.post-thumb--empty { display: grid; place-items: center; background: var(--navy); }
.post-thumb--empty span { font-family: var(--font-display); font-size: 3rem; color: var(--brass-soft); opacity: .55; }
.post-body { display: grid; gap: 0.55rem; min-width: 0; padding-top: 0.2rem; }
.post-meta { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); }
.post-lang {
  margin-left: 0.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass-600); border: 1px solid rgba(180,146,79,.45); border-radius: 999px; padding: 0.05em 0.6em;
}
.post-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.3; color: var(--navy); font-weight: 600; }
.post-summary {
  color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-empty { color: var(--ink-soft); padding: 3rem 0; }
/* 首页：三列卡片 */
.post-list--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-list--grid .post-link { grid-template-columns: 1fr; gap: 1rem; height: 100%; }
.post-list--grid .post-title { font-size: 1.2rem; }

/* ============================================================
   ARTICLE PAGE（/insights/<slug>/）
   ============================================================ */
.article-main { background: var(--paper); }
.art-wrap { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.art-crumb a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-600);
}
html[data-lang="zh"] .art-crumb a { letter-spacing: 0.28em; }
.art-crumb a:hover { color: var(--navy); }
.art-head { margin-top: 1.1rem; padding-bottom: 1.6rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.art-title {
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.22; letter-spacing: -0.005em;
}
.art[lang="zh"] .art-title { line-height: 1.32; letter-spacing: 0.01em; }
.art-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: 0.92rem; color: var(--ink-soft); }
.art-author { font-weight: 600; color: var(--navy); }
.art-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
.art-translation { margin-top: 0.9rem; }
.art-translation a { font-size: 0.92rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--brass); }
.art-translation a:hover { color: var(--brass-600); }

.art-body { font-size: 1.1rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.art[lang="zh"] .art-body { line-height: 1.9; letter-spacing: 0.02em; }
.art-body > * + * { margin-top: 1.15em; }
.art-body p {
  /* 与官网正文一致：两端对齐、不断词（律所要求，见上方 JUSTIFY 说明） */
  text-align: justify; text-justify: inter-word; -webkit-hyphens: none; hyphens: none; text-align-last: start;
}
/* 中文文章：按字符分配两端对齐的间距；inter-word 只拉伸空格，「2026 年」这种中英混排会被拉出大空隙 */
.art[lang="zh"] .art-body p { text-justify: auto; }
.art-body h2, .art-body h3 { font-family: var(--font-display); color: var(--navy); font-weight: 600; line-height: 1.3; }
.art-body h2 { font-size: 1.55em; margin-top: 2em; }
.art-body h3 { font-size: 1.22em; margin-top: 1.7em; }
.art-body h2 + *, .art-body h3 + * { margin-top: 0.7em; }
.art-body .ta-center { text-align: center; text-align-last: center; }
.art-body .ta-right { text-align: right; text-align-last: right; }
.art-body a { color: var(--navy); border-bottom: 1px solid var(--brass); transition: color .2s var(--ease); }
.art-body a:hover { color: var(--brass-600); }
.art-body strong { font-weight: 700; color: var(--navy); }
.art-body ul, .art-body ol { padding-left: 1.5em; }
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li + li { margin-top: 0.4em; }
.art-body li::marker { color: var(--brass-600); }
.art-body blockquote {
  margin-inline: 0; padding: 0.3em 0 0.3em 1.3em; border-left: 3px solid var(--brass);
  color: var(--ink-soft); font-size: 1.04em;
}
.art-body blockquote > * + * { margin-top: 0.8em; }
.art-body hr { border: 0; height: 1px; width: 40%; margin: 2.6em auto; background: var(--line-strong); }

.art-body figure { margin-inline: 0; }
.art-figure img, .art-gallery img { width: 100%; height: auto; border-radius: 2px; background: var(--paper-2); cursor: zoom-in; }
.art-figure--wide { width: min(1040px, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }
.art-body figcaption, .art-gallery-caption {
  margin-top: 0.6rem; font-size: 0.86rem; line-height: 1.6; color: var(--ink-soft); text-align: center; letter-spacing: 0;
}
.art-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.art-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.art-gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; }
.art-gallery-item figcaption { margin-top: 0.35rem; font-size: 0.8rem; }
.art-gallery-caption { margin-top: 0.6rem !important; }
.art-video video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; border-radius: 2px; }
.art-video--portrait video { width: auto; max-width: 100%; margin-inline: auto; }
.art-video-pending { padding: 3rem 1rem; text-align: center; background: var(--paper-2); color: var(--ink-soft); }
.art-embed-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; overflow: hidden; }
.art-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.art-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 4rem); padding: 1.5rem 1.6rem;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius);
}
.art-cta-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.art-cta-copy { margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.98rem; }
.art-disclaimer { margin-top: 1.6rem; font-size: 0.82rem; line-height: 1.6; color: var(--ink-soft); opacity: .85; }
.art-back { margin-top: 2rem; }
.art-back a { font-weight: 600; color: var(--navy); }
.art-back a:hover { color: var(--brass-600); }
.art-preview-bar {
  position: sticky; top: 72px; z-index: 50; display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; justify-content: center;
  padding: 0.6rem var(--gutter); background: var(--brass); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.art-preview-bar span { font-weight: 400; opacity: .9; }

/* 图片放大查看 */
.lb {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(10,22,40,.92); padding: 3.5rem 1rem 2.5rem;
}
.lb img { max-width: min(1600px, 100%); max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: rgba(232,228,216,.85); font-size: 0.9rem; padding: 0 3rem; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(232,228,216,.3); background: rgba(14,35,64,.6); color: #F5F1E7; cursor: pointer; font-size: 1.3rem;
}
.lb-btn:hover { background: var(--navy-800); border-color: var(--brass-soft); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-copy { margin-top: 1.2rem; margin-bottom: 2rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 42ch; }

.contact-details { border-top: 1px solid var(--line-strong); margin-top: 0.5rem; }
.contact-row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.contact-row dt {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-600); padding-top: 0.15em;
}
html[data-lang="zh"] .contact-row dt { letter-spacing: 0.2em; }
.contact-row dd { margin: 0; font-size: 1.1rem; color: var(--navy); font-weight: 500; }
.contact-row dd a { border-bottom: 1px solid var(--brass); transition: color .2s var(--ease); }
.contact-row dd a:hover { color: var(--brass-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(232,228,216,.72); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: #F5F1E7; font-weight: 600; margin-top: 0.7rem; }
.footer-name-zh { font-size: 0.9rem; letter-spacing: 0.2em; color: rgba(232,228,216,.85); margin-top: 2px; }
.footer-tag { font-size: 0.86rem; color: rgba(232,228,216,.55); margin-top: 0.6rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-content: flex-start; padding-top: 0.6rem; }
.footer-nav a {
  font-size: 0.95rem; color: rgba(232,228,216,.78); transition: color .2s var(--ease);
  position: relative;
}
.footer-nav a:hover { color: var(--brass-soft); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.6rem 2.4rem;
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(232,228,216,.5);
}
.footer-disclaimer { max-width: 62ch; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.practice-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-inner, .contact-grid { grid-template-columns: 1fr; }
  .post-list--grid { grid-template-columns: 1fr 1fr; }
  .post-link { grid-template-columns: 220px 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 62px; }
  .insights-channels li { grid-template-columns: 1fr; justify-items: start; gap: 1.1rem; }
  .channel-qr { justify-items: start; }
  .site-nav {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px -24px rgba(14,35,64,.4);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .nav-burger { display: block; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .practice-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-seal { width: 64px; height: 64px; }
  .person-seal span { font-size: 1.7rem; }
  .contact-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-legal { flex-direction: column; }

  .post-list--grid { grid-template-columns: 1fr; }
  .post-link { grid-template-columns: 1fr; }
  .art-body { font-size: 1.05rem; }
  .art-gallery--3 { grid-template-columns: repeat(2, 1fr); }
  .art-preview-bar { top: 62px; }
  .art-cta .btn { width: 100%; justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 0.8rem; transform: none; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

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