/* ==========================================================================
   缸师傅官网 · 体验增强层（polish）
   --------------------------------------------------------------------------
   加载顺序：main.css → theme.css → editorial.css → polish.css
   原则：不改页面结构与栏目，只在现有结构上做视觉、交互与兼容性增强。
   内容：
   1. 跨浏览器 / 跨系统 / 跨分辨率基础适配
   2. 全站小部件：顶部阅读进度、回到顶部、页头滚动态
   3. 标题、正文、图片、卡片、页脚的细节打磨
   4. 触屏、键盘、打印、减少动态、高对比等场景兜底
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量与跨系统字体
   -------------------------------------------------------------------------- */
:root {
  /* 补上 Linux / 旧版 Windows / 国产系统的中文字体回退，避免落到默认宋体 */
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Microsoft YaHei UI", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Heiti SC", system-ui,
    -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "GS Display", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Microsoft YaHei UI", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, sans-serif;
  --font-num: "GS Display", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    "Source Han Sans SC", system-ui, sans-serif;

  /* 深色区块里自动切换成浅色焦点环，保证键盘可见性 */
  --focus-ring: #A94700;
  --card-shadow: 0 20px 44px -36px rgba(36, 22, 8, .55);
}

/* 深色底：焦点环换成浅金色 */
.g-water,
.b-rules,
.b-redo,
.g-book,
.cta-band,
.site-footer,
.lightbox,
.store-banner {
  --focus-ring: #FFD27A;
}

html {
  /* 阻止 Android / iOS 在深色模式下把表单和滚动条强制反色 */
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* 地址、备案号等长串在窄屏自动换行，不撑破卡片 */
  overflow-wrap: break-word;
}

a,
button,
.chip,
select,
input,
summary {
  /* 去掉 300ms 点击延迟，并抑制移动端整块高亮 */
  touch-action: manipulation;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* 统一键盘焦点：浅色底用深橙，深色底用浅金（见上方变量） */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   2. 文字排版：更稳的断行与阅读节奏
   -------------------------------------------------------------------------- */
h1,
h2 {
  /* 标题断行更均衡，避免最后一行只剩一两个字 */
  text-wrap: balance;
}

h3 {
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

/* 导语行距略放宽，长段落更好读 */
.lead,
.tide-lead,
.b-lead,
.b-hero__lead,
.g-culture__lead,
.journal-note,
.g-head p,
.city-more,
.store-banner p {
  text-wrap: pretty;
  line-height: 1.85;
}

/* 长地址 / 联系方式在窄屏安全换行 */
.store-card__body dd,
.store-card__meta,
.contact-meta li,
.contact-meta li span,
.listing-address p,
.store-card__body dt {
  overflow-wrap: anywhere;
}

/* 首屏超大标题：原先后一个字距收得偏紧，中文笔画容易粘在一起，
   这里放松字距并略增行距，保留大字的力量感又留出呼吸。 */
.tide-copy h1,
.b-hero h1 {
  letter-spacing: .04em;
  line-height: 1.07;
}

/* 数字统一等宽，统计与编号对齐更整齐 */
.count,
.store-count,
.g-facts b,
.stat__num,
.fact__num,
.map-fallback__stats strong,
.g-provs a b {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   3. 页头：滚动态、细分隔线、导航细节
   -------------------------------------------------------------------------- */
.site-header {
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* 页头底部加一条由中间向两侧淡出的暖色细线，替代生硬的实线 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(169, 71, 0, .26) 20%,
    rgba(169, 71, 0, .26) 80%,
    transparent 100%);
  opacity: .75;
}

/* 滚动后轻微加深投影，让页头与内容分层 */
.site-header.is-scrolled {
  background: rgba(250, 246, 239, .985);
  box-shadow: 0 18px 40px -28px rgba(36, 22, 8, .55);
}

/* 当前页导航下划线换成更克制的圆角短条 */
.nav a[aria-current="page"]::after {
  height: 2px;
  width: 16px;
  bottom: 3px;
  border-radius: 2px;
  background: var(--orange);
}

/* 桌面导航悬停时文字微微加深，和浅底更协调 */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--deep); }
}

/* --------------------------------------------------------------------------
   4. 全站小部件：回到顶部
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(36, 22, 8, .14);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 34px -22px rgba(36, 22, 8, .65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s,
    background-color .2s ease, color .2s ease, box-shadow .25s ease;
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}

/* 不支持毛玻璃时退回纯白，避免半透明看不清箭头 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .to-top { background: #fff; }
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .to-top:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 22px 38px -20px rgba(36, 22, 8, .7);
  }
}

/* 移动端菜单打开时，回顶按钮让位 */
body.nav-open .to-top {
  opacity: 0;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   5. 栏目层级：恢复内页小节的小标签，补一点背景层次
   -------------------------------------------------------------------------- */
/* theme.css 默认隐藏了 kicker；内页小节标题上方保留一枚小标签，层级更清楚 */
.section__head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--deep);
  text-transform: uppercase;
}

.section__head .kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* 浅色首屏与内页页头：加两团极淡的暖色光晕，避免大面积纯色发平 */
.page-head,
.contact-hero,
.b-hero,
.store-banner {
  background-image:
    radial-gradient(880px 420px at 90% -25%, rgba(255, 197, 46, .16), transparent 62%),
    radial-gradient(640px 360px at 2% 118%, rgba(255, 138, 31, .06), transparent 60%);
  background-repeat: no-repeat;
}

.g-culture {
  background-image:
    radial-gradient(720px 420px at 10% -12%, rgba(255, 255, 255, .68), transparent 62%),
    radial-gradient(560px 380px at 100% 112%, rgba(255, 138, 31, .06), transparent 62%);
  background-repeat: no-repeat;
}

.g-flow {
  background-image:
    radial-gradient(760px 400px at 92% 0%, rgba(255, 197, 46, .12), transparent 66%);
  background-repeat: no-repeat;
}

/* 大面积深水色块加一层极淡的冷光与暖光，层次更柔和，不改变任何布局 */
.g-water {
  background-image:
    radial-gradient(940px 520px at 88% -10%, rgba(191, 230, 238, .10), transparent 62%),
    radial-gradient(720px 460px at 2% 108%, rgba(255, 138, 31, .07), transparent 62%);
  background-repeat: no-repeat;
}

.b-rules {
  background-image:
    radial-gradient(760px 440px at 96% 0%, rgba(191, 230, 238, .07), transparent 62%);
  background-repeat: no-repeat;
}

.b-redo {
  background-image:
    radial-gradient(820px 460px at 8% 0%, rgba(191, 230, 238, .06), transparent 64%),
    radial-gradient(680px 400px at 100% 100%, rgba(255, 197, 46, .06), transparent 62%);
  background-repeat: no-repeat;
}

.g-book {
  background-image:
    radial-gradient(760px 420px at 100% 0%, rgba(255, 138, 31, .10), transparent 64%);
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   6. 卡片与图片：统一悬停手感（只在鼠标设备上启用）
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  /* 深水区服务卡 */
  .g-services li {
    transition: background-color .28s ease, border-color .28s ease, transform .28s ease;
  }
  .g-services li:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 197, 46, .48);
    background: rgba(255, 255, 255, .085);
  }

  /* 首页网点照片：轻微上浮并放大图片 */
  .g-stores figure {
    box-shadow: 0 20px 42px -38px rgba(36, 22, 8, .55);
    transition: transform .35s var(--ease), box-shadow .35s ease;
  }
  .g-stores figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -34px rgba(36, 22, 8, .5);
  }
  .g-stores figure img {
    transition: transform .9s var(--ease);
  }
  .g-stores figure:hover img {
    transform: scale(1.045);
  }

  /* 浅色卡片统一补齐悬停反馈 */
  .service-card,
  .prep-card,
  .store-card,
  .city-card {
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
  }
  .service-card:hover,
  .prep-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
  }
  .prep-card:hover {
    border-color: rgba(169, 71, 0, .22);
  }

  /* 品牌页图片加一点极轻的浮起，不裁切内容 */
  .b-rules__figure,
  .b-flow__figure,
  .b-grow__figure {
    transition: transform .35s var(--ease);
  }
  .b-rules__figure:hover,
  .b-flow__figure:hover,
  .b-grow__figure:hover {
    transform: translateY(-3px);
  }

  /* 实拍小图在可点区域内的细节反馈 */
  .journal-print {
    transition: transform .3s var(--ease), opacity .3s ease;
  }
  .journal-print:hover {
    transform: translateY(-3px);
  }
  .city-card:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* 图片在加载完成前也保持柔和底色，避免白闪 */
.g-stores figure,
.b-rules__figure,
.b-flow__figure,
.b-grow__figure,
.city-card figure,
.g-steps figure {
  background-color: var(--stone, #F1EBE1);
}

/* --------------------------------------------------------------------------
   7. 内容动效：入场、错峰浮现、图片缩放就位、轻浮动与按钮高光
   -------------------------------------------------------------------------- */
@keyframes p-reveal-in {
  from {
    opacity: 0;
    transform: translate3d(var(--p-x, 0px), var(--p-y, 26px), 0) scale(var(--p-scale, 1));
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes p-intro {
  from { opacity: 0; transform: translate3d(0, .42em, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes p-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes p-map {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes p-sheen {
  0% { opacity: 0; transform: translate3d(-180%, 0, 0) skewX(-18deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(320%, 0, 0) skewX(-18deg); }
}

@media (prefers-reduced-motion: no-preference) {
  /* 滚动浮现：只对首屏以下的元素启用，避免首屏闪烁。
     用 animation 而不是 transition：类名在首帧后加上时不会先“淡出”一下。 */
  .p-reveal {
    --p-x: 0px;
    --p-y: 26px;
    --p-scale: 1;
    opacity: 0;
    transform: translate3d(var(--p-x), var(--p-y), 0) scale(var(--p-scale));
  }

  .p-reveal.is-in {
    opacity: 1;
    transform: none;
    animation: p-reveal-in 1s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: var(--p-delay, 0ms);
  }

  /* 图文左右轻微错位，形成版面的呼吸感；
     只在桌面端横向位移，窄屏保持纯纵向，避免动画期间出现横向滚动 */
  @media (min-width: 901px) {
    .p-reveal--left { --p-x: -18px; --p-y: 18px; }
    .p-reveal--right { --p-x: 18px; --p-y: 18px; }
  }

  /* 重点图片从略大的比例回落，显得稳 */
  .p-reveal--img {
    --p-y: 26px;
    --p-scale: 1.035;
    transform-origin: 50% 56%;
  }

  /* 统一原有 data-reveal 元素的时长，和新增动效保持同一节奏 */
  .has-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity .85s cubic-bezier(.22, .61, .36, 1),
      transform 1s cubic-bezier(.16, 1, .3, 1);
  }

  .has-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* 首屏文案逐行入场 */
  .tide-tag,
  .tide-copy h1 span,
  .tide-lead,
  .tide-actions,
  .b-eyebrow,
  .b-hero h1,
  .b-hero__lead,
  .b-hero__actions,
  .b-hero__figure,
  .store-banner .overline,
  .store-banner h1,
  .store-banner p,
  .page-head .crumb,
  .page-head h1,
  .page-head .lead,
  .contact-hero h1,
  .contact-hero .lead,
  .contact-hero .booking-steps li,
  .contact-hero .qr-card {
    animation: p-intro 1s cubic-bezier(.16, 1, .3, 1) backwards;
  }

  .tide-tag { animation-delay: .05s; }
  .tide-copy h1 span:first-child { animation-delay: .12s; }
  .tide-copy h1 span + span { animation-delay: .22s; }
  .tide-lead { animation-delay: .34s; }
  .tide-actions { animation-delay: .44s; }

  .b-eyebrow { animation-delay: .05s; }
  .b-hero h1 { animation-delay: .12s; }
  .b-hero__figure { animation-delay: .2s; }
  .b-hero__lead { animation-delay: .3s; }
  .b-hero__actions { animation-delay: .4s; }

  .store-banner .overline { animation-delay: .05s; }
  .store-banner h1 { animation-delay: .12s; }
  .store-banner p { animation-delay: .28s; }

  .page-head .crumb { animation-delay: .05s; }
  .page-head h1 { animation-delay: .1s; }
  .page-head .lead { animation-delay: .24s; }

  .contact-hero h1 { animation-delay: .08s; }
  .contact-hero .lead { animation-delay: .2s; }
  .contact-hero .booking-steps li:nth-child(1) { animation-delay: .28s; }
  .contact-hero .booking-steps li:nth-child(2) { animation-delay: .36s; }
  .contact-hero .booking-steps li:nth-child(3) { animation-delay: .44s; }
  .contact-hero .qr-card { animation-delay: .3s; }

  /* 吉祥物极慢上下浮动，给静态页面一点呼吸 */
  .mascot-portrait img {
    animation: p-float 7.5s ease-in-out infinite;
    will-change: transform;
  }

  .b-hero__figure img {
    animation: p-float 8.5s ease-in-out infinite .6s;
    will-change: transform;
  }

  /* 地图在进入页面时轻轻落位 */
  .network-atlas .atlas-viewport {
    animation: p-map 1.15s cubic-bezier(.16, 1, .3, 1) backwards;
  }
}

/* 实心按钮悬停时一道极淡的高光扫过 */
.btn--primary,
.btn--dark,
.b-btn-orange,
.tide-cta,
.g-book__cta,
.store-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn--primary::after,
.btn--dark::after,
.b-btn-orange::after,
.tide-cta::after,
.g-book__cta::after,
.store-link::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 42%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: translate3d(-180%, 0, 0) skewX(-18deg);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn--primary:hover::after,
  .btn--dark:hover::after,
  .b-btn-orange:hover::after,
  .tide-cta:hover::after,
  .g-book__cta:hover::after,
  .store-link:hover::after {
    animation: p-sheen .9s cubic-bezier(.4, 0, .2, 1);
  }
}

/* --------------------------------------------------------------------------
   8. 页脚：顶部品牌光带、链接下划线、窄屏列宽
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
}

/* 顶部渐隐品牌光带，让深色页脚与上一段自然衔接 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--yellow) 34%,
    rgba(255, 197, 46, 0) 82%);
  opacity: .9;
}

/* 页脚文字链接用“从左展开”的下划线，比整段变色更克制 */
.footer__list a {
  display: inline;
  padding-bottom: 1px;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .25s ease, color .2s ease;
}

/* 页脚小字略微提亮，长时间阅读与低亮度屏幕更清楚 */
.footer__bottom {
  color: rgba(255, 249, 240, .6);
}
.footer__qr__text span {
  color: rgba(255, 245, 230, .68);
}

@media (hover: hover) and (pointer: fine) {
  .footer__list a:hover {
    background-size: 100% 1px;
  }
}

/* 没有备案信息时的三列布局：给不支持 :has() 的浏览器兜底（JS 会给网格加类） */
@media (min-width: 901px) {
  .footer__grid.footer-grid--no-filing {
    grid-template-columns: 1.6fr 1fr 1.4fr;
  }
  .footer__grid.footer-grid--no-filing > :last-child {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   9. 响应式与触屏适配
   -------------------------------------------------------------------------- */
/* 移动端菜单：兼容 iOS 地址栏收放，并避开底部安全区 */
@media (max-width: 900px) {
  .nav {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }
  @supports (height: 100dvh) {
    .nav {
      bottom: auto;
      height: calc(100dvh - var(--header-h));
    }
  }

  /* 联系页：先读标题与步骤，再看小程序码，移动端阅读顺序更自然 */
  .contact-hero__qr {
    order: 0;
  }
}

/* 平板竖屏：四步流程改成 2×2，避免单列拉得过长 */
@media (min-width: 621px) and (max-width: 900px) {
  .g-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
  }
  .g-steps li {
    margin-top: 0 !important;
  }
  .g-steps figure img {
    height: clamp(200px, 31vw, 280px);
  }

  /* 页脚在平板上按「品牌一整行 + 导航/联系并排」排列 */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }
  .footer__grid > :first-child,
  .footer__grid > :last-child {
    grid-column: 1 / -1;
  }
}

/* 触屏设备：表单控件至少 16px，避免 iOS 聚焦时自动放大页面 */
@media (max-width: 900px), (pointer: coarse) {
  .field select,
  .field input,
  .map-toolbar select,
  .map-toolbar input,
  .media-form input[type="text"] {
    font-size: 16px;
  }

  .chip,
  .btn--sm {
    min-height: 44px;
  }
}

@media (pointer: coarse) {
  .nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .store-card__head {
    min-height: 64px;
  }
  .to-top {
    width: 48px;
    height: 48px;
  }
}

/* 小屏时给页脚底线让出回顶按钮的位置，避免版权文字被挡住 */
@media (max-width: 620px) {
  .footer__bottom {
    padding-right: 58px;
  }
}

/* 小屏兜底：减少左右留白、收紧超大标题，避免横向溢出 */
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .header__inner {
    gap: 8px;
  }
  .header__actions .btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  .tide-copy h1 {
    font-size: clamp(38px, 12.4vw, 52px);
  }
  .page-head h1,
  .contact-hero h1,
  .b-hero h1 {
    font-size: clamp(30px, 9vw, 38px);
  }
  .g-head h2,
  .section__head h2,
  .b-title,
  .b-end h2 {
    font-size: clamp(25px, 8vw, 32px);
  }
}

/* --------------------------------------------------------------------------
   10. 多场景兜底：减少动态、高对比、强制颜色、打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .to-top,
  .footer__list a {
    transition: none;
  }
  .g-stores figure:hover,
  .g-stores figure:hover img,
  .g-services li:hover,
  .service-card:hover,
  .prep-card:hover,
  .journal-print:hover,
  .b-rules__figure:hover,
  .b-flow__figure:hover,
  .b-grow__figure:hover {
    transform: none;
  }
}

/* 系统开启“增强对比度”时，加深正文与分隔线 */
@media (prefers-contrast: more) {
  :root {
    --ink-2: #2B1B0A;
    --muted: #46321E;
    --line: rgba(36, 22, 8, .26);
    --line-strong: rgba(36, 22, 8, .44);
  }
  .g-services span,
  .b-standards span,
  .b-note,
  .footer__list li {
    color: #F3FBFD;
  }
}

/* Windows 高对比 / 强制颜色模式：保留可见边框，不依赖背景色 */
@media (forced-colors: active) {
  .btn,
  .chip,
  .store-card,
  .service-card,
  .prep-card,
  .g-services li,
  .b-redo__item,
  .to-top {
    border: 1px solid ButtonText;
  }
  .g-services svg {
    color: CanvasText;
  }
  .to-top {
    background: Canvas;
    color: CanvasText;
  }
}

/* 打印：去掉导航和浮动按钮，深色区块转白底黑字 */
@media print {
  .site-header,
  .site-footer,
  .to-top,
  .skip,
  .header__actions,
  .menu-btn,
  .cta-band,
  .g-book,
  .atlas-zoom,
  .tide canvas {
    display: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .wrap {
    width: 100% !important;
    max-width: none !important;
    padding: 0 12mm;
  }

  /* 打印时强制显示所有滚动动效元素，避免下方内容空白 */
  .p-reveal,
  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn {
    display: none !important;
  }

  section {
    break-inside: avoid;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .g-water,
  .b-rules,
  .b-redo {
    background: #fff !important;
    color: #000 !important;
  }
  .g-water .g-head p,
  .g-water .g-services span,
  .b-standards span,
  .b-note,
  .b-redo__scope {
    color: #333 !important;
  }
  .g-services li,
  .b-redo__item {
    border: 1px solid #bbb !important;
    background: #fff !important;
  }
  .g-services svg,
  .b-index,
  .b-redo__item strong {
    color: #000 !important;
  }
}
