/* ==========================================================================
   缸师傅官网 · 视觉改版层（在 main.css 之后加载）
   思路：师傅的橙色工服 + 鱼缸的深水蓝，两块大色面用一条水线衔接
   ========================================================================== */
@font-face {
  font-family: "GS Display";
  src: url("../font/gs-display-900.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --orange: #FF8A1F;
  --yellow: #FFC52E;
  --deep: #A94700;
  --cream: #FFF4DC;
  --ink: #241608;
  --ink-2: #46321E;
  --muted: #6E5A43;
  --water: #0B2C3C;
  --water-2: #123C50;
  --foam: #BFE6EE;
  --font-display: "GS Display", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "GS Display", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1200px;
}
h1, h2 { font-weight: 900; }
.kicker { display: none; }
[data-reveal] { opacity: 1; transform: none; transition: none; }
figure { margin: 0; }
figure img { width: 100%; height: 100%; object-fit: cover; }

/* 页头 */
.site-header { background: var(--orange); border: 0; box-shadow: none; }
.nav a { font-weight: 500; }
.site-header .btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.site-header .btn--primary:hover { background: #000; color: #fff; }

/* 按钮 */
.btn { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--primary { background: var(--yellow); box-shadow: none; }
.btn--primary:hover { background: #FFD978; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { border: 2px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- 首屏 ---------- */
.g-hero { position: relative; overflow: hidden; background: linear-gradient(168deg, var(--orange) 8%, #FFA51F 52%, var(--yellow) 100%); padding: 56px 0 130px; }
.g-hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.g-hero h1 { font-size: clamp(46px, 7.2vw, 96px); line-height: 1.14; letter-spacing: -.01em; transform: skewX(-6deg); transform-origin: left bottom; }
.g-hero h1 span { display: block; white-space: nowrap; }
.g-hero h1 span:first-child { color: #fff; text-shadow: 0 4px 0 rgba(122, 52, 0, .28); }
.g-hero__lead { font-size: 20px; font-weight: 500; margin: 26px 0 34px; max-width: 26em; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.g-hero__photos { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.g-hero__photos figure { overflow: hidden; border: 6px solid #fff; border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(80, 30, 0, .75); }
.g-hero__main { aspect-ratio: 9 / 15; grid-row: span 2; }
.g-hero__side { aspect-ratio: 9 / 12.5; margin-top: 40px !important; }
.g-hero__side img { object-position: 50% 45%; }
.g-hero__qr { display: block; background: #fff; border-radius: 18px; padding: 14px 14px 10px; text-align: center; box-shadow: 0 24px 40px -28px rgba(80, 30, 0, .8); }
.g-hero__qr img { width: 100%; max-width: 140px; margin: 0 auto; }
.g-hero__qr span { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; }
.waterline { position: absolute; left: 0; bottom: -1px; width: 100%; height: 76px; fill: var(--water); }

/* 通用标题 */
.g-head { margin-bottom: 34px; }
.g-head h2, .g-culture__title { font-size: clamp(30px, 4.2vw, 50px); }
.g-head p { margin-top: 8px; font-size: 17px; opacity: .82; }
.g-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 88px; }

/* ---------- 深水区 ---------- */
.g-water { background: var(--water); color: #fff; padding: 52px 0 96px; }
.g-water .g-head p { color: var(--foam); opacity: 1; }
.g-services { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(191, 230, 238, .24); }
.g-services li { display: flex; flex-direction: column; gap: 8px; padding: 26px 18px 4px 0; }
.g-services svg { width: 38px; height: 38px; color: var(--yellow); }
.g-services strong { font-size: 22px; margin-top: 6px; }
.g-services span { font-size: 14px; color: var(--foam); line-height: 1.7; }
.g-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-shots .shot { position: relative; border: 0; background: var(--water-2); border-radius: 18px; cursor: pointer; }
.g-shots .shot:hover { transform: none; box-shadow: 0 0 0 3px var(--yellow); }
.g-shots .frame { aspect-ratio: 3 / 4; border-radius: 0; }
.g-shots .shot:last-child img { object-position: 28% 50%; }
.g-shots .shot__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(5, 22, 31, .94) 68%); color: #fff; }
.g-shots .tag { background: var(--yellow); color: var(--ink); }
.g-shots .tag--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- 企业文化 ---------- */
.g-culture { background: var(--cream); padding: 104px 0; }
.g-culture__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.g-creed { margin: 28px 0 34px; }
.g-creed > div { padding: 20px 0; border-bottom: 2px solid rgba(36, 22, 8, .1); }
.g-creed dt { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; color: var(--deep); transform: skewX(-6deg); }
.g-creed dd { margin: 4px 0 0; font-size: 17px; color: var(--ink-2); }
.g-culture__photo { aspect-ratio: 4 / 5; border-radius: 240px 240px 24px 24px; overflow: hidden; border: 10px solid var(--yellow); background: var(--yellow); }
.g-culture__photo img { object-position: 78% 50%; }

/* ---------- 全国网点 ---------- */
.g-nation { background: #fff; padding: 100px 0; }
.g-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.g-facts > div { background: var(--yellow); border-radius: 18px; padding: 22px 28px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.g-facts > div:first-child { background: var(--orange); }
.g-facts b { font-family: var(--font-num); font-size: clamp(52px, 7vw, 92px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.g-facts span { font-size: 17px; font-weight: 700; }
.g-nation .home-map { min-height: 0; background: var(--cream); border: 0; border-radius: 18px; }
.g-nation .home-map::before { display: none; }
.g-nation .home-map.amap-container { height: 480px; }
.g-provs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 18px; }
.g-provs a { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 10px 18px; font-weight: 700; transition: background-color .2s; }
.g-provs a b { font-family: var(--font-num); font-size: 24px; color: var(--deep); }
.g-provs a:hover { background: var(--orange); }
.g-provs a:hover b { color: var(--ink); }
.g-stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 32px; }
.g-stores figure { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.g-stores figure:last-child img { object-position: 70% 50%; }
.g-stores figcaption { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; }

/* ---------- 流程 ---------- */
.g-flow { background: var(--cream); padding: 92px 0; }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.g-steps li { counter-increment: s; position: relative; padding: 78px 24px 0 0; }
.g-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font: 900 24px var(--font-num); z-index: 1; }
.g-steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 52px; right: 0; border-top: 3px dashed rgba(169, 71, 0, .35); }
.g-steps h3 { font-size: 21px; margin-bottom: 6px; }
.g-steps p { color: var(--ink-2); font-size: 15px; }

/* ---------- 预约 ---------- */
.g-book { background: linear-gradient(105deg, var(--orange), var(--yellow)); padding: 72px 0; }
.g-book__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.g-book h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.22; }
.g-book p { font-size: 18px; margin-top: 14px; font-weight: 500; }
.g-book img { width: 210px; background: #fff; padding: 14px; border-radius: 20px; }

/* ---------- 页脚与内页 ---------- */
.site-footer { background: var(--water); }
.cta-band { background: var(--water-2); }
.cta-band::after { display: none; }
.footer h4 { letter-spacing: 0; color: var(--foam); }
.page-head, .contact-hero { background: linear-gradient(168deg, var(--orange) 5%, var(--yellow) 100%); border: 0; }
.page-head { padding: 48px 0 62px; }
.page-head h1, .contact-hero h1 { font-size: clamp(36px, 5.6vw, 70px); line-height: 1.2; }
.page-head .lead, .contact-hero .lead { color: var(--ink); font-size: 18px; }
.crumb, .crumb a:hover, .contact-hero .booking-steps p { color: var(--ink); }
.booking-steps__no { background: var(--ink); color: #fff; }
.qr-card { border: 0; }
.section--warm, .section--paper { background: var(--cream); }
.section__head h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 0; }
.service-card, .prep-card, .pillar { border: 0; background: var(--cream); }
.section--paper .prep-card, .section--warm .pillar { background: #fff; }
.service-card__icon { background: var(--orange); color: var(--ink); }
.pillar__en { display: block; font: 900 40px/1.25 var(--font-display); letter-spacing: 0; color: var(--deep); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.gallery .shot__media { aspect-ratio: 3 / 4; }
.story-thumbs .frame { aspect-ratio: 3 / 4; }
@media (min-width: 901px) { .team-grid .frame { aspect-ratio: 3 / 4; } }
/* 省份视图按内容撑高，避免底部被截断 */
.map-canvas { background: var(--cream); }
.map-canvas:has(> .map-fallback:not([hidden])) { height: auto; }
.map-canvas > .map-fallback { position: static; }
.map-canvas > .map-fallback[hidden] { display: none; }
.prov-tile { background: #fff; }

@media (max-width: 1000px) {
  .g-services { grid-template-columns: repeat(3, 1fr); }
  .g-provs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .site-header .nav { background: #fff; }
  .g-hero { padding: 34px 0 104px; }
  .g-hero__inner, .g-culture__inner { grid-template-columns: 1fr; gap: 38px; }
  .g-hero__photos { max-width: 520px; }
  .g-shots, .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-culture, .g-nation, .g-flow { padding: 68px 0; }
  .g-culture__photo { max-width: 460px; }
  .g-steps { grid-template-columns: 1fr; gap: 26px; }
  .g-steps li { padding: 4px 0 0 72px; min-height: 56px; }
  .g-steps li:not(:last-child)::after { top: 52px; bottom: -26px; left: 25px; right: auto; border-top: 0; border-left: 3px dashed rgba(169, 71, 0, .35); }
}
@media (max-width: 620px) {
  .g-hero h1 { font-size: 13vw; }
  .g-hero__lead { font-size: 17px; }
  .g-hero__actions .btn { flex: 1; padding-inline: 12px; }
  .g-hero__photos { gap: 10px; }
  .g-hero__photos figure { border-width: 4px; border-radius: 16px; }
  .g-hero__side { margin-top: 18px !important; }
  .g-services { grid-template-columns: repeat(2, 1fr); }
  .g-shots { gap: 10px; }
  .g-shots .shot__meta { display: none; }
  .g-shots .shot__body { padding: 44px 10px 10px; }
  .g-shots .shot__title { font-size: 14px; }
  .g-facts { gap: 8px; }
  .g-facts > div { padding: 14px 8px; justify-content: center; text-align: center; gap: 0; }
  .g-facts b { font-size: 42px; width: 100%; }
  .g-facts span { font-size: 14px; }
  .g-provs { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
  .g-stores { grid-template-columns: 1fr; }
  .g-book img { width: 180px; }
  .gallery { grid-template-columns: 1fr; }
}
.section--warm .prep-card { background: #fff; }
@media (max-width: 900px) { .header__actions { margin-left: auto; } }

/* 全国网点与品牌实录 */
.network-atlas svg{display:block;width:100%;height:auto;border-radius:14px;background:#cadfe4}
.network-atlas a rect{fill:#fff6df;stroke:#a34912;stroke-width:1.4}
.network-atlas a text{font:700 15px system-ui,sans-serif;fill:#582d19}
.network-atlas a:hover rect,.network-atlas a:focus rect,.network-atlas a.chosen rect{fill:#122f3d;stroke:#fff}
.network-atlas a:hover text,.network-atlas a:focus text,.network-atlas a.chosen text{fill:white}
.atlas-note,.province-index summary,.charter summary{padding:10px 14px;font-size:15px}
.province-index summary,.charter summary{cursor:pointer;font-weight:700}
.charter img{display:block;max-width:100%;margin:12px auto}
.g-nation .network-atlas{max-width:900px;margin:auto}
.g-culture{background:var(--water);color:white}
.g-culture .g-creed dd{color:#e3eff1}.g-culture .g-creed dt{color:#ffd298}
.g-culture .btn--dark{background:white;color:var(--water)}
.hero-detail{aspect-ratio:1.65}.hero-detail img{object-position:center 62%}
#cityStores{display:inline-block;margin:12px 0}#cityStores[hidden]{display:none}
@media(max-width:620px){.map-panel{padding:8px}.map-fallback{padding:8px}.g-shots .shot__meta{display:flex}.g-shots .shot__meta .tag:not(:first-child){display:none}}

.atlas-viewport{overflow-x:auto}.atlas-zoom{display:none}@media(max-width:760px){.atlas-zoom{display:block;margin:8px}.network-atlas.enlarged svg{width:760px;max-width:none}}

/* The map is a single relief plate in the site's deep-water palette. */
.network-atlas{position:relative;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at 50% 35%,var(--water-2) 0%,var(--water) 74%);color:white}
.network-atlas .atlas-title{padding:clamp(20px,3vw,42px) 8px 6px;margin:0;text-align:center;font:900 clamp(21px,3.2vw,43px)/1.2 var(--font-display);letter-spacing:.035em;color:#fff5df}
.network-atlas .atlas-viewport{width:100%;max-width:920px;margin:auto;overflow-x:auto}
.network-atlas svg{display:block;width:100%;background:transparent;border-radius:0}
.network-atlas .atlas-areas use{fill:transparent;stroke:none}
.network-atlas .atlas-areas a:hover use,.network-atlas .atlas-areas .chosen use{fill:#ff8a1f;fill-opacity:.45}
.network-atlas .atlas-pins .atlas-target{fill:transparent;stroke:none}
.network-atlas .atlas-pins a:hover .atlas-target,.network-atlas .atlas-pins a:focus .atlas-target,.network-atlas .atlas-pins .chosen .atlas-target{fill:#143544;stroke:#ffbe70;stroke-width:1}
.network-atlas .atlas-pins .atlas-pin{fill:var(--orange);stroke:#ffe1ac;stroke-width:1}
.network-atlas .atlas-leader{fill:none;stroke:#ffc885;stroke-width:1}
.network-atlas .atlas-pins a text{fill:#fff7e8;stroke:#163745;stroke-width:2.4;paint-order:stroke fill;font:650 12px system-ui,sans-serif}
.g-nation .network-atlas{max-width:none}
.map-shell{grid-template-columns:minmax(0,1fr);gap:16px}
.map-panel{position:static;padding:0;border:0;box-shadow:none}
.map-fallback,.map-canvas>.map-fallback{padding:0;gap:0}
.map-canvas{border:0}
.store-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
#storeCount{scroll-margin-top:90px}
.province-index summary{line-height:1.6;padding:14px 18px}
@media(max-width:760px){.store-list{grid-template-columns:1fr}.network-atlas .atlas-zoom{margin:6px auto;background:#143c4e;color:white;border-color:#72909a}.network-atlas.enlarged .atlas-viewport svg{width:760px;max-width:none}.network-atlas:not(.enlarged) .atlas-pins text{font-size:16px}}

/* 品牌人物与正文并排，窄屏时居中。 */
.mascot-portrait {
  width: min(100%, 410px);
  aspect-ratio: 4 / 4.3;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 52% 52% 18px 18px;
  background: radial-gradient(ellipse at 50% 65%, #fffaf1 35%, #ffe5b4 100%);
}
.mascot-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mascot-portrait--story {
  width: min(100%, 320px);
  align-self: center;
  scroll-margin-top: 100px;
}

@keyframes heading-rise {
  from { opacity: 0; transform: translateY(.32em); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .g-hero h1 span,
  .page-head h1,
  .contact-hero h1,
  .g-hero__lead {
    animation: heading-rise .62s cubic-bezier(.2,.65,.25,1) backwards;
  }
  .g-hero h1 span + span { animation-delay: .13s; }
  .g-hero__lead { animation-delay: .24s; }
  h2[data-reveal].is-in,
  .section__head.is-in h2 {
    animation: heading-rise .52s cubic-bezier(.2,.65,.25,1);
  }
}

/* 上门现场按画面取景，标题在照片之外。 */
.g-shots { grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(12px, 2vw, 28px); }
.g-shots .shot { display: grid; grid-template-rows: auto 1fr; border-radius: 12px; }
.g-shots .frame { height: clamp(280px, 34vw, 465px); aspect-ratio: auto; }
.g-shots .shot:last-child img { object-position: center; }
.g-shots .shot__body { position: static; padding: 16px 18px 20px; background: none; }
.field-city { display: block; color: #ffc080; font-size: .875rem; margin-bottom: 4px; }
.g-shots .shot__title { font-size: clamp(17px, 1.7vw, 23px); }
.lightbox__stage--single .frame { height: min(67vh, 800px); aspect-ratio: auto; background: transparent; }
.lightbox__stage--single .frame img { object-fit: contain; }
@media (max-width: 700px) {
  .g-shots { grid-template-columns: 1fr; gap: 22px; }
  .g-shots .frame { height: auto; aspect-ratio: 4 / 5; }
}
