/* ==========================================================================
   倪颢律师 · 个人网站
   视觉：宋式审美 × 苏州园林
   —— 宣纸底、墨色字、汝窑天青作唯一强调色，朱砂只用于印章
   —— 留白为主，细线为辅，母题取自月洞门、花窗、冰裂、远山
   结构：令牌 → 基底 → 提示条 → 顶栏 → 竖排章节轨 → 首屏 → 板块
        → 正文与信息表 → 执业照 → 业务卡片 → 面板 → 联系方式
        → 地图 → 按钮 → 页脚 → 404 → 动效 → 响应式 → 打印
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */

:root {
  /* 纸 —— 由浅到深，取自宣纸与绢本设色 */
  --paper: #f6f2e8;
  --paper-2: #efe9dc;
  --paper-3: #e6dfcd;
  --paper-4: #dcd3bd;

  /* 墨 —— 由深到浅 */
  --ink: #221f1a;
  --ink-2: #4a443a;
  --ink-3: #6b6353;
  --ink-4: #776e5d;

  /* 线 */
  --line: #ddd4c2;
  --line-2: #c9bfa8;

  /* 色 —— 汝窑天青作强调，黛青作远山，朱砂仅用于印，赭石作暖调 */
  --celadon: #7f9c93;
  --celadon-deep: #5b7a72;
  --dai: #46585b;
  --cinnabar: #9d3c30;
  --zhe: #a9784a;

  /* 字 */
  --font-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC",
    "SimSun", "Times New Roman", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;

  /* 版心与节奏 */
  --wrap: 1160px;
  --gutter: 40px;
  --section-y: 132px;

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

/* --------------------------------------------------------------------------
   2. 基底
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 宣纸纤维：极淡的噪点，固定覆盖全页 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.03em;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--celadon);
  color: #fdfaf2;
}

:focus-visible {
  outline: 2px solid var(--celadon-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* 待填写占位 */
.ph {
  color: var(--cinnabar);
  border-bottom: 1px dashed rgba(157, 60, 48, 0.5);
  padding-bottom: 1px;
  cursor: help;
}

/* --------------------------------------------------------------------------
   3. 顶部初版提示
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter) 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

.notice__tag {
  flex: none;
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--zhe);
}

/* --------------------------------------------------------------------------
   4. 顶栏
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 232, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 242, 232, 0.96);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
}

/* 印章式字标 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--cinnabar);
  color: #fdf8ee;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand__seal--sm {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand__latin {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--ink-4);
}

.topnav {
  margin-left: auto;
}

.topnav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topnav a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--celadon-deep);
  transition: right 0.4s var(--ease);
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--ink);
}

.topnav a:hover::after,
.topnav a.is-active::after {
  right: 0;
}

.nav-index {
  display: none;
}

.topbar__cta {
  flex: none;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.topbar__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.topbar__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.topbar__toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 8px var(--gutter) 20px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: grid;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.mobile-nav__cta {
  display: block;
  margin-top: 16px;
  padding: 13px 0;
  text-align: center;
  background: var(--ink);
  color: var(--paper) !important;
  border-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   5. 左侧竖排章节轨（取立轴之意）
   -------------------------------------------------------------------------- */

.rail {
  position: fixed;
  left: max(16px, calc((100vw - var(--wrap)) / 2 - 36px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.rail__list {
  display: grid;
  gap: 22px;
}

.rail__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-4);
  transition: color 0.35s var(--ease);
}

.rail__num {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.rail__item.is-active a,
.rail__item a:hover {
  color: var(--ink);
}

.rail__item.is-active .rail__num {
  color: var(--cinnabar);
}

.rail__item.is-active .rail__label {
  color: var(--celadon-deep);
}

/* --------------------------------------------------------------------------
   6. 首屏
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
}

/* 远山：整屏宽的一层极淡剪影 */
.hero__range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.hero__range svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 48px;
  align-items: center;
}

.hero__copy {
  max-width: 34em;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--celadon-deep);
}

.hero__headline {
  margin: 26px 0 0;
  font-size: clamp(33px, 3.6vw, 53px);
  line-height: 1.42;
  letter-spacing: 0.05em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 26px;
  max-width: 30em;
  font-size: 17px;
  line-height: 2.05;
  color: var(--ink-2);
}

/* 首屏法律名句：中文是大标题，这里是拉丁原文与英文释义 */
.hero__motto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 14px;
  margin-top: 22px;
  padding-left: 15px;
  border-left: 2px solid var(--celadon);
}

.hero__motto-latin {
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--celadon-deep);
}

.hero__motto-en {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-3);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 34px;
  margin-top: 38px;
}

.metric {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.portrait picture {
  display: block;
}

.metric__value {
  display: block;
  font-size: 19px;
  letter-spacing: 0.05em;
}

.metric__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* 月洞门 */
.moon-gate {
  position: relative;
  width: 88%;
  max-width: 470px;
  margin: 0 auto;
}

/* 月洞门降为背景圆盘，不再裁剪上层内容 */
.moon-gate__bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(180deg, #faf6ec 0%, #ece5d4 100%);
  box-shadow: 0 0 0 1px var(--line-2), inset 0 18px 40px rgba(70, 88, 91, 0.07);
}

.moon-gate__bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* 图案退为淡底板，滚动动态叠在上层 */
  opacity: 0.4;
}
/* 月洞门内的滚动动态 */
/* 内容区压在圆框之上、宽度超出圆框；背景完全透明 */
.moon-gate__news {
  position: relative;
  width: 100%;
  aspect-ratio: 88 / 82;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
}
/* 两个分组各自独立滚动 */
.news-panes {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
  margin-top: 8px;
}
.news-pane {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
}
.news-pane .news-roll {
  flex: 1 1 auto;
  min-height: 0;
}
.moon-gate__news-label {
  flex: none;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--cinnabar);
}
.moon-gate__news-label::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin: 9px auto 0;
  background: var(--line-2);
}
.news-roll {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 15%,
    #000 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 15%,
    #000 85%,
    transparent 100%
  );
}
.news-roll__track {
  will-change: transform;
}
.news-roll__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-roll__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 2px;
  border-bottom: 1px dashed rgba(201, 191, 168, 0.5);
  text-align: left;
}
.news-roll__item time {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--celadon-deep);
  font-variant-numeric: tabular-nums;
}
.news-roll__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.news-roll:hover .news-roll__track,
.news-roll:focus-within .news-roll__track {
  animation-play-state: paused;
}
/* 到访指引：置顶且可点击（唯一带链接的条目） */
.news-pin {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: none;
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.news-pin:hover,
.news-pin:focus-visible {
  border-color: var(--celadon-deep);
}
.news-pin__tag {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
}
.news-pin__text {
  flex: 1 1 auto;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  color: var(--ink-2);
}
.news-pin__arrow {
  flex: none;
  font-size: 12px;
  color: var(--celadon-deep);
}
/* 分组标签：固定在各自滚动区上方 */
.news-group {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-align: left;
  color: var(--ink-4);
}
/* 分组头：标题 + 手动翻看按钮 */
.news-pane__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line-2);
}
.news-pane__nav {
  display: flex;
  flex: none;
  gap: 5px;
}
.news-nav {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.news-nav:hover,
.news-nav:focus-visible {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}
.news-roll__half {
  display: block;
}
/* 联系方式里的到访指引 */
.visit {
  margin: 26px 0 0;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.visit__rows {
  margin: 12px 0 0;
}
.visit__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px dashed rgba(201, 191, 168, 0.6);
}
.visit__row dt {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--celadon-deep);
}
.visit__row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.visit__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-4);
}
.moon-gate__source {
  margin: 16px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-4);
}

/* 冰裂纹饰带：首屏与正文之间的过渡，取园林花街铺地之意 */
.crack-band {
  display: flex;
  justify-content: center;
  padding: 10px var(--gutter) 0;
  color: var(--dai);
  opacity: 0.44;
}

.crack-band svg {
  display: block;
  width: min(460px, 100%);
  height: auto;
}

/* --------------------------------------------------------------------------
/* -------------------------------------------------------------------------

   6.2 委托启动流程
   -------------------------------------------------------------------------
 */

.flow {
  padding: 76px 0 86px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.flow__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cinnabar);
}

.flow__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.04em;
}

.flow__intro {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--ink-3);
}

.flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
}

.flow__step {
  padding: 0 26px 0 22px;
  border-left: 1px solid var(--line-2);
}

.flow__step:first-child {
  padding-left: 0;
  border-left: 0;
}

.flow__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--zhe);
}

.flow__step-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.04em;
}

.flow__step-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-3);
}

@media (max-width: 1000px) {
  .flow__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .flow__step:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .flow {
    padding: 56px 0 62px;
  }

  .flow__title {
    font-size: 25px;
  }

  .flow__steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }

  .flow__step {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 22px;
  }

  .flow__step:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

   7. 通用板块
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section--alt {
  background: var(--paper-2);
}

.section__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  position: relative;
  max-width: 44em;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

.section__index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
}

.section__num {
  font-family: var(--font-sans);
  color: var(--cinnabar);
}

.section__label {
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
}

.section__title {
  margin-top: 20px;
  font-size: clamp(27px, 2.6vw, 37px);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.section__lede {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-3);
}

.section__intro {
  max-width: 42em;
  margin-top: 34px;
  font-size: 17px;
  line-height: 2.05;
  color: var(--ink-2);
}

.section__body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 54px;
}

/* --------------------------------------------------------------------------
   8. 正文与信息表
   -------------------------------------------------------------------------- */

.prose p {
  margin-bottom: 1.5em;
  line-height: 2.1;
  color: var(--ink-2);
  text-align: justify;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* 信息表：细线分隔，取账簿意 */
.facts {
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.fact__label {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.fact__value {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}

.facts--compact .fact {
  padding: 11px 0;
}

/* --------------------------------------------------------------------------
   9. 执业照
   -------------------------------------------------------------------------- */

.profile-media {
  margin-top: 50px;
}

.portrait {
  margin: 0;
}

.portrait img,
.portrait__frame {
  display: block;
  width: 100%;
  border-radius: 2px;
}

/* 横构图原片：按原始比例显示，不裁剪、不做调色 */
.portrait img {
  height: auto;
}

.portrait__frame {
  aspect-ratio: 3 / 2;
}

.portrait img {
  border: 1px solid var(--line-2);
}

.portrait__frame {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
      -45deg,
      rgba(201, 191, 168, 0.22) 0 1px,
      transparent 1px 9px
    ),
    var(--paper-2);
  border: 1px dashed var(--line-2);
}

.portrait__frame span {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
}

/* 窄屏：横构图整张等比缩小后人物过小，改为 4:5 聚焦取景（仍是原片像素，只调整可视范围） */
@media (max-width: 720px) {
  .portrait img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 58% 50%;
  }
}

.portrait figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. 业务方向卡片（花窗）
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  padding: 40px 38px 38px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
      45deg,
      rgba(70, 88, 91, 0.05) 0 1px,
      transparent 1px 24px
    ),
    repeating-linear-gradient(-45deg, rgba(70, 88, 91, 0.05) 0 1px, transparent 1px 24px);
  transition: background-color 0.5s var(--ease);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--celadon);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.card::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}

.card::after {
  right: 12px;
  bottom: 12px;
  border-left: 0;
  border-top: 0;
}

.card:hover {
  background-color: #fbf8f0;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card__index {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-4);
}

.card__title {
  margin-top: 14px;
  font-size: 23px;
  letter-spacing: 0.06em;
}

.card__summary {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

.card__list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 1px;
  background: var(--celadon);
}

/* --------------------------------------------------------------------------
   11. 面板、标签、来源
   -------------------------------------------------------------------------- */

.panel {
  padding: 30px 30px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.section--alt .panel {
  background: #f8f4ea;
}

.panel__title {
  font-size: 19px;
  letter-spacing: 0.08em;
}

.panel__label {
  margin: 26px 0 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
}

.panel > .panel__label:first-of-type {
  margin-top: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.fields {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.fields__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.fields__list li {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   子板块：同一章节内的独立机构介绍（如「苏州办公室」）
   -------------------------------------------------------------------------- */

.subsection {
  margin-top: 96px;
  padding-top: 50px;
  border-top: 1px solid var(--line-2);
}

.subsection__title {
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.subsection__lede {
  max-width: 42em;
  margin-top: 22px;
  font-size: 17px;
  line-height: 2.05;
  color: var(--ink-2);
}

.subsection .section__body {
  margin-top: 42px;
}

.sources {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.sources__list {
  display: grid;
  gap: 8px;
}

.sources__list a {
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sources__list a:hover {
  color: var(--celadon-deep);
  border-color: var(--celadon-deep);
}

.sources__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-4);
}

/* --------------------------------------------------------------------------
   12. 联系方式
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 64px;
  margin-top: 54px;
}

.contact-items {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item__label {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.contact-item__value {
  font-size: 15.5px;
}

.contact-item__link {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), border-bottom-color 0.3s var(--ease);
}

.contact-item__link:hover {
  color: var(--celadon-deep);
  border-bottom-color: var(--celadon-deep);
}

.hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   13. 地图
   -------------------------------------------------------------------------- */

.map {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
}

.map__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cinnabar);
}

.map__name {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.map__links-label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}

.map__links-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
}

.map__links {
  display: inline-flex;
  gap: 14px;
}

.map__links a {
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), border-bottom-color 0.3s var(--ease);
}

.map__links a:hover {
  color: var(--celadon-deep);
  border-bottom-color: var(--celadon-deep);
}

/* --------------------------------------------------------------------------
   14. 按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--celadon-deep);
  border-color: var(--celadon-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.disclaimer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.disclaimer ul {
  display: grid;
  gap: 11px;
  max-width: 62em;
}

.disclaimer li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

.disclaimer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.88em;
  width: 7px;
  height: 1px;
  background: var(--line-2);
}

/* --------------------------------------------------------------------------
   15. 页脚
   -------------------------------------------------------------------------- */

.footer {
  padding: 62px 0 54px;
  border-top: 1px solid var(--line-2);
  background: var(--paper);
}

.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__name {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.footer__meta {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.footer__disclaimer {
  max-width: 46em;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-3);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */

.page--error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-page {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 140px var(--gutter);
}

.error-page__code {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--cinnabar);
}

.error-page__title {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.06em;
}

.error-page__text {
  max-width: 32em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   17. 入场动效：如墨在纸上洇开
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  /* 关闭滚动动画，改为可手动滚动的列表 */
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   18. 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .rail {
    display: none;
  }
}

@media (max-width: 1000px) {
  :root {
    --section-y: 96px;
    --gutter: 30px;
  }

  .hero {
    padding: 64px 0 68px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .moon-gate {
    width: 88%;
    max-width: 430px;
    margin: 0 auto;
  }

  .section__body,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .topnav,
  .topbar__cta {
    display: none;
  }

  .topbar__toggle {
    display: block;
    margin-left: auto;
  }

  .notice {
    flex-direction: column;
    gap: 6px;
  }

  .hero__headline {
    font-size: clamp(30px, 8.6vw, 40px);
    line-height: 1.44;
  }

  .metric {
    padding-right: 0;
  }

  .metric__value {
    font-size: 17px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .moon-gate {
    width: 92%;
    max-width: 430px;
    margin: 0 auto;
  }

  .section__title {
    font-size: 24px;
  }

  .card {
    padding: 30px 24px 28px;
  }

  .fact,
  .contact-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fields__list {
    gap: 8px 18px;
  }

  .footer__legal {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   19. 打印
   -------------------------------------------------------------------------- */

/* 窄屏：让首屏标题单行成句、四向卡片标题不落单字 */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(25px, 7.4vw, 34px);
    letter-spacing: 0.02em;
  }

  .metric__value {
    font-size: 15.5px;
    letter-spacing: 0.02em;
  }
}

/* 窄屏：圆形变小，关闭自动滚动，两部分都可手动滑动 */
@media (max-width: 720px) {

  .news-pin {
    margin-top: 8px;
    padding: 6px 0;
  }
  .news-roll__item {
    padding: 5px 2px;
  }
  .news-roll__text {
    font-size: 12.5px;
  }
  .news-group {
    padding: 7px 2px 4px;
  }
}
@media print {
  .topbar,
  .rail,
    display: none;
  }

  body {
    background: #fff;
  }

  body::before {
    display: none;
  }

  .section {
    padding: 24px 0;
    break-inside: avoid;
  }
}
