@charset "UTF-8";

/* 费县泰源热力有限公司 · 官网样式
   设计取向：纸感底、宋体标题、细线分隔、实景照片优先。 */

:root {
  --paper: #f5f2ec;
  --paper-light: #fbf9f5;
  --paper-deep: #eae4d9;
  --ink: #23201c;
  --ink-soft: #5b554c;
  --ink-mute: #8c857a;
  --line: #d9d2c6;
  --line-soft: #e7e1d6;
  --brand: #c8401f;
  --brand-deep: #9e2c16;
  --gold: #d5a04a;
  --dark: #201d19;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --num: Georgia, "Times New Roman", serif;
  --digit: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
}

/* 网格子项允许收缩，避免窄屏下被长内容撑破容器 */
.slogan-grid > *,
.overview-grid > *,
.notice-grid > *,
.about-grid > *,
.service-grid > * { min-width: 0; }

/* ---------- 通用零件 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section-pad { padding: 108px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 52px;
}

.section-head .head-main { display: flex; align-items: flex-end; gap: 22px; }
.section-head .head-num {
  font-family: var(--num);
  font-size: 54px;
  line-height: .9;
  color: #cfc7b8;
  letter-spacing: -.04em;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.25;
}
.section-head .head-en {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-bottom: 6px;
  white-space: nowrap;
}
.section-head.plain { border: 0; padding: 0; margin-bottom: 38px; }

.lead-text {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 24px;
}

.prose p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 电话号码统一排版：全站同一字体、字号与字重，避免各处大小不一 */
.tel {
  font-family: var(--digit);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--brand-deep);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 6px;
  transition: gap .25s ease, color .25s ease;
}
.text-link span { font-family: var(--num); font-size: 18px; line-height: 1; }
.text-link:hover { gap: 16px; color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 26px;
  font-size: 14px;
  letter-spacing: .08em;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn i { font-style: normal; font-family: var(--num); font-size: 17px; }
.btn-solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); }

.figure-frame { margin: 0; }
.figure-frame .img-wrap { overflow: hidden; background: #ddd6ca; }
.figure-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.figure-frame:hover img { transform: scale(1.035); }
.figure-frame figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-mute);
}
.figure-frame figcaption .cap-title { color: var(--ink-soft); letter-spacing: .04em; }
.figure-frame figcaption .cap-no { font-family: var(--num); letter-spacing: .08em; }

/* ---------- 顶栏与导航 ---------- */

.topline {
  height: 34px;
  background: var(--dark);
  color: #cfc8bd;
  font-size: 11.5px;
  letter-spacing: .08em;
}
.topline .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topline .hotline { color: #f0c58d; font-size: 14px; letter-spacing: .06em; }
.topline .hotline .tel { margin-left: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(35,32,28,.06); }
.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-txt { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-en {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 40px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 14.5px;
  letter-spacing: .1em;
  color: #4a453e;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--brand-deep); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-link {
  flex-shrink: 0;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  font-size: 12.5px;
  letter-spacing: .1em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.header-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.header-site-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: .1em;
}
.header-site-link i { font-style: normal; font-family: var(--num); font-size: 16px; line-height: 1; }
.header-site-link:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 19px; height: 1.5px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 首页主视觉 ---------- */

.hero {
  position: relative;
  height: min(760px, calc(100vh - 118px));
  min-height: 620px;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #2c2b28 url(../img/power-plant.jpg) center 44% / cover no-repeat;
  transform: scale(1.02);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,16,13,.88) 0%, rgba(18,16,13,.64) 42%, rgba(18,16,13,.14) 100%),
              linear-gradient(0deg, rgba(18,16,13,.55) 0%, rgba(18,16,13,0) 45%);
}
.hero .container { height: 100%; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 118px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f0c58d;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: #f0c58d; }
.hero h1 {
  margin: 22px 0 20px;
  font-family: var(--serif);
  font-size: clamp(46px, 6.2vw, 78px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .07em;
  text-shadow: 0 2px 20px rgba(0,0,0,.18);
}
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: 2.4em; }
.hero-desc {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-facts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(20,18,15,.36);
}
.hero-facts .container {
  position: static;
  z-index: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  height: 92px;
  padding: 0;
  align-items: stretch;
}
.hero-fact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 28px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.hero-fact:first-child { border-left: 0; padding-left: 0; }
.hero-fact strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.hero-fact strong em { font-style: normal; font-family: inherit; font-size: .74em; margin-left: 4px; }
.hero-fact > span { font-size: 12px; color: rgba(255,255,255,.68); letter-spacing: .12em; margin-top: 3px; }

/* ---------- 标语 ---------- */

.slogan-section { padding: 96px 0 102px; }
.slogan-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 76px;
  align-items: center;
}
.slogan-copy h2 {
  margin: 20px 0 22px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.45;
}
.slogan-copy p { max-width: 420px; color: var(--ink-soft); line-height: 2.05; font-size: 15.5px; }
.slogan-mark {
  display: block;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brand-deep);
  letter-spacing: .14em;
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}
.slogan-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 14px 12px;
}
.slogan-figure img { width: 100%; height: auto; }
.slogan-figure figcaption {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

/* ---------- 概况 ---------- */

.overview-section { background: var(--paper-light); border-top: 1px solid var(--line-soft); }
.overview-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: start; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 34px;
}
.stat-item {
  padding: 26px 10px 26px 22px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat-item:nth-child(odd) { border-left: 0; padding-left: 0; }
.stat-item:nth-last-child(-n+2) { border-bottom: 0; }
.stat-item .num {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.1;
  color: var(--brand-deep);
  letter-spacing: -.02em;
}
.stat-item .num em { font-style: normal; font-family: inherit; font-size: .74em; margin-left: 4px; }
.stat-item .label { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .1em; margin-top: 6px; }

/* ---------- 缴费速览 ---------- */

.notice-preview {
  background: var(--paper-deep);
  border-top: 1px solid #d7cebe;
  border-bottom: 1px solid #d7cebe;
  padding: 96px 0;
}
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; }
.notice-tag {
  display: inline-block;
  border: 1px solid var(--brand);
  color: var(--brand-deep);
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: .14em;
}
.notice-grid h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.45;
  margin: 22px 0 20px;
}
.notice-grid p { color: var(--ink-soft); font-size: 15px; line-height: 2; margin: 0 0 30px; }
.price-list { border-top: 1px solid #c9bfae; }
.price-row {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 19px 2px;
  border-bottom: 1px solid #c9bfae;
}
.price-row .who { font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }
.price-row .amount { font-family: var(--serif); font-size: 30px; color: var(--brand-deep); white-space: nowrap; }
.price-row .amount em { font-family: inherit; font-size: .74em; font-style: normal; margin-left: 3px; }
.price-row .how { font-size: 11.5px; color: var(--ink-mute); text-align: right; }
.notice-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.notice-foot small { font-size: 12px; color: var(--ink-mute); line-height: 1.8; }

/* ---------- 影像 ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.gallery-item { margin: 0; }
.gallery-item .gallery-media { position: relative; overflow: hidden; background: #ded7cb; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.gallery-item figcaption .g-title { font-family: var(--serif); font-size: 16px; letter-spacing: .06em; }
.gallery-item figcaption .g-meta { font-size: 11.5px; color: var(--ink-mute); letter-spacing: .08em; white-space: nowrap; }
.gallery-item:hover figcaption .g-title { color: var(--brand-deep); }
.gallery-item .g-desc {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: #7b7469;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- 内页页头 ---------- */

.page-hero {
  position: relative;
  height: 430px;
  min-height: 380px;
  overflow: hidden;
  color: #fff;
  background: #2c2b28 url(../img/gate.jpg) center 45% / cover no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,16,13,.85) 0%, rgba(18,16,13,.55) 55%, rgba(18,16,13,.2) 100%);
}
.page-hero .container { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 54px; }
.breadcrumb { position: absolute; top: 34px; left: 0; font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #f0c58d; }
.breadcrumb i { font-style: normal; margin: 0 10px; opacity: .6; }
.page-hero h1 { margin: 0 0 12px; font-family: var(--serif); font-size: 56px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; }
.page-hero .sub { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #f0c58d; }

/* ---------- 内页：正文与档案 ---------- */

.about-intro { padding: 100px 0 90px; background: var(--paper-light); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 82px; align-items: start; }
.intro-meta {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.intro-meta div { padding: 18px 0 18px 18px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.intro-meta div:nth-child(odd) { border-left: 0; padding-left: 0; }
.intro-meta dt { font-size: 11px; letter-spacing: .16em; color: var(--ink-mute); }
.intro-meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.about-side .figure-frame + .figure-frame { margin-top: 26px; }

.notice-detail-section { padding: 100px 0 110px; }
.notice-intro { max-width: 760px; margin-bottom: 44px; }
.notice-intro h2 { margin: 18px 0 14px; font-family: var(--serif); font-size: 36px; letter-spacing: .06em; font-weight: 600; }
.notice-intro p { color: var(--ink-soft); font-size: 15px; line-height: 2; }

.document {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  padding: 56px 62px 60px;
}
.doc-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
}
.doc-date { text-align: center; font-size: 12px; color: var(--ink-mute); letter-spacing: .14em; margin-bottom: 44px; }
.doc-h3 {
  margin: 44px 0 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .06em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.doc-h4 {
  margin: 30px 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--brand-deep);
}
.doc-p { margin: 0 0 14px; font-size: 15px; line-height: 2.1; color: #3f3a34; text-align: justify; text-justify: inter-ideograph; }
.doc-p.indent { padding-left: 1.9em; text-indent: -1.9em; }
.doc-p strong { color: var(--ink); font-weight: 600; }
.doc-callout {
  margin: 22px 0;
  padding: 16px 20px;
  background: #f0e9dc;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  line-height: 1.95;
  color: #6b4a1c;
}
.doc-sign { margin-top: 54px; text-align: right; font-size: 14px; line-height: 2; color: var(--ink-soft); }
.doc-sign span { display: block; font-family: var(--serif); font-size: 16px; color: var(--ink); }

.service-section { padding: 88px 0 100px; background: var(--paper-light); border-top: 1px solid var(--line-soft); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-grid .figure-frame img { aspect-ratio: 16 / 10; }

/* ---------- 页脚 ---------- */

.site-footer { background: var(--dark); color: #e8e2d8; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 70px; padding: 72px 0 62px; }
.footer-brand h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 23px; letter-spacing: .1em; font-weight: 600; }
.footer-brand p { margin: 0; font-size: 13.5px; line-height: 2; color: #a9a297; max-width: 330px; }
.footer-hotline { display: block; margin-top: 18px; color: #f0c58d; font-size: 14px; letter-spacing: .06em; }
.footer-hotline .tel { margin-left: 6px; }
.footer-col h4 { margin: 4px 0 22px; font-size: 11px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 13.5px; color: #bfb8ad; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.9; color: #bfb8ad; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: #857e74;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-bottom a { color: inherit; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.footer-bottom a:hover { color: #f0c58d; border-bottom-color: #f0c58d; }

/* ---------- 交互组件 ---------- */

.back-top {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease, color .25s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14,12,10,.94);
}
.lightbox.open { display: flex; }
.lightbox:focus, .lightbox:focus-visible { outline: none; }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 4px; }
.lightbox img { max-width: 86vw; max-height: 80vh; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 24px; right: 32px; font-size: 38px; line-height: 1; font-weight: 300; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-family: var(--num); font-size: 48px; padding: 20px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #ece6dc; font-size: 13px; letter-spacing: .1em; }

.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.js-ready .reveal.in-view { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1120px) {
  .main-nav { gap: 24px; }
  .slogan-grid, .overview-grid, .notice-grid, .about-grid { gap: 48px; }
  .document { padding: 44px 40px 50px; }
  .footer-grid { gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 48px, 1240px); }
  .header-inner { height: 72px; }
  .menu-toggle { display: flex; order: 3; }
  .header-link { display: none; }
  .header-site-link { display: inline-flex; margin-left: auto; padding: 8px 12px; font-size: 12px; gap: 6px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(35,32,28,.08);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 2px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .main-nav a::after { display: none; }
  .hero { height: 660px; min-height: 0; }
  .hero h1 span + span { padding-left: 1.2em; }
  .slogan-grid, .overview-grid, .notice-grid, .about-grid { grid-template-columns: 1fr; gap: 42px; }
  .about-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-side .figure-frame + .figure-frame { margin-top: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .topline .left { display: none; }
  .topline { font-size: 11px; }
  .topline .hotline .tel { margin-left: 4px; }
  .header-inner { gap: 12px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 15px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }
  .brand-en { display: none; }
  .menu-toggle { flex-shrink: 0; margin-left: 0; }
  .hero { height: 680px; }
  .hero .container { padding-bottom: 172px; }
  .hero h1 { font-size: 44px; letter-spacing: .04em; }
  .hero h1 span + span { padding-left: 0; }
  .hero-desc { font-size: 14px; max-width: 100%; padding-right: 8px; overflow-wrap: break-word; }
  .hero-actions .btn { min-height: 44px; padding: 0 18px; font-size: 13px; }
  .hero-facts .container { height: auto; flex-wrap: wrap; padding: 0 18px; }
  .hero-fact { flex: 0 0 50%; padding: 12px 0 12px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-fact:nth-child(n+3) { border-bottom: 0; }
  .hero-fact strong { font-size: 24px; }
  .section-pad, .slogan-section, .notice-preview, .about-intro, .notice-detail-section { padding: 72px 0; }
  .service-section { padding: 70px 0; }
  .section-head { display: block; }
  .section-head .head-en { display: block; padding-top: 12px; }
  .section-head h2 { font-size: 31px; }
  .section-head .head-num { font-size: 42px; }
  .lead-text { font-size: 18px; }
  .stat-item .num { font-size: 34px; }
  .price-row { grid-template-columns: 92px 1fr; gap: 8px; }
  .price-row .how { grid-column: 2; text-align: left; }
  .notice-foot { display: block; }
  .notice-foot small { display: block; margin-top: 16px; }
  .notice-grid h2, .notice-intro h2, .slogan-copy h2 { font-size: 30px; }
  .gallery-grid { display: block; }
  .gallery-item { margin-bottom: 28px; }
  .page-hero { height: 360px; }
  .page-hero h1 { font-size: 42px; }
  .document { padding: 32px 22px 38px; border-left-width: 3px; }
  .doc-title { font-size: 24px; }
  .doc-p { font-size: 14px; }
  .service-grid, .about-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 56px 0 44px; }
  .footer-bottom { display: block; line-height: 2; }
  .back-top { right: 16px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
}
