/* ============================================================
   摩音养生 MOYIN SPA — 前台样式
   品牌色：标准绿 #38A837 / 深绿 #227814 / 浅绿 #8FC931 / 棕 #A46036
   ============================================================ */
@font-face {
  font-family: 'HYXingKai';
  src: url('../fonts/汉仪行楷简.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'HYZhongHei';
  src: url('../fonts/汉仪中黑简.ttf') format('truetype');
  font-display: swap;
}
:root {
  --green: #38A837;
  --green-dark: #227814;
  --green-light: #8FC931;
  --brown: #A46036;
  --ink: #1c2b1c;
  --muted: #62705f;
  --bg: #f6faf4;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(34, 120, 20, .12);
  --radius: 18px;
  --font-hei: 'HYZhongHei', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'HYZhongHei', sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56,168,55,.15);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(34,120,20,.12); }
.nav-wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { flex: 0 0 auto; height: 54px; width: auto; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 15px; border-radius: 10px; font-size: 15.5px; font-weight: 600;
  color: var(--ink); transition: all .25s; cursor: pointer; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--green-dark); background: rgba(56,168,55,.1); }
/* 招商加盟：普通文字链接，点击新窗口打开 */
.nav-phone {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 6px 18px rgba(56,168,55,.35); white-space: nowrap;
}
.nav-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  min-width: 420px; max-width: 560px; max-height: 62vh; overflow-y: auto;
  padding: 10px; opacity: 0; visibility: hidden; transition: all .25s;
  display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 4px 8px;
}
/* 仅在真正支持悬停的桌面端生效：触屏点击后 :hover 会残留，否则会把面板左移半屏 */
@media (hover: hover) and (min-width: 769px) {
  .nav-drop:hover .drop-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}
/* 子栏目双行显示：第一行城市·商圈，第二行门店地址/简介 */
.drop-panel a {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-radius: 9px;
  font-size: 14.5px; line-height: 1.45; white-space: normal;
}
.drop-panel a b { font-weight: 700; }
.drop-panel a span {
  font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.drop-panel a:hover { background: rgba(56,168,55,.1); color: var(--green-dark); }
.drop-panel a:hover span { color: var(--green-dark); opacity: .8; }
/* 城市门店下拉：IP 定位查不到当地门店时的品牌兜底条 */
.city-fallback { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.city-fallback b { font-size: 14.5px; color: var(--green-dark); font-weight: 700; line-height: 1.45; }
.drop-panel .city-fallback a {
  display: block; padding: 0; border-radius: 0; font-size: 13px; line-height: 1.5; white-space: normal;
}
.city-fallback .cf-tel { color: var(--green-dark); font-weight: 700; }
.drop-panel .city-fallback a:hover { background: none; text-decoration: underline; }
.nav-phone-m { display: none; }   /* 移动端专用：移到抽屉菜单内 */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.6px; background: var(--green-dark); margin: 5px 0; border-radius: 3px; transition: .3s; }

/* ---------- HERO（品牌背景 + 右侧 LOGO/标语特效） ---------- */
.hero { position: relative; height: min(88vh, 780px); min-height: 520px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.png') center / cover no-repeat;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(18,58,14,.74) 0%, rgba(30,105,22,.42) 45%, rgba(34,120,20,.06) 80%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; color: #fff;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px; border-radius: 999px; font-size: 14px; letter-spacing: 2px; margin-bottom: 22px;
}
.hero h1 {
  font-family: 'HYXingKai', var(--font-hei); font-weight: 400;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.25; margin-bottom: 14px;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: #b8f06a; }
.hero p.sub { font-size: clamp(15px, 2vw, 19px); opacity: .94; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.hero-tags span {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px); padding: 8px 18px; border-radius: 999px; font-size: 14px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: all .3s; text-align: center;
}
.btn-solid { background: linear-gradient(135deg, var(--green-light), var(--green)); color: #fff; box-shadow: 0 10px 26px rgba(56,168,55,.45); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(56,168,55,.55); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
/* 右侧品牌区：LOGO 自上而下滑入，标语自下而上升入（上下对流展示），随后轻微悬浮 */
.hero-side {
  position: absolute; right: 9vw; top: 44%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  z-index: 3; pointer-events: none;
}
.hero-side .side-logo {
  width: clamp(150px, 15vw, 215px); height: auto;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.38));
  opacity: 0;
  animation: sideDown 1s cubic-bezier(.22,.8,.26,1) .35s forwards, sideFloat 5.5s ease-in-out 1.6s infinite;
}
.hero-side .side-slogan {
  width: clamp(280px, 31vw, 450px); height: auto;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.32));
  opacity: 0;
  animation: sideUp 1s cubic-bezier(.22,.8,.26,1) .7s forwards, sideFloat2 6.5s ease-in-out 2s infinite;
}
@keyframes sideDown { from { opacity: 0; transform: translateY(-72px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sideUp   { from { opacity: 0; transform: translateY(72px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes sideFloat  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes sideFloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; }
/* ---------- HERO 主标题：上下滑动渐变显示 ---------- */
.hero-title .line { display: block; }
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  animation: chUp .9s cubic-bezier(.22,.8,.26,1) forwards;
  animation-delay: calc(var(--i) * 50ms + .25s);
  will-change: transform, opacity, filter;
}
/* 第二行自上而下，形成上下对流的视觉 */
.hero-title .line:nth-child(2) .ch { animation-name: chDown; }
@keyframes chUp {
  from { opacity: 0; transform: translateY(78%); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes chDown {
  from { opacity: 0; transform: translateY(-78%); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* 关键词保持原始纯文字样式（颜色见 .hero h1 em），仅跟随整行上下滑动入场，无任何特效 */
/* 副标题：按语义分段，左右交替滑动淡入 */
.hero p.sub .seg {
  display: inline-block;
  opacity: 0;
  animation: segIn .85s cubic-bezier(.22,.8,.26,1) forwards;
  animation-delay: calc(var(--i) * 110ms + 1.05s);
}
.hero p.sub .seg.dir-l { --tx: -56px; }
.hero p.sub .seg.dir-r { --tx: 56px; }
@keyframes segIn {
  from { opacity: 0; transform: translateX(var(--tx, -48px)); filter: blur(6px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* 标签：一个一个渐显 */
.hero-tags span {
  opacity: 0;
  animation: tagIn .7s cubic-bezier(.22,.8,.26,1) forwards;
}
.hero-tags span:nth-child(1) { animation-delay: 1.95s; }
.hero-tags span:nth-child(2) { animation-delay: 2.05s; }
.hero-tags span:nth-child(3) { animation-delay: 2.15s; }
.hero-tags span:nth-child(4) { animation-delay: 2.25s; }
.hero-tags span:nth-child(5) { animation-delay: 2.35s; }
.hero-tags span:nth-child(6) { animation-delay: 2.45s; }
@keyframes tagIn {
  from { opacity: 0; transform: translateY(16px) scale(.93); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* 其余首屏元素淡入（JS 未执行时也能看到内容） */
.hero-kicker, .hero-btns {
  animation: heroFade .9s cubic-bezier(.2,.75,.3,1) both;
}
.hero-kicker { animation-delay: .05s; }
.hero-btns { animation-delay: 2.55s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 标语胶囊内的吉祥物图标 ---------- */
.hero-kicker .kicker-mascot {
  width: 26px; height: 26px; object-fit: contain; flex: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.28));
  animation: kickerBob 3.4s ease-in-out infinite;
}
@keyframes kickerBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-3px) rotate(4deg); }
}

/* ---------- 区块 ---------- */
section.block { padding: 84px 0; }
.block-head { text-align: center; margin-bottom: 52px; }
.block-head .kicker {
  color: var(--green); font-weight: 700; letter-spacing: 4px; font-size: 14px; text-transform: uppercase;
}
.block-head h2 {
  font-family: 'HYXingKai', var(--font-hei); font-weight: 400;
  font-size: clamp(28px, 4vw, 44px); margin: 8px 0 10px;
}
.block-head h2 b { color: var(--green-dark); font-weight: 400; }
.block-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.underline { width: 64px; height: 4px; background: linear-gradient(90deg, var(--green-light), var(--green)); border-radius: 4px; margin: 16px auto 0; }

/* 优势 */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv {
  background: var(--card); border-radius: var(--radius); padding: 34px 26px; text-align: center;
  box-shadow: 0 8px 26px rgba(34,120,20,.08); border: 1px solid rgba(56,168,55,.08);
  transition: all .35s;
}
.adv:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(56,168,55,.3); }
.adv .ico {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; font-size: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(143,201,49,.2), rgba(56,168,55,.16));
}
.adv h3 { font-size: 18.5px; margin-bottom: 8px; color: var(--green-dark); }
.adv p { font-size: 14px; color: var(--muted); }

/* 服务 */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  box-shadow: 0 8px 26px rgba(34,120,20,.09); transition: all .35s; height: 100%;
  display: flex; flex-direction: column;
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-media { height: 210px; background: linear-gradient(135deg, var(--green), var(--green-dark)); display: grid; place-items: center; font-size: 62px; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc-media img { transform: scale(1.07); }
.svc-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 20px; color: var(--green-dark); margin-bottom: 8px; }
.svc-body p { font-size: 14px; color: var(--muted); flex: 1; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.svc-price { color: var(--brown); font-weight: 800; font-size: 18px; }
.svc-more { color: var(--green); font-weight: 600; font-size: 14px; }

/* 门店实景 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery a { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.08); }

/* 文章卡片 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 26px rgba(34,120,20,.08); transition: all .35s; display: flex; flex-direction: column;
}
.news:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.news-cover { height: 180px; background: linear-gradient(135deg, rgba(143,201,49,.5), rgba(56,168,55,.6)); display: grid; place-items: center; font-size: 48px; color: #fff; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12.5px; color: var(--green); font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.news-body h3 { font-size: 17.5px; line-height: 1.5; margin-bottom: 8px; }
.news-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.news-more { margin-top: 14px; color: var(--green); font-weight: 600; font-size: 14px; }
/* 列表底部：时间居左、阅读全文居右 */
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.news-foot .news-date { margin-bottom: 0; }
.news-foot .news-more { margin-top: 0; }

/* ———————— 关于我们 子栏目：卡片网格入口（每行3个） ———————— */
.sub-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sub-col { background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.sub-col:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(34,120,20,.14); }
.sub-col-ico { font-size: 42px; margin-bottom: 10px; }
.sub-col h3 { color: var(--green-dark); font-size: 20px; margin-bottom: 8px; }
.sub-col p { color: var(--muted); font-size: 14px; }

/* 子栏目图集：瀑布流（每行3个） */
.about-sub-banner { background-size: cover; background-position: center; }
.sub-gallery { columns: 3; column-gap: 18px; }
.sub-gal-item { break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.sub-gal-item img { width: 100%; display: block; }
/* 瀑布流里的视频：先按 16:9 占位，避免加载时页面跳动 */
.sub-gal-item video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.sub-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* 城市商圈 */
.city-band { background: linear-gradient(150deg, #eef7e8, #f8fcf4); }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

/* 城市商圈门店：一排无缝滚动（内容复制两份，轨道平移 -50% 首尾相接） */
.city-marquee {
  position: relative; overflow: hidden; padding: 8px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cm-track {
  display: flex; width: max-content;
  animation: cm-scroll 48s linear infinite;
  will-change: transform;
}
.city-marquee:hover .cm-track,
.city-marquee:focus-within .cm-track { animation-play-state: paused; }
.cm-group { display: flex; gap: 20px; padding-right: 20px; }
.cm-card { flex: 0 0 auto; width: 300px; }
@keyframes cm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.city-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  border-left: 5px solid var(--green); box-shadow: 0 8px 24px rgba(34,120,20,.08);
  transition: all .3s; display: block;
}
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-left-color: var(--green-light); }
.city-card .path { font-size: 12.5px; color: var(--green-light); font-family: monospace; }
.city-card h3 { font-size: 19px; color: var(--green-dark); margin: 6px 0; }
.city-card p { font-size: 13.5px; color: var(--muted); }

/* 联络我们：门店检索（城市 / 商圈 / 小区） */
.store-finder { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 14px; margin: 4px 0 26px; }
.sf-box { position: relative; flex: 1 1 300px; max-width: 460px; }
.sf-box .sf-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .55; pointer-events: none; }
.sf-input {
  width: 100%; padding: 13px 18px 13px 44px; border: 1.5px solid #e1ead9; border-radius: 999px;
  font-size: 15px; line-height: 1.4; background: #fbfdf9; color: #2f3b2f; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sf-input::placeholder { color: #9aa89a; }
.sf-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,168,55,.14); }
.sf-tip { margin: 0; font-size: 15px; color: #3d4a3d; }
.sf-tip a { color: var(--green-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.sf-tip a:hover { text-decoration: underline; }
.sf-empty { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 768px) {
  .store-finder { gap: 12px; }
  .sf-box { flex-basis: 100%; max-width: none; }
}

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green) 60%, var(--green-light));
  color: #fff; text-align: center; padding: 70px 0; position: relative; overflow: hidden;
}
.cta-band h2 { font-family: 'HYXingKai', var(--font-hei); font-weight: 400; font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.cta-band p { opacity: .92; margin-bottom: 28px; }
.cta-band .btn { background: #fff; color: var(--green-dark); }

/* 页内横幅（专题页 BANNER 可调用主站 banner —— 需求第2条） */
.page-banner {
  /* 内页 BANNER 加高，让横幅图片的主体内容能显示出来（不再是窄窄一条） */
  position: relative; height: 440px; display: grid; place-items: center;
  background-size: cover; background-position: center; color: #fff; text-align: center;
}
/* 蒙版改为中性深色（去掉绿色渐变），图片更清晰，文字靠 text-shadow 保证可读 */
.page-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.40)); }
.page-banner .pb-in { position: relative; z-index: 2; }
.page-banner h1 { font-family: 'HYXingKai', var(--font-hei); font-weight: 400; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: 1px; text-shadow: 0 3px 18px rgba(0,0,0,.42); }
.page-banner .crumb { margin-top: 10px; font-size: 14px; opacity: .9; }
.page-banner .crumb a { color: #b8f06a; }
.page-banner .pb-intro { margin-top: 14px; font-size: 15px; opacity: .94; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.page-banner .pb-in { position: relative; z-index: 3; }
/* 卡片关键词标签（城市商圈页活动/知识库） */
.news-kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.news-kw span {
  font-size: 11.5px; padding: 3px 10px; border-radius: 20px;
  background: #eef7e8; color: var(--green-dark); border: 1px solid #dcefd4;
}

/* ———————— BANNER 轮播（首页品牌轮播 + 内页 BANNER 自动切换） ———————— */
.slider {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #14300f;
}
.slider-track { position: absolute; inset: 0; }
.slider .slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  /* 切换更快：淡入 .55s、缓慢推镜 3.2s */
  transition: opacity .55s ease, transform 3.2s ease;
}
.slider .slide.is-on { opacity: 1; visibility: visible; transform: scale(1); }

/* 首页品牌轮播（图文卡片）—— 完全无蒙版，图片原色显示 */
.slider-home { height: 400px; }
.slider-home .slide-text { position: absolute; inset: 0; }
.slider-home .st {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px); max-width: 720px; color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .6s ease .15s, transform .6s ease .15s;
}
.slider-home .st.is-on { opacity: 1; visibility: visible; transform: none; }
.slider-home .st h2 {
  font-family: 'HYXingKai', var(--font-hei); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 40px); text-shadow: 0 4px 22px rgba(0, 0, 0, .45);
}
.slider-home .st p { margin-top: 12px; font-size: 15.5px; opacity: .95; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.slider-home .st .btn-st {
  margin-top: 22px; align-self: flex-start;
}
.slider-home .st:empty { display: none; }

/* 内页 BANNER 轮播（作为 page-banner 的背景层） */
.page-banner .slider { position: absolute; inset: 0; border-radius: 0; background: #14300f; }
/* 内页 BANNER 文案层：主标题 + 副标题（居中显示） */
.page-banner .slide-text { position: absolute; inset: 0; z-index: 3; }
.page-banner .st {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 24px; color: #fff; opacity: 0; visibility: hidden;
}
.page-banner .st.is-on { opacity: 1; visibility: visible; }
.page-banner .st h2 {
  font-family: 'HYXingKai', var(--font-hei); font-weight: 400;
  font-size: clamp(28px, 4.4vw, 50px); line-height: 1.25; letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.page-banner .st p {
  margin-top: 16px; font-size: clamp(14px, 1.7vw, 20px); opacity: .96;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.page-banner .st .btn-st { margin-top: 22px; }

/* 飞入特效：从画面外以大幅度飞进，带轻微回弹，视觉冲击更强 */
@keyframes pbFlyMain {
  0%   { opacity: 0; transform: translate3d(-160%, 0, 0) scale(.82) skewX(-12deg); }
  55%  { opacity: 1; transform: translate3d(7%, 0, 0)   scale(1.04) skewX(3deg); }
  78%  { opacity: 1; transform: translate3d(-3%, 0, 0)  scale(.99)  skewX(-1deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0)    scale(1)    skewX(0); }
}
@keyframes pbFlySub {
  0%   { opacity: 0; transform: translate3d(150%, 0, 0) scale(.86) skewX(10deg); }
  60%  { opacity: 1; transform: translate3d(-5%, 0, 0)  scale(1.03) skewX(-2deg); }
  82%  { opacity: 1; transform: translate3d(2%, 0, 0)   scale(.99)  skewX(1deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0)    scale(1)    skewX(0); }
}
/* 每次切到该张时重新播放（.is-on 切换即重触发动画） */
.page-banner .st.is-on h2 { animation: pbFlyMain 1s cubic-bezier(.16,1,.3,1) both; }
.page-banner .st.is-on p  { animation: pbFlySub  1s cubic-bezier(.16,1,.3,1) .15s both; }
.page-banner .st.is-on .btn-st { animation: pbFlySub .9s cubic-bezier(.16,1,.3,1) .3s both; }
/* 单图内页：主标题 / 副标题同样飞入 */
.page-banner .pb-in h1 { animation: pbFlyMain 1s cubic-bezier(.16,1,.3,1) both; }
.page-banner .pb-in .pb-sub { animation: pbFlySub 1s cubic-bezier(.16,1,.3,1) .15s both; }
.page-banner .pb-sub {
  margin-top: 14px; font-size: clamp(14px, 1.7vw, 20px); opacity: .96;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.page-banner .slider .slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.40));
}

/* 轮播控件 */
.sl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1;
  backdrop-filter: blur(4px); transition: .25s;
}
.sl-arrow:hover { background: var(--green); transform: translateY(-50%) scale(1.06); }
.sl-prev { left: 20px; }
.sl-next { right: 20px; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 6; display: flex; gap: 9px; justify-content: center; }
.sl-dots button {
  width: 11px; height: 11px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: .28s;
}
.sl-dots button.on { width: 28px; border-radius: 7px; background: #b8f06a; }

/* 内容排版 */
.rich { background: #fff; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(34,120,20,.08); padding: clamp(24px, 5vw, 56px); max-width: 900px; margin: 0 auto; }
.rich h2, .rich h3 { color: var(--green-dark); margin: 26px 0 12px; }
.rich p, .rich li { color: #3d4a3d; font-size: 15.5px; }
.rich ul { padding-left: 22px; margin: 10px 0; }
.article-meta { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.article-meta b { color: var(--green); }
.rich img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.rich a { color: var(--green-dark); text-decoration: underline; }
.rich hr { border: 0; border-top: 1px solid #e3efdd; margin: 26px 0; }

/* 城市商圈页：门店地址 / 预约电话 */
.store-info {
  margin-top: 20px; display: grid; gap: 10px;
  background: #fff; border: 1px solid #e3efdd; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(34,120,20,.07);
}
.store-info .si-row { display: flex; gap: 12px; align-items: flex-start; }
.store-info .si-ico { font-size: 18px; line-height: 1.5; }
.store-info b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.store-info p { margin: 2px 0 0; font-size: 15px; color: #2f3a2f; font-weight: 600; line-height: 1.6; }
/* 门店信息卡右侧：会员权益二维码 */
.store-info.has-qr { position: relative; padding-right: 162px; }
.store-info .store-qr {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 128px; height: 128px; object-fit: cover; border-radius: 10px;
  border: 1px solid #e3efdd; box-shadow: 0 4px 12px rgba(34,120,20,.08);
}
@media (max-width: 760px) {
  .store-info.has-qr { padding-right: 18px; }
  .store-info .store-qr { position: static; transform: none; display: block; width: 112px; height: 112px; margin: 6px auto 0; }
}

/* 详情页头图 */
.art-hero { max-width: 900px; margin: 0 auto 34px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.art-hero img { width: 100%; max-height: 420px; object-fit: cover; }

/* 列表筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-bar a {
  padding: 9px 20px; border-radius: 999px; background: #fff; border: 1px solid rgba(56,168,55,.25);
  font-size: 14px; font-weight: 600; color: var(--green-dark); transition: all .25s;
}
.filter-bar a:hover, .filter-bar a.on { background: var(--green); color: #fff; border-color: var(--green); }

/* 关于我们页特色 */
.about-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.about-cols img { border-radius: var(--radius); box-shadow: var(--shadow); }
/* 城市门店页右侧会员权益图：缩小并居中 */
.about-cols img.city-hyk { max-width: 320px; width: 100%; justify-self: center; }
.feat-list li { list-style: none; padding: 14px 0 14px 40px; position: relative; border-bottom: 1px dashed rgba(56,168,55,.2); font-size: 15.5px; }
.feat-list li::before {
  content: '✔'; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(56,168,55,.14); color: var(--green-dark); display: grid; place-items: center; font-size: 14px;
}

/* 联络页 */
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 46px; }
.contact-card { flex: 1 1 260px; max-width: 340px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 34px 26px; text-align: center; box-shadow: 0 8px 26px rgba(34,120,20,.08); }
.contact-card .ico { font-size: 36px; margin-bottom: 12px; }
.contact-card h3 { color: var(--green-dark); margin-bottom: 6px; }
.qr-tip { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* 页脚 */
.site-footer { background: #14290f; color: #cfe3c6; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding: 62px 0 40px; }
/* 页脚品牌区：LOGO 与标语（缓解疲劳 · 放松身心 / Relax your body...）居中显示 */
.foot-brand { text-align: center; }
.foot-brand .foot-logo { display: block; margin: 0 auto 14px; }
.foot-logo { height: 58px; margin-bottom: 14px; }
.foot-slogan { font-family: 'HYXingKai', var(--font-hei); font-size: 20px; color: #b8f06a; }
.foot-slogan span { font-family: Arial, sans-serif; font-size: 12px; color: #9dba90; letter-spacing: 1px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a, .site-footer p { display: block; font-size: 13.8px; color: #cfe3c6; padding: 4px 0; opacity: .92; }
.site-footer a:hover { color: #b8f06a; }
.foot-cta {
  display: inline-block !important; margin-top: 12px; background: var(--green); color: #fff !important;
  padding: 10px 24px !important; border-radius: 999px; font-weight: 700;
}
/* 招商加盟：页脚普通文字链接，点击新窗口打开 */
/* 版权行：居中显示，且「© 年份 名称 · ICP」保持一行不折行；收窄上下留白，避免版权块过大 */
.foot-bottom { border-top: 1px solid rgba(255,255,255,.09); text-align: center; padding: 11px 0; font-size: 12px; color: #8ba881; }
.foot-bottom p { white-space: nowrap; }
/* 页脚「城市商圈门店」：所有门店横向排在同一行 */
.foot-cities a { display: inline-block; margin: 0 18px 6px 0; }
/* 版权行 ICP 备案号：外链工信部备案查询。
   注意：上面 .site-footer a 是 display:block，会让备案号自己另起一行，
   这里必须改回 inline，否则「© 2026 摩音养生SPA · 粤ICP备…」会被拆成两行 */
.foot-bottom .icp-link {
  display: inline; color: inherit; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3);
}
.foot-bottom .icp-link:hover { color: #b8f06a; text-decoration-color: #b8f06a; }

/* 仅供搜索引擎/读屏识别的隐藏标题（内页 BANNER 换成主副标题后保留 H1 语义） */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 滚动浮现 */
.reveal { opacity: 0; transform: translateY(36px); transition: all .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 移动端自适应 ---------- */
@media (max-width: 992px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; }
  .about-cols img.city-hyk { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .sub-cols { grid-template-columns: 1fr; }
  .sub-gallery { columns: 2; }
  .contact-card { flex-basis: 100%; max-width: 420px; }
  .hero-side { right: 6vw; }
  .page-banner { height: 360px; }
}
@media (max-width: 768px) {
  /* 安卓兼容：顶栏 backdrop-filter 会成为 fixed 抽屉的包含块，导致抽屉锚点错位跑出屏幕 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  /* 防止任何超宽元素（如滚动轨道）引起页面横向平移，把 fixed 抽屉"甩"出屏幕 */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .nav {
    position: fixed; top: 0; right: 0; left: auto;
    width: min(280px, 86vw); height: 100vh; height: 100dvh; z-index: 200;
    background: #fff; flex-direction: column; align-items: stretch; padding: 84px 22px 30px; gap: 6px;
    box-shadow: -12px 0 40px rgba(0,0,0,.15);
    /* 用 transform 进出场：不依赖 right 偏移，任何浏览器都不会跑出屏幕 */
    transform: translateX(110%); transition: transform .35s;
    visibility: hidden; transition: transform .35s, visibility 0s .35s;
    /* 菜单项较多时可纵向滚动，避免城市门店列表被裁掉；横向溢出一律裁切 */
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .35s; }
  .nav-link { display: block; padding: 13px 16px; font-size: 16px; }
  /* 移动端：隐藏右侧电话按钮，改在抽屉菜单底部显示 */
  .nav-phone-d { display: none; }
  .nav-phone-m {
    display: block; text-align: center; margin-top: 14px; font-size: 15px;
    padding: 12px 16px; white-space: normal;
  }
  .nav-toggle { display: block; margin-left: auto; z-index: 210; }
  /* 移动端：LOGO 等比缩放防变形（只限最大值，不锁死单边尺寸） */
  .nav-wrap { height: 62px; gap: 10px; }
  .brand { flex: 0 0 auto; max-width: 48vw; }
  .brand-logo { height: auto; width: auto; max-height: 40px; max-width: 48vw; }
  /* 页脚：隐藏栏目导航 / 城市商圈门店 / 联络我们 / 立即预约体验 */
  .foot-hide-sm { display: none; }
  /* 通用：移动端隐藏元素（如商圈页 CTA 文案） */
  .hide-sm { display: none !important; }
  /* 手机端版权行：整行不折行，并留足窄屏空间 */
  .foot-bottom { font-size: 12px; padding: 16px 0; }
  .foot-bottom p { white-space: nowrap; letter-spacing: 0; }
  .cm-card { width: 250px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  /* 移动端：城市门店改为点击展开（默认收起，展开后可滚动，避免门店被裁切） */
  .nav-drop-toggle {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none;
  }
  .nav-drop-toggle::after { content: '＋'; font-weight: 700; color: var(--green); font-size: 17px; }
  .nav-drop.open .nav-drop-toggle::after { content: '－'; }
  /* 移动端面板：纵向平铺、不透明白底（防止透出页面内容）、宽度锁死在抽屉内 */
  .drop-panel {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: #fff; min-width: 0; max-width: none; max-height: none; overflow: hidden;
    display: none; padding: 0; margin: 2px 0 0; width: 100%; box-sizing: border-box;
  }
  /* 触屏点击后 :hover 残留，必须显式抵消桌面端的 translateX(-50%)，否则面板会左移出抽屉 */
  .nav-drop:hover .drop-panel { display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-drop.open .drop-panel { display: block; transform: none; }
  .nav-drop.open:hover .drop-panel { display: block; transform: none; }
  .drop-panel a {
    display: block; position: relative; box-sizing: border-box; width: 100%;
    padding: 10px 14px 10px 26px; border-radius: 9px;
    font-size: 15px; line-height: 1.45; text-align: left;
  }
  /* 只显示门店标题，不再显示第二行地址 */
  .drop-panel a span { display: none; }
  .drop-panel a b { display: block; font-weight: 700; line-height: 1.4; }
  .drop-panel a:hover { background: rgba(56,168,55,.1); color: var(--green-dark); }
  .svc-grid, .news-grid, .adv-grid { grid-template-columns: 1fr; }
  .hero { height: 92vh; }
  /* 移动端：HERO 内容居中，隐藏「立即预约」按钮（保留「浏览服务项目」） */
  .hero-inner { align-items: center; text-align: center; }
  .hero h1, .hero p.sub { text-align: center; }
  .hero-tags { justify-content: center; margin: 20px 0 26px; }
  .hero-btns { justify-content: center; }
  .hero-btns .btn-solid { display: none; }
  .hero-btns .btn { width: auto; min-width: 210px; }
  /* 移动端：LOGO/标语居中置顶，内容下移 */
  .hero-side {
    left: 50%; right: auto; top: 56px; transform: translateX(-50%);
    gap: 9px;
  }
  .hero-side .side-logo { width: 76px; }
  .hero-side .side-slogan { width: 212px; }
  .hero-inner { padding-top: 228px; justify-content: flex-start; }
  .hero-kicker { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 10px; }
  /* 手机端标题缩小，并保证「沉浸式 摩音养生SPA」整行不断行 */
  .hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .hero-title .line { white-space: nowrap; }
  .hero-kicker { font-size: 12.5px; padding: 6px 13px; letter-spacing: 1px; }
  .hero-kicker .kicker-mascot { width: 22px; height: 22px; }
  section.block { padding: 58px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 30px; }
  .page-banner { height: 300px; }
  .slider-home { height: 250px; }
  .slider-home .st { padding: 0 22px; }
  .slider-home .st h2 { font-size: 21px; }
  .slider-home .st p { font-size: 13.5px; }
  .slider-home .st .btn-st { margin-top: 14px; }
  .sl-arrow { width: 36px; height: 36px; font-size: 21px; }
  .sl-prev { left: 10px; }
  .sl-next { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .slider .slide { transition: none; transform: none; }
  .slider-home .st { transition: none; transform: none; }
  /* 关闭自动滚动，改为可手动左右滑动浏览 */
  .cm-track { animation: none; }
  .city-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* 减弱动效模式下：所有首屏内容直接完整可见 */
  .hero-title .ch, .hero-title em .ch,
  .hero p.sub .seg, .hero-tags span,
  .hero-side .side-logo, .hero-side .side-slogan {
    opacity: 1; transform: none; filter: none;
  }
}

/* 超窄屏（≤400px）：版权行再缩一档，确保「© 2026 摩音养生SPA · 粤ICP备…」一行放下 */
@media (max-width: 400px) {
  .foot-bottom { font-size: 11px; }
  .foot-bottom .icp-link { text-decoration: none; }
  .sub-gallery { columns: 1; }
}

/* ———————— 二维码（联络我们 / 页脚品牌区） ———————— */
/* 品牌列：LOGO 与二维码居中（版权位置二维码居中） */
.foot-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.foot-brand .foot-logo { margin: 0 auto 16px; }
.foot-qr { margin-top: 2px; }
.foot-qr img {
  width: 120px; height: 120px; border-radius: 12px; background: #fff;
  padding: 8px; box-shadow: 0 8px 22px rgba(34,120,20,.16); object-fit: contain;
  border: 1px solid rgba(255,255,255,.12);
}
.qr-box {
  display: flex; justify-content: center; align-items: center;
  margin: 6px 0 2px;
}
.qr-box img {
  width: 150px; height: 150px; border-radius: 12px; background: #fff;
  padding: 8px; box-shadow: 0 8px 22px rgba(34,120,20,.14); object-fit: contain;
}

/* ———————— 城市门店：按 IP 定位高亮（.is-local / 查看其它门店） ———————— */
.drop-panel a { position: relative; }
.drop-panel a.is-local { background: rgba(56,168,55,.14); box-shadow: inset 0 0 0 1px rgba(56,168,55,.35); }
.drop-panel a .loc-tag {
  position: absolute; top: 6px; right: 8px; font-size: 11px; line-height: 1.4;
  color: #fff; background: var(--green); border-radius: 999px; padding: 1px 8px;
}
.drop-panel a.view-other {
  flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  background: rgba(56,168,55,.16); color: var(--green-dark); font-weight: 700;
}

/* ===== 知识库「置顶」徽标 ===== */
.news { position: relative; }
.top-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff9a3c, #ff6a00);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 106, 0, .3);
  vertical-align: middle;
}
.news .top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.art-detail-title { font-size: clamp(22px, 3.4vw, 32px); color: var(--green-dark); margin: 0 0 14px; line-height: 1.3; }
.art-detail-title .top-badge { margin-left: 8px; font-size: 13px; }

/* ===== 页脚城市门店：桌面端超过 4 条自动上下滚动 ===== */
.foot-cities .city-vscroll {
  max-height: 9.2em;
  overflow: hidden;
  position: relative;
}
.foot-cities .cv-track { display: flex; flex-direction: column; will-change: transform; }
.foot-cities .cv-item {
  display: block;
  padding: 3px 0;
  margin: 0;
  color: #cfe3c2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot-cities .cv-item:hover { color: #b8f06a; }
.foot-cities .city-vscroll.is-scroll {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.foot-cities .city-vscroll.is-scroll .cv-track { animation: cvScroll linear infinite; }
.foot-cities .city-vscroll:hover .cv-track { animation-play-state: paused; }
@keyframes cvScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
