/* ============================================================================
   品牌 H5 样式 —— 亮色清爽风
   配色由 content.js 里的 theme 控制，改色号即可换肤，不需要动这个文件。
   ========================================================================== */

:root {
  /* 默认值与 content.js 的 theme 保持一致（app.js 启动时会被配置覆盖） */
  --primary: #FF206E;
  --primary-dark: #E01055;
  --primary-soft: #FFEAF0;
  --accent: #F0A868;
  --ink: #2B1B21;
  --ink-sub: #8A7A81;
  --ink-faint: #A7979E;      /* 更淡的正文色：用在大段说明文字上，读起来更轻 */
  --line: #F6E2E8;
  --bg: #FFFBFC;

  /* 品牌四色（取自 WAVE Logo：W绿 / A玫红 / V橙 / E蓝） */
  --brand-green: #21A573;
  --brand-pink: #FF206E;
  --brand-orange: #E8973F;
  --brand-blue: #2E74FF;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(22, 33, 28, .05);
  --shadow: 0 8px 28px rgba(22, 33, 28, .08);
  --shadow-lg: 0 18px 48px rgba(22, 33, 28, .12);
  --nav-h: 58px;
  --ease: cubic-bezier(.22, .7, .3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须永远生效（防止被 display:flex 等规则覆盖） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================ 顶部导航 ============================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav.solid {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 9px; }
/* 品牌角标隐藏时，导航链接居中 */
.nav-inner.no-brand { justify-content: center; }
.nav-logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  overflow: hidden;
  flex: none;
}
.nav-logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-name { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13.5px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink-sub);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
@media (max-width: 620px) { .nav-links { display: none; } }

/* ============================ 首屏（品牌块+服务胶囊+标语+按钮+图带+数据条 一屏看完） ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 10px) 0 18px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--primary-soft) 0%, #fff 55%, var(--primary-soft) 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.35) 0%, rgba(255,255,255,.9) 70%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 660px; padding: 0 20px; }
/* 首屏顶部品牌块：透明底动画 Logo + 品牌中文名，居中 */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(10px, 2vw, 16px);
}
.hero-brand-logo {
  width: clamp(92px, 16vw, 124px);
  height: auto;
  display: block;
}
.hero-brand-name {
  font-size: clamp(14px, 3.4vw, 17px);
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;   /* 平衡最后一个字的字距，视觉居中 */
  color: var(--ink);
}

.hero-badge {
  display: inline-block;
  font-size: clamp(11px, 2.9vw, 12.5px);
  letter-spacing: .2px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: clamp(10px, 2.4vw, 16px);
  box-shadow: var(--shadow-sm);
}
/* 首屏标语：拆成「小字引子 + 主句」两行。
   主句字号随屏宽下降得更快，保证手机上「We Make Flavors Visible.」也是完整一行、不折断 */
.hero-title {
  font-size: clamp(20px, 5.4vw, 44px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 clamp(10px, 2.4vw, 16px);
}
.hero-eyebrow {
  display: block;
  font-size: clamp(11px, .46em, 22px);   /* 约主句的一半，但手机上不小于 11px */
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6em;
}
.hero-main { display: block; }
/* 副标语：小一号 + 舒展字距，走优雅路线 */
.hero-sub {
  font-size: clamp(11px, 2.9vw, 13.5px);
  line-height: 1.95;
  letter-spacing: .14em;
  font-weight: 400;
  color: var(--ink-sub);
  margin: 0 auto 34px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(16px, 3.5vw, 28px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 122, 77, .26);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(31, 122, 77, .34); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-scroll {
  display: none;   /* 首屏已包含图带与数据条，向下箭头不再需要 */
}
.hero-scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--primary);
  animation: scrollDot 1.7s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(15px); }
  100% { opacity: 0; transform: translateY(19px); }
}

/* ============================ 数据条（紧凑卡，叠在图带下沿，融入首屏） ============================ */
.stats {
  position: relative;
  z-index: 2;
  margin: -30px auto 0;
  max-width: 760px;
  padding: 0 20px;
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(17px, 4vw, 24px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.stat-num small { font-size: .55em; font-weight: 600; margin-left: 1px; }
.stat-label { font-size: clamp(10.5px, 2.6vw, 12px); color: var(--ink-sub); margin-top: 3px; }

/* 数据条四色：对应 Logo 的 W绿 / A玫红 / V橙 / E蓝 */
.stat:nth-child(4n+1) .stat-num { color: var(--brand-green); }
.stat:nth-child(4n+2) .stat-num { color: var(--brand-pink); }
.stat:nth-child(4n+3) .stat-num { color: var(--brand-orange); }
.stat:nth-child(4n+4) .stat-num { color: var(--brand-blue); }

@media (max-width: 620px) {
  /* 三个卖点始终排成一行，不折成两行 */
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 15px 4px; }
  .stat-num { font-size: clamp(16px, 4.8vw, 24px); }
  .stat-num small { font-size: .48em; }
  .stat-label { font-size: 10.5px; line-height: 1.35; margin-top: 3px; }
}

/* ============================ 通用区块 ============================ */
.section { padding: clamp(56px, 11vw, 96px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(30px, 7vw, 50px); }
.sec-title {
  font-size: clamp(21px, 5.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  position: relative;
  display: inline-block;
}
.sec-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -9px;
  width: 30px; height: 3px;
  margin-left: -15px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.sec-sub { color: var(--ink-sub); font-size: 14px; margin: 20px 0 0; }
/* 英文全大写标题：字距拉开，视觉更透气 */
.sec-title.en { letter-spacing: 3px; font-size: clamp(19px, 5vw, 27px); }

/* ============================ 品牌介绍 ============================ */
.intro-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
}
/* 中文深色、英文浅色；英文再小一号。中英为一组，组间留更大空隙 */
.intro-text p { margin: 0 0 12px; line-height: 1.85; }
.intro-text p.zh { color: var(--ink); font-size: 14.5px; }
.intro-text p.en {
  color: var(--ink-sub);
  font-size: 12.8px;
  line-height: 1.78;
  letter-spacing: .2px;
  margin-bottom: 22px;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-fig { margin: 0; }
/* 团队成员：左右高低交错（奇数靠左、偶数靠右并上提重叠） */
.team { margin-top: clamp(30px, 6vw, 48px); }
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 88%;
}
/* 偶数条镜像：头像贴到最右，文字在头像左侧、右对齐 */
.team-member:nth-child(even) {
  margin-left: auto;
  margin-top: clamp(-34px, -4vw, -16px);
  flex-direction: row-reverse;
  text-align: right;
}
/* 第一位（SKY）与第二位之间收拢间距（此前 30-56px 过于空旷） */
.team-member:first-child { margin-bottom: clamp(8px, 2.5vw, 18px); }
.team-member:nth-child(2) { margin-top: 0; }
/* 头像：外层定尺寸方框，内层按原图宽高比铺开（叠加元素以画面百分比定位） */
.team-avatar {
  position: relative;
  width: clamp(92px, 24vw, 128px);
  height: clamp(92px, 24vw, 128px);   /* 与宽度一致 → 每人头像框等大 */
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.av-frame { position: relative; height: 100%; }
.av-img { width: 100%; height: 100%; display: block; }

/* ---------- 头像循环小动效 ---------- */
.av-fx { position: absolute; pointer-events: none; }
/* 眨眼（天空哥单眼 / Adam 双眼）：闭眼帧快速交叉淡化 */
.fx-blink, .fx-smile { inset: 0; width: 100%; height: 100%; opacity: 0; }
.fx-blink { animation: av-blink 4.6s infinite; }
.team-member:nth-child(4) .fx-blink { animation-delay: 2.3s; }  /* Adam 错开节奏 */
@keyframes av-blink {
  0%, 94% { opacity: 0; }
  95%, 97% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
/* Rafael：嘴角微微上扬（微笑帧缓慢浮现又收回） */
.fx-smile { animation: av-smile 7s ease-in-out infinite; }
@keyframes av-smile {
  0%, 20% { opacity: 0; }
  32%, 55% { opacity: 1; }
  68%, 100% { opacity: 0; }
}
/* 江咩咩：墨镜上的十字光影闪一下（小而利落，对准左镜片中心） */
.av-sparkle {
  position: absolute; left: 51%; top: 52%;
  width: 15%; height: 15%;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.2) rotate(0deg);
  animation: av-sparkle 4.2s ease-in-out infinite;
  animation-delay: 1.4s;
}
.av-sparkle::before, .av-sparkle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: #fff; border-radius: 999px;
  box-shadow: 0 0 2px rgba(255,255,255,.9);
}
.av-sparkle::before { width: 18%; height: 100%; transform: translate(-50%, -50%); }
.av-sparkle::after  { width: 100%; height: 18%; transform: translate(-50%, -50%); }
@keyframes av-sparkle {
  0%, 66% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0deg); }
  74%     { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(24deg); }
  82%     { opacity: .85; transform: translate(-50%,-50%) scale(.72) rotate(48deg); }
  90%,100%{ opacity: 0; transform: translate(-50%,-50%) scale(.25) rotate(70deg); }
}
/* Shane：耳环抖动（白色贴片绕吊点小幅摆动，底图镂空已填发色） */
.fx-earring {
  left: 39.06%; top: 49.41%; width: 4.69%; height: auto;
  transform-origin: 50% 0;
  animation: av-earring 5.6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes av-earring {
  0%, 88% { transform: rotate(0deg); }
  91% { transform: rotate(11deg); }
  94% { transform: rotate(-9deg); }
  97% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-blink, .fx-smile, .av-sparkle, .fx-earring { animation: none; }
}
.team-name { margin: 2px 0 6px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.team-roles {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-sub);
  white-space: pre-line;   /* roles 里的 \n 渲染成换行 */
}
/* 括号里的小批注：用系统自带的中文手写/行楷字族（零外部字体依赖），微微倾斜出手写感 */
.team-note {
  margin: 8px 0 0;
  font-family: "Hanzipen SC", "HanziPen SC", "Hannotate SC", "HanziPen TC",
               "Xingkai SC", "STXingkai", "Kaiti SC", "KaiTi", "楷体", "Songti SC", serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--primary);
  letter-spacing: .3px;
  transform: rotate(-.8deg);
  transform-origin: left center;
}
.team-member:nth-child(even) .team-note { transform-origin: right center; }
.intro-fig .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.intro-fig img { width: 100%; height: 100%; object-fit: cover; }
/* 方形 Logo 专用：完整显示不裁切，白底衬托 */
.intro-fig img.fit-contain {
  object-fit: contain;
  padding: 6%;
  background: #FFFFFF;
}
.intro-fig figcaption {
  font-size: 12.5px;
  color: var(--ink-sub);
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 760px) {
  .intro-body { grid-template-columns: 1fr; }
}

/* ============================ 核心优势 ============================ */
.adv { background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%); }

/* 扁平化：不用卡片框，两个一行 × 两行，中间用一条短分隔线区分 */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 0;
  max-width: 880px;
  margin: 0 auto;
}
.adv-item { text-align: center; padding: 4px clamp(16px, 3vw, 34px); }
/* 同一行的两条之间：一条竖线 */
.adv-item:nth-of-type(even) { border-left: 1px solid var(--line); }
.adv-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.adv-icon { font-size: 25px; line-height: 1; }
.adv-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}
.adv-item h3 {
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0;
}
/* 说明文字：更细、更淡、字号再小一点 */
.adv-item p {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-faint, #A7979E);
  margin: 0 auto;
  max-width: 30em;
}
/* 条目之间的分隔线：约 10 字宽，两端淡出 */
.adv-sep {
  display: none;
  grid-column: 1 / -1;
  width: 10em;
  height: 2px;
  margin: 30px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: .38;
}
/* 两列版式下只留两行之间的那一条 */
.adv-grid > .adv-sep:nth-of-type(2) { display: block; }

@media (max-width: 560px) {
  /* 手机：田字格 2×2（上面两个、下面两个），中缝十字分隔 */
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid > .adv-sep { display: none; }
  .adv-item { padding: 20px 12px 24px; }
  /* 上排两条底部横线 + 右列两条左侧竖线 → 十字 */
  .adv-item:nth-of-type(1), .adv-item:nth-of-type(2) { border-bottom: 1px solid var(--line); }
  .adv-item:nth-of-type(even) { border-left: 1px solid var(--line); }
  .adv-head { gap: 7px; margin-bottom: 8px; }
  .adv-icon { font-size: 20px; }
  .adv-icon img { width: 34px; height: 34px; }
  .adv-item h3 { font-size: 15px; letter-spacing: 0; }
  .adv-item p { font-size: 11px; line-height: 1.62; margin: 0; }
}

/* ============================ 案例筛选 ============================ */
.filter {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter button {
  height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-sub);
  background: #fff;
  border: 1px solid var(--line);
  transition: all .22s var(--ease);
}
.filter button:hover { color: var(--primary); border-color: var(--primary); }
.filter button.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 122, 77, .22);
}

/* 「按类型 / 按品牌」视图切换 */
.mode-switch {
  display: flex;
  width: max-content;
  gap: 0;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.mode-switch button {
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-sub);
  background: transparent;
  border: none;
  transition: all .22s var(--ease);
}
.mode-switch button.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* ============================ 案例网格 ============================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) {
  /* 手机：首屏三个按钮并排放下 */
  .hero-actions { gap: 8px; }
  .hero-actions .btn { height: 38px; padding: 0 15px; font-size: 12.5px; }
  /* 手机：一行两个案例卡，紧凑排版，详情点击后全屏看 */
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .case-card { border-radius: 14px; }
  .case-cover { aspect-ratio: 4 / 3; }
  .case-tag { left: 8px; top: 8px; font-size: 10.5px; padding: 3px 9px; }
  .case-media-count { right: 8px; bottom: 8px; font-size: 10.5px; padding: 2px 8px; }
  .case-body { padding: 11px 12px 13px; }
  .case-body h3 {
    font-size: 13.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .case-card .case-body p { display: none; }   /* 两列下摘要收进详情，卡片只留封面+标题 */
  .case-more { font-size: 12px; }
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.case-card:active { transform: scale(.985); }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-soft);
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-card:hover .case-cover img { transform: scale(1.05); }
.case-tag {
  position: absolute;
  left: 12px; top: 12px;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.case-media-count {
  position: absolute;
  right: 12px; bottom: 12px;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 33, 28, .58);
  color: #fff;
  backdrop-filter: blur(6px);
}
.case-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; line-height: 1.5; }
.case-body p {
  font-size: 13.5px;
  color: var(--ink-sub);
  margin: 0 0 16px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-more {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.case-more i { transition: transform .25s var(--ease); font-style: normal; }
.case-card:hover .case-more i { transform: translateX(4px); }

.empty { text-align: center; color: var(--ink-sub); font-size: 14px; padding: 40px 0; }

/* 占位块 */
.ph {
  width: 100%; height: 100%;
  min-height: 90px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--primary-soft) 0%, #fff 50%, var(--primary-soft) 100%);
  color: var(--ink-sub);
  font-size: 12.5px;
  letter-spacing: .3px;
  position: relative;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .55;
}
.ph span { position: relative; padding: 0 14px; text-align: center; }

/* ============================ 联系我们 ============================ */
.contact { background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%); }
.contact-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-ico {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid; place-items: center;
  font-size: 18px;
}
.contact-meta { flex: 1; min-width: 0; }
.contact-key { font-size: 12.5px; color: var(--ink-sub); line-height: 1.4; }
.contact-val { font-size: 15px; font-weight: 600; word-break: break-all; line-height: 1.5; }
.contact-copy {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 7px 14px;
  transition: background .2s, color .2s;
}
.contact-copy:hover { background: var(--primary); color: #fff; }
.contact-tip {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-sub);
  text-align: center;
}

/* ============================ 页脚 ============================ */
.footer {
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-text { margin: 0 0 5px; font-size: 13.5px; font-weight: 600; }
.footer-copy { margin: 0; font-size: 12px; color: var(--ink-sub); }
.footer-beian { margin: 6px 0 0; font-size: 12px; color: var(--ink-faint); }
.footer-beian a { color: inherit; text-decoration: none; }

/* ============================ 案例详情弹层 ============================ */
.modal {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(22, 33, 28, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .28s var(--ease);
}
@media (min-width: 760px) { .modal { align-items: center; padding: 40px 20px; } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  max-height: 92dvh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideUp .38s var(--ease);
  overflow: hidden;
}
@media (min-width: 760px) { .modal-panel { border-radius: 22px; max-height: 86vh; } }
/* 手机：点击案例后全屏预览（铺满整屏，无圆角） */
@media (max-width: 759px) {
  .modal-panel { max-width: 100%; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .modal-close { width: 38px; height: 38px; font-size: 24px; }
}
@keyframes slideUp { from { transform: translateY(6%); opacity: .6 } to { transform: none; opacity: 1 } }

.modal-close {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--primary); color: #fff; }

.modal-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-hero { position: relative; aspect-ratio: 16 / 9; background: var(--primary-soft); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
/* 长图封面（VI 规范长条等）：不设顶部主视觉，规范长图直接用 gallery 整栏宽高铺开 */
.modal-body.no-hero { padding-top: calc(28px + env(safe-area-inset-top)); }
/* 长图案例的卡片缩略图：取画面顶部，避免只看到中间空白 */
.case-cover img.fit-top { object-position: top center; }
.modal-body { padding: 24px clamp(18px, 4vw, 32px) calc(32px + env(safe-area-inset-bottom)); }
.modal-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.modal-body h2 {
  font-size: clamp(19px, 5vw, 24px);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.modal-detail {
  font-size: 14.5px;
  color: var(--ink-sub);
  line-height: 1.85;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* 画廊 */
.gallery { display: grid; gap: 14px; }
.g-item { border-radius: var(--radius-sm); overflow: hidden; background: var(--primary-soft); }
.g-item img { width: 100%; display: block; }
.g-cap {
  font-size: 12.5px;
  color: var(--ink-sub);
  padding: 9px 2px 0;
  text-align: center;
}
.g-item figure { margin: 0; }

/* 长图 + 可点区域（每个热点 = 一条原帖链接） */
.g-poster { position: relative; line-height: 0; }
.g-poster > img { width: 100%; display: block; }
.g-hit {
  position: absolute;
  display: block;
  border-radius: 10px;
  transition: background .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.g-hit:hover, .g-hit:focus-visible {
  background: rgba(255, 32, 110, .10);
  box-shadow: inset 0 0 0 2px rgba(255, 32, 110, .55);
  outline: none;
}
.g-poster-cap {
  font-size: 12.5px;
  color: var(--ink-sub);
  padding: 9px 2px 0;
  text-align: center;
}

/* 视频卡片 */
.g-video {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 9;
}
.g-video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.g-video .g-video-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2b3b34, #16211c);
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
}
.g-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
  transition: transform .25s var(--ease);
}
.g-play::after {
  content: '';
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 15px solid var(--primary);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.g-video:hover .g-play { transform: translate(-50%, -50%) scale(1.1); }
.g-video-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.g-video-hint {
  position: absolute;
  right: 10px; top: 10px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.45);
  border-radius: 999px;
  padding: 3px 10px;
  backdrop-filter: blur(4px);
}

/* ============================ 图片放大 ============================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 120;
  background: rgba(10, 15, 12, .93);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .22s var(--ease);
}
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }

/* ============================ 返回顶部 ============================ */
.totop {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 19px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }

/* ============================ 轻提示 ============================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 14px);
  z-index: 200;
  background: rgba(22, 33, 28, .9);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
  max-width: 80vw;
  text-align: center;
  white-space: pre-line;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ========== 作品氛围图带（融入首屏，横向滑动，矮条满宽） ========== */
.hero #gallery { position: relative; z-index: 1; width: 100%; }
.gallery { padding: 0 0 clamp(6px, 1.6vw, 14px); }
.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 20px 10px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto;
  height: min(30vw, 168px);
  width: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  scroll-snap-align: center;
  cursor: zoom-in;
  background: var(--primary-soft);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
@media (min-width: 760px) { .gallery-item { height: 196px; } }

/* ========== 案例里的「互动 H5」素材卡 ========== */
.g-h5 {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  aspect-ratio: 16 / 9;
}
.g-h5 img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.g-h5-badge {
  position: absolute; left: 10px; top: 10px;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--primary); color: #fff;
}
.g-h5-hint {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--primary-dark);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}
.g-h5-desc { font-size: 12.5px; color: var(--ink-sub); margin: 8px 2px 0; line-height: 1.6; }

/* ========== 案例占位条（ph: true，等素材填充） ========== */
.case-card.is-ph { cursor: default; border-style: dashed; border-color: var(--line); box-shadow: none; opacity: .78; }
.case-card.is-ph:hover { transform: none; box-shadow: none; }
.case-card.is-ph:hover .case-cover img { transform: none; }
.case-card.is-ph .case-cover { aspect-ratio: 16 / 10; }
.case-card.is-ph .ph {
  background: repeating-linear-gradient(135deg, rgba(255, 108, 139, .07) 0 10px, rgba(255, 108, 139, .015) 10px 20px);
  color: var(--ink-faint, #B4A6AD);
}
.case-card.is-ph .ph span { font-size: 13.5px; letter-spacing: .08em; }
.case-card.is-ph .case-tag { background: rgba(255, 255, 255, .92); color: var(--primary-dark); border: 1px solid var(--primary-soft); }
.case-card.is-ph .case-media-count { background: rgba(255, 255, 255, .92); color: var(--ink-sub); }
.case-card.is-ph .case-more { color: var(--ink-faint, #B4A6AD); font-size: 12.5px; }

/* ========== 案例二级分组长条（同一系列/客户的案例归在一起） ========== */
.case-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 -2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}
.case-group:first-child { margin-top: 0; }
.case-group span { position: relative; padding-left: 13px; }
.case-group span::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--primary);
}
.case-group i {
  flex: 1;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-faint, #B4A6AD);
  border-top: 1px solid var(--line);
  padding-top: 0;
  line-height: 1;
  padding-left: 8px;
  text-align: right;
}
