
/* ============================================================
   Lumiin Dermatology — 全站样式
   颜色、字体、间距都集中在下面的 :root 变量，改这里即可全站生效
   ============================================================ */
:root {
  --gold: #E7C03D;          /* 品牌金（取自 logo） */
  --gold-deep: #86670A;     /* 文字用的深金，保证对比度 */
  --ink: #2A2622;           /* 主文字 */
  --ink-2: #5C554C;         /* 次级文字 */
  --ink-3: #8A8277;         /* 辅助文字 */
  --line: #E6E1D6;          /* 分隔线 */
  --soft: #F8F6F1;          /* 浅底色 */
  --dark: #26221E;          /* 深色区块 */
  --white: #fff;
  --bg: #fff; --on-ink: #fff; --header-bg: rgba(255,255,255,.96);
  color-scheme: light;

  --serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
}
html[data-lang="cn"] { --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
html[data-lang="ja"] { --serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", system-ui, sans-serif; }
html[data-lang="ko"] { --serif: "Cormorant Garamond", "Noto Serif KR", "Batang", "Noto Serif CJK KR", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif; }
html[data-lang="en"] { --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.3; letter-spacing: .02em; color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---------- 顶部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { width: min(1320px, 100% - var(--gutter) * 2); display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand { gap: 12px; }
.brand-mark { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 25px; letter-spacing: .01em; color: var(--gold-deep); white-space: nowrap; }
.brand-text small { font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em; color: var(--gold-deep); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.3vw, 22px); margin-left: auto; font-size: 14.5px; }
.nav a { position: relative; padding: 6px 0; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.lang button { font: inherit; font-size: 13px; line-height: 1; padding: 8px 10px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line); }
.lang button:last-child { border-right: 0; }
.lang button:hover { background: var(--soft); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; padding: 13px 26px; border-radius: 2px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #26221E; }
.btn--gold:hover { background: #fff; border-color: #fff; color: #26221E; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.menu-open .burger span { background: transparent; } .menu-open .burger span::before { transform: translateY(6px) rotate(45deg); } .menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .burger { display: inline-flex; margin-left: auto; }
  .header-tools { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; margin: 0; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; font-size: 17px; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold-deep); }
  .nav .nav-tools { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
  .nav .nav-tools .lang { align-self: flex-start; }
  .nav .nav-tools .lang button { padding: 11px 14px; font-size: 14px; }
  .nav .nav-tools .btn { color: var(--on-ink); border-bottom: 1px solid var(--ink); }
  .brand-mark { height: 38px; } .brand-text b { font-size: 22px; }
}
.menu-open { overflow: hidden; }

/* ---------- 通用版块 ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin: 14px 0 0; color: var(--ink-2); }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }
.link { display: inline-block; color: var(--gold-deep); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--ink); }

/* ---------- 首页 Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.18; font-weight: 500; letter-spacing: .01em; }
html[data-lang="en"] .hero h1 { font-size: clamp(44px, 5.4vw, 74px); line-height: 1.02; letter-spacing: 0; }
html[data-lang="ko"] .hero h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.3; }
html[data-lang="ja"] .hero h1 { font-size: clamp(36px, 5.6vw, 70px); line-height: 1.28; }
.hero p.sub { max-width: 34em; margin: 28px 0 36px; color: var(--ink-2); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { justify-self: end; width: min(100%, 520px); }
.hero-mark img { width: 100%; height: auto; }
.facts { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.facts > div { padding: 26px 28px 28px 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.65; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; width: 200px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 18px 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
}

/* ---------- 诊疗理念（2×2） ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 80px); }
.pillars > div { border-top: 1px solid var(--ink); padding: 22px 0 40px; }
.pillars h3 { font-size: 24px; margin-bottom: 10px; }
.pillars p { color: var(--ink-2); margin: 0; max-width: 32em; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- 特色 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.features > div { padding: 4px 28px 4px 28px; border-left: 1px solid var(--line); }
.features > div:first-child { padding-left: 0; border-left: 0; }
.features h3 { font-size: 20px; margin-bottom: 10px; }
.features p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } .features > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .features > div, .features > div:nth-child(3) { padding: 0 0 0 0; border-left: 0; } .features > div + div { padding-top: 24px; border-top: 1px solid var(--line); } }

/* ---------- 首页：诊疗方向列表 ---------- */
.arealist { border-top: 1px solid var(--ink); }
.arealist a { display: grid; grid-template-columns: 280px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.arealist a:hover { background: var(--soft); padding-inline: 14px; }
.arealist h3 { font-size: 21px; }
.arealist p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.arealist .count { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) { .arealist a { grid-template-columns: 1fr auto; } .arealist p { grid-column: 1 / -1; } }

/* ---------- 图片网格 ---------- */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.thumbs a { display: block; overflow: hidden; background: var(--soft); }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.thumbs a:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .thumbs { grid-template-columns: 1fr 1fr; } .thumbs a:nth-child(3) { display: none; } }

/* ---------- 医生 ---------- */
.people-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.people-mini figure { margin: 0; display: grid; grid-template-columns: 46% 1fr; gap: 24px; align-items: end; }
.people-mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #cdd0c8; }
.people-mini h3 { font-size: 24px; } .people-mini figcaption p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 760px) { .people-mini { grid-template-columns: 1fr; } }
.doctor { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(28px, 5vw, 72px); padding: 56px 0; border-top: 1px solid var(--line); }
.doctor:first-of-type { border-top: 0; padding-top: 0; }
.doctor img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #cdd0c8; }
.doctor h2 { font-size: clamp(32px, 4vw, 46px); }
.doctor .role { color: var(--gold-deep); margin: 6px 0 28px; font-weight: 500; }
.doctor h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin: 28px 0 10px; }
.doctor li { position: relative; padding: 6px 0 6px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.doctor li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 1px; background: var(--gold-deep); }
@media (max-width: 800px) { .doctor { grid-template-columns: 1fr; } .doctor img { max-width: 340px; } }

/* ---------- 深色 CTA ---------- */
.band { background: var(--dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.band p { color: #CFC8BB; margin: 14px 0 0; max-width: 30em; }
.band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.band .btn--ghost:hover { background: #fff; color: #26221E; border-color: #fff; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } .band .actions { justify-content: flex-start; } }

/* ---------- 内页标题 ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 500; }
.page-head p { max-width: 42em; margin: 18px 0 0; color: var(--ink-2); font-size: 17px; }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 诊疗项目 ---------- */
.focus { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 80px); }
.focus > div { padding: 22px 0 32px; border-top: 1px solid var(--line); }
.focus h3 { font-size: 21px; margin-bottom: 8px; }
.focus p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
@media (max-width: 720px) { .focus { grid-template-columns: 1fr; } }
.eq-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.eq-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.eq-nav a { display: block; padding: 9px 0 9px 16px; border-left: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.5; transition: color .2s, border-color .2s; }
.eq-nav a:hover, .eq-nav a.on { color: var(--ink); border-left-color: var(--gold); border-left-width: 3px; padding-left: 14px; }
.eq-cat { padding-bottom: 56px; }
.eq-cat > h3 { font-size: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.eq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.eq-item figure { margin: 0 0 14px; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eq-item figure img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.eq-item figure.ph { background: var(--soft); border-color: transparent; }
.eq-item figure.ph img { width: 38%; height: auto; opacity: .55; padding: 0; }
.eq-item h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.5; margin-bottom: 6px; }
.eq-item p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
@media (max-width: 1000px) { .eq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .eq-layout { grid-template-columns: 1fr; }
  .eq-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
  .eq-nav a { flex: none; border: 1px solid var(--line); border-radius: 2px; padding: 7px 13px; font-size: 14px; }
  .eq-nav a:hover, .eq-nav a.on { border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); padding: 7px 13px; }
}
@media (max-width: 520px) { .eq-grid { grid-template-columns: 1fr; } }

/* ---------- 案例 ---------- */
.note { background: var(--soft); border-left: 3px solid var(--gold); padding: 14px 20px; font-size: 14.5px; color: var(--ink-2); margin: 0 0 48px; }
.case-group { margin-bottom: 72px; }
.case-group > h2 { font-size: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 32px; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; align-items: start; }
.case a { display: block; background: var(--soft); }
.case img { width: 100%; }
.case h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 14px 0 4px; }
.case p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.case .pair { display: grid; gap: 8px; }
@media (max-width: 900px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cases { grid-template-columns: 1fr; } }

/* ---------- 价格 ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 16px; padding: 14px 24px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.price-imgs { display: grid; gap: 28px; justify-content: center; }
.price-imgs a { display: block; width: min(100%, 760px); margin-inline: auto; border: 1px solid var(--line); }
.price-imgs a.wide { width: min(100%, 980px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px); }
.cols-2 h2 { font-size: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.cols-2 p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line); padding: 8px 16px; border-radius: 2px; font-size: 15px; }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- 指南 ---------- */
.steps { counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 28px; color: var(--gold-deep); line-height: 1.2; }
.after-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 80px); }
.after-grid > div { padding: 22px 0 30px; border-top: 1px solid var(--line); }
.after-grid h3 { font-size: 20px; margin-bottom: 8px; } .after-grid p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) { .after-grid { grid-template-columns: 1fr; } }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 17px; line-height: 1.6; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq p { margin: 0; padding: 0 48px 24px 0; color: var(--ink-2); }
.faq-list { max-width: 860px; }

/* ---------- 交通 ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.info-block { margin-bottom: 40px; }
.info-block h2 { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.info-block li { padding: 8px 0 8px 18px; position: relative; color: var(--ink-2); }
.info-block li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 1px; background: var(--gold-deep); }
.info-block p { color: var(--ink-2); margin: 0 0 6px; }
.info-block .ko-addr { color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { width: 7em; color: var(--ink-2); }
.hours tr.off td, .hours tr.off th { color: var(--ink-3); }
.map-box a { display: block; border: 1px solid var(--line); }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.route { margin-top: 56px; }
.route a { display: block; max-width: 820px; border: 1px solid var(--line); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- 联系 ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px); }
.ct-block { display: flex; flex-direction: column; }
.ct-block > h2 { font-size: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
html[data-lang="ja"] .ct--ja { order: -1; }
.qr-row { display: flex; flex-wrap: wrap; gap: 28px; }
.qr { width: 260px; }
.qr img { border: 1px solid var(--line); width: 100%; }
.qr h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 12px 0 2px; }
.qr p { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }
.qr-wide img { border: 1px solid var(--line); width: 100%; max-width: 520px; }
.social { margin-top: 12px; }
.social h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin: 0 0 10px; }
.social ul { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 28px; }
.social a { display: inline-block; border: 1px solid var(--line); padding: 7px 14px; border-radius: 2px; font-size: 14.5px; }
.social a:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.social-wrap { margin-top: 72px; }
.social-wrap > h2 { font-size: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.social-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 820px) { .ct-grid, .social-cols { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 36px; }
.site-footer img.flogo { height: 120px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 12px; }
.site-footer p, .site-footer li { margin: 0 0 6px; color: var(--ink-2); line-height: 1.7; }
.site-footer a:hover { color: var(--gold-deep); text-decoration: underline; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.legal p { margin: 0 0 4px; color: var(--ink-3); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 图片放大 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,17,14,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox img { max-width: min(96vw, 1200px); max-height: 92vh; width: auto; height: auto; object-fit: contain; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
[data-zoom] { cursor: zoom-in; }


/* ---------- 深色模式（随系统/查看器主题） ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink:#F1ECE2; --ink-2:#C9C2B5; --ink-3:#9A9285; --line:#3A342E; --soft:#221E1A; --bg:#171411; --on-ink:#1B1814; --header-bg: rgba(23,20,17,.96); --gold-deep:#E0BE55; --dark:#0F0D0B; color-scheme: dark; }
}
:root[data-theme="dark"] { --ink:#F1ECE2; --ink-2:#C9C2B5; --ink-3:#9A9285; --line:#3A342E; --soft:#221E1A; --bg:#171411; --on-ink:#1B1814; --header-bg: rgba(23,20,17,.96); --gold-deep:#E0BE55; --dark:#0F0D0B; color-scheme: dark; }


/* ============ v2：下拉导航 / 案例 / 文章 / 悬浮栏 ============ */
.site-header .wrap { position: relative; }
.nav-item { position: static; }
.nav-item > .nav-top { position: relative; padding: 28px 0; display: inline-block; color: var(--ink-2); white-space: nowrap; }
.nav-item > .nav-top:hover, .nav-item.is-active > .nav-top { color: var(--ink); }
.nav-item.is-active > .nav-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--gold); }
.nav-item:not(.has-mega) { position: relative; }
.sub { position: absolute; top: 100%; left: -16px; min-width: 210px; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 8px 0; display: none; box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.sub a { display: block; padding: 10px 20px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.sub a:hover { background: var(--soft); color: var(--ink); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--gold); display: none; padding: 28px 32px 32px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.35); }
.mega-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; }
.mega-col a { display: block; font-size: 13.5px; line-height: 1.5; padding: 4px 0; color: var(--ink-2); }
.mega-col a:hover { color: var(--gold-deep); }
.mega-col a.mega-h { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.nav-item:hover > .sub, .nav-item:focus-within > .sub, .nav-item:hover > .mega, .nav-item:focus-within > .mega { display: block; }
@media (min-width: 1241px) { .nav { gap: clamp(18px, 2.2vw, 36px); } .nav .nav-tools { display: none; } }
@media (max-width: 1240px) {
  .nav { align-items: stretch; }
  .nav-item { position: static !important; border-bottom: 1px solid var(--line); padding: 6px 0 12px; }
  .nav-item > .nav-top { padding: 12px 0; font-weight: 600; color: var(--ink); display: block; }
  .nav-item.is-active > .nav-top::after { display: none; }
  .sub, .mega { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; background: none; }
  .sub a { padding: 9px 0; font-size: 15.5px; }
  .mega-grid { display: block; } .mega-col { display: inline; } .mega-eq { display: none; }
  .mega-col a.mega-h { display: block; font-family: var(--sans); font-size: 15.5px; font-weight: 400; padding: 9px 0; border: 0; margin: 0; color: var(--ink-2); }
  .nav a { border-bottom: 0; padding: 0; }
  .nav .sub a, .nav .mega a { padding: 9px 0; }
  .nav .nav-top { padding: 12px 0; }
}

/* 内容页正文 */
.prose { max-width: 820px; }
.prose--wide { max-width: 1000px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child, .prose .date + h2, .prose .note + h2 { margin-top: 8px; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; } .prose h4 { font-family: var(--sans); font-size: 16.5px; margin: 24px 0 8px; }
.prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.95; margin: 0 0 1.1em; }
.prose p.kicker { color: var(--gold-deep); font-size: 14px; font-weight: 600; letter-spacing: .04em; margin: 44px 0 6px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; list-style: disc; color: var(--ink-2); line-height: 1.85; } .prose ol { list-style: decimal; }
.prose li { margin: .25em 0; }
.prose a { color: var(--gold-deep); border-bottom: 1px solid currentColor; }
.prose a.btn { border: 1px solid var(--ink); color: var(--ink); }
.prose a.btn:hover { color: var(--on-ink); }
.prose figure { margin: 26px 0; } .prose figure img { width: auto; max-width: 100%; max-height: 560px; object-fit: contain; margin: 0; border: 1px solid var(--line); background: #fff; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--ink-2); font-family: var(--serif); font-size: 19px; line-height: 1.8; }
.prose p.kicker:first-child, .prose .note + p.kicker, .prose .date + p.kicker { margin-top: 0; }
.prose p.kicker + h2 { margin-top: 2px; border-top: 0; padding-top: 0; }
.prose .tbl { overflow-x: auto; margin: 24px 0; } .prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; } .prose th { background: var(--soft); }
.prose .date, .news-row .date { color: var(--ink-3); font-size: 14px; margin: 0 0 18px; }
.prose .note { margin-bottom: 28px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.case-meta li { border: 1px solid var(--line); padding: 5px 14px; border-radius: 2px; font-size: 14.5px; }
.inline-links { margin: 0 0 12px !important; } .inline-links b { color: var(--ink); margin-right: 10px; font-weight: 600; font-size: 14px; }
.inline-links a { margin-right: 14px; }

/* 卡片 */
.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 5vw, 72px); }
.art-card { display: block; padding: 24px 0 26px; border-top: 1px solid var(--line); }
.art-card:hover h3 { color: var(--gold-deep); } .art-card h3 { font-size: 21px; margin-bottom: 8px; transition: color .2s; }
.art-card p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { color: var(--gold-deep); font-size: 14.5px; font-weight: 500; }
@media (max-width: 720px) { .art-grid { grid-template-columns: 1fr; } }
.eq-grid .eq-item { display: block; }
.eq-item:hover h4 { color: var(--gold-deep); }
.eq-item p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eq-cat { padding-bottom: 48px; }
.tag { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--on-ink); background: var(--gold-deep); padding: 1px 8px; border-radius: 2px; vertical-align: 2px; margin-left: 6px; }
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.ccard { display: block; }
.ccard figure { margin: 0 0 14px; background: var(--soft); overflow: hidden; aspect-ratio: 1 / 1; }
.ccard img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.ccard:hover img { transform: scale(1.03); }
.cmeta { display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; font-size: 13.5px; color: var(--ink-3); }
.cmeta b { color: var(--gold-deep); font-weight: 600; letter-spacing: .03em; }
.ccard h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; letter-spacing: 0; line-height: 1.55; }
.ccard p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .cgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cgrid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.chip { border: 1px solid var(--line); border-radius: 2px; padding: 8px 16px; font-size: 14.5px; color: var(--ink-2); }
.chip i { font-style: normal; color: var(--ink-3); margin-left: 4px; font-size: 13px; }
.chip:hover { border-color: var(--ink); color: var(--ink); } .chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); } .chip.on i { color: inherit; opacity: .7; }
.more-wrap { text-align: center; margin-top: 48px; }
.news-list { border-top: 1px solid var(--ink); }
.news-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-row .date { margin: 3px 0 0; } .news-row h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.55; }
.news-row p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row:hover h3 { color: var(--gold-deep); }
@media (max-width: 560px) { .news-row { grid-template-columns: 1fr; gap: 4px; } }

/* 悬浮咨询栏 */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.fab-btn { display: block; text-align: center; padding: 12px 18px; font-size: 14px; font-weight: 600; border-radius: 2px; background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.fab-btn.fab-line { background: var(--gold); color: #26221E; }
.fab-btn:hover { filter: brightness(.95); }
@media (max-width: 560px) { .fab { flex-direction: row; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); } .fab-btn { flex: 1; } body { padding-bottom: 72px; } }
@media print { .fab { display: none; } }


/* ============ v3：轮播首页 / 页头照片 / 医师页 / 图标 / 仪器网格 ============ */
.ic { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ic svg { width: 100%; height: 100%; }
.btn .ic, .fab-btn .ic { margin-right: 8px; width: 1.2em; height: 1.2em; vertical-align: -0.22em; }
.btn { gap: 0; }
.social a, .site-footer li a, .qr h3 { }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.social a .ic, .site-footer ul a .ic { margin-right: 2px; color: var(--gold-deep); }
.social a:hover .ic { color: inherit; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; }
.qr h3 { display: flex; align-items: center; gap: 8px; } .qr h3 .ic { color: var(--gold-deep); }

/* 首页轮播 */
.hero-slider { position: relative; height: clamp(440px, 66vh, 660px); background: #1b1815; overflow: hidden; color: #fff; touch-action: pan-y; user-select: none; }
.slides, .slide, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { opacity: 0; transition: opacity .55s ease; }
.slide.on { opacity: 1; }
.slide img { object-fit: cover; transform: scale(1.02); -webkit-user-drag: none; user-select: none; }
.slide.on img { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20,17,14,.72) 0%, rgba(20,17,14,.42) 45%, rgba(20,17,14,.08) 100%), linear-gradient(0deg, rgba(20,17,14,.5) 0%, rgba(20,17,14,0) 38%); }
.hero-copy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); }
.hero-copy h1 { color: #fff; font-size: clamp(38px, 5.4vw, 72px); font-weight: 500; line-height: 1.2; max-width: 11em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
html[data-lang="en"] .hero-copy h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; max-width: 9em; }
html[data-lang="ko"] .hero-copy h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.3; }
html[data-lang="ja"] .hero-copy h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.3; }
.hero-copy .hero-sub { max-width: 32em; margin: 22px 0 30px; color: rgba(255,255,255,.88); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: #26221E; border-color: #fff; }
.sl-ui { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; pointer-events: auto; }
.sl-ui .cap { font-size: 13.5px; color: rgba(255,255,255,.85); min-width: 6em; }
.dots { display: flex; gap: 8px; margin-left: auto; }
.dot { width: 26px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.dot[aria-current="true"] { background: var(--gold); }
.arrows { display: flex; gap: 8px; }
.arrows button { position: relative; z-index: 1; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 2px; pointer-events: auto; }
.arrows button:hover { background: #fff; color: #26221E; }
.facts--flush { margin-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .hero-slider { height: 500px; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,17,14,.78) 0%, rgba(20,17,14,.3) 60%, rgba(20,17,14,.15) 100%); }
  .hero-copy { top: auto; bottom: 74px; transform: translateX(-50%); }
  .hero-copy .hero-sub { display: none; } .sl-ui .cap { display: none; } .dots { margin-left: 0; }
}

/* 内页页头照片 */
.page-head { position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; }
.ph-img { position: absolute; right: 0; top: 0; width: 48%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); opacity: .95; }
@media (max-width: 760px) { .ph-img { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; } }

/* 首页医师卡片 */
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); }
.doc-card figure { margin: 0 0 16px; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e7e1; }
.doc-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.doc-card:hover img { transform: scale(1.03); }
.doc-card h3 { font-size: 26px; } .doc-card p { margin: 4px 0 0; color: var(--gold-deep); font-size: 15px; font-weight: 500; }
@media (max-width: 720px) { .doc-cards { grid-template-columns: 1fr 1fr; } .doc-cards .doc-card:last-child { grid-column: 1 / -1; max-width: 50%; } }

/* 全部仪器 */
.eq-mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; }
.eq-mini-h { grid-column: 1 / -1; font-size: 22px; margin: 22px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.eq-mini-h:first-child { margin-top: 0; }
.eq-mini figure { margin: 0 0 8px; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eq-mini img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .4s; }
.eq-mini:hover img { transform: scale(1.05); }
.eq-mini span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.eq-mini:hover span { color: var(--gold-deep); }
@media (max-width: 1000px) { .eq-mini-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .eq-mini-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; } .eq-mini span { font-size: 12.5px; } }

/* 医师页 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 0 0 64px; }
.stats div { padding: 22px 24px; font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.stats div + div { border-left: 1px solid var(--line); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stats div + div { border-left: 0; border-top: 1px solid var(--line); } }
.doc-row { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(28px, 5vw, 80px); padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.doc-row.rev { grid-template-columns: 1fr minmax(0, 400px); } .doc-row.rev figure { order: 2; }
.doc-row figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e7e1; position: sticky; top: calc(var(--header-h) + 24px); }
.doc-row img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-sp { color: var(--gold-deep); font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.doc-body h2 { font-size: clamp(34px, 4.2vw, 50px); }
.doc-body .role { color: var(--ink-2); margin: 8px 0 24px; }
.doc-body blockquote { margin: 0 0 8px; padding: 2px 0 2px 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.85; }
.doc-body h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin: 30px 0 10px; }
.doc-body li { position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.doc-body li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 6px; height: 1px; background: var(--gold-deep); }
.sc-box { margin-top: 34px; padding: 6px 24px 14px; background: var(--soft); border-left: 3px solid var(--gold); } .sc-box h3 { color: var(--ink); }
.phil-box { max-width: 820px; } .phil-box h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; } .phil-box p { color: var(--ink-2); line-height: 2; }
.phil-box .phil-sub { font-family: var(--serif); font-size: 19px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
@media (max-width: 860px) { .doc-row, .doc-row.rev { grid-template-columns: 1fr; } .doc-row.rev figure { order: 0; } .doc-row figure { position: static; max-width: 360px; } }

@media (prefers-reduced-motion: reduce) { .slide.on img { animation: none; } * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .lightbox, .band { display: none; } }

html[data-lang="ko"] body { word-break: keep-all; }
html[data-lang="ja"] body { line-break: strict; }
html[data-lang="zh"] body, html[data-lang="cn"] body { line-break: strict; }
.prose--wide figure img { max-height: 420px; }

html[data-lang="zh"] .hide-zh, html[data-lang="cn"] .hide-zh { display: none; }

:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.view[hidden]{display:none!important}
#main:focus{outline:none}
