/* ==========================================================================
   和发徐中医馆官网样式
   ========================================================================== */

:root {
  --paper: #f6f0e4;
  --paper-deep: #efe4d1;
  --paper-light: #fbf7ee;
  --ink: #2a221b;
  --ink-soft: #5d5247;
  --ink-mute: #887b6d;
  --cinnabar: #9b2c21;
  --cinnabar-dark: #7a2119;
  --cinnabar-soft: #b34a3d;
  --gold: #b78c50;
  --line: rgba(72, 52, 34, 0.16);
  --line-light: rgba(246, 240, 228, 0.18);
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(54, 37, 22, 0.12);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-height: 78px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(183, 140, 80, 0.09), transparent 28rem),
    radial-gradient(circle at 92% 36%, rgba(155, 44, 33, 0.045), transparent 30rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(0deg, rgba(92, 70, 46, 0.035) 0, rgba(92, 70, 46, 0.035) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.4) 1px, transparent 1px, transparent 5px);
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

::selection {
  background: var(--cinnabar);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--cinnabar-soft);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 顶部信息条 ---------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 250, 241, 0.82);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-slogan {
  color: rgba(255, 250, 241, 0.56);
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  transition: color 0.2s ease;
}

.topbar-phone:hover {
  color: #e7c49a;
}

.topbar-phone svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.topbar-phone span {
  color: rgba(255, 250, 241, 0.6);
}

.topbar-phone strong {
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(246, 240, 228, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(54, 37, 22, 0.06);
  background: rgba(246, 240, 228, 0.98);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-seal {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 45%),
    var(--cinnabar);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 236, 0.36), 0 5px 14px rgba(122, 33, 25, 0.18);
}

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

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.brand-text small {
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--cinnabar);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 11px 18px;
  background: var(--cinnabar);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(122, 33, 25, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--cinnabar-dark);
  transform: translateY(-1px);
}

.header-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
}

.nav-toggle-label {
  font-size: 14px;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
}

.nav-toggle-bars i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  min-height: clamp(620px, 82vh, 790px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 46%;
  z-index: -3;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(25, 19, 14, 0.95) 0%, rgba(25, 19, 14, 0.8) 34%, rgba(25, 19, 14, 0.46) 62%, rgba(25, 19, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(20, 15, 11, 0.64) 0%, transparent 44%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 74% 34%, transparent 0, transparent 30%, rgba(20, 15, 11, 0.16) 74%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(54px, 8vw, 86px);
  padding-bottom: clamp(88px, 11vw, 130px);
}

.hero-copy {
  max-width: 660px;
  animation: hero-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: rgba(255, 248, 236, 0.76);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.hero-eyebrow span {
  width: 34px;
  height: 1px;
  background: #d4af7a;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.1em;
  text-shadow: 0 8px 30px rgba(20, 15, 11, 0.25);
}

.hero-en {
  margin-top: 15px;
  color: rgba(255, 248, 236, 0.48);
  font-size: 11px;
  letter-spacing: 0.4em;
}

.hero-slogan {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.08em;
  color: #ecd5b3;
}

.hero-text {
  margin-top: 16px;
  max-width: 560px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-primary {
  background: var(--cinnabar);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(122, 33, 25, 0.2);
}

.btn-primary:hover {
  background: var(--cinnabar-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 248, 236, 0.34);
  color: rgba(255, 248, 236, 0.88);
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  border-color: rgba(255, 248, 236, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-outline:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  color: rgba(255, 250, 241, 0.62);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.hero-highlights li {
  position: relative;
  padding-left: 13px;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c79e63;
  transform: translateY(-50%);
}

.hero-badge {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: clamp(90px, 12vw, 150px);
  width: 126px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(238, 213, 179, 0.5);
  border-radius: 50%;
  color: #ecd5b3;
  text-align: center;
  background: rgba(25, 19, 14, 0.24);
  backdrop-filter: blur(4px);
}

.hero-badge strong {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.hero-badge span {
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.74;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 250, 241, 0.58);
  font-size: 11px;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.scroll-hint i {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(236, 213, 179, 0.8), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ---------- 数据条 ---------- */

.stats {
  position: relative;
  z-index: 4;
  margin-top: -54px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 40%),
    var(--paper-light);
  border: 1px solid rgba(183, 140, 80, 0.28);
  box-shadow: var(--shadow);
}

.stat {
  position: relative;
  padding: 28px 30px 26px;
  text-align: center;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cinnabar);
  letter-spacing: 0.03em;
}

.stat strong em {
  font-size: 0.6em;
  font-style: normal;
  margin-left: 1px;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ---------- 通用章节 ---------- */

.section {
  padding: clamp(76px, 9vw, 124px) 0;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.section-kicker-light {
  color: #d9b17a;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.04em;
  color: var(--ink);
}

h2 em {
  color: var(--cinnabar);
  font-style: normal;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.section-intro {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cinnabar);
  font-size: 14px;
  letter-spacing: 0.06em;
  padding-bottom: 3px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link-muted {
  color: var(--ink-soft);
}

/* ---------- 百年传承 ---------- */

.about {
  padding-top: clamp(92px, 11vw, 146px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.about-media {
  position: relative;
  padding: 14px 0 0 14px;
}

.image-frame {
  position: relative;
  border: 1px solid rgba(183, 140, 80, 0.36);
  padding: 13px;
  background: rgba(255, 253, 248, 0.48);
  box-shadow: 0 24px 50px rgba(54, 37, 22, 0.1);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 28px -14px -14px 28px;
  z-index: -1;
  border: 1px solid rgba(155, 44, 33, 0.2);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 1100 / 620;
  object-fit: cover;
}

.image-frame figcaption {
  padding: 13px 4px 2px;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: right;
}

.about-seal {
  position: absolute;
  left: -22px;
  bottom: 38px;
  width: 146px;
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 50%),
    var(--cinnabar);
  color: var(--white);
  text-align: center;
  box-shadow: 0 16px 30px rgba(122, 33, 25, 0.2);
}

.about-seal strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-seal span {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.about-copy h2 {
  margin-bottom: 26px;
}

.about-copy > p:not(.section-kicker) {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
  text-align: justify;
}

.heritage-quote {
  margin: 27px 0 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--cinnabar);
  background: rgba(183, 140, 80, 0.08);
}

.heritage-quote p {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.heritage-quote cite {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 30px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(58px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 30px 26px 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 4px rgba(155, 44, 33, 0.1);
}

.timeline-year {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--cinnabar);
  line-height: 1.2;
}

.timeline h3 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.timeline p {
  margin-top: 7px;
  padding-right: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- 特色科室 ---------- */

.departments {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 42%),
    var(--paper-deep);
  border-top: 1px solid rgba(183, 140, 80, 0.18);
  border-bottom: 1px solid rgba(183, 140, 80, 0.18);
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.department-card {
  position: relative;
  padding: 30px 28px 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid rgba(72, 52, 34, 0.13);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.department-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--cinnabar);
  transition: height 0.28s ease;
}

.department-card:hover {
  background: var(--white);
  border-color: rgba(155, 44, 33, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(54, 37, 22, 0.09);
}

.department-card:hover::after {
  height: 100%;
}

.department-no {
  position: absolute;
  right: 22px;
  top: 16px;
  color: rgba(155, 44, 33, 0.15);
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
}

.department-card h3 {
  position: relative;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.department-card p {
  position: relative;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.department-card a {
  position: relative;
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cinnabar);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.department-card a span {
  transition: transform 0.2s ease;
}

.department-card a:hover span {
  transform: translateX(4px);
}

.department-feature {
  position: relative;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(72, 52, 34, 0.14);
  box-shadow: 0 22px 46px rgba(54, 37, 22, 0.1);
}

.department-feature img {
  width: 100%;
  aspect-ratio: 1400 / 862;
  object-fit: cover;
}

.department-feature figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 40px 30px 20px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(24, 18, 13, 0.76), transparent);
}

.department-feature strong {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.department-feature span {
  color: rgba(255, 250, 241, 0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* ---------- 医师团队 ---------- */

.doctors {
  background: var(--paper);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.doctor-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(72, 52, 34, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.doctor-card:hover {
  border-color: rgba(155, 44, 33, 0.3);
  box-shadow: 0 20px 42px rgba(54, 37, 22, 0.12);
  transform: translateY(-4px);
}

.doctor-photo {
  display: block;
  position: relative;
  overflow: hidden;
  background: #ded7cb;
}

.doctor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 23, 17, 0.24), transparent 45%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.doctor-card:hover .doctor-photo::after {
  opacity: 1;
}

.doctor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.035);
}

.doctor-body {
  display: block;
  padding: 20px 20px 18px;
}

.doctor-dept {
  display: block;
  color: var(--cinnabar);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.doctor-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.doctor-name small {
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.doctor-tags span {
  padding: 3px 7px;
  color: var(--ink-mute);
  background: rgba(183, 140, 80, 0.1);
  border: 1px solid rgba(183, 140, 80, 0.18);
  font-size: 10px;
  line-height: 1.4;
}

.doctor-goodat {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.doctor-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--cinnabar);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.doctor-more span {
  transition: transform 0.2s ease;
}

.doctor-card:hover .doctor-more span {
  transform: translateX(3px);
}

.doctor-note {
  margin-top: 28px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.no-script {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- 医师详情弹窗 ---------- */

.doctor-dialog {
  width: min(940px, calc(100% - 32px));
  max-height: min(90vh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 15, 11, 0.34);
  overflow: auto;
}

.doctor-dialog::backdrop {
  background: rgba(20, 15, 11, 0.64);
  backdrop-filter: blur(3px);
}

.doctor-dialog[open] {
  animation: dialog-in 0.24s ease both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 540px;
}

.dialog-photo {
  background: #ded7cb;
}

.dialog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.dialog-body {
  padding: 42px 42px 36px;
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 52, 34, 0.16);
  border-radius: 50%;
  background: rgba(251, 247, 238, 0.9);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.dialog-close:hover {
  background: var(--cinnabar);
  color: var(--white);
}

.dialog-dept {
  color: var(--cinnabar);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.dialog-body h3 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.dialog-title {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.dialog-tags span {
  padding: 4px 9px;
  color: var(--ink-mute);
  border: 1px solid rgba(183, 140, 80, 0.24);
  background: rgba(183, 140, 80, 0.08);
  font-size: 11px;
}

.dialog-body h4 {
  margin-top: 24px;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.dialog-body p:not(.dialog-dept):not(.dialog-title):not(.dialog-note) {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
}

.dialog-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12px;
}

.dialog-cta {
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
}

body.dialog-open {
  overflow: hidden;
}

/* ---------- 预约就诊 ---------- */

.booking {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(183, 140, 80, 0.14), transparent 26rem),
    radial-gradient(circle at 88% 84%, rgba(155, 44, 33, 0.22), transparent 30rem),
    #241b16;
}

.booking::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(115deg, transparent 0, transparent 34px, rgba(255, 248, 236, 0.06) 34px, rgba(255, 248, 236, 0.06) 35px);
}

.booking-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

.booking h2 {
  color: var(--white);
}

.booking-lead {
  max-width: 500px;
  margin-top: 18px;
  color: rgba(255, 250, 241, 0.68);
  font-size: 15px;
}

.booking-steps {
  margin-top: 34px;
  border-top: 1px solid var(--line-light);
}

.booking-steps li {
  display: flex;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-light);
}

.booking-steps > li > span {
  flex-shrink: 0;
  width: 38px;
  color: #d9b17a;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
}

.booking-steps h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.booking-steps p {
  margin-top: 4px;
  color: rgba(255, 250, 241, 0.56);
  font-size: 13px;
  line-height: 1.75;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.booking-actions .btn-primary {
  background: #c24a3b;
}

.booking-actions .btn-primary:hover {
  background: #a63a2e;
}

.booking-wechat {
  color: rgba(255, 250, 241, 0.55);
  font-size: 12px;
  line-height: 1.7;
}

.booking-wechat strong {
  color: rgba(255, 250, 241, 0.86);
  font-weight: 500;
}

.booking-notice {
  margin-top: 24px;
  color: #d9b17a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.booking-media {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(217, 177, 122, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.booking-media::before {
  content: "";
  position: absolute;
  inset: 22px -12px -12px 22px;
  z-index: -1;
  border: 1px solid rgba(217, 177, 122, 0.14);
}

.booking-media img {
  width: 100%;
  aspect-ratio: 1400 / 708;
  object-fit: cover;
}

.booking-media figcaption {
  padding: 12px 2px 0;
  color: rgba(255, 250, 241, 0.46);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-align: right;
}

/* ---------- 联系我们 ---------- */

.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 60px);
  align-items: start;
}

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

.contact-list > div {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.contact-list dd {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
}

.contact-list dd a {
  color: var(--cinnabar);
  font-family: var(--font-sans);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-note {
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 12px;
}

.record-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(183, 140, 80, 0.26);
  box-shadow: 0 18px 40px rgba(54, 37, 22, 0.07);
}

.record-card-head h3 {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.record-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.record-list > div {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.record-list dt {
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.7;
}

.record-list dd {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.license-link {
  display: block;
  margin-top: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.license-link picture,
.license-link img {
  display: block;
  width: 100%;
}

.license-link img {
  aspect-ratio: 1200 / 865;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.license-link:hover img {
  transform: scale(1.015);
}

.license-link > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink-soft);
  background: var(--paper-light);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.license-link > span span {
  color: var(--cinnabar);
}

.site-statement {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  margin-top: clamp(42px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-statement strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-statement p {
  max-width: 900px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.9;
}

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

.site-footer {
  color: rgba(255, 250, 241, 0.64);
  background: #1d1712;
  font-size: 13px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr;
  gap: 50px;
  padding-top: 62px;
  padding-bottom: 46px;
}

.brand-footer .brand-text strong {
  color: var(--white);
}

.brand-footer .brand-text small {
  color: rgba(255, 250, 241, 0.42);
}

.footer-brand > p {
  margin-top: 14px;
  font-size: 12px;
}

.footer-brand .footer-address {
  color: rgba(255, 250, 241, 0.42);
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav h3,
.footer-contact h3 {
  margin-bottom: 7px;
  color: rgba(255, 250, 241, 0.9);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 250, 241, 0.56);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #e2c092;
}

.footer-phone {
  color: #e2c092 !important;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.footer-contact p {
  font-size: 12px;
}

.footer-map {
  margin-top: 5px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(226, 192, 146, 0.4);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 250, 241, 0.1);
  color: rgba(255, 250, 241, 0.36);
  font-size: 11px;
  line-height: 1.8;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
}

.footer-records a {
  color: rgba(255, 250, 241, 0.46);
}

.footer-records a:hover {
  color: #e2c092;
}

/* ---------- 移动端快捷操作 ---------- */

.mobile-actions {
  display: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .header-inner {
    gap: 22px;
  }

  .primary-nav {
    gap: 18px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }

  .doctor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: 1.3fr 0.7fr 0.9fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .topbar-slogan {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(54, 37, 22, 0.1);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(72, 52, 34, 0.08);
    font-size: 15px;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-badge {
    display: none;
  }

  .about-grid,
  .booking-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 680px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }

  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-media {
    max-width: 620px;
  }

  .contact-grid {
    gap: 34px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
    padding-bottom: 58px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .topbar {
    font-size: 11px;
  }

  .topbar-inner {
    min-height: 34px;
    justify-content: center;
    gap: 14px;
  }

  .topbar-place {
    display: none;
  }

  .topbar-phone strong {
    letter-spacing: 0.05em;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .nav-toggle {
    padding: 6px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(25, 19, 14, 0.95), rgba(25, 19, 14, 0.66) 66%, rgba(25, 19, 14, 0.36)),
      linear-gradient(0deg, rgba(20, 15, 11, 0.72), transparent 56%);
  }

  .hero-inner {
    padding-top: 50px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
    letter-spacing: 0.06em;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .hero-slogan {
    margin-top: 20px;
    font-size: 19px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 27px;
  }

  .btn {
    min-height: 46px;
    padding: 11px 20px;
    font-size: 14px;
  }

  .hero-highlights {
    gap: 8px 18px;
    margin-top: 25px;
    font-size: 12px;
  }

  .scroll-hint {
    display: none;
  }

  .stats {
    margin-top: -44px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 18px 10px 16px;
  }

  .stat:nth-child(3)::before,
  .stat:nth-child(4)::before {
    display: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .stat strong {
    font-size: 28px;
  }

  .stat span {
    font-size: 11px;
  }

  .section {
    padding: 62px 0;
  }

  h2 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.38;
  }

  .section-head {
    display: block;
    margin-bottom: 30px;
  }

  .section-intro {
    margin-top: 14px;
    font-size: 14px;
  }

  .about {
    padding-top: 76px;
  }

  .about-media {
    padding: 8px 0 0 8px;
  }

  .image-frame {
    padding: 8px;
  }

  .about-seal {
    position: static;
    width: 100%;
    margin-top: 14px;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    padding: 13px 14px;
  }

  .about-seal strong {
    font-size: 20px;
  }

  .about-copy h2 {
    margin-bottom: 20px;
  }

  .about-copy > p:not(.section-kicker) {
    font-size: 14px;
    line-height: 1.9;
  }

  .heritage-quote p {
    font-size: 18px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 48px;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }

  .timeline li {
    padding: 0;
  }

  .timeline li::before {
    left: -24.5px;
    top: 6px;
  }

  .timeline p {
    padding-right: 0;
  }

  .department-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .department-card {
    min-height: 0;
    padding: 24px 22px 22px;
  }

  .department-card p {
    margin-top: 9px;
  }

  .department-feature {
    margin-top: 18px;
  }

  .department-feature figcaption {
    display: block;
    padding: 34px 18px 14px;
  }

  .department-feature strong {
    display: block;
    font-size: 19px;
  }

  .department-feature span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
  }

  .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .doctor-body {
    padding: 14px 13px 13px;
  }

  .doctor-name {
    font-size: 20px;
    gap: 5px;
  }

  .doctor-name small {
    font-size: 10px;
  }

  .doctor-tags {
    gap: 4px;
    margin-top: 8px;
  }

  .doctor-tags span {
    padding: 2px 5px;
    font-size: 9px;
  }

  .doctor-goodat {
    margin-top: 8px;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .doctor-more {
    margin-top: 10px;
    font-size: 11px;
  }

  .doctor-note {
    margin-top: 20px;
    font-size: 11px;
  }

  .doctor-dialog {
    width: calc(100% - 20px);
    max-height: 92vh;
  }

  .dialog-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dialog-photo {
    height: 290px;
  }

  .dialog-photo img {
    object-position: center 18%;
  }

  .dialog-body {
    padding: 26px 22px 24px;
  }

  .dialog-body h3 {
    font-size: 28px;
  }

  .dialog-body p:not(.dialog-dept):not(.dialog-title):not(.dialog-note) {
    font-size: 13px;
  }

  .booking-steps li {
    gap: 12px;
    padding: 15px 0;
  }

  .booking-steps > li > span {
    width: 28px;
    font-size: 16px;
  }

  .booking-actions {
    gap: 16px;
  }

  .booking-media {
    padding: 8px;
  }

  .booking-media::before {
    display: none;
  }

  .contact-list > div {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .contact-list dd {
    font-size: 17px;
  }

  .contact-list dd a {
    font-size: 20px;
  }

  .record-card {
    padding: 24px 20px;
  }

  .record-card-head h3 {
    font-size: 23px;
  }

  .record-list > div {
    grid-template-columns: 108px 1fr;
    gap: 12px;
  }

  .site-statement {
    display: block;
  }

  .site-statement strong {
    display: block;
    margin-bottom: 8px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
    padding-bottom: 34px;
  }

  .footer-bottom {
    display: block;
    padding-bottom: 20px;
  }

  .footer-records {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 6px;
    background: rgba(246, 240, 228, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(54, 37, 22, 0.08);
    backdrop-filter: blur(10px);
  }

  .mobile-actions a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .mobile-actions .mobile-action-primary {
    background: var(--cinnabar);
    border-color: var(--cinnabar);
    color: var(--white);
  }
}

@media (max-width: 390px) {
  .brand-text strong {
    font-size: 17px;
  }

  .doctor-name {
    display: block;
    font-size: 19px;
  }

  .doctor-name small {
    display: block;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 隐私政策 / 404 ---------- */

.legal-body {
  padding-bottom: 0;
}

.legal-header {
  position: static;
}

.legal-header .header-inner {
  justify-content: space-between;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cinnabar);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.legal-back span {
  transition: transform 0.2s ease;
}

.legal-back:hover span {
  transform: translateX(4px);
}

.legal-page {
  padding: clamp(56px, 8vw, 94px) 0 clamp(72px, 9vw, 112px);
  background:
    radial-gradient(circle at 88% 10%, rgba(183, 140, 80, 0.08), transparent 26rem),
    var(--paper);
}

.legal-container {
  max-width: 860px;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.08em;
}

.legal-meta {
  margin-top: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-content {
  margin-top: 30px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
  text-align: justify;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(20px, 2.6vw, 25px);
  letter-spacing: 0.05em;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 1.5em;
  list-style: disc;
  color: var(--ink-soft);
}

.legal-content li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.9;
}

.legal-content a {
  color: var(--cinnabar);
  border-bottom: 1px solid rgba(155, 44, 33, 0.28);
}

.legal-contact {
  margin: 8px 0 24px;
  border-top: 1px solid var(--line);
}

.legal-contact > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.legal-contact dt {
  color: var(--ink-mute);
  font-size: 13px;
}

.legal-contact dd {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.legal-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute) !important;
  font-size: 12px !important;
}

.legal-footer-bottom {
  justify-content: space-between;
  border-top: 0;
}

.legal-footer-bottom .footer-records {
  align-items: center;
}

.not-found {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(183, 140, 80, 0.1), transparent 26rem),
    var(--paper);
}

.not-found-code {
  color: rgba(155, 44, 33, 0.13);
  font-family: var(--font-serif);
  font-size: clamp(90px, 18vw, 170px);
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.not-found h1 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.not-found > .container > p:not(.not-found-code):not(.section-kicker) {
  max-width: 520px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 700px) {
  .legal-header .header-inner {
    height: var(--header-height);
  }

  .legal-back {
    font-size: 12px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 14px;
  }

  .legal-contact > div {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .legal-footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
}
