/* ==========================================================
   律师个人网站样式（编辑式风格：炭黑 + 米白 + 红色点缀）
   不依赖任何外部字体或 CDN，中国大陆可直接访问
   ========================================================== */

:root {
  --ink: #1f2527;            /* 炭黑：深色区块背景、浅色区块文字 */
  --cream: #f7f6ef;          /* 米白：浅色区块背景 */
  --white: #ffffff;
  --rule: #d6d3c5;           /* 浅色区块上的细线 */
  --muted: #5d6466;          /* 浅色区块上的次要文字 */
  --on-dark: #f4f3ec;        /* 深色区块上的文字 */
  --on-dark-muted: #a9aeaa;
  --red: #c8323f;            /* 浅色背景上的强调色 */
  --red-light: #f0747c;      /* 深色背景上的强调色 */

  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "Source Han Serif SC",
           "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC",
          "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --pad: 60px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; }

:focus-visible { outline: 2px solid var(--red-light); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus { left: 8px; }

/* 小号加宽字距的栏目标签 */
.label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.6;
}

/* 带箭头的文字链接 */
.text-link {
  display: inline-block;
  font-size: 19px;
  color: var(--red-light);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.text-link::after {
  content: "→";
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.25s;
}
.text-link:hover::after { transform: translateX(6px); }

/* 滚动出现的动画（仅对脚本确认位于屏幕之外的区块启用） */
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.will-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 区块侧边的背景图片 ----------
   用法：在区块上加 has-art 和 art-left / art-right，并在区块内第一行放一张
   <img class="side-art">。图片自动转为黑白，并向区块内侧渐隐、融入底色。
   更换图片只需替换 images/art/ 中的同名文件（建议宽度 1200 像素以上的竖图）。 */

.has-art { position: relative; overflow: hidden; }
.has-art > .container { position: relative; z-index: 1; }

.side-art {
  position: absolute;
  top: 0;
  width: calc(50% - 180px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  filter: grayscale(1);
  mix-blend-mode: multiply;          /* 浅色区块：图片的白色部分融入底色 */
}
.art-right > .side-art {
  right: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 62%);
  mask-image: linear-gradient(to right, transparent, #000 62%);
}
.art-left > .side-art {
  left: 0;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 62%);
  mask-image: linear-gradient(to left, transparent, #000 62%);
}

/* 深色区块：图片的黑色部分融入底色 */
.hero > .side-art, .section-dark > .side-art {
  mix-blend-mode: screen;
  opacity: 0.62;
}
.hero > .side-art { width: 56%; }

/* 为图片让出一侧的空间 */
.section.art-right > .container { padding-right: calc(var(--pad) + 300px); }
.section.art-left > .container { padding-left: calc(var(--pad) + 300px); }

/* ---------- 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand i, .footer-brand i {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin: 0 0.32em;
  background: currentColor;
  opacity: 0.75;
  vertical-align: -0.14em;
}

.site-nav { display: flex; align-items: center; }
.site-nav a {
  position: relative;
  margin-left: 36px;
  padding: 6px 0;
  font-size: 16px;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-current { color: var(--red-light); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 8px auto;
  background: var(--on-dark);
  transition: transform 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 116px;
  background: var(--ink);
  color: var(--on-dark);
}

.hero-inner { position: relative; max-width: 860px; }

.hero h1 {
  font-size: 56px;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.hero .label { margin-top: 72px; }

.hero-facts { margin-top: 22px; }
.hero-facts > div {
  display: flex;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px dotted rgba(244, 243, 236, 0.38);
}
.hero-facts > div:last-child { border-bottom: 1px dotted rgba(244, 243, 236, 0.38); }
.hero-facts dt {
  flex: 0 0 7.5em;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
}
.hero-facts dd {
  flex: 1;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hero .text-link { margin-top: 30px; }

.hero-links {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px dotted rgba(244, 243, 236, 0.38);
}
.hero-links li { margin-bottom: 10px; }
.hero-links a { font-size: 17px; font-weight: 600; }
.hero-links a::after {
  content: "→";
  display: inline-block;
  margin-left: 0.6em;
  color: var(--red-light);
  transition: transform 0.25s;
}
.hero-links a:hover::after { transform: translateX(6px); }

/* ---------- 大字数字 ---------- */

.figure-band {
  padding: 120px 0 108px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.figure {
  font-family: var(--serif);
  font-style: italic;
  font-size: 170px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.figure-band .label { margin-top: 44px; }

/* ---------- 律师简介 ---------- */

.about { border-bottom: 1px solid var(--rule); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 88px;
  align-items: end;
}
.about-photo { padding-top: 80px; }
.about-photo img { width: 100%; max-width: 520px; margin: 0 auto; }
.about-text { padding: 110px 0 104px; }
.about-text h2 {
  margin-top: 22px;
  font-size: 54px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.about-role { margin-top: 10px; font-size: 16px; color: var(--muted); }
.prose { margin-top: 36px; max-width: 40em; }
.prose p + p { margin-top: 1.15em; }

.rule-list { margin-top: 44px; }
.rule-list > div {
  display: flex;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.rule-list > div:last-child { border-bottom: 1px solid var(--rule); }
.rule-list dt {
  flex: 0 0 7.5em;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.rule-list dd { flex: 1; overflow-wrap: anywhere; }

.rule-list-lg { margin-top: 0; }
.rule-list-lg > div { padding: 20px 0; }
.rule-list-lg > div:first-child { border-top-color: var(--ink); }
.rule-list-lg dd { font-family: var(--serif); font-size: 23px; line-height: 1.5; }
.rule-list-lg dd a:hover { color: var(--red); }

/* ---------- 通用区块 ---------- */

.section { padding: 116px 0 124px; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: var(--on-dark); }

.section-intro { margin-bottom: 64px; }
.section-intro h2, .contact-lead h2 {
  margin-top: 20px;
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- 业务领域 ---------- */

.practice-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 36px;
  align-items: baseline;
  padding: 40px 0 42px;
  border-top: 1px solid var(--ink);
}
.practice-list li:last-child { border-bottom: 1px solid var(--ink); }
.practice-list .no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--red);
}
.practice-list h3 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.practice-list li:hover h3 { color: var(--red); }
.practice-list p { color: var(--muted); }

/* ---------- 首页：栏目入口 ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.big-link { display: block; padding-top: 22px; border-top: 1px solid var(--ink); }
.big-link .label { display: block; }
.big-link-title {
  display: block;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.big-link:hover .big-link-title { color: var(--red); }
.big-link-desc { display: block; max-width: 26em; margin-top: 12px; color: var(--muted); }
.big-link-more { display: inline-block; margin-top: 24px; font-size: 16px; font-weight: 600; }
.big-link-more::after {
  content: "→";
  display: inline-block;
  margin-left: 0.6em;
  color: var(--red);
  transition: transform 0.25s;
}
.big-link:hover .big-link-more::after { transform: translateX(6px); }

/* ---------- 独立栏目页（业绩与动态、最新文章） ---------- */

.page-head { padding-top: 88px; }
.page-head h1 {
  margin-top: 18px;
  font-size: 56px;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 88px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 132px;
}

.page-side { position: sticky; top: calc(var(--header-h) + 36px); }
.side-block + .side-block { margin-top: 56px; }
.side-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.side-list li { border-bottom: 1px solid var(--rule); }
.side-list a { display: block; padding: 11px 0; font-size: 15px; color: var(--red); }
.side-list a:hover, .side-text a:hover { text-decoration: underline; text-underline-offset: 4px; }
.side-text { margin-top: 16px; font-size: 15px; line-height: 2; overflow-wrap: anywhere; }
.side-text a { color: var(--red); }

/* ---------- 业绩与动态、最新文章：单列列表 ---------- */

.news-list { max-width: 1040px; }
.news-group + .news-group { margin-top: 76px; }
.news-group-title {
  margin-bottom: 34px;
  font-family: var(--sans);
  font-size: 23px;
  letter-spacing: 0.06em;
}

.news-item {
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.news-item:last-child { margin-bottom: 0; }
.news-main { display: flex; align-items: flex-start; }

/* 配图：左上红色、右下深色的错位边框 */
.news-thumb {
  flex: 0 0 320px;
  display: block;
  margin: 5px 41px 5px 5px;
  background: var(--rule);
  box-shadow: -5px -5px 0 var(--red), 5px 5px 0 var(--ink);
}
.news-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.82);
}

.news-body { flex: 1; min-width: 0; }
.news-title {
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--red);
}
.news-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.news-body p { margin-top: 12px; font-size: 16px; }

.news-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13.5px;
}
.read-more { color: var(--red); }
.read-more::after {
  content: "›";
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 0.25s;
}
.read-more:hover::after { transform: translateX(4px); }

/* 往期（自动归档） */
[hidden] { display: none !important; }
.archive-label { margin: 52px 0 30px; color: var(--muted); }
.archive-toggle {
  display: block;
  margin: -12px 0 0 auto;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.archive-toggle::after {
  content: "→";
  display: inline-block;
  margin-left: 0.6em;
  color: var(--red);
  transition: transform 0.25s;
}
.archive-toggle[aria-expanded="true"]::after { content: "↑"; }
.archive-toggle[aria-expanded="false"]:hover::after { transform: translateX(6px); }

/* ---------- 执业经历 ---------- */

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
}
.col-title {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.entries { margin-top: 18px; }
.entries li { padding: 22px 0; border-bottom: 1px dotted #b3b0a2; }
.entries .time { display: block; font-size: 14px; color: var(--muted); }
.entries strong {
  display: block;
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
}
.entries .role { display: block; font-size: 15px; color: var(--muted); }

/* ---------- 委托流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 28px;
  border-top: 1px dotted rgba(244, 243, 236, 0.45);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  line-height: 1.1;
  color: var(--red-light);
}
.steps h3 { margin: 18px 0 10px; font-size: 25px; letter-spacing: 0.02em; }
.steps p { font-size: 15.5px; color: var(--on-dark-muted); }

/* ---------- 联系方式 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 88px;
  align-items: start;
}
.contact-intro { margin-top: 20px; max-width: 24em; color: var(--muted); }

.qr { display: flex; align-items: center; margin-top: 48px; }
.qr img {
  flex: 0 0 auto;
  width: 150px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.qr figcaption {
  margin-left: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 2;
}

.notice { margin-top: 28px; font-size: 14.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 76px 0 44px;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 88px;
}
.footer-brand {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--on-dark);
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px dotted rgba(244, 243, 236, 0.3);
  font-size: 13.5px;
}
.site-footer a:hover { color: var(--red-light); }

/* ---------- 手机端底部固定按钮 ---------- */

.mobile-bar { display: none; }

/* ---------- 404 页面 ---------- */

.not-found { padding: 140px 0 160px; text-align: center; }
.not-found h1 { font-size: 46px; letter-spacing: 0.06em; }
.not-found p { margin: 18px 0 36px; color: var(--muted); }
.btn {
  display: inline-block;
  padding: 13px 38px;
  font-size: 15px;
  letter-spacing: 0.2em;
}
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--red); }

/* ==========================================================
   窄屏电脑与平板
   ========================================================== */

@media (max-width: 1180px) {
  :root { --pad: 40px; }
  .hero h1 { font-size: 46px; }
  .figure { font-size: 130px; }
  .about-grid, .contact-grid, .footer-grid { gap: 56px; }
  .about-text h2 { font-size: 46px; }
  .section-intro h2, .contact-lead h2 { font-size: 40px; }
  .columns { gap: 40px; }
  .steps { gap: 32px; }
  .site-nav a { margin-left: 20px; font-size: 15px; }
  .link-grid { gap: 44px; }
  .big-link-title { font-size: 32px; }
  .page-body { grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; }
  .page-head h1 { font-size: 48px; }
  .news-thumb { flex-basis: 260px; margin-right: 33px; }
  .news-title { font-size: 23px; }

  .side-art { width: calc(50% - 150px); }
  .section.art-right > .container { padding-right: calc(var(--pad) + 220px); }
  .section.art-left > .container { padding-left: calc(var(--pad) + 220px); }
}

@media (max-width: 1040px) {
  .side-art { width: calc(50% - 190px); }
  .section.art-right > .container { padding-right: calc(var(--pad) + 160px); }
  .section.art-left > .container { padding-left: calc(var(--pad) + 160px); }
  .has-art .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .has-art .columns { gap: 28px; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; --header-h: 66px; }

  body { padding-bottom: 56px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

  .brand { font-size: 25px; }

  /* 手机与平板：图片退为一侧的淡色底纹，文字占满整行 */
  .side-art, .hero > .side-art { width: 68%; opacity: 0.5; }
  .hero > .side-art, .section-dark > .side-art { opacity: 0.34; }
  .section.art-right > .container { padding-right: var(--pad); }
  .section.art-left > .container { padding-left: var(--pad); }
  .has-art .columns { gap: 48px; }

  .hero { padding: 44px 0 76px; }
  .hero h1 { font-size: 34px; line-height: 1.38; }
  .hero .label { margin-top: 48px; }
  .hero-facts dd { font-size: 20px; }

  .figure-band { padding: 76px 0 70px; }
  .figure { font-size: 88px; }
  .figure-band .label { margin-top: 28px; }

  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .about-photo { order: 2; padding-top: 0; }
  .about-photo img { max-width: 320px; }
  .about-text { padding: 72px 0 56px; }
  .about-text h2 { font-size: 40px; }

  .section { padding: 76px 0 84px; }
  .section-intro { margin-bottom: 40px; }
  .section-intro h2, .contact-lead h2 { font-size: 32px; }

  .practice-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 28px 0 30px;
  }
  .practice-list p { grid-column: 2; }
  .practice-list h3 { font-size: 26px; }
  .practice-list .no { font-size: 20px; }

  .link-grid { grid-template-columns: 1fr; gap: 52px; }
  .big-link-title { font-size: 28px; }

  .page-head { padding-top: 52px; }
  .page-head h1 { font-size: 38px; }
  .page-body { grid-template-columns: 1fr; gap: 64px; padding-top: 40px; padding-bottom: 84px; }
  .page-side { position: static; }

  .news-group + .news-group { margin-top: 56px; }
  .news-group-title { margin-bottom: 26px; font-size: 21px; }

  .columns { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }

  .contact-lead { margin-bottom: 52px; }
  .rule-list-lg dd { font-size: 20px; }

  .site-footer { padding: 60px 0 36px; }
  .footer-grid .disclaimer { margin-top: 28px; }
  .footer-bottom { margin-top: 36px; }

  /* 全屏折叠导航 */
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px var(--pad) 40px;
    background: var(--ink);
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav a {
    display: block;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px dotted rgba(244, 243, 236, 0.35);
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.3;
  }
  .site-nav a::after { display: none; }

  /* 底部固定按钮 */
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    border-top: 1px solid rgba(244, 243, 236, 0.18);
  }
  .mobile-bar a {
    flex: 1;
    height: 56px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 56px;
    text-align: center;
    color: var(--on-dark);
  }
  .mobile-bar-call { background: var(--red); }
}

/* ==========================================================
   手机
   ========================================================== */

@media (max-width: 560px) {
  :root { --pad: 22px; }
  body { font-size: 16px; }

  .hero h1 { font-size: 29px; }
  .hero-facts > div { display: block; padding: 12px 0; }
  .hero-facts dt { font-size: 13px; }
  .hero-facts dd { font-size: 19px; }

  .figure { font-size: 62px; }

  .about-text h2 { font-size: 34px; }
  .rule-list dt { flex-basis: 6em; }

  .section-intro h2, .contact-lead h2 { font-size: 28px; }
  .practice-list h3 { font-size: 23px; }

  .news-main { display: block; }
  .news-thumb { margin: 5px 5px 25px 5px; }
  .news-title { font-size: 21px; }
  .entries strong { font-size: 21px; }

  .steps, .has-art .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li::before { font-size: 40px; }
  .steps h3 { font-size: 23px; }

  .rule-list-lg > div { display: block; padding: 14px 0; }
  .rule-list-lg dd { font-size: 19px; }
  .qr img { width: 130px; }
}

/* ---------- 列表页的说明文字、文章正文页（articles 文件夹中的各篇文章） ---------- */

.news-note { max-width: 46em; margin: -14px 0 34px; font-size: 14.5px; color: var(--muted); }

.article-head h1 { max-width: 21em; font-size: 42px; line-height: 1.4; letter-spacing: 0.02em; }
.article-head .label a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-meta { margin-top: 26px; font-size: 14.5px; color: var(--muted); }

.article { max-width: 42em; }
.article p + p { margin-top: 1.15em; }

/* 文章开头的配图 */
.article-figure { margin: 2.4em 0 2.2em; }
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.82);
}
.article-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.article-lead { font-family: var(--serif); font-size: 21px; line-height: 1.8; }
.article h2 {
  margin: 2.3em 0 0.8em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
  font-size: 27px;
  line-height: 1.45;
}
.article ul, .article ol { margin: 1em 0; }
.article li { position: relative; padding: 0.55em 0 0.55em 2.3em; border-bottom: 1px dotted var(--rule); }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.article ol { counter-reset: step; }
.article ol li { counter-increment: step; }
.article ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
}
.article strong { font-weight: 600; }
.article-box { margin-top: 2.6em; padding: 30px 34px 22px; background: var(--white); border-top: 3px solid var(--red); }
.article-box h2 { margin: 0 0 0.4em; padding: 0; border: 0; font-size: 23px; }
.article-box li:last-child { border-bottom: 0; }
.article-cta { margin-top: 2.4em; }
.article-cta .text-link { margin-top: 14px; color: var(--red); }
.article .notice { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--ink); }

@media (max-width: 1180px) {
  .article-head h1 { font-size: 38px; }
}
@media (max-width: 900px) {
  .article-head h1 { font-size: 30px; }
  .article-lead { font-size: 19px; }
  .article h2 { font-size: 23px; }
}
@media (max-width: 560px) {
  .article-head h1 { font-size: 26px; }
  .article-box { padding: 22px 20px 14px; }
  .article-box h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.will-reveal { opacity: 1; transform: none; transition: none; }
  .text-link::after, .hero-links a::after { transition: none; }
}

@media print {
  .site-header, .mobile-bar, .side-art { display: none; }
  .hero, .section-dark, .site-footer { background: #fff; color: #000; }
  .reveal.will-reveal { opacity: 1; transform: none; }
}
