/* ============ 基础 ============ */
:root {
  --red: #d82157;
  --red-dark: #a3163e;
  --pink: #e8537a;
  --gold: #f5b301;
  --ink: #231316;
  --ink-soft: #5d4a4e;
  --paper: #fff8f4;
  --cream: #fdf1e7;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(155, 12, 35, .12);
  --max: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 184px;
  /* 禁止移动端浏览器自动放大字号，避免打开页面时字体跳动 */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 显式基准字号，锁定级联，进一步防止字号被浏览器重排 */
  font-size: 16px;
  /* 兜底：裁剪任何意外横向溢出，保证页面严格等于视口宽度、不出现右侧空白/横向滚动
     用 hidden 而非 clip：hidden 全平台兼容（clip 需 Safari 16+），且作用在根元素 html 上不会破坏 position:sticky 吸顶 */
  overflow-x: hidden;
  /* 禁止横向橡皮筋回弹露出底色，进一步杜绝拖动时右侧/边缘出现白色空白 */
  overscroll-behavior-x: none;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
del { opacity: .55; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
.center { text-align: center; margin-top: 40px; }

.section { padding: 45px 0px 45px 0; }
.section-alt { background: var(--cream); }
.section-dark {
  background: var(--red);
  color: #fff;
}
.section-dark .sec-head p { color: rgba(255, 255, 255, .72); }
#process {
  background: var(--red);
}
/* 加盟优势区块：纯白背景，区别于相邻暖白底色 */
#why { background: #fff; }
/* 关于芙蓉冒菜：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#about { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 加盟支持：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#support { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 加盟条件：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#conditions { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 店型展示：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#stores { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 签约现场：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#cases { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 常见问题：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#faq { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 媒体关注与加盟口碑：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#news { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 企业10大实力：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#strength { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
/* 店型预算：由 #fdf1e7 暖橙白向纯白渐变过渡（自上而下） */
#models { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .04em;
}
.sec-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.sec-head p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, .35);
}
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-md { padding: 11px 26px; font-size: 15px; box-shadow: 0 4px 12px rgba(200, 16, 46, .26); }
.btn-block { width: 100%; display: block; }
/* 首屏（.hero-actions）按钮保留加粗；其余区块/表单按钮文字改为常规字重 */
.center .btn { font-weight: 400; }
.lead-form .btn { font-weight: 400; }

/* ============ 头部 ============ */
/* 吸顶头部有「两种状态」，由 js/main.js 按滚动位置切换 .is-scrolled：
   · 默认（页面在顶部）→ 白底 + 红色栏目文字 + logo_r.png（深色版）
   · 滚动后          → 品牌红底 + 白色栏目文字 + logo.png（浅色版）
   颜色统一加 transition，滚动时是平滑过渡而不是硬切。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
/* 滚动后：恢复原来的品牌红底 */
.site-header.is-scrolled {
  background: var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
/* 展示框宽高比取 3.36，与 logo 实际尺寸 2150×641（3.35）吻合 ——
   原来的 165×52 是 3.17，object-fit:contain 会上下各留约 1.4px 空白。 */
.logo img { display: block; height: 65px; object-fit: contain; }
/* 两套 logo：默认显示深色版 logo_r.png（配白底），滚动后换成 logo.png（配红底）。
   两张都写在 HTML 里由 CSS 切换 src 之外的显示，避免 JS 换 src 造成的闪一下。 */
.logo .logo-scrolled { display: none; }
.site-header.is-scrolled .logo .logo-default { display: none; }
.site-header.is-scrolled .logo .logo-scrolled { display: block; }
.nav { display: flex; flex: 1; justify-content: center; gap: 28px; font-size: 16px; font-weight: 600; }
.nav a { position: relative; padding: 6px 0; color: #000; transition: color .28s ease; }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  /* 宽度直接固定为文字宽度（.nav a 无横向 padding，100% 即文字实宽），
     展开/收起改用 transform: scaleX 来做。
     不能靠动画 width：width 只能从 left 端单向增长，效果是「左→右」；
     scaleX 配 transform-origin:center 才是「从中间向两边延伸」。 */
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
/* hover 时展开到 scaleX(1)：以中心为原点，同时向左右两侧延伸。
   宽度保留 100% 而不是 calc(100% - 14px)：.nav a 只有纵向 padding（6px 0），
   没有横向 padding，100% 就等于栏目文字的实际宽度。
   实测 7 个栏目：链接框宽 64.0、文字实宽 64.0，两者本就相等；
   原来的 -14px 会让下划线比文字整整短 14px，左右对不齐。 */
.nav a:hover::after { transform: scaleX(1); }
.nav a:hover{color: var(--red); }
/* 滚动到对应板块时，栏目下显示与 hover 同款的下划线（红色） */
.nav a.active { color: var(--red); }
.nav a.active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav a.active { color: #fff; }
.site-header.is-scrolled .nav a { color: #fff; }
.site-header.is-scrolled .nav a::after { background: rgba(255, 255, 255, .95); }
.header-cta { display: flex; align-items: center; gap: 16px; }
/* 白底时按钮必须反色成红底白字，否则白底上放白按钮等于看不见 */
.header-cta .btn-solid { background: var(--red); color: #fff; padding: 4px 10px; font-size: 12px; font-weight: 400; transition: background .28s ease, color .28s ease; }
.header-cta .btn-solid:hover { background: var(--red-dark); }
.site-header.is-scrolled .header-cta .btn-solid { background: #fff; color: var(--red); }
.site-header.is-scrolled .header-cta .btn-solid:hover { background: #ffeef3; }
.menu-toggle { display: none; color: var(--red); transition: color .28s ease; }
.site-header.is-scrolled .menu-toggle { color: #fff; }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .80) 0%, rgba(0, 0, 0, .80) 15%, rgba(0, 0, 0, .25) 65%, rgba(24, 7, 11, .22) 70%),
    url("../images/hero-bg.jpg") center / cover no-repeat;
  color: #fff;
  padding: 197px 0 240px;
}
/* 首屏背景自动轮播：第二张背景图与静态底图交叉淡入淡出 */
.hero-slide {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .80) 0%, rgba(0, 0, 0, .80) 15%, rgba(0, 0, 0, .25) 65%, rgba(24, 7, 11, .22) 70%),
    url("../images/hero-bg-2.jpg") center / cover no-repeat;
  animation: hero-fade 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-fade {
  0%, 42% { opacity: 0; }
  48%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}
.hero-copy {
  max-width: 760px;
  margin-top: -35px;
}
.hero-tag {
  display: inline-block;
  background: rgba(200, 16, 46, .22);
  border: 1px solid rgba(200, 16, 46, .5);
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: .08em;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.3;
  letter-spacing: .02em;
  color: #fff;
}
/* 首行主关键词强制不换行（移动端避免折行跳动） */
.hero h1 .h1-top { white-space: nowrap; }
.hero h1 em {
  font-style: normal;
  font-size: .52em;
  color: #fff;
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}
.hero-sub { margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 17px; }
.hero-sub strong { color: var(--red); font-size: 1.3em; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.hero-points li {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
}
.hero-points strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--red);
}
.hero-points span { font-size: 13px; line-height: 1.2; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* 表单卡片 */
.lead-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--red);
}
.lead-card h2, .lead-card h3 { font-size: 21px; text-align: center; }
.lead-card h2, .lead-card h3 { color: var(--red); }
.lead-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.lead-list {
  margin: 14px 0 18px;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 2px;
}
.lead-list li {
  font-size: 14px;
  padding: 3px 0;
}
.lead-list li::before { content: "✓ "; color: var(--red); font-weight: 700; }

.lead-form label { display: block; margin-bottom: 12px; }
.lead-form label span { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink-soft); }
.lead-form label span i { color: var(--red); font-style: normal; margin-left: 2px; }
.lead-form input, .lead-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5d3cf;
  border-radius: 8px;
  font-size: 16px; /* 16px：避免 iOS Safari 聚焦 input 时自动放大整页 */
  background: #fffdfa;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.lead-form input:focus, .lead-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
.lead-form input.invalid { border-color: var(--red); background: #fff3f4; }
/* 蜜罐字段 .hp-field 已连同 HTML 里的 <input name="website"> 一起移除：
   它被浏览器的智能填表自动填充后会让表单静默无法提交（见 js/main.js 注释），
   因此这里无需再保留对应的隐藏样式。 */
.lead-note { font-size: 12px; color: #a08b8f; margin-top: 10px; line-height: 1.6; text-align: center;}
.form-msg { font-size: 14px; margin-top: 8px; text-align: center; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: #0d8a4f; }
.form-msg.err { color: var(--red); }

/* ============ 信任条 ============ */
.trustbar {
  /* 仅背景半透 45%，透出下方首屏背景图 */
  background: rgba(0, 0, 0, .35);
  color: #fff;
  padding: 17px 0;
  /* 上移浮到首屏背景图之上（继续上移 10px） */
  position: relative;
  z-index: 2;
  margin-top: -95px;
  /* 轻微文字投影，保证半透底上的白字数字依然清晰（文字本身保持 100% 不透明） */
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
  position: relative;
}
.trustbar-grid > div { position: relative; }
.trustbar-grid > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 34px;
  background: rgba(255, 255, 255, .32);
}
.trustbar strong { font-size: 26px; display: block; line-height: 1.2; }
.trustbar span { font-size: 13px; opacity: .85; }

/* ============ 优势卡片 ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow);
  border: 1px solid #f1e6e2;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* 悬停时顶部一条粉色边，沿圆角弯成弧，使左右两个顶部转角处呈现粉色弧形 */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  border: 5px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, var(--pink) 20%, var(--pink) 80%, transparent 100%) 1;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(155, 12, 35, .14);
  border-color: rgba(200, 16, 46, .25);
}
.card:hover::before { opacity: 1; }
/* 图标与标题同一行（图标在左、标题在右、垂直居中）；
   标题下方的描述与标签是卡片直接子元素，左缘与图标左缘对齐。 */
.why-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.why-head h3 { margin: 0; }   /* 标题与图标同行，去掉默认上下外边距 */
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;          /* 同一行里不被压缩 */
  color: var(--red);       /* 仅图标线条为红色（currentColor），无底无圈 */
  position: relative;      /* 仅让图标相对同行位置上移 3px，不影响标题与描述 */
  top: -3px;
  transition: transform .3s ease;
}
.why-icon svg { width: 34px; height: 34px; display: block; }
/* 鼠标悬停时图标轻微放大+旋转（老内核忽略也无妨） */
.card:hover .why-icon {
  transform: scale(1.1) rotate(-4deg);
}
/* 说明：图标仅红色线条、无圆圈无背景；与标题同一行，描述在图标正下方、左缘对齐。 */
.why-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--red);
  background: var(--cream);
  border: 1px solid #f3d9d0;
  border-radius: 999px;
}
.card h3 { margin: 2px 0 10px; font-size: 18px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* #why 卡片：默认 1px 浅顶边（与实力卡一致，补齐上方边线、四周可见），
   hover 4px 红顶边，与全站卡片顶边效果统一；早期悬停粉色弧线已去掉 */
#why .card { border-top: 1px solid #f1e6e2; border-radius: 18px; }
#why .card::before { display: none; }
#why .why-head h3 { color: var(--ink); }
#why .card:hover { border-top: 4px solid var(--red); }

/* ============ 企业10大实力 ============ */
.en-sub {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 600;
  margin-top: 6px;
}
.strength-lead {
  max-width: 820px;
  margin: 16px auto 0;
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--red);
  border-left: 4px solid var(--red);
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.strength-grid li {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 15px 18px;
  box-shadow: var(--shadow);
  border: 1px solid #f1e6e2;
  border-top: 1px solid #f1e6e2;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.strength-grid li::before { display: none; }
.strength-grid li:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(155, 12, 35, .14);
  border-color: rgba(200, 16, 46, .25);
  border-top: 4px solid var(--red);
}
.st-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; }
.st-icon { flex: 0 0 auto; display: inline-flex; align-items: center; color: var(--red); }
.st-icon svg { width: 32px; height: 32px; display: block; }
.strength-grid h3 { font-size: 16.5px; color: var(--ink); line-height: 1.35; position: relative; top: 3px; }
.strength-grid p { font-size: 13px; color: var(--ink-soft); line-height: 1.75; }

/* ============ 支持网格 ============ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: sup;
}
.support-grid li {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 4px solid transparent;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s;
}
.support-grid li:hover { border-top: 4px solid var(--red); }
.support-grid .s-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.support-grid .s-icon { flex: 0 0 auto; display: inline-flex; align-items: center; color: var(--red); }
.support-grid .s-icon svg { width: 30px; height: 30px; display: block; }
.support-grid strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
}
.support-grid span { font-size: 13.5px; color: var(--ink-soft); }

/* ============ 店型展示 ============ */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.store-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.store-item img { width: 100%; height: 320px; object-fit: cover; object-position: center; }
.store-item figcaption {
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 3px solid var(--cream);
}

/* ============ 加盟条件 ============ */
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cond-grid li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid #f1e6e2;
  border-top: 1px solid #f1e6e2;
  border-radius: var(--radius); padding: 22px 20px 22px 18px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s;
}
.cond-grid li:hover { border-color: rgba(200, 16, 46, .25); border-top: 4px solid var(--red); }
.cond-num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff; font-weight: 800; font-size: 16px; line-height: 1;
  box-shadow: 0 4px 10px rgba(200, 16, 46, .25);
}
.cond-grid p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ============ 加盟流程 ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
.steps li {
  text-align: center;
  background: #fff;
  border: 1px solid #f1e6e2;
  border-radius: var(--radius);
  padding: 16px 12px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.steps li:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(120, 8, 26, .22);
  border-color: rgba(200, 16, 46, .35);
}

.steps strong {
  display: block; font-size: 17px; font-weight: 800;
  color: var(--red);
  margin-bottom: 4px;
}
.steps span {
  display: block; font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ============ 案例轮播 ============ */
/* touch-action: pan-y —— 横向手势留给 JS 做翻页，纵向仍走浏览器原生滚动，
   这样滑动案例图时不会把整页一起带走 */
.case-view { overflow: hidden; touch-action: pan-y; }
.case-track { display: flex; transition: transform .5s ease; }
.case-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
/* 案例卡片：已取消白底 / 阴影 / 描边，圆角由图片自身承担 */
.case-item {
  background: transparent;
  text-align: center;
}
/* 拖动时禁掉图片原生拖拽与长按选字，否则会盖住自己的翻页手势 */
.case-item img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  background: none;
  border-radius: var(--radius);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;   /* iOS 长按不要弹出图片菜单，否则会打断滑动 */
}
.case-item figcaption {
  padding: 10px 12px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
}
.case-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.case-dots button {
  width: 10px; height: 10px; padding: 0;
  border: none; border-radius: 999px;
  background: rgba(200, 16, 46, .3);
  cursor: pointer; transition: width .3s, background .3s;
  position: relative;
}
/* 视觉只有 10px，但可点区域扩到 28×28，手指才点得中 */
.case-dots button::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
}
.case-dots button.active { width: 26px; background: var(--red); }

/* 案例切换：左右箭头 + 滑动提示（手机端） */
.case-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.case-nav .case-dots { margin-top: 0; min-width: 0; }
/* 手机端放不下 14 个圆点，改用紧凑的「N / M」计数器 */
.case-count {
  display: none;
  min-width: 56px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.case-arrow {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid rgba(200, 16, 46, .28);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background .22s, border-color .22s, transform .22s;
}
.case-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.case-arrow.prev::before { transform: translate(-60%, -50%) rotate(-135deg); }
.case-arrow.next::before { transform: translate(-40%, -50%) rotate(45deg); }
.case-arrow:hover { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.case-arrow:hover::before { border-color: #fff; }
.case-hint {
  display: none;
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: opacity .4s;
}

/* ============ FAQ ============ */
.faq-list details {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.faq-list details:hover {
  box-shadow: 0 10px 26px rgba(120, 8, 26, .14);
  transform: translateY(-2px);
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 16.5px;
  list-style: none;
  position: relative;
  padding-right: 48px;
  color: var(--ink);
  /* 不要把 font-weight 放进 transition：展开时中文字重会在 250ms 内从 500 连续插值到 700，
     笔画粗细全程抖动，看上去就是「字间距跳了一下」。字重改为瞬时生效/不变化。 */
  transition: background .25s, color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .25s;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--ink-soft);
  transition: transform .3s, color .25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--red); }
.faq-a {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.faq-list summary:hover::before,
.faq-list details[open] summary::before { transform: scaleY(1); }
.faq-list details[open] summary {
  color: var(--red);
  /* 展开态强调改用描边而非加粗：加粗会改变字形渲染（部分设备连字宽一起变），
     描边只加粗笔画外观、不影响排版，展开瞬间零位移。
     不支持 -webkit-text-stroke 的浏览器退化为「不变粗 + 变红」，依然有明确状态区分 */
  -webkit-text-stroke: .3px currentColor;
}
/* 无 JS 时用 CSS 兜底动画；有 JS 时由 main.js 驱动真实高度展开，两者不叠加 */
:root:not(.faq-js) .faq-list details[open] .faq-a { animation: faqIn .35s ease; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 常见问题：默认只展示前 6 条，其余通过按钮展开 */
.faq-list > details:nth-of-type(n+7) { display: none; }
.faq-list.is-open > details:nth-of-type(n+7) { display: block; }
/* 所获荣誉：文字部分默认展示前 9 条，其余通过按钮展开 */
.honor-list > li:nth-of-type(n+10) { display: none; }
.honor-list.is-open > li:nth-of-type(n+10) { display: block; }
/* 展开 / 收起按钮：常见问题与所获荣誉共用一套样式 */
.faq-more,
.honor-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 4px auto 18px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--red);
  background: #fff;
  border: 1px solid rgba(226, 35, 74, .26);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.faq-more:hover,
.honor-more:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.faq-more-arrow,
.honor-more-arrow {
  width: 8px; height: 8px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s, border-color .25s;
}
.faq-more:hover .faq-more-arrow,
.faq-more.is-open:hover .faq-more-arrow,
.honor-more:hover .honor-more-arrow,
.honor-more.is-open:hover .honor-more-arrow { border-color: #fff; }
.faq-more.is-open .faq-more-arrow,
.honor-more.is-open .honor-more-arrow { transform: translateY(2px) rotate(225deg); }
/* 荣誉按钮的箭头偏上，单独加一点上边距压下来 */
.honor-more-arrow { margin-top: 6px; }
/* 按钮紧贴在最后一行荣誉卡片下方，间距太小，单独把上边距拉开 */
.honor-more { margin-top: 24px; }

/* ============ 底部转化 ============ */
.cta-final {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(245, 179, 1, .25), transparent 60%),
    linear-gradient(135deg, var(--red-dark), var(--red) 55%, #d63457);
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 420px;
  gap: 40px;
  align-items: center;
/* 图片已下载到本地 images/（原为 https://www.scfrsx.com/static/img/meibo-icon.png）。
   注意：本地 images/meibo-icon.png 曾是一个同名的孤儿文件，内容与远端那张完全不同，
   已用远端实际在用的那张覆盖，避免改成本地路径后视觉发生变化。 */
  background: url("../images/meibo-icon.png") 0 center / contain no-repeat;
}
.cta-copy { max-width: 440px; margin-left: auto; }
.cta-copy h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; -webkit-text-stroke: 6px var(--red); paint-order: stroke fill; }
.cta-copy h2 .hl { color: var(--gold); font-weight: 800; display: inline-flex; align-items: center; }
.cta-copy h2 .hl .hl-ico { width: 1.05em; height: 1.05em; margin-right: 7px; transform: translateY(2px); }
.cta-banner { display: block; width: 100%; margin-bottom: 12px; }
.cta-badge {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: #2a0d13; background: var(--gold);
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 179, 1, .35);
}
.cta-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.6px 7.2px;
}
.cta-list li { position: relative; padding-left: 22px; font-size: 15px; color: rgba(255, 255, 255, .92); -webkit-text-stroke: 6px var(--red); paint-order: stroke fill; }
.cta-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.cta-contact { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-tel {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px; padding: 10px 14px;
  text-decoration: none; color: #fff;
  transition: background .2s, transform .2s, border-color .2s;
}
.cta-tel:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); border-color: var(--gold); }
.cta-tel span { font-size: 12px; opacity: .82; }
.cta-tel b { font-size: 20px; font-weight: 800; letter-spacing: .03em; }
.cta-final .lead-card { border-top-color: var(--gold); }
.cta-final .lead-card h3 { color: var(--red); }

/* ============ 页脚 ============ */
.site-footer {
  background:#111;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 25px 0 35px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  align-items: start;
}
.footer-brand .logo { display: block; margin: 10px 0 0; }
.footer-brand .logo img { display: block; height: 65px; width: auto; opacity: .95; }
.footer-slogan { margin: 16px 0 0; line-height: 1.85; color: rgba(255, 255, 255, .6); font-size: 13px; }
.footer-col h4 { margin: 0 0 8px; font-size: 15px; color: #fff; font-weight: 700; }
.footer-col nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5px 16px; }
.footer-col nav a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.footer-col nav a:hover { color: #e64c75; }
.footer-col p { margin: 0 0 4.5px; color: rgba(255, 255, 255, .72); }
.footer-col p a { color: rgba(255, 255, 255, .9); }
.footer-col p a:hover { color: #e64c75; }
.footer-qr { display: block; width: 80px; height: auto; border-radius: 0; margin: 0; }
.footer-contact-row { display: flex; align-items: center; gap: 14px; }
.footer-contact-info { line-height: 1.7; }
.footer-company { color: #fff; font-weight: 700; margin: 0 0 20px; }
.footer-bottom { padding: 15px 0 15px; text-align: center; }
.footer-bottom p { margin: 6px 0; }
.footer-bottom a:hover { color: #e64c75; }
/* 底部「特别说明」：浅柠檬黄 #fff59d。
   页脚背景是 #111 近黑，这里取浅一档的柠檬黄（HSL 亮度 65% → 80%），
   比上一版的 #fff44f 更淡、不那么跳，同时保持柠檬黄的色相不偏琥珀。
   刻意不用已有的 --gold(#f5b301)，那个偏琥珀，不是柠檬黄。 */
.footer-bottom .disclaimer { color: #fff; }
.risk { color: rgba(255, 255, 255, 1); font-size: 12.5px; }
.friend-links a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.friend-links a:hover { color: var(--gold); }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 62px 0 30px; }
  .footer-brand .logo { margin: 6px 0 0; }
}
@media (max-width: 600px) {
  .footer-bottom .disclaimer,
  .footer-bottom .risk,
  .footer-bottom .friend-links { font-size: 11.5px; line-height: 1.7; }
}

/* ============ 移动端底栏 ============ */
.mobile-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: none;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-bar.hidden {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}
.bar-phone {
  background: var(--pink);
  color: #fff;
  padding: 13px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  position: relative;
}
.bar-phone::after {
  content: "";
  position: absolute;
  right: 0; top: 9px; bottom: 9px;
  width: 1px;
  background: rgba(255, 255, 255, .5);
}
.bar-cta {
  background: var(--pink);
  color: #fff;
  padding: 13px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* ============ 回到顶部 ============ */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 28px;
  z-index: 220;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(216, 33, 87, .32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* 默认收起：visibility 一起收，避免隐藏状态还挡住右下角的点击 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
/* 与 .show 同权重但写在后面，按下时覆盖位移 */
.back-to-top:active { transform: translateY(2px) scale(.94); }
.back-to-top svg { display: block; }

/* 防 iOS 横竖屏/字体自动调整导致布局跳动 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ============ 动效 ============ */
.reveal { opacity: 0; transition: opacity .5s ease; }
.reveal.in { opacity: 1; }

/* ============ 品牌简介 ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.about-text h2::after {
  content: ""; display: block; width: 56px; height: 4px;
  margin-top: 12px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.about-text p { color: var(--ink-soft); margin-bottom: 12px; font-size: 15px; }
.about-text p.brand-lead { color: var(--red); }
.about-text .ideal {
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 14px 18px; border-radius: 8px;
  color: var(--ink);
}
.about-figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============ 店型与预算 ============ */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border-top: 4px solid var(--red);
}
.model-head { padding: 20px 22px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.model-head h3 { font-size: 20px; }
.model-tags { margin-top: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.model-tags span {
  font-size: 12px; background: rgba(200, 16, 46, .08);
  color: var(--red); padding: 3px 10px; border-radius: 999px;
}
.model-photo { width: 100%; height: auto; border-radius: 0; margin: 4px 0 0; display: block; box-shadow: 0 4px 14px rgba(155, 12, 35, .1); }
.model-budget {
  text-align: center; padding: 12px 14px;
  background: linear-gradient(120deg, var(--red) 0%, #e8355f 48%, var(--pink) 100%);
  color: #fff;
}
.model-budget b { font-size: 24px; line-height: 1; }
.model-budget small { display: block; font-size: 12px; opacity: .9; line-height: 1.1; margin-top: 1px; }
.model-spec { padding: 16px 22px 22px; }
.model-spec li {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px dashed #efd9d4;
}
.model-spec li span:first-child { color: var(--ink-soft); }
.model-spec li span:last-child { font-weight: 700; }
.model-tip { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 22px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============ 百年历程 ============ */
.tl-list { position: relative; max-width: 780px; margin: 0 auto; }
.tl-item {
  position: relative;
  display: flex; align-items: stretch; gap: 0; padding: 0; margin-bottom: 13px;
  transition: transform .25s;
}
.tl-item:last-child { margin-bottom: 0; }
/* 叠加顺序：越靠上的卡片层级越高，覆盖在下方卡片之上 */
.tl-item:nth-child(1) { z-index: 5; }
.tl-item:nth-child(2) { z-index: 4; }
.tl-item:nth-child(3) { z-index: 3; }
.tl-item:nth-child(4) { z-index: 2; }
.tl-item:nth-child(5) { z-index: 1; }
.tl-item:hover { transform: translateY(-3px); z-index: 9; }
.tl-year {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--red), var(--pink));
  border-radius: 12px 0 0 12px;
  padding: 16px 18px 16px 7px;
  margin: 1px 0;
  position: relative; z-index: 1;
}
.tl-year span {
  writing-mode: vertical-rl; text-orientation: upright;
  letter-spacing: 0; font-weight: 700; font-size: 14px; color: #fff;
  white-space: nowrap;
}
.tl-card {
  flex: 1;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, .35));
  border: 1px solid transparent;
  border-radius: 14px;
  background-clip: padding-box;
  margin-left: -14px;
  position: relative; z-index: 2;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(155, 12, 35, .08);
  transition: box-shadow .25s;
}
.tl-item:hover .tl-card { box-shadow: 0 12px 26px rgba(155, 12, 35, .16); }
.tl-item h3 { font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.tl-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* 百年非遗历史：模块最外层背景图（企业使命展厅照片，与底部对齐） */
#timeline {
  background:
    linear-gradient(180deg, rgba(17, 10, 12, .82), rgba(17, 10, 12, .55) 45%, rgba(17, 10, 12, .38)),
    url("../images/heritage-128.png") center bottom / cover no-repeat;
}
#timeline .sec-head h2 { color: #fff; }
#timeline .sec-head p { color: rgba(255, 255, 255, .85); }

/* ============ 荣誉资质 ============ */
#honors { background: linear-gradient(180deg, #fdf1e7 0%, #fff 100%); }
.honor-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.honor-gallery figure {
  background: #fff; border-radius: var(--radius);
  border: 1px solid #f1e6e2;
  overflow: hidden; box-shadow: var(--shadow);
}
.honor-gallery img {
  display: block;
  height: 220px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain; background: #fff; padding: 10px 10px 4px;
  transition: transform .3s;
}
.honor-gallery figure:hover img { transform: scale(1.04); }
.honor-gallery figcaption {
  padding: 6px 16px 12px; font-size: 14px; font-weight: 700;
  color: var(--red);
  text-align: center;
}
.honor-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.honor-list li {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px 12px;
  box-shadow: 0 4px 14px rgba(155, 12, 35, .07);
  border-left: 3px solid var(--red);
}
.honor-list strong { display: block; font-size: 14.5px; line-height: 1.55; }
.honor-list span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.marquee-clone { display: none; }

/* ============ 门店版图 ============ */
#map { position: relative; overflow: hidden; }
#map::after {
  content: ""; position: absolute; inset: 0;
  background: url("../images/world-map.png") no-repeat center center / cover;
  mix-blend-mode: lighten; opacity: .45;
  pointer-events: none;
}
#map .container { position: relative; z-index: 1; }
.map-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 14px auto 0; }
.map-tags span {
  background: #fff;
  border: 1px solid #f1e6e2;
  padding: 6px 16px; border-radius: 999px; font-size: 14px;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.map-tags span.abroad { border-color: var(--red); color: var(--red); }
.map-tags span:hover {
  background: #333; border-color: #333;
  color: #fff; transform: translateY(-2px);
}
.map-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 760px; margin: 26px auto 0; text-align: center;
}
.map-stats div {
  background: #fff;
  border: 1px solid #f1e6e2;
  border-radius: 14px;
  padding: 22px 12px;
  box-shadow: 0 10px 24px rgba(120, 8, 26, .22);
}
.map-stats div strong { display: block; font-size: 34px; color: var(--red); line-height: 1.1; }
.map-stats div span { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 6px; }

/* ============ 媒体口碑 ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
  display: flex; flex-direction: column; height: 100%;
  color: inherit; text-decoration: none;
  border-top: 4px solid transparent;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s;
}
.news-cat {
  align-self: flex-start; font-size: 12px;
  background: var(--cream); color: var(--red);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.news-card h3 { font-size: 16px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; flex: 1; }
.news-card .more { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--red); }
.news-card:hover { border-top: 4px solid var(--red); }

/* ============ 友情链接 ============ */
.friend-links { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 10px; }
.friend-links a { color: rgba(255, 255, 255, .7); }
.friend-links a:hover { color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 50px; height: 50px;
    margin-left: 0;
    background: rgba(255, 255, 255, .14);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background .2s;
  }
  .menu-toggle span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--red);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease, background .28s ease;
  }
  /* 滚动后头部变回红底，汉堡线条要跟着变白；反之白底时必须是红线，否则看不见 */
  .site-header.is-scrolled .menu-toggle span { background: #fff; }
  .menu-toggle:active { background: rgba(0, 0, 0, .06); }
  .site-header.is-scrolled .menu-toggle:active { background: rgba(255, 255, 255, .26); }
  /* 展开态：三横 → 叉叉。
     位移量必须等于「首/末条线中心到整体的距离」，否则叉叉画不成交叉：
       线高 2.5 + 间距 6 → 三条线总高 3×2.5 + 2×6 = 19.5，中线在 9.75，
       首条线中心在 1.25、末条在 18.25 → 各自偏离 ±8.5。
     所以放大线宽或间距时，这里的 8.5 必须跟着改（原来是 2/5/7）。 */
  .menu-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .header-cta { margin-left: auto; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 8px 16px 16px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a {
    position: relative;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid #f3e4e0;
  }
  .nav a:last-child { border-bottom: none; }
  /* ★ 手机端导航面板是白底（见上面 .nav 的 background: #fff），因此栏目文字必须恒为深色。
     上方 .site-header.is-scrolled .nav a 会把文字刷成白色 —— 那条是给桌面端
     「红底横排导航」用的，权重（3 个类）又高于本媒体查询里的 .nav a（1 个类），
     结果就是：滚到页面下方再展开汉堡菜单 → 白底白字，整个菜单什么都看不见。
     这里用同级选择器写在后面显式覆盖掉，下划线同理改回品牌红。 */
  .site-header.is-scrolled .nav a { color: var(--ink); }
  /* 小箭头同理必须还原成 none：箭头是用 border 画出来的（见下面 .nav a::after 的
     border-right / border-bottom），背景本来就是 none。上面第 147 行 .is-scrolled
     那条会把 ::after 背景刷成白色 —— 白方块落在白面板上所以一直没被发现，
     若不还原，箭头后面就会露出一个白色方块。 */
  .site-header.is-scrolled .nav a::after { background: none; }
  /* 栏目名称右侧的小箭头（置于条目最右侧，灰色） */
  .nav a::after {
    content: "";
    position: absolute;
    right: 14px; top: 50%;
    left: auto;
    width: 8px; height: 8px;
    background: none;
    border-right: 2.5px solid #a9a0a2;
    border-bottom: 2.5px solid #a9a0a2;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
  /* 必须把 transform 也写回来：外层 .nav a:hover::after 的 scaleX(1) 权重（2 个类）
     高于上面 .nav a::after（1 个类），hover 时会把箭头的
     translateY(-50%) rotate(-45deg) 覆盖掉 —— 箭头会跑位且不再旋转成尖角。 */
  .nav a:hover::after {
    width: 8px; height: 8px;
    transform: translateY(-50%) rotate(-45deg);
  }
  /* 移动端 .nav a::after 是小箭头（非下划线），active 时还原箭头，避免被拉成横条 */
  .nav a.active::after { transform: translateY(-50%) rotate(-45deg); }
}
@media (max-width: 960px) {
  .hero-copy { max-width: none; }
  .grid-4, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .case-slide { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-copy { max-width: none; margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .model-grid, .honor-gallery, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-list { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .trustbar-grid > div:not(:last-child)::after { display: none; }
  .strength-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 184px; }
  .container { padding: 0 16px; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: clamp(24px, 4.8vw, 34px); }
  .hero-points { grid-template-columns: repeat(2, 1fr); }
  .lead-card { padding: 26px 22px; }
  .steps li { padding: 14px 10px; }
  .map-tags { max-width: 100%; }
  .trustbar { margin-top: -40px; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .logo img {height: 50px; width: 142px; }
  .section { padding: 52px 0; }
  .hero {
    padding: 44px 0 52px;
    background: linear-gradient(135deg, var(--red-dark), #18070b);
  }
  .hero-slide { display: none; }
  .hero-points { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
  /* 手机端改为与桌面一致的半透明玻璃卡，让 hero 的深红渐变透出来。
     必须同时把文字转浅色：原来的 --red(#d82157) 数字压在这种低透明度白卡上，
     对比度只有约 1.26:1，会糊成一片；改白字后约 6:1，清晰且符合无障碍要求。
     backdrop-filter 加 -webkit- 前缀，iOS Safari 需要。 */
  .hero-points li {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .hero-points strong { color: #fff; }
  .hero-points span { color: rgba(255, 255, 255, .8); }
  .store-grid { grid-template-columns: 1fr; }
  .store-item img { height: 240px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .support-grid { grid-template-columns: 1fr; }
  .model-grid, .honor-gallery, .news-grid { grid-template-columns: 1fr; }
  .honor-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 14px 10px;
  }
  .honor-gallery::-webkit-scrollbar { display: none; }
  .honor-gallery figure { flex: 0 0 240px; }
  .honor-gallery img { height: 150px; padding: 6px 4px 2px; }
  .marquee-clone { display: block; }
  .honor-list { grid-template-columns: 1fr; }
  /* 手机端单列，9 条会长出一屏多，默认只展示前 6 条（与 js/main.js 的 visibleCount 保持一致） */
  .honor-list > li:nth-of-type(n+7) { display: none; }
  .honor-list.is-open > li:nth-of-type(n+7) { display: block; }
  .lead-list { grid-template-columns: 1fr; }
  .case-slide { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .strength-grid h3 { font-size: 15px; }   /* 手机端标题字号略小 */
  .cond-grid { grid-template-columns: 1fr; }
  .map-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: none; }
  .cta-grid { gap: 76px; }
  .cta-contact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-tel {
    padding: 8px 10px;
    background: rgba(0, 0, 0, .42);
    border: none;
    gap: 1px;
  }
  .cta-tel b { font-size: 17px; letter-spacing: .01em; line-height: 1.12; }
  .cta-tel span { font-size: 11px; line-height: 1.12; }
  .map-stats div { padding: 14px 6px; border-radius: 12px; }
  .map-stats div strong { font-size: 24px; }
  .map-stats div span { font-size: 11px; margin-top: 4px; }
  /* logo 放大到 47px 高后，原 min-height 60 减掉上下各 6px 内边距只剩 48px，
     logo 上下仅剩 0.5px 会顶到边 —— 容器加高到 66（内容 54，留 3.5px）。
     头部变高 6px，锚点跳转的 scroll-padding 同步 +6，否则点导航会盖住标题。 */
  html { scroll-padding-top: 138px; }
  .container { padding: 0 14px; }
  .header-inner { min-height: 66px; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero { padding: 40px 0 46px; }
  /* 标题首行是 nowrap，实测原字号只占容器宽度的 69%，还有余量；
     提到 ~78% 占用：+2px 左右，既明显又不至于顶满换行 */
  .hero h1 { font-size: clamp(15px, 4.95vw, 21px); margin-top: 14px; }
  .hero-tag { font-size: 12.5px; padding: 5px 12px; }
  .hero-sub { font-size: 15px; margin-top: 12px; }
  /* 小卡片：改纵向 flex，strong/span 成为 flex item，不再生成带 strut 的行盒，
     消除「li 继承 body 1.75 行高（28px）」撑出的那 15px 空白 —— 数字下方与卡片底部同时收紧 */
  .hero-points li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 10px 8px;
  }
  .hero-points strong { font-size: 19px; line-height: 1.05; }
  .hero-points span { font-size: 12px; line-height: 1.1; }
  .hero-actions { gap: 12px; margin-top: 22px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .trustbar { margin-top: -24px; padding: 14px 0; background: #2a0d13; }
  .trustbar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .trustbar strong { font-size: 18px; }
  .trustbar span { font-size: 10px; }
  .sec-head h2 { font-size: clamp(21px, 6.2vw, 26px); }
  .lead-card { padding: 22px 18px; border-radius: 14px; }
  .lead-card h2, .lead-card h3 { font-size: 19px; }
  .lead-form label { margin-bottom: 10px; }
  .lead-form input, .lead-form select { padding: 13px 14px; }
  .lead-list { padding: 10px 14px; }
  .steps li { padding: 11px 8px; }
  .steps strong { font-size: 15px; padding: 2px 6px 0; margin-bottom: 2px; }
  .steps span { font-size: 12px; padding: 0 6px 2px; line-height: 1.35; }
  .map-tags span { padding: 6px 12px; font-size: 13px; }
  .tl-card { padding: 14px; }
  .honor-gallery figcaption { padding: 4px 12px 10px; font-size: 13.5px; }
  .faq-list summary { padding: 15px 16px; font-size: 15px; }
  .faq-a { padding: 0 16px 14px; font-size: 14px; }
  .faq-more, .honor-more { width: 100%; padding: 13px 20px; font-size: 14px; }
  .news-card { padding: 18px 16px; }
  .case-nav { margin-top: 18px; }
  /* 手机端隐藏圆点、启用计数器，避免导航条比视口还宽 */
  .case-nav .case-dots { display: none; }
  .case-count { display: block; }
  .case-hint { display: block; }
  .case-hint.is-used { opacity: 0; }
  .case-arrow { width: 38px; height: 38px; }
  .mobile-bar { display: grid; }
  /* 手机端不显示回到顶部按钮（此处 @media 是 max-width:600px）。
     相等权重但写在后面，覆盖上面 .back-to-top 的 display:flex。
     JS 那边的显隐逻辑不用改：display:none 就够了，多余地 TOGGLE class 也无害。 */
  .back-to-top { display: none; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 110px; }
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bar { padding-bottom: env(safe-area-inset-bottom); }
    .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  }
}

/* ============ 品牌关键事实（GEO / AI 实体抽取） ============ */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin: 18px 0 4px;
  padding: 0;
}
.facts > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
  padding-bottom: 8px;
}
.facts dt { flex: 0 0 48px; color: var(--red); font-weight: 700; }
.facts dd { margin: 0; color: var(--ink); }

/* ============ 底部转化保障标签 ============ */
.cta-guarantee {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 0;
}
.cta-guarantee li {
  font-size: 13px;
  color: var(--red);
  background: rgba(226, 35, 74, .08);
  border: 1px solid rgba(226, 35, 74, .18);
  border-radius: 999px;
  padding: 6px 12px;
}
.cta-urgent {
  font-size: 14px;
  color: #7a3b2e;
  margin: 8px 0 0;
}

@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .logo img { height: 45px; }
  html { scroll-padding-top: 118px; }
  .container { padding: 0 12px; }
  .hero-points { grid-template-columns: 1fr; }
  .trustbar { padding: 12px 0; }
  .trustbar-grid { gap: 4px; }
  .trustbar strong { font-size: 16px; }
  .trustbar span { font-size: 9px; }
  .map-stats { gap: 6px; }
  .map-stats div { padding: 12px 4px; }
  .map-stats div strong { font-size: 21px; }
  .map-stats div span { font-size: 10.5px; }
  .map-tags { gap: 8px; }
  .lead-card { padding: 18px 14px; }
}

/* ============================================================
   动效系统 v2 —— 让页面"活"起来
   原则：只用 transform / opacity 做运动，避免触发重排；
        所有动效统一走 cubic-bezier(.22,.61,.36,1)；
        触摸设备不挂 :hover 态（避免点完一直"粘着"）；
        末尾统一在 prefers-reduced-motion 下全部降级为瞬时。
   ============================================================ */

/* ---------- 1. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--pink) 45%, var(--gold));
  z-index: 300;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 2. 滚动渐入（位移 + 淡入 + 轻微缩放，支持错峰） ----------
   用 animation 而非 transition：入场结束后由 JS 摘掉 .reveal，
   元素的 transform 交还给组件自身的 :hover 规则，悬停微交互不会被动画态压住 */
.reveal { opacity: 0; }
.reveal.in {
  animation: rv-in .62s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: var(--rv-d, 0s);
}
@keyframes rv-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); }
  to { opacity: 1; transform: none; }
}
/* 时间轴卡片：覆盖全局 rv-in，改为「自上而下」滑入（更贴合本模块的滚动方向感） */
.tl-list .reveal.in {
  animation: tl-drop .65s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: var(--rv-d, 0s);
}
@keyframes tl-drop {
  from { opacity: 0; transform: translate3d(0, -46px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------- 3. 首屏入场（页面加载即播一次） ---------- */
.hero .hero-tag,
.hero h1,
.hero-sub,
.hero-points,
.hero-actions {
  animation: rv-rise .72s cubic-bezier(.22,.61,.36,1) both;
}
.hero .hero-tag { animation-delay: .06s; }
.hero h1 { animation-delay: .14s; }
.hero-sub { animation-delay: .22s; }
.hero-points { animation-delay: .3s; }
.hero-actions { animation-delay: .38s; }
@keyframes rv-rise {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- 4. 区块标题装饰线：进入视口后从中间展开 ----------
   默认态（无 JS）不设 transform，保证老浏览器/无 JS 也能看到这条线 */
.reveal h2::after { transform: scaleX(0); }
.rv-done h2::after {
  animation: rv-line .62s cubic-bezier(.22,.61,.36,1) .1s both;
}
@keyframes rv-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- 5. 按钮：光泽扫过 + 按压回弹 ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}
.btn:hover::after { animation: btn-sheen .75s ease-out; }
@keyframes btn-sheen {
  from { transform: translateX(-170%) skewX(-18deg); }
  to { transform: translateX(360%) skewX(-18deg); }
}
.btn:active { transform: translateY(1px) scale(.985); }

/* ---------- 6. 卡片轻悬浮（仅指针设备，避免触摸端粘滞） ---------- */
.support-grid li,
.cond-grid li,
.model-card,
.news-card,
.map-stats div,
.store-item,
.tl-item {
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s;
}
@media (hover: hover) {
  .support-grid li:hover,
  .cond-grid li:hover,
  .model-card:hover,
  .news-card:hover,
  .map-stats div:hover,
  .store-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(120, 8, 26, .18);
  }
}

/* 图片缓慢推近 */
.store-item img,
.model-photo {
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
@media (hover: hover) {
  .store-item:hover img { transform: scale(1.05); }
  .model-card:hover .model-photo { transform: scale(1.04); }
}

/* ---------- 7. 数字/小卡片：悬停时数字微微放大 ---------- */
.hero-points strong,
.trustbar strong,
.map-stats strong {
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
@media (hover: hover) {
  .hero-points li:hover strong,
  .trustbar-grid > div:hover strong,
  .map-stats div:hover strong { transform: scale(1.08); }
}

/* ---------- 8. 底部转化区：缓慢呼吸的光晕 ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,.2), transparent 72%);
  pointer-events: none;
  animation: rv-breathe 7s ease-in-out infinite;
}
@keyframes rv-breathe {
  0%, 100% { opacity: .55; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(0, -10px, 0) scale(1.06); }
}

/* ---------- 9. 荣誉标签：依次轻微弹入 ---------- */
.map-tags span { transition: transform .28s cubic-bezier(.22,.61,.36,1), background .2s, border-color .2s, color .2s; }

/* ---------- 10. 无障碍：系统要求减少动效时全部瞬时 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal h2::after { transform: scaleX(1) !important; }
  .hero .hero-tag,
  .hero h1,
  .hero-sub,
  .hero-points,
  .hero-actions { animation: none !important; }
  .btn::after,
  .scroll-progress { display: none !important; }
  .cta-final::before { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
