/* ===== 孙艺娜律师 · 个人官网模板样式 =====
   风格：高级 / 克制 / 可信。主色：深酒红 + 深墨绿（红绿双主色）+ 象牙白，古铜金作缓冲点缀。
   高级感来源：低饱和、深酒红与深墨绿不刺眼、红绿靠明度与留白调和而非对撞、细线与古铜过渡。
   提示：颜色改 :root 变量即可；想切回"酒红金"版，把 --wine* 换回 #4e1420/#350d16/#6d2638、
         --gold* 换回 #ad8a52/#c9a96a，并把各 --green* 强调处改回 --gold 即可。 */
:root {
  --wine-deep: #4a0e18;   /* 极深酒红（Hero 渐变起点 / 页脚） */
  --wine: #6e1626;        /* 主色：深酒红（勃艮第） */
  --wine-soft: #8a2333;   /* 主色浅档（h3 / 层次渐变） */
  --green-deep: #163028;  /* 极深墨绿 */
  --green: #1f4036;       /* 辅助色：深墨绿（猎人绿） */
  --green-soft: #2f5a4a;  /* 墨绿浅档 */
  --gold: #b08d57;        /* 过渡点缀：哑光古铜（红绿之间的暖缓冲） */
  --gold-soft: #c9a96a;   /* 古铜浅档（红底上的暖点缀） */
  --ink: #23201d;         /* 暖墨色（正文） */
  --gray: #6b625b;        /* 暖灰（次要文字） */
  --line: #e2e0d8;        /* 暖分隔线 */
  --bg: #faf8f3;          /* 象牙白（页面底） */
  --bg-soft: #f0ece3;     /* 暖米（卡片底） */
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--green); }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: saturate(180%) blur(6px);
}
.nav .brand { font-weight: 700; color: var(--wine); letter-spacing: .5px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .brand:hover { opacity: .85; }
.nav .brand-logo { height: 38px; width: auto; display: block; }
.nav .brand-text { display: inline-flex; flex-direction: column; line-height: 1.15; }
.nav .brand-text b { font-size: 17px; color: var(--wine); }
.nav .brand-text small { font-size: 11px; color: var(--gold); letter-spacing: 1.2px; font-weight: 500; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav ul a { font-size: 15px; color: var(--gray); }
.nav ul a:hover { color: var(--wine); }
/* 语言切换按钮 */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.lang-switch .sep { color: var(--line); }
.lang-switch button {
  font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--gray);
  padding: 4px 11px; border-radius: 999px; transition: all .2s;
}
.lang-switch button:hover { border-color: var(--gold); color: var(--wine); }
.lang-switch button.active { background: var(--wine); border-color: var(--wine); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 100%);
  color: #fff; padding: 72px 28px 64px; text-align: center;
}
.hero h1 { font-size: 34px; margin: 0 0 10px; font-weight: 700; }
.hero .firm { color: var(--gold-soft); font-size: 17px; margin-bottom: 18px; letter-spacing: 2px; }
.hero .firm::before { content: ""; display: block; width: 44px; height: 2px; background: var(--gold-soft); margin: 0 auto 16px; opacity: .85; }
.hero .tagline { font-size: 17px; max-width: 760px; margin: 0 auto 26px; opacity: .92; }
.hero .meta { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; opacity: .85; }
.hero .meta b { color: var(--gold-soft); font-weight: 600; }

/* Hero 装饰：天平徽标 + 背景水印 */
.hero { position: relative; overflow: hidden; }
.hero .emblem { width: 56px; height: 56px; color: var(--gold-soft); margin: 0 auto 18px; display: block; opacity: .95; }
.hero .emblem-bg { position: absolute; right: -60px; bottom: -70px; width: 300px; height: 300px; color: #fff; opacity: .05; pointer-events: none; }

/* 章节分隔：金色细线，两端渐隐 */
.divider { max-width: 960px; margin: 0 auto; padding: 0 28px; }
.divider::before {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

/* 团队成员头像（占位：姓氏首字；替换：把 .avatar 内文字换成 <img>） */
.member { text-align: center; }
.member .avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--wine-soft) 0%, var(--wine-deep) 100%);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); font-size: 32px; font-weight: 700;
  font-family: "PingFang SC", "Microsoft YaHei", serif;
  overflow: hidden;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* 通用容器 */
.section { max-width: 960px; margin: 0 auto; padding: 56px 28px; }
.section h2 { font-size: 26px; color: var(--wine); margin: 0 0 8px;
  border-left: 3px solid var(--green); padding-left: 14px; letter-spacing: .5px; }
.section .lead { color: var(--gray); margin: 0 0 28px; }

/* 关于 */
.about p { margin: 0 0 16px; }

/* 专长卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--bg-soft);
}
.card h3 { margin: 0 0 8px; color: var(--wine); font-size: 18px; }
.card p { margin: 0; color: var(--gray); font-size: 14px; }

/* 文章列表 */
.posts { display: grid; gap: 18px; }
.post {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.post:hover { box-shadow: 0 10px 30px rgba(110,22,38,.12); transform: translateY(-2px); }
.post h3 { margin: 0; font-size: 19px; color: var(--wine); }
.post .summary { color: var(--gray); font-size: 14px; margin: 0; }
.post .read { color: var(--green); font-weight: 600; font-size: 14px; }

/* 联系 */
.contact { background: var(--bg-soft); }
.contact .info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.contact .item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contact .item .k { color: var(--green); font-size: 13px; letter-spacing: 1px; }
.contact .item .v { font-size: 16px; color: var(--ink); margin-top: 4px; }
.note { font-size: 13px; color: var(--gray); margin-top: 14px; }

/* 页脚 */
.footer { background: var(--wine-deep); color: #d8cbb8; padding: 36px 28px 30px; font-size: 13px; border-top: 1px solid rgba(201,169,106,.18); }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: left; }
.footer-logo { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 4px; }
.footer-text { line-height: 1.7; }
.footer-text small { color: #a89a85; font-size: 12px; }
.footer a { color: var(--gold-soft); }

/* 文章页 */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 40px 28px 64px; }
.article-wrap h1 { font-size: 28px; color: var(--wine); line-height: 1.4; }
.article-wrap .conclusion {
  background: var(--bg-soft); border-left: 3px solid var(--green);
  padding: 16px 18px; border-radius: 8px; margin: 22px 0; color: var(--ink);
}
.article-wrap h2 { font-size: 22px; color: var(--wine); margin-top: 36px;
  border-left: 3px solid var(--green); padding-left: 12px; }
.article-wrap h3 { font-size: 18px; color: var(--wine-soft); margin-top: 24px; }
.article-wrap ul, .article-wrap ol { padding-left: 22px; }
.article-wrap blockquote {
  border-left: 3px solid var(--line); margin: 18px 0; padding: 6px 16px; color: var(--gray);
  background: var(--bg-soft); border-radius: 0 8px 8px 0;
}
.entity-box {
  background: var(--wine); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0; font-size: 15px;
}
.entity-box b { color: var(--gold-soft); }
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; overflow: hidden; }
.faq .q { background: var(--bg-soft); padding: 14px 18px; font-weight: 600; color: var(--wine); }
.faq .a { padding: 14px 18px; color: var(--ink); }
.author-block { border-top: 2px solid var(--green); margin-top: 40px; padding-top: 20px;
  color: var(--gray); font-size: 14px; }
.back-home { display: inline-block; margin-bottom: 18px; color: var(--green); font-weight: 600; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .nav ul { display: none; }
  .nav .brand-text b { font-size: 15px; }
  .nav .brand-text small { font-size: 10px; }
  .nav .brand-logo { height: 32px; }
}

/* ===== 律所环境 ===== */
.section-office .lead { margin-bottom: 32px; }
.office-feature {
  margin: 0 0 28px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); position: relative;
}
.office-feature img {
  display: block; width: 100%; height: auto;
  filter: contrast(1.02) saturate(.96);
  transition: transform .8s ease;
}
.office-feature:hover img { transform: scale(1.015); }
.office-feature figcaption {
  position: absolute; left: 28px; bottom: 22px; color: #fff;
  font-size: 13px; letter-spacing: 1.5px;
  padding: 6px 14px; background: rgba(53,13,22,.78);
  border-left: 2px solid var(--gold-soft); border-radius: 0 4px 4px 0;
}

.office-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.office-card {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.office-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.office-card img {
  display: block; width: 100%; height: 220px; object-fit: cover;
  background: #f5efe6;
}
.office-card-stamp { align-items: center; justify-content: center; padding: 24px 18px 18px; }
.office-card-stamp img { width: 130px; height: 130px; object-fit: contain; border-radius: 50%; }
.office-card figcaption {
  padding: 14px 18px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.office-card figcaption b { color: var(--wine); font-size: 15px; font-weight: 600; }
.office-card figcaption span { color: var(--gray); font-size: 12px; }
.office-card-stamp figcaption { border-top: none; text-align: center; padding-top: 8px; }

@media (max-width: 760px) {
  .office-grid { grid-template-columns: 1fr; }
  .office-card img { height: 200px; }
}

/* ===== 中英双语切换：默认中文，html[data-lang="en"] 时显示英文 ===== */
.lang-en { display: none; }
html[data-lang="en"] .lang-zh { display: none; }
html[data-lang="en"] .lang-en { display: inline; }
/* 窄屏导航：保留语言切换按钮可见 */
@media (max-width: 600px) {
  .lang-switch button { padding: 3px 9px; font-size: 12px; }
  .nav { padding: 12px 16px; }
}

/* ===== 专业资质与跨境学习 ===== */
.cred-card {
  display: flex; gap: 36px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold-soft, #ad8a52);
  border-radius: var(--radius, 8px);
  padding: 28px; margin: 24px 0 32px;
  box-shadow: 0 1px 0 rgba(78,20,32,.04);
}
.cred-img {
  flex: 0 0 280px; position: relative;
}
.cred-img img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg,#fdfbf6 0%,#f7f0e3 100%);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(78,20,32,.10);
}
.cred-body { flex: 1; }
.cred-body h3 {
  font-size: 19px; color: var(--wine); margin-bottom: 6px;
  letter-spacing: .5px;
}
.cred-body p { color: var(--ink); font-size: 15px; line-height: 1.85; margin-top: 12px; }
.cred-row {
  display: flex; gap: 16px; padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.cred-row:last-of-type { border-bottom: none; }
.cred-row span { color: var(--gray); flex: 0 0 200px; }
.cred-row b { color: var(--wine); font-weight: 600; }

/* ===== 通用 photo gallery ===== */
.gallery-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-3.gallery-spaced { margin-top: 12px; }
.g-fig {
  margin: 0; overflow: hidden; border-radius: var(--radius, 8px);
  border: 1px solid var(--line); background: var(--bg-soft, #f5efe6);
  display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s;
}
.g-fig:hover { transform: translateY(-3px); border-color: var(--gold-soft, #ad8a52); }
.g-fig img {
  display: block; width: 100%; aspect-ratio: 3/2;
  object-fit: cover; background: #f5efe6;
}
.g-fig figcaption {
  padding: 10px 14px;
  font-size: 13px; color: var(--gray);
  border-top: 1px solid var(--line);
  letter-spacing: .5px;
}
#beyond .g-fig img { aspect-ratio: 4/3; }

@media (max-width: 760px) {
  .gallery-3 { grid-template-columns: repeat(2, 1fr); }
  .cred-card { flex-direction: column; }
  .cred-img { flex: 0 0 auto; max-width: 280px; margin: 0 auto; }
  .cred-row span { flex: 0 0 140px; font-size: 13px; }
}
@media (max-width: 480px) {
  .gallery-3 { grid-template-columns: 1fr; }
}

.beyond-note {
  margin-top: 18px; font-size: 13px; color: var(--gray); text-align: center;
  font-style: italic;
}

/* GEO: 相关阅读内链 */
.related{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.related h2{font-size:20px;color:var(--wine);margin-bottom:14px;padding-left:14px;border-left:3px solid var(--gold)}
.related ul{list-style:none;display:grid;gap:12px}
.related li a{display:block;background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px 18px;color:var(--ink);transition:.2s}
.related li a:hover{border-color:var(--gold);color:var(--wine)}
.related .rt{font-size:16px;display:block}
.related .rtag{font-size:12px;color:var(--gray);margin-top:4px;display:block}
