/* ============ 设计变量：清新科技蓝青 ============ */
:root {
  --bg: #f5f8fb;
  --bg-2: #eaf0f7;
  --card: rgba(255, 255, 255, 0.82);
  --ink: #0b1526;
  --ink-2: #4a5a72;
  --ink-3: #8b98ac;
  --line: rgba(20, 50, 100, 0.09);
  --blue: #1677ff;
  --cyan: #13c2c2;
  --grad: linear-gradient(120deg, var(--blue), var(--cyan));
  --blue-soft: #e6f0ff;
  --cyan-soft: #ddf7f5;
  --hot: #ff4d2e;
  --hot-2: #ff8a00;
  --hot-grad: linear-gradient(120deg, var(--hot), var(--hot-2));
  --hot-soft: #fff0e8;
  --discount-orange: #ff8f42;
  /* 降价统一色：速览里的价格数字与箭头都用它，和涨跌无关的蓝色区分开。 */
  --drop: #ed8741;
  --drop-soft: rgba(237, 135, 65, 0.12);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --f-text: 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', sans-serif;
  --f-num:
    'DIN Alternate', 'Bahnschrift', 'DIN', 'Avenir Next Condensed', 'Helvetica Neue', sans-serif;
  --f-mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 15px/1.6 var(--f-text);
  background:
    radial-gradient(55vw 40vw at 100% 0%, rgba(22, 119, 255, 0.12), transparent 60%),
    radial-gradient(45vw 35vw at 0% 35%, rgba(19, 194, 194, 0.1), transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 点阵网格背景，越往下越淡 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 60, 120, 0.14) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%);
  mask: linear-gradient(180deg, #000, transparent 70%);
}
img {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ============ 顶部：品牌 + 站点导航 + 搜索 ============ */
.nav {
  /* 导航自带层叠上下文（入场动画会创建一层），下拉菜单要盖住首屏焦点图 */
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  animation: fade 0.8s var(--ease) both;
}
/* 站点导航：毛玻璃胶囊轨道，当前页为白色浮起胶囊 */
.site-nav {
  /* 自带层叠上下文：下拉菜单要盖住首屏焦点图，而导航本身带入场动画 */
  position: relative;
  z-index: 30;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px -24px rgba(20, 60, 140, 0.7);
  animation: fade 0.8s var(--ease) 0.05s both;
}
/* 一级入口与下拉触发器共用胶囊样式：触发器可能是 <a>（本身也是页面），也可能是 <button> */
.site-nav > a,
.nav-drop-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.25s,
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--spring);
}
.site-nav > a:hover,
.nav-drop:hover > .nav-drop-trigger,
.nav-drop.is-open > .nav-drop-trigger,
.nav-drop-trigger:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}
.site-nav > a:active,
.nav-drop-trigger:active {
  transform: scale(0.97);
}
.site-nav > a:focus-visible,
.nav-drop-trigger:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.55);
  outline-offset: 1px;
}
/* 当前页：白色浮起胶囊；下拉父项只在自身或某个子项命中当前页时整块点亮 */
.site-nav > a[aria-current='page'],
.nav-drop.is-active > .nav-drop-trigger {
  color: var(--blue);
  background: #fff;
  box-shadow:
    0 6px 16px -10px rgba(20, 60, 140, 0.55),
    inset 0 0 0 1px rgba(22, 119, 255, 0.18);
}
.site-nav > a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
}
.site-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.site-nav > a[aria-current='page'] svg {
  fill: currentColor;
  stroke: none;
  opacity: 1;
}
.site-nav-sep {
  flex: none;
  width: 1px;
  height: 14px;
  margin: 0 3px;
  background: var(--line);
}

/* ============ 下拉菜单 ============
   悬停、键盘聚焦与触摸（is-open 由 site.js 维护）三种方式都能展开。
   胶囊轨道没有 overflow 裁剪，菜单才能浮在页面之上。 */
.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
}
/* 折角箭头：展开时翻转，比一直朝下更像「菜单打开了」 */
.site-nav .nav-drop-chevron,
.site-nav .nav-drop-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.site-nav .nav-drop-chevron {
  width: 12px;
  height: 12px;
  margin-left: -2px;
  opacity: 0.5;
  transition:
    transform 0.3s var(--spring),
    opacity 0.2s;
}
.nav-drop:hover .nav-drop-chevron,
.nav-drop.is-open .nav-drop-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  min-width: 216px;
  max-width: min(320px, calc(100vw - 32px));
  /* 触发器和菜单之间留一段透明过渡区：鼠标斜着移过去不会掉出 hover */
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease),
    transform 0.24s var(--ease),
    visibility 0s linear 0.16s;
}
.nav-drop:hover > .nav-drop-menu,
.nav-drop:has(:focus-visible) > .nav-drop-menu,
.nav-drop.is-open > .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition:
    opacity 0.18s var(--ease),
    transform 0.24s var(--ease),
    visibility 0s;
}
/* 最右侧的下拉靠右对齐，否则菜单会伸出页面 */
.nav-drop:last-child > .nav-drop-menu {
  left: auto;
  right: 0;
  transform: translateY(6px);
}
.nav-drop:last-child:hover > .nav-drop-menu,
.nav-drop:last-child:has(:focus-visible) > .nav-drop-menu,
.nav-drop:last-child.is-open > .nav-drop-menu {
  transform: translateY(0);
}
.nav-drop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(20, 50, 100, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px -26px rgba(16, 46, 96, 0.5),
    0 2px 8px -4px rgba(16, 46, 96, 0.16);
}
/* 指向触发器的小尖角：与卡片同色同边框，看起来是一整块纸 */
.nav-drop-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-top: 1px solid rgba(20, 50, 100, 0.08);
  border-left: 1px solid rgba(20, 50, 100, 0.08);
  border-radius: 3px 0 0 0;
  background: #fff;
  transform: rotate(45deg);
}
/* 靠右对齐的菜单，尖角也要躲开圆角，否则会翘在卡片外面 */
.nav-drop:last-child .nav-drop-card::before {
  left: auto;
  right: 38px;
  margin-left: 0;
}
.nav-drop-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  transition:
    background 0.2s var(--ease),
    color 0.2s;
}
.nav-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-drop-copy b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-drop-copy small {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.nav-drop-card a:hover,
.nav-drop-card a[aria-current='page'] {
  background: var(--blue-soft);
}
.nav-drop-card a:hover b,
.nav-drop-card a[aria-current='page'] b {
  color: var(--blue);
}
.nav-drop-card a:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.55);
  outline-offset: -2px;
}
.site-nav .nav-drop-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease);
}
.nav-drop-card a:hover .nav-drop-arrow,
.nav-drop-card a[aria-current='page'] .nav-drop-arrow {
  opacity: 0.85;
  transform: translateX(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  /* 窄屏展开搜索时 LOGO 要让位，淡出比直接消失自然 */
  transition: opacity 0.18s var(--ease);
}
.logo-mark {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 6px 16px -6px rgba(22, 119, 255, 0.7);
  transition: transform 0.5s var(--spring);
}
.logo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.logo-title {
  font-size: 20px;
  line-height: 1.25;
}
.logo small {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
}
.logo:hover .logo-mark {
  transform: rotate(-10deg) scale(1.08);
}
.search {
  position: relative;
  width: 320px;
  justify-self: end;
}
/* 窄屏搜索的展开 / 取消按钮：只在窄屏出现，具体样式写在窄屏媒体查询里 */
.search-toggle,
.search-cancel {
  display: none;
}
/* 只作用于放大镜：清空按钮里也有 svg，不能一起被绝对定位 */
.search > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  /* 输入框带 backdrop-filter，Safari 会把它整层画在同级元素之上：
     聚焦后白底一压，左边的放大镜就「消失」了，必须显式抬到输入框上面 */
  z-index: 2;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
  transition: stroke 0.3s;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font: 14px var(--f-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s var(--ease),
    background 0.3s;
}
.search input::placeholder {
  color: var(--ink-3);
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search input:hover {
  border-color: rgba(22, 119, 255, 0.25);
}
.search input:focus {
  background: #fff;
  border-color: rgba(22, 119, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}
.search:focus-within > svg {
  stroke: var(--blue);
}
.search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  /* 与放大镜同理：别被输入框的 backdrop-filter 盖住 */
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-3);
  font: 11px var(--f-mono);
  transform: translateY(-50%);
  transition: opacity 0.3s;
  /* 只是快捷键提示，别挡住同一位置的清空按钮 */
  pointer-events: none;
}
.search:focus-within kbd,
.search input:not(:placeholder-shown) ~ kbd {
  opacity: 0;
}
/* 输入框右侧的清空按钮：有内容才出现，显隐交给 :placeholder-shown，脚本只管点击 */
.search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  /* 压在输入框（含其 backdrop-filter 图层）之上，Safari 里才点得到 */
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.7);
  transition:
    opacity 0.18s,
    visibility 0.18s,
    transform 0.28s var(--spring),
    background 0.2s,
    color 0.2s;
}
.search input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}
.search-clear svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.search-clear:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.search-clear:active {
  transform: translateY(-50%) scale(0.9);
}
.search-clear:focus-visible {
  opacity: 1;
  visibility: visible;
  outline: 2px solid rgba(22, 119, 255, 0.45);
  outline-offset: 1px;
}
.footer-date {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 12px var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  /* 与站名的间距交给 .footer-brand 的 gap，这里不再单独留外边距 */
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

/* ============ 焦点图轮播（约 350px 高） ============ */
.carousel {
  position: relative;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(20, 60, 140, 0.45);
  overflow: hidden;
  animation: rise 0.9s 0.1s var(--ease) both;
}
.slides {
  display: grid;
}
.slide {
  --brand: var(--blue);
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 20px;
  min-height: 350px;
  padding: 26px clamp(24px, 4.4vw, 52px) 72px;
  background:
    radial-gradient(
      circle at 78% 46%,
      color-mix(in srgb, var(--brand) 16%, transparent),
      transparent 42%
    ),
    linear-gradient(135deg, #fff 40%, color-mix(in srgb, var(--brand) 6%, #f3f8ff));
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease),
    visibility 0.6s;
}
/* 科技线框网格 */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask: radial-gradient(ellipse at 75% 50%, #000 10%, transparent 65%);
  mask: radial-gradient(ellipse at 75% 50%, #000 10%, transparent 65%);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 1;
}
.slide-copy {
  min-width: 0;
}
.slide.is-active .slide-copy > * {
  animation: rise 0.7s calc(var(--k, 0) * 70ms) var(--ease) both;
}
.slide-copy > :nth-child(2) {
  --k: 1;
}
.slide-copy > :nth-child(3) {
  --k: 2;
}
.slide-copy > :nth-child(n + 4) {
  --k: 3;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.kicker span {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: 600 10.5px var(--f-mono);
  letter-spacing: 0.08em;
}
.slide h2 {
  margin: 0;
  font-size: clamp(32px, 3.9vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.slide-desc {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: clamp(13px, 1.25vw, 15px);
}
/* 权益标签：焦点图所报价格那个方案的 badge。橙色系，跟价格区的蓝色折扣标、
   详情页方案行上的同款标签都区分得开 */
.slide-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #ffebe1;
  color: #ff7415;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.slide-price {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 18px;
}
.big {
  font: 700 clamp(40px, 4.6vw, 56px)/0.9 var(--f-num);
  letter-spacing: -0.03em;
}
.big small {
  margin-right: 2px;
  font-size: 0.4em;
}
.big em {
  margin-left: 4px;
  font: 400 14px var(--f-text);
  color: var(--ink-3);
  letter-spacing: 0;
}
.slide-meta {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}
.slide-meta b {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font: 700 14px var(--f-num);
}
.slide-meta s {
  font-size: 12.5px;
  color: var(--ink-3);
}
/* 有权益标签时换一种排法：折扣与「原价」并排一行，标签落到原来原价占的那一行。
   没有标签时保持「折扣在上、原价在下」的两行竖排。 */
.slide-meta.has-tag {
  grid-template-columns: auto auto;
  align-items: center;
  align-content: start;
  justify-content: start;
  gap: 6px 8px;
  padding-bottom: 0;
}
.slide-meta.has-tag .slide-tag {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.4s var(--ease),
    background 0.4s;
}
.cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--spring);
}
.cta:hover {
  background: var(--brand);
  box-shadow: 0 12px 24px -10px var(--brand);
  transform: translateY(-2px);
}
.cta:hover svg {
  transform: translateX(4px);
}
.cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* 右侧视觉：APP 图标 + 旋转轨道 + 浮动标签 */
.slide-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 250px);
  justify-self: center;
}
.slide-art img {
  position: relative;
  width: 70%;
  height: auto;
  border-radius: 23%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 30px 50px -20px color-mix(in srgb, var(--brand) 80%, #000);
  animation: float 6s ease-in-out infinite;
}
.ring {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  animation: spin 30s linear infinite;
}
.ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}
.r2 {
  inset: 8%;
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand) 18%, transparent);
  animation-duration: 18s;
  animation-direction: reverse;
}
.r2::after {
  width: 7px;
  height: 7px;
  left: auto;
  right: -4px;
  top: 30%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: var(--brand);
  filter: blur(50px);
  opacity: 0.3;
}
.chip {
  position: absolute;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -16px rgba(20, 60, 140, 0.45);
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.chip b {
  font: 700 18px var(--f-num);
  color: var(--brand);
}
.c1 {
  top: 2%;
  right: -5%;
}
.c2 {
  bottom: 2%;
  left: -7%;
  animation-delay: -2.5s;
  color: var(--ink);
  font-weight: 600;
}

/* 底部切换标签：毛玻璃分段控件 + 进度线 */
.tabs {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 4.4vw, 52px);
  right: clamp(14px, 4.4vw, 52px);
  bottom: 16px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 30px -18px rgba(20, 60, 140, 0.5);
}
/* 轮播最多 10 个条目：标签先按同一套等分宽度压缩，压到读不出名字的宽度后
   整条横向滚动，播放键留在轨道外面，滚多远都点得到。 */
.tab-track {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tab-track::-webkit-scrollbar {
  display: none;
}
.tabs button {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 12px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    color 0.3s;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}
.tabs button:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
/* 轨道内的按钮保底宽度：十个条目在 1280 宽的屏上仍能一行排满，
   再窄就横向滚动，而不是把名字压成一条省略号 */
.tab-track button {
  flex: 1 1 auto;
  min-width: 96px;
}
.tabs img {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(20, 50, 100, 0.1);
  transition: transform 0.5s var(--spring);
}
.tabs button:hover img {
  transform: scale(1.08) rotate(-4deg);
}
.tabs .tab-copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.tabs button b {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabs button small {
  font: 11px var(--f-num);
  color: var(--ink-3);
}
/* 进度线：底部内嵌的品牌色细线 */
.tabs button i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand) 85%, #fff);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.tabs .auto {
  flex: none;
  justify-content: center;
  width: 38px;
  padding: 0;
  color: var(--ink-3);
  animation: none;
}
.tabs .auto svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.tabs button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 6px 16px -8px rgba(20, 60, 140, 0.35),
    0 0 0 1px var(--line);
}
.tabs button[aria-pressed='true'] i {
  opacity: 1;
  transform: scaleX(1);
}
.carousel.is-playing .tabs button[aria-pressed='true'] i {
  animation: progress 5s linear both;
}
.carousel.is-paused .tabs button i {
  animation-play-state: paused !important;
}
.auto .pause-icon,
.auto[aria-pressed='true'] .play-icon {
  display: none;
}
.auto[aria-pressed='true'] .pause-icon {
  display: block;
}
/* ============ 滚动快讯 ============ */
.ticker {
  overflow: hidden;
  margin: 28px 0 44px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: fade 1s 0.4s var(--ease) both;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 26px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
/* 降价箭头：与价格同色，作为整行的视觉锚点。 */
.ticker-arrow {
  flex: none;
  align-self: center;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--drop);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.ticker-item:hover {
  color: var(--ink);
}
.ticker-item:hover .ticker-arrow {
  transform: translateY(2px);
}
.ticker-item:focus-visible {
  outline: 2px solid var(--drop);
  outline-offset: 3px;
  border-radius: 6px;
}
.ticker-name {
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-price {
  color: var(--drop);
  font: 700 14px var(--f-num);
  letter-spacing: 0.01em;
}
.ticker-unit {
  margin-left: -3px;
  color: var(--ink-3);
  font-size: 12px;
}
.ticker-was {
  color: var(--ink-3);
  font: 400 12px var(--f-num);
  text-decoration: line-through;
}
.ticker-drop {
  color: var(--drop);
  font: 600 12px var(--f-num);
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--drop-soft);
}

/* ============ 列表区标题 + 分类筛选 ============ */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  margin-bottom: 16px;
}
.section-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
}
.section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.section-head b {
  color: var(--ink);
  font-family: var(--f-num);
}

.filters {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
.filters::-webkit-scrollbar {
  display: none;
}
.filters button {
  flex: none;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  transition:
    background 0.35s var(--ease),
    color 0.35s,
    box-shadow 0.35s;
}
.filters button:hover {
  color: var(--ink);
}
.filters sup {
  margin-left: 3px;
  font: 600 10px var(--f-num);
  opacity: 0.55;
}

.filters .selected {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(22, 119, 255, 0.6);
}

/* 筛选行：胶囊在左、显示方式在右。窄屏时胶囊自己横向滚动，切换按钮固定不被挤走 */
.list-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.list-bar .filters {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.view-switch {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
.view-switch button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s,
    box-shadow 0.3s;
}
.view-switch button:hover {
  color: var(--ink);
  background: rgba(20, 50, 100, 0.055);
}
.view-switch button:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.45);
  outline-offset: 2px;
}
.view-switch button[aria-pressed='true'] {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(22, 119, 255, 0.6);
}
.view-switch svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ 搜索状态：正在显示 XX 相关内容 ============ */
.search-state {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  /* 居中：胶囊宽度随文案收缩，左右 auto 外距放在列表中间 */
  margin: 0 auto 18px;
  padding: 6px 6px 6px 15px;
  border: 1px solid rgba(22, 119, 255, 0.22);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -16px rgba(20, 50, 100, 0.6);
  color: var(--ink-2);
  font-size: 13px;
  animation: fade 0.3s var(--ease) both;
}
.search-state[hidden] {
  display: none;
}
.search-state-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-state b {
  color: var(--ink);
  font-weight: 700;
}
.search-state [data-search-count] {
  color: var(--ink-3);
  font-family: var(--f-num);
}
.search-state-clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.4s var(--spring);
}
.search-state-clear svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.search-state-clear:hover {
  background: var(--blue);
  color: #fff;
  transform: rotate(90deg);
}
.search-state-clear:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.45);
  outline-offset: 2px;
}

/* ============ 翻页：与筛选胶囊同一套毛玻璃轨道 ============ */
.pager {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  /* 居中：宽度随页码收缩，列表底部留出呼吸空间 */
  margin: 26px auto 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -22px rgba(20, 60, 140, 0.8);
  overflow-x: auto;
  scrollbar-width: none;
  animation: fade 0.3s var(--ease) both;
}
.pager[hidden] {
  display: none;
}
.pager::-webkit-scrollbar {
  display: none;
}
.pager-pages {
  display: flex;
  align-items: center;
  gap: 2px;
}
/* 翻页现在是服务端产出的真实链接：页码是 <a>，当前页与首尾禁用位是 <span>，
   所以这里按类名选，不再依赖 button 元素。 */
.pager .pager-page,
.pager .pager-step {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink-2);
  font: 600 13px var(--f-num);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.25s,
    box-shadow 0.3s,
    transform 0.35s var(--spring);
}
.pager .pager-page:hover:not(.is-disabled):not([aria-current='page']),
.pager .pager-step:hover:not(.is-disabled) {
  color: var(--ink);
  background: rgba(20, 50, 100, 0.055);
}
.pager .pager-page:active:not(.is-disabled),
.pager .pager-step:active:not(.is-disabled) {
  transform: scale(0.94);
}
.pager .pager-page:focus-visible,
.pager .pager-step:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.45);
  outline-offset: 2px;
}
.pager .pager-page[aria-current='page'] {
  background: var(--grad);
  color: #fff;
  cursor: default;
  box-shadow: 0 6px 16px -6px rgba(22, 119, 255, 0.6);
}
.pager .is-disabled {
  opacity: 0.32;
  cursor: default;
}
.pager-step {
  color: var(--ink-3);
}
.pager-step svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 省略号占位与页码同高，避免轨道跳动 */
.pager-gap {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 34px;
  color: var(--ink-3);
  font: 600 12px var(--f-num);
  letter-spacing: 1px;
  user-select: none;
}

/* ============ 会员卡片 ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  /* 翻页回到列表顶部时留一点空隙，不贴住视口上沿 */
  scroll-margin-top: 16px;
}
/* 隐藏属性必须显式声明：.grid 的 display:grid 会盖掉 UA 的 [hidden] { display: none } */
.grid[hidden] {
  display: none;
}

/* ============ 筛选结果 ============ */
/* 搜索与分类筛选是跨页的，结果同样按卡片渲染（数据来自 data/search.json），
   所以筛选后看到的就是浏览态那批卡片，不会突然换成另一种「搜索结果」样式 */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.results[hidden] {
  display: none;
}
/* ============ 内容区：客户端换页 ============ */
/* 顶部导航切产品类型不再整页刷新：只替换 .view 这一层的内容，导航与页脚原地不动，
   卡片沿用切分类那条 0.3s 淡入。目标页迟迟取不回来时才轻微变淡（脚本 200ms 后才挂类），
   一上来就压暗会变成一次白闪，反而更像整页刷新 */
.view {
  transition: opacity 0.18s var(--ease);
}
.view.is-loading {
  opacity: 0.8;
}

/* 目标页自带的首屏入场是给「第一次打开」写的：焦点图 0.9s、速览条 1s 且延迟 0.4s、
   幻灯文案 0.7s 递增延迟。换页时这些慢镜头会整段重播，看起来就像整页刷新了。
   换页后的 500ms 内压成与切分类同一条 0.3s 淡入上浮，两种切换手感才一致 */
.view.is-swapped .carousel,
.view.is-swapped .ticker,
.view.is-swapped .slide.is-active .slide-copy > * {
  animation: filter-in 0.3s var(--ease) both;
}

/* 筛选后（切分类 / 输入关键词 / 取消搜索）不再重播首屏的 rise 入场：
   它带 0.3s 起步 + 每张 50ms 递增延迟，卡片重新进入渲染树时会整段重放，最多 1.45s 才全部显现。
   改成一次同步的淡入上浮，0.3s 内全部落位，不排队 */
.grid.is-filtered .card,
.results.is-filtered .card {
  animation: filter-in 0.3s var(--ease) both;
}
@keyframes filter-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.card {
  --brand: var(--blue);
  --card-icon-size: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(20, 50, 100, 0.04);
  isolation: isolate;
  overflow: hidden;
  animation: rise 0.8s calc(0.3s + var(--i) * 50ms) var(--ease) both;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s;
  min-width: 0;
}
.card::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 80%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--brand) 20%, transparent),
    transparent
  );
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: 0 24px 48px -26px color-mix(in srgb, var(--brand) 50%, rgba(20, 50, 100, 0.4));
}
.card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app {
  flex: none;
  width: var(--card-icon-size);
  height: var(--card-icon-size);
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 16px;
  outline: 1px solid rgba(20, 50, 100, 0.12);
  background: #fff;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 70%, rgba(20, 50, 100, 0.8));
  transition: transform 0.6s var(--spring);
}
.card:hover .app {
  transform: rotate(-8deg) scale(1.06);
}
.meta {
  min-width: 0;
  flex: 1;
}
.meta h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}
.meta p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 联合会员 ============ */
.combo {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92),
    color-mix(in srgb, var(--brand) 5%, #f6faff)
  );
}
.combo .card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.combo .meta {
  width: 100%;
}
.combo .meta h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo .save {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 图标叠放：等距重叠、不旋转；最多显示 3 个，其余折叠为 +N
   结构：图标本体 → 白色实心边（border）→ 外圈 1px 灰色细线（outline），白边不透明，叠放时不穿模
   尺寸由 --stack-size / --stack-overlap 控制，首页卡片、详情页头部与相关套餐列表共用 */
.stack {
  --stack-size: var(--card-icon-size, 60px);
  --stack-overlap: 14px;
  --stack-overlap-hover: 6px;
  --stack-border: 3px;
  --stack-radius: 16px;
  display: flex;
  flex: none;
  align-items: center;
  height: var(--stack-size);
  padding-left: var(--stack-overlap);
}
.stack img,
.stack .stack-fallback,
.stack .more {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: var(--stack-size);
  height: var(--stack-size);
  margin-left: calc(-1 * var(--stack-overlap));
  border: var(--stack-border) solid #fff;
  border-radius: var(--stack-radius);
  outline: 1px solid rgba(20, 50, 100, 0.12);
  background: #fff;
  box-shadow: 0 6px 14px -8px rgba(20, 50, 100, 0.4);
  transition: margin 0.7s var(--ease);
}
.stack img {
  object-fit: cover;
}
.stack .stack-fallback {
  font-size: calc(var(--stack-size) * 0.36);
  font-weight: 700;
  border-radius: var(--stack-radius);
}
.stack .more {
  display: grid;
  place-items: center;
  font: 700 calc(var(--stack-size) * 0.25) var(--f-num);
  color: #fff;
  background: var(--ink);
}
/* 悬停时依次展开，节奏与单品图标的旋转（.6s）一致 */
.stack > :nth-child(2) {
  transition-delay: 40ms;
}
.stack > :nth-child(3) {
  transition-delay: 80ms;
}
.stack > .more {
  transition-delay: 120ms;
}
.card:hover .stack img,
.card:hover .stack .stack-fallback,
.card:hover .stack .more {
  margin-left: calc(-1 * var(--stack-overlap-hover));
}
.card:hover .stack > :first-child {
  margin-left: calc(-1 * var(--stack-overlap));
}
/* 详情页头部：比首页卡片略小的图标组 */
.stack-bundle {
  --stack-size: 52px;
  --stack-overlap: 12px;
  --stack-overlap-hover: 5px;
  --stack-radius: 14px;
}
/* 相关联合会员列表：与首页同一套叠放结构，尺寸放大到 50px */
.stack-compact {
  --stack-size: 50px;
  --stack-overlap: 14px;
  --stack-border: 3px;
  --stack-radius: 14px;
}
.stack-compact .stack-fallback {
  font-size: 18px;
}
.stack-compact .more {
  font-size: 13px;
}
.stack-slide {
  --stack-size: 175px;
  /* 两侧成员的横向位移：按图标尺寸取比例，改大小时不会失配。
     0.5 让被压住的两个成员各露出约一半面积 —— 既能认出是谁，又不至于
     在 1024 这类窄桌面宽度下顶到左侧文案上 */
  --stack-spread: calc(var(--stack-size) * 0.5);
  --stack-border: 4px;
  --stack-radius: 25%;
  display: grid;
  grid-template-columns: var(--stack-size);
  width: var(--stack-size);
  isolation: isolate;
  animation: float 6s ease-in-out infinite;
}
.slide-art .stack-slide {
  padding-left: 0;
}
.tabs .stack-tab {
  padding-left: var(--stack-overlap);
}
.carousel .slide-art .stack-slide > * {
  grid-area: 1 / 1;
  width: var(--stack-size);
  height: var(--stack-size);
  margin-left: 0;
  border: var(--stack-border) solid #fff;
  border-radius: var(--stack-radius);
  box-shadow: 0 24px 40px -20px color-mix(in srgb, var(--brand) 80%, #000);
  animation: none;
}
/* 套餐的主产品（成员列表的第一个）居中、满尺寸、压在最上层；
   其余成员缩小后向两侧散开，只从背后露出边缘 —— 三张图都同名次时，
   DOM 顺序会让最后一张盖住前面所有，所以主产品的层级必须显式抬起来。 */
.carousel .slide-art .stack-slide > :first-child {
  z-index: 3;
}
.stack-slide:has(> :nth-child(2)) > :nth-child(2) {
  z-index: 1;
  /* 只有两个成员时，没有另一侧挤占空间，可以再往外挪一点 */
  transform: translateX(calc(var(--stack-spread) * 0.95)) rotate(9deg) scale(0.9);
}
.stack-slide:has(> :nth-child(3)) > :nth-child(2) {
  z-index: 1;
  transform: translateX(calc(-1 * var(--stack-spread))) rotate(-11deg) scale(0.9);
}
.stack-slide:has(> :nth-child(3)) > :nth-child(3) {
  z-index: 1;
  transform: translateX(var(--stack-spread)) rotate(10deg) scale(0.9);
}
.stack-tab {
  --stack-size: 26px;
  --stack-overlap: 19px;
  --stack-border: 2px;
  --stack-radius: 8px;
}
.carousel .tabs .stack-tab > * {
  width: var(--stack-size);
  height: var(--stack-size);
  margin-left: calc(-1 * var(--stack-overlap));
  border: var(--stack-border) solid #fff;
  border-radius: var(--stack-radius);
  transform: none;
}
/* 小叠图同理：主产品压在最上面，后面几个成员只露出右侧一条边 */
.carousel .tabs .stack-tab > :first-child {
  z-index: 1;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.now {
  font: 700 42px/1 var(--f-num);
  letter-spacing: -0.02em;
}
.now small {
  margin-right: 2px;
  font-size: 20px;
}
.now em {
  margin-left: 3px;
  font: 400 13px var(--f-text);
  color: var(--ink-3);
  letter-spacing: 0;
}
.price s {
  font: 500 14px var(--f-num);
  color: var(--ink-3);
}
.price s.none {
  font-family: var(--f-text);
  font-size: 12px;
  text-decoration: none;
}

/* 装饰分隔线：品牌色刻度 + 扫光，不表达任何数据 */
.bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 22%, transparent) 0 2px,
    transparent 2px 8px
  );
  -webkit-mask: linear-gradient(90deg, #000 30%, transparent);
  mask: linear-gradient(90deg, #000 30%, transparent);
  transform-origin: left;
  animation: grow 1.2s calc(0.6s + var(--i) * 50ms) var(--ease) both;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--brand) 70%, #fff),
    transparent
  );
  transform: translateX(-110%);
}
.card:hover .bar i {
  animation: sweep 1.1s var(--ease);
}
.is-full .bar {
  background: repeating-linear-gradient(90deg, rgba(20, 50, 100, 0.12) 0 2px, transparent 2px 8px);
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 12.5px;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: #0958d9;
  font-weight: 600;
  white-space: nowrap;
}
.save {
  white-space: nowrap;
  color: var(--ink-2);
  min-width: 0;
  flex: 1 1 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status b {
  margin-right: -3px;
  font: 700 14px/1 var(--f-num);
}
.status.warm {
  background: var(--hot-soft);
  color: #e5401f;
}
.status.low {
  background: var(--discount-orange);
  color: #fff;
}
.status.low::before {
  animation: blink 1.4s infinite;
}
.status.off {
  background: var(--bg-2);
  color: var(--ink-3);
}
.go {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    background 0.4s var(--ease),
    color 0.4s,
    transform 0.5s var(--spring),
    border-color 0.4s;
}
.go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .go {
  background: #2592ff;
  border-color: #2592ff;
  color: #fff;
  transform: rotate(45deg);
}

.is-hot::after {
  content: attr(data-badge);
  position: absolute;
  top: 0;
  left: 50%;
  padding: 2px 10px 3px;
  border-radius: 0 0 8px 8px;
  background: var(--hot-grad);
  box-shadow: 0 4px 10px -4px rgba(255, 77, 46, 0.6);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 紧凑列表视图 ============ */
/* 与卡片视图共用同一批节点，只换排布：图标 / 名称 / 价格 / 折扣一行读完，省掉装饰刻度条。
   切换只是加一个类，不重新渲染，所以是瞬时的；两种格式信息量一致 */
:is(.grid, .results).is-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
:is(.grid, .results).is-list .card {
  --card-icon-size: 44px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
}
/* 热卖角标是贴在卡片顶部居中的，横排时会压住内容，这里直接收掉 */
:is(.grid, .results).is-list .card.is-hot {
  padding-top: 12px;
}
:is(.grid, .results).is-list .card.is-hot::after {
  display: none;
}
:is(.grid, .results).is-list .card .card-top {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
:is(.grid, .results).is-list .card .bar {
  display: none;
}
:is(.grid, .results).is-list .card .price {
  flex: none;
  gap: 6px;
}
:is(.grid, .results).is-list .card .now {
  font-size: 20px;
}
:is(.grid, .results).is-list .card .now small {
  font-size: 12px;
}
:is(.grid, .results).is-list .card .now em {
  font-size: 11px;
}
:is(.grid, .results).is-list .card .price s {
  font-size: 12px;
}
/* 待更新文案在卡片里是主视觉（24px），横排时只占价格位，跟着缩到正文大小 */
:is(.grid, .results).is-list .card .price-pending {
  font-size: 15px;
}
:is(.grid, .results).is-list .card .card-foot {
  flex: none;
  margin-top: 0;
  flex-wrap: nowrap;
}
/* 横排空间有限，备注让位给价格与折扣 */
:is(.grid, .results).is-list .card .save {
  display: none;
}
/* 窄屏一行放不下「名称 + 价格 + 原价 + 折扣 + 箭头」：收掉次要信息，保住名称不被折行 */
@media (max-width: 599px) {
  :is(.grid, .results).is-list .card .go,
  :is(.grid, .results).is-list .card .price s {
    display: none;
  }
  :is(.grid, .results).is-list .card .card-foot {
    gap: 0;
  }
  :is(.grid, .results).is-list .card .meta h3 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  :is(.grid, .results).is-list .card .now {
    font-size: 17px;
  }
  :is(.grid, .results).is-list .card .status {
    font-size: 11px;
    padding: 2px 7px;
  }
}

/* ============ 动画 ============ */
@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes sweep {
  to {
    transform: translateX(260%);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(19, 194, 194, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(19, 194, 194, 0);
  }
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ============ 响应式 ============ */
/* 窄屏多列：400~599px 两列，600~899px 三列（紧凑排版）；900px 起为标准卡片 */

.ticker-group {
  display: flex;
}
.card.is-hot {
  padding-top: 30px;
}
.price-pending {
  font: 600 24px var(--f-text);
  letter-spacing: 0;
}
.slide-art .hero-icon {
  width: 46%;
  aspect-ratio: 1;
  font-size: 64px;
  box-shadow: 0 30px 50px -20px var(--brand);
}
.tabs .tab-icon {
  flex: none;
  width: 30px;
  height: 30px;
  font-size: 16px;
  border-radius: 9px;
}
#search-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-2);
}
.hero-tag {
  font-size: 12px;
  font-weight: 600;
  color: #16758d;
  padding: 4px 10px;
  background: #d8f3f5;
  border-radius: 6px;
}
.fallback-icon {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand);
  font-size: 25px;
  font-weight: 700;
  border-radius: 16px;
}
.card[hidden] {
  display: none;
}
.site-footer {
  position: relative;
  margin-top: 56px;
  padding: 34px 0 30px;
  color: var(--ink-2);
  font-size: 12px;
  /* 站名、Slogan、更新日期、说明与版权行统一水平居中 */
  text-align: center;
}
/* 顶边不用整条实线：两端渐隐的渐变发丝线，收口更轻，也不会把页脚切成硬边 */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(22, 119, 255, 0.16) 16%,
    rgba(19, 194, 194, 0.3) 50%,
    rgba(22, 119, 255, 0.16) 84%,
    transparent
  );
}
/* 品牌签名：LOGO 呼应页头，站名是整块页脚的视觉重心 */
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 13px;
}
.footer-brand-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  /* 只留一点蓝调投影，缩小后不至于糊成一团 */
  box-shadow: 0 6px 14px -8px rgba(22, 119, 255, 0.9);
}
.footer-brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  /* 中文站名放开一点字距，比纯加粗更显克制 */
  letter-spacing: 0.06em;
  color: var(--ink);
}
/* 站名与 Slogan 之间用一条上下渐隐的细线分隔，比圆点更安静 */
.footer-brand-slogan {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.footer-brand-slogan::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(20, 50, 100, 0.22) 35%,
    rgba(20, 50, 100, 0.22) 65%,
    transparent
  );
}
.site-footer p {
  max-width: 660px;
  /* 说明文案收成一栏并居中，长文本仍按阅读宽度换行 */
  margin: 14px auto 0;
  line-height: 1.75;
  letter-spacing: 0.01em;
  /* 折行时避免最后一行只剩一两个字 */
  text-wrap: pretty;
}
/* 备案与版权：一行小字；号码缺省或开关关闭时对应片段整段不渲染。 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--ink-2);
  text-decoration: underline;
}
.footer-legal-sep {
  opacity: 0.45;
}
/* 版权行右侧的附加信息：后台写入的 HTML，与分隔符绑成一个整体，长串许可证号允许折行 */
.footer-extra {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.footer-extra-body {
  word-break: break-word;
}
/* 返回入口：轻量胶囊，hover 只做底色与箭头位移 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 14px;
  padding: 5px 11px 5px 9px;
  border-radius: 99px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 0.25s,
    background 0.25s;
}
.back-link:hover {
  color: var(--ink);
  background: rgba(20, 50, 100, 0.055);
}
.back-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--spring);
}
.back-link:hover svg {
  transform: translateX(-2px);
}
/* 返回区：有站内来路时是「返回 + 更多类型」，直接打开时只留回类型页的入口。
   两套结构都写在 HTML 里，靠 data-nav-state 切换，禁用 JS 时退回原来的「返回类型页」。 */
.detail-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 6px 0 14px;
}
.detail-nav .back-link,
.detail-nav .more-link {
  margin: 0;
}
.detail-nav-history {
  display: none;
  align-items: center;
  gap: 2px;
}
.detail-nav[data-nav-state='history'] .detail-nav-history {
  display: inline-flex;
}
.detail-nav[data-nav-state='history'] [data-nav-fallback] {
  display: none;
}
/* 「更多类型」是次级入口：默认比返回更淡，hover 才染蓝 */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 12px;
  border-radius: 99px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 0.25s,
    background 0.25s;
}
.more-link:hover {
  color: var(--blue);
  background: var(--blue-soft);
}
.more-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--spring);
}
/* 四宫格是「全部」的意思，没有方向性，hover 只做轻微放大 */
.more-link:hover svg {
  transform: scale(1.12);
}
/* 详情页：让箭头与卡片左缘齐平（抵消胶囊内边距） */
.detail-wrap > .detail-nav {
  margin-left: -9px;
}
/* 详情页收窄居中：返回入口与方案卡片保持同宽 */
.detail-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.detail-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 35px;
  background:
    radial-gradient(60% 50% at 100% 0%, color-mix(in srgb, var(--blue) 7%, transparent), transparent),
    #ffffffd9;
  border: 1px solid var(--line);
  border-radius: 24px;
}
/* Shared product detail and compact offer selector. */
.product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 32px;
  margin-bottom: 16px;
}
.product-header img,
.product-header .fallback-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
}
/* 联合套餐头部与单品图标同高，尺寸交由 .stack 变量控制 */
.product-header .stack img,
.product-header .stack .stack-fallback {
  width: var(--stack-size);
  height: var(--stack-size);
  border-radius: var(--stack-radius);
}
.product-header h1 {
  font-size: 23px;
  line-height: 1.35;
  margin: 0;
}
.product-header p {
  color: var(--ink-2);
  font-size: 12px;
  margin: 5px 0 0;
}
.product-summary {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.85;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.product-summary summary {
  cursor: pointer;
}
.product-summary summary span {
  color: var(--blue);
  white-space: nowrap;
}
.offer-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.offer-list-heading h2,
.product-related h2 {
  margin: 0;
  font-size: 14px;
}
.offer-list-heading > span {
  flex: none;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
/* ============ 方案列表：紧凑分级卡片 ============ */
.offer-list-frame {
  container-type: inline-size;
}
.offer-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.offer-plan {
  /* 普通方案沿用商品品牌色作为点缀色，与首页卡片的品牌光晕、刻度线保持同一套视觉语言 */
  --offer-tint: var(--brand, var(--blue));
  --offer-accent: #4a5a72;
  --offer-accent-ink: var(--ink);
  --offer-surface: rgba(255, 255, 255, 0.94);
  --offer-surface-2: color-mix(in srgb, var(--offer-tint) 4%, #f8fbfe);
  --offer-border: var(--line);
  --offer-ring: transparent;
  --offer-hover-border: color-mix(in srgb, var(--offer-tint) 32%, var(--line));
  --offer-action-color: var(--ink);
  --offer-action-surface: rgba(255, 255, 255, 0.9);
  --offer-action-border: rgba(20, 50, 100, 0.12);
  --offer-action-hover-color: #fff;
  --offer-action-hover-surface: var(--ink);
  --offer-action-shadow: none;
  display: grid;
  position: relative;
  min-width: 0;
  padding-right: 38px;
  border: 1px solid var(--offer-border);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--offer-surface), var(--offer-surface-2));
  box-shadow:
    0 1px 2px rgba(20, 50, 100, 0.04),
    0 12px 26px -24px rgba(20, 50, 100, 0.4);
  isolation: isolate;
  overflow: hidden;
  animation: rise 0.6s calc(0.05s + var(--i, 0) * 60ms) var(--ease) both;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
}
/* 右上角品牌色光晕：静止时若隐若现，悬停时展开，呼应首页 .card::before */
.offer-plan::before {
  content: '';
  position: absolute;
  inset: -80% -12% auto auto;
  width: 42%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--offer-tint) 18%, transparent),
    transparent
  );
  opacity: 0.55;
  transform: scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
}
/* 重点推荐：暖色高亮，略微放大并上浮，吸引第一眼注意力 */
.offer-plan.emphasis-priority {
  --offer-tint: var(--discount-orange);
  --offer-accent: #aa581e;
  --offer-accent-ink: #92410f;
  --offer-surface: #fff8f1;
  --offer-surface-2: #ffeedc;
  --offer-border: color-mix(in srgb, var(--discount-orange) 45%, #f0d8b8);
  --offer-ring: color-mix(in srgb, var(--discount-orange) 55%, transparent);
  --offer-hover-border: #e6a768;
  --offer-action-color: #fff;
  --offer-action-surface: linear-gradient(120deg, #ff9d45, var(--discount-orange));
  --offer-action-border: transparent;
  --offer-action-hover-surface: linear-gradient(120deg, #ff9d45, #f5762a);
  --offer-action-shadow: 0 8px 16px -8px rgba(255, 143, 66, 0.75);
  order: -1;
  z-index: 1;
  box-shadow: 0 16px 32px -20px color-mix(in srgb, var(--discount-orange) 55%, transparent);
}
/* 推荐：品牌蓝高亮，比普通方案稍重但不抢重点推荐的视觉焦点 */
.offer-plan.emphasis-recommended {
  --offer-tint: var(--blue);
  --offer-accent: #1767c4;
  --offer-accent-ink: #0f54a3;
  --offer-surface: #fff;
  --offer-surface-2: var(--blue-soft);
  --offer-border: color-mix(in srgb, var(--blue) 30%, #dbe6f5);
  --offer-ring: color-mix(in srgb, var(--blue) 40%, transparent);
  --offer-hover-border: #a3c6eb;
  --offer-action-color: #1767c4;
  --offer-action-surface: var(--blue-soft);
  --offer-action-border: color-mix(in srgb, var(--blue) 18%, transparent);
  --offer-action-hover-surface: var(--grad);
}
.offer-plan.emphasis-priority,
.offer-plan.emphasis-recommended {
  border-width: 1.5px;
  box-shadow: 0 0 0 1px var(--offer-ring) inset, 0 10px 26px -18px color-mix(in srgb, var(--offer-accent) 45%, transparent);
}
.offer-option {
  display: contents;
}
.offer-option[hidden],
.offer-restriction[hidden] {
  display: none;
}
/* 「前往购买」按钮按渠道着色：天猫/淘宝与淘口令为橙色，京东为红色，其余链接为蓝色。
   变量写在渠道面板自身（而非方案卡上），因此会盖过 .offer-plan 的主题色配置 */
.offer-option.purchase-taobao {
  --offer-action-color: #fff;
  --offer-action-surface: #f88416;
  --offer-action-border: transparent;
  --offer-action-hover-color: #fff;
  --offer-action-hover-surface: #ff9b35;
  --offer-action-shadow: 0 8px 16px -9px rgba(248, 132, 22, 0.75);
}
.offer-option.purchase-jd {
  --offer-action-color: #fff;
  --offer-action-surface: #ff475d;
  --offer-action-border: transparent;
  --offer-action-hover-color: #fff;
  --offer-action-hover-surface: #ff6578;
  --offer-action-shadow: 0 8px 16px -9px rgba(255, 71, 93, 0.7);
}
.offer-option.purchase-other {
  --offer-action-color: #fff;
  --offer-action-surface: #2a7bfc;
  --offer-action-border: transparent;
  --offer-action-hover-color: #fff;
  --offer-action-hover-surface: #4c91ff;
  --offer-action-shadow: 0 8px 16px -9px rgba(42, 123, 252, 0.7);
}
.offer-purchase {
  grid-row: 1;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 13px;
  min-width: 0;
}
/* Keep the whole card actionable without nesting channel controls inside its link. */
.offer-purchase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 13px;
}
.offer-plan:has(.offer-purchase:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.offer-purchase:focus-visible {
  outline: none;
}
.offer-action {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  min-height: 30px;
  border: 1px solid var(--offer-action-border);
  border-radius: 99px;
  color: var(--offer-action-color);
  background: var(--offer-action-surface);
  box-shadow: var(--offer-action-shadow);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.35s var(--ease),
    color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s var(--ease),
    transform 0.45s var(--spring);
}
.offer-action-label {
  display: none;
}
.offer-plan .offer-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 0.45s var(--spring);
}
.offer-purchase:focus-visible .offer-action {
  color: var(--offer-action-hover-color);
  background: var(--offer-action-hover-surface);
}
@container (min-width: 520px) {
  .offer-plan {
    padding-right: 118px;
  }
  .offer-action {
    right: 16px;
    padding: 8px 14px 8px 16px;
  }
  .offer-action-label {
    display: inline;
  }
}
/* 方案一行一个：详情页放宽到 900px 之后，两列反而让每张卡片又窄回去，
   价格、规格与按钮挤在一起比纵向滚动更难比较。重点推荐的排前由 order 负责，与列数无关。 */
@media (hover: hover) {
  .offer-plan:has(.offer-purchase:not([aria-disabled='true']):hover) {
    transform: translateY(-3px);
    border-color: var(--offer-hover-border);
    box-shadow: 0 20px 36px -24px color-mix(in srgb, var(--offer-tint) 60%, rgba(20, 50, 100, 0.4));
  }
  .offer-plan:has(.offer-purchase:not([aria-disabled='true']):hover)::before {
    opacity: 1;
    transform: scale(1.15);
  }
  .offer-purchase:not([aria-disabled='true']):hover .offer-action {
    color: var(--offer-action-hover-color);
    background: var(--offer-action-hover-surface);
    border-color: transparent;
    box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--offer-tint) 70%, rgba(20, 50, 100, 0.6));
    transform: translateY(-50%) translateX(-2px);
  }
  .offer-purchase:not([aria-disabled='true']):hover .offer-action svg {
    transform: rotate(45deg);
  }
  .offer-channel:hover,
  .offer-channel[aria-pressed='true']:hover {
    background: #f4f8ff;
    border-color: #b7d4f1;
  }
}
.offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.offer-info {
  min-width: 0;
  flex: 1;
}
.offer-info h3,
.offer-empty h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  font-size: 15px;
  font-weight: 650;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--offer-accent-ink);
}
.offer-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  color: #1767c4;
  background: var(--blue-soft);
}
.offer-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
}
.offer-specs:empty {
  display: none;
}
.offer-specs > div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--offer-tint) 14%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--offer-tint) 6%, #fff);
}
.offer-specs dt {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: none;
  color: var(--ink-3);
}
.offer-specs dt::after {
  content: '·';
  color: #b1bed0;
}
.offer-specs dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.offer-note {
  margin: 5px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.offer-figure {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  color: var(--offer-accent-ink);
  white-space: nowrap;
  max-width: 160px;
}
.offer-price strong {
  font: 700 28px/1.1 var(--f-num);
  letter-spacing: -0.4px;
}
.offer-currency {
  font: 600 12px var(--f-num);
}
.offer-price small {
  font-size: 10px;
  color: var(--ink-2);
}
.offer-original {
  font: 500 11px/1 var(--f-num);
  color: var(--ink-3);
}
.offer-pending {
  font-size: 12px;
}
.offer-rating {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 3px 10px 4px;
  border-radius: 0 15px 0 10px;
  background: #f45a0d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(244, 90, 13, 0.7);
  pointer-events: none;
}
/* 角标贴在卡片右上角，给内容让出顶部空间，避免压住价格 */
.offer-plan:has(.offer-rating) .offer-purchase {
  padding-top: 28px;
}
.offer-conditions {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 9px;
  border: 1px dashed #f1d4a6;
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.6;
  color: #8c622e;
  background: #fff4df;
  overflow-wrap: anywhere;
  /* 优惠条件通常只有半句话：按内容收窄，别把整行拉成一条空胶囊 */
  justify-self: start;
  max-width: 100%;
}
.offer-plan svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-conditions svg {
  margin-top: 2px;
}
.offer-renewal,
.offer-restriction {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.offer-restriction {
  color: #a33d3a;
}
.offer-purchase[aria-disabled='true'] {
  cursor: not-allowed;
}
.offer-purchase[aria-disabled='true'] .offer-price {
  color: var(--ink-2);
}
.offer-purchase[aria-disabled='true'] .offer-rating,
.offer-purchase[aria-disabled='true'] .offer-action {
  display: none;
}
.offer-channels {
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 14px 11px;
  position: relative;
  z-index: 2;
}
.offer-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  font-size: 13px;
  font-family: var(--f-text);
  line-height: 1.4;
  cursor: pointer;
  color: var(--ink-2);
}
.offer-channel[aria-pressed='true'] {
  background: var(--blue-soft);
  border-color: #a3c8ed;
  color: #1767c4;
}
/* 勾选图标常驻占位，未选中时只隐藏图形，切换渠道时按钮宽度不跳动 */
.offer-channel .channel-check {
  width: 12px;
  height: 12px;
  display: block;
  visibility: hidden;
  stroke-width: 2.6;
  transition: visibility 0.2s;
}
.offer-channel[aria-pressed='true'] .channel-check {
  visibility: visible;
}
.offer-bottom {
  grid-row: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px;
  padding: 9px 0 11px;
  min-width: 0;
  font-size: 10.5px;
  color: var(--ink-2);
}
/* 品牌色刻度分隔线：与首页卡片的 .bar 同源，向右渐隐 */
.offer-bottom::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--offer-tint) 35%, transparent) 0 2px,
    transparent 2px 6px
  );
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent);
  mask: linear-gradient(90deg, #000 40%, transparent);
  transform-origin: left;
  animation: grow 1s calc(0.3s + var(--i, 0) * 60ms) var(--ease) both;
}
.offer-comparison {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  font-family: var(--f-num);
}
.offer-comparison::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--offer-tint) 75%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--offer-tint) 14%, transparent);
}
.offer-comparison:empty {
  display: none;
}
.offer-store {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
  text-align: right;
}
.offer-store > span {
  overflow-wrap: anywhere;
}
.offer-store svg {
  color: #168baf;
}
.offer-empty,
.offer-none {
  padding: 16px;
  color: var(--ink-2);
  font-size: 12px;
}
.offer-disclaimer {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.7;
}
/* ============ 相关联合会员与套餐：横向图标卡片 ============ */
.product-related {
  margin-top: 22px;
}
/* 联合会员「包含的产品」位于购买方案之后，用分隔线与上方方案列表区分 */
.bundle-members {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.related-link {
  --brand: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95) 40%,
    color-mix(in srgb, var(--brand) 7%, #fff)
  );
  box-shadow: 0 1px 2px rgba(20, 50, 100, 0.04);
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.related-link img,
.related-link-fallback {
  flex: none;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 2px solid #fff;
  outline: 1px solid rgba(20, 50, 100, 0.1);
  background: #fff;
  object-fit: cover;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand) 70%, rgba(20, 50, 100, 0.6));
  transition: transform 0.6s var(--spring);
}
.related-link-fallback {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, white);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
/* 相关联合会员：用叠放图标替代单图标，尺寸由 .stack-compact 变量控制 */
.related-link .stack img,
.related-link .stack .stack-fallback {
  width: var(--stack-size);
  height: var(--stack-size);
  border-radius: var(--stack-radius);
}
/* 悬停只做位移/缩放，不改 margin 与尺寸，避免列表宽度抖动 */
.related-link .stack img,
.related-link .stack .stack-fallback,
.related-link .stack .more {
  transition: transform 0.45s var(--spring);
}
.related-link-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.related-link-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-link-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-link-price {
  flex: none;
  padding: 3px 9px;
  border-radius: 99px;
  font: 600 12px var(--f-num);
  color: color-mix(in srgb, var(--brand) 80%, var(--ink));
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  white-space: nowrap;
}
.related-link-go {
  flex: none;
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ink-2);
  transition:
    transform 0.5s var(--spring),
    color 0.3s,
    background 0.3s,
    border-color 0.3s;
}
@media (hover: hover) {
  .related-link:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
    box-shadow: 0 14px 28px -20px color-mix(in srgb, var(--brand) 45%, rgba(20, 50, 100, 0.35));
  }
  .related-link:hover img,
  .related-link:hover .related-link-fallback {
    transform: rotate(-8deg) scale(1.06);
  }
  /* 叠放图标：整体轻微上浮，不改变叠放间距，容器宽度保持不变 */
  .related-link:hover .stack img,
  .related-link:hover .stack .stack-fallback,
  .related-link:hover .stack .more {
    transform: translateY(-2px);
  }
  .related-link:hover .related-link-go {
    transform: rotate(45deg);
    color: #fff;
    background: #2592ff;
    border-color: #2592ff;
  }
}


.purchase-notes h2 {
  margin: 22px 0 10px;
  font-size: 14px;
}
.purchase-notes p {
  white-space: pre-line;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.8;
}
.token-panel {
  margin: 40px auto;
  max-width: 580px;
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.token-panel .cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}
/* ===== /go 落地页：扫码页 + 口令页 ===== */
.go-wrap {
  width: 100%;
  max-width: 480px;
  margin: -6px auto 0;
}
.go-wrap > .back-link {
  margin-left: -9px;
  margin-bottom: 6px;
}
.go-card {
  --go-accent: var(--brand, var(--blue));
  position: relative;
  padding: 34px 34px 26px;
  border: 1px solid color-mix(in srgb, var(--go-accent) 12%, #e8edf4);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 4px 12px -6px rgba(16, 32, 62, 0.05), 0 28px 70px -36px rgba(16, 32, 62, 0.22);
  animation: go-enter 0.55s var(--ease) both;
}
/* 口令页：大图与价格带自己贴边，卡片只负责裁圆角 */
.go-card.has-hero {
  padding: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--go-accent) 16%, #e8edf4);
  box-shadow:
    0 2px 6px -2px rgba(16, 32, 62, 0.06),
    0 18px 40px -28px rgba(16, 32, 62, 0.3),
    0 56px 90px -60px rgba(16, 32, 62, 0.45);
}
@keyframes go-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 大图入场：轻微推近 + 淡入，落定时正好停住 */
@keyframes go-hero-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes go-sheen {
  0% {
    transform: translate3d(-180%, 0, 0) rotate(16deg);
  }
  22%,
  100% {
    transform: translate3d(320%, 0, 0) rotate(16deg);
  }
}
@keyframes go-chip-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes go-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes go-nudge {
  0%,
  72%,
  100% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-2px);
  }
  88% {
    transform: translateY(0);
  }
}
/* 取景框只包围白色静区，不覆盖或移动二维码本身。 */
.go-scan {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.go-scan .qr-box {
  position: relative;
  width: min(236px, 100% - 24px);
  margin: 30px auto 26px;
  padding: 18px;
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 26px -18px rgba(16, 32, 62, 0.24);
}
.go-scan .qr-box::before {
  content: '';
  position: absolute;
  inset: -15px;
  border: 6px solid #dde8ef;
  border-radius: 27px;
  /* 先画完整圆角，再保留四角，避免直线背景被圆角裁出缺口。 */
  -webkit-mask:
    linear-gradient(#000 0 0) left top / 30px 30px no-repeat,
    linear-gradient(#000 0 0) right top / 30px 30px no-repeat,
    linear-gradient(#000 0 0) left bottom / 30px 30px no-repeat,
    linear-gradient(#000 0 0) right bottom / 30px 30px no-repeat;
  mask:
    linear-gradient(#000 0 0) left top / 30px 30px no-repeat,
    linear-gradient(#000 0 0) right top / 30px 30px no-repeat,
    linear-gradient(#000 0 0) left bottom / 30px 30px no-repeat,
    linear-gradient(#000 0 0) right bottom / 30px 30px no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.go-scan.is-wechat {
  --go-accent: #07a652;
}
.go-qr-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  text-wrap: balance;
}
.go-qr-sub {
  max-width: 320px;
  margin: 12px auto 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
  text-wrap: pretty;
}
.go-qr-note {
  max-width: 300px;
  margin: 10px auto 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}
/* —— 口令页：大图取景框 —— */
.go-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  /* 主图只负责「这是哪件东西」，不负责铺满屏幕：4:3 取景 + 高度封顶，
     首屏就能同时容下价格与按钮，不用先划一下才看到买点。
     width 必须写死 100%：只给 aspect-ratio + max-height 时，浏览器会把高度上限
     反推成宽度，取景框会缩到 300×4/3 宽，右边留一条卡片底色。 */
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 20% 0%, color-mix(in srgb, var(--go-accent) 55%, #fff), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--go-accent) 85%, #0b1526), color-mix(in srgb, var(--go-accent) 45%, #0b1526));
}
/* 主图从略远的地方缓慢推近，入场本身就是一次运镜 */
.go-hero-media {
  position: absolute;
  inset: 0;
  animation: go-hero-in 1.6s var(--ease) both;
}
.go-hero-blur {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  object-fit: cover;
  filter: blur(26px) saturate(1.25) brightness(0.95);
  opacity: 0.9;
}
.go-hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  /* 淘宝主图多是 1:1 的促销图，上下常压着文案：contain 保住整张图，
     空出来的两侧由下面的模糊底图补上，比裁掉一截文字体面 */
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s var(--ease);
}
/* 整张图就是前往商家的热区；悬停只放大一点点，不做位移 */
.go-hero-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  outline-offset: -4px;
  border-radius: 4px;
}
.go-hero.is-link {
  cursor: pointer;
}
.go-hero.is-link:hover .go-hero-img {
  transform: scale(1.028);
}
.go-hero.is-link:active .go-hero-img {
  transform: scale(1.012);
}
/* 斜向扫光：一次很快，然后长时间停住，不抢注意力 */
.go-hero-sheen {
  position: absolute;
  top: -60%;
  left: 0;
  z-index: 1;
  width: 42%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translate3d(-180%, 0, 0) rotate(16deg);
  animation: go-sheen 7s var(--ease) 1.1s infinite;
  pointer-events: none;
}
/* 左上角只留店铺名：半透明深色胶囊，任何底图上都读得清，也不压住画面 */
.go-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(9, 20, 38, 0.34);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: go-chip-in 0.6s var(--spring) 0.18s both;
}
/* 没有商品主图时用品牌色底 + 图标，而不是留一块空白 */
.go-hero.is-fallback {
  aspect-ratio: 16 / 9;
}
.go-hero.is-fallback .go-hero-media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(46% 46% at 50% 46%, rgba(255, 255, 255, 0.22), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 26px);
}
/* 图标后面垫一层柔光，纯色底不至于空 */
.go-hero.is-fallback .go-hero-media::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 62%);
  transform: translate(-50%, -50%);
}
.go-hero-icon {
  position: relative;
  width: 104px;
  height: 104px;
  padding: 13px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 50px -22px rgba(9, 20, 38, 0.7);
}
.go-hero-letter {
  color: #fff;
  font: 700 66px/1 var(--f-text);
  opacity: 0.92;
}
/* —— 正文：APP 图标 + 名称 + 标签一行 → 方案名 → 一行价格 —— */
.go-main {
  padding: 18px 22px 22px;
  animation: go-fade 0.55s var(--ease) 0.16s both;
}
/* 名称与标签共用一行：标签靠右，窄屏放不下时整组换行，退回原来的两层布局 */
.go-app {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 0 8px;
  min-width: 0;
}
.go-app-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
  background: #f2f5fa;
}
.go-app-letter {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--go-accent) 12%, #fff);
  color: color-mix(in srgb, var(--go-accent) 85%, #0b1526);
  font: 600 12px/1 var(--f-text);
}
.go-app-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
/* 价格只做信息，不做色块：一行写完，不与主按钮抢注意力。
   字号拉到 32px，但行高收到 1，上下留白一并压掉 —— 数字变大，整行不高。 */
.go-cost {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.go-cost strong {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: #d8451f;
  font: 700 32px/1 var(--f-num);
  letter-spacing: -0.03em;
}
.go-cost strong em {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
}
.go-cost strong small {
  margin-left: 2px;
  color: var(--ink-3);
  font: 500 12px/1 var(--f-text);
  letter-spacing: 0;
}
.go-cost s {
  color: var(--ink-3);
  text-decoration-color: rgba(139, 152, 172, 0.6);
}
.go-cost-off {
  color: #c2451f;
  font-weight: 600;
}
.go-cost-sub {
  color: var(--ink-3);
}
/* 折扣与月价跟在「省」后面，用一个间隔点断开，读起来不像一句话 */
.go-cost-sub::before {
  content: '·';
  margin-right: 5px;
  opacity: 0.55;
}
.go-cost .go-cost-pending {
  color: var(--ink-3);
  font: 600 13px/1.5 var(--f-text);
  letter-spacing: 0;
}
/* 标签跟在 APP 名右侧，margin-left: auto 把它推到行尾；不再单独占一行 */
.go-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}
.go-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f4f7fb;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.65;
  white-space: nowrap;
}
.go-tag.is-accent {
  background: #fff0e9;
  color: #c2451f;
  font-weight: 600;
}
.go-tag.is-brand {
  background: color-mix(in srgb, var(--go-accent) 10%, #fff);
  color: color-mix(in srgb, var(--go-accent) 82%, #0b1526);
  font-weight: 600;
}
/* 产品摘要：小图标 + 名称 / 价格，横向结构，图标不是重点 */
.go-head {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.go-head-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.go-thumb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4f8fd;
  overflow: hidden;
}
/* 有商品主图时用商品图顶掉 APP 图标，尺寸放大一档 */
.go-thumb.has-image {
  width: 88px;
  height: 88px;
  border-radius: 16px;
}
.go-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.go-thumb.has-image img {
  object-fit: cover;
}
.go-fallback-icon {
  color: var(--brand, var(--blue));
  font: 700 20px var(--f-text);
}
.go-thumb.has-image .go-fallback-icon {
  font-size: 34px;
}
.go-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}
.go-sub {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.go-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 0;
  flex-wrap: wrap;
}
.go-price strong {
  font: 700 28px/1.1 var(--f-num);
  color: var(--hot);
}
.go-price s {
  font-size: 12.5px;
  color: var(--ink-3);
}
.go-pending {
  font-size: 13px;
  color: var(--ink-3);
}
.go-meta {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
/* 下单须知：一行提示，压在复制框上方 */
.go-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid #eef3f9;
  border-radius: 10px;
  background: #f8fafd;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
  text-wrap: pretty;
}
.go-note svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  fill: none;
  stroke: #93a4b8;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 口令只是中转用的号码：可以点，但不该抢按钮的注意力 */
.go-token {
  margin-top: 14px;
  padding: 10px 13px 11px;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  background: #fafcfe;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.3s var(--ease);
}
.go-token:hover {
  border-color: #d5e1ef;
  background: #fff;
  box-shadow: 0 12px 24px -24px rgba(16, 32, 62, 0.9);
}
.go-token-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-3);
}
.go-token-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--ink-2);
}
.go-token-key svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.go-token-copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 500;
  color: #9aa8bb;
}
.go-token-copy-hint svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: go-nudge 3s var(--ease) infinite;
}
.go-token code {
  display: block;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #e8eef6;
  color: #5f7085;
  font: 12.5px/1.65 var(--f-mono);
  letter-spacing: 0.01em;
  /* 口令是整段分享文案（口令 + 短链 + 标题），换行会把卡片撑高、也像口令本身被截断了：
     固定一行，超出省略，完整内容仍会被整段复制。 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-actions {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.go-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font: 600 15.5px/1.4 var(--f-text);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.35s var(--spring),
    box-shadow 0.35s var(--ease),
    background 0.3s,
    border-color 0.3s;
}
.go-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 淘宝 logo 是实心图形：上面那套描边规则会让它散架，这里整块换掉。
   尺寸提一档到 18px —— 圆环里还套着「淘」字，17px 下两者会糊成一片。 */
.go-button .go-button-logo {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
/* 主按钮：整颗按钮做呼吸缩放；背景光带缓慢扫过，两者周期错开 */
.go-button.is-primary {
  order: -1;
  background-color: var(--hot);
  background-image: linear-gradient(
    108deg,
    var(--hot) 0%,
    var(--hot-2) 34%,
    #ffb469 50%,
    var(--hot-2) 66%,
    var(--hot) 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  box-shadow: 0 14px 28px -16px rgba(255, 77, 46, 0.7);
  animation:
    go-breathe 2.8s ease-in-out infinite,
    go-sweep 7s linear 1.4s infinite;
}
@keyframes go-breathe {
  0%,
  100% {
    scale: 1;
    box-shadow: 0 14px 28px -16px rgba(255, 77, 46, 0.7);
  }
  50% {
    scale: 1.03;
    box-shadow: 0 22px 40px -16px rgba(255, 77, 46, 0.95);
  }
}
@keyframes go-sweep {
  0% {
    background-position: 0% 50%;
  }
  30%,
  100% {
    background-position: 100% 50%;
  }
}
/* 次按钮：浅暖底 + 细描边，同高度同圆角，只靠颜色分主次 */
.go-button.is-ghost {
  border-color: #f2dccd;
  background: #fffaf7;
  color: #a55634;
  box-shadow: inset 0 1px 0 #fff;
}
@media (hover: hover) {
  .go-button:hover {
    transform: translateY(-2px);
  }
  /* 只在镂空按钮上换底色：直接写 background 会连 is-hot 的渐变一起清掉 */
  .go-button.is-ghost:hover {
    background: #fff3ea;
    border-color: #ffc7a6;
    color: #a55634;
  }
  .go-button.is-primary:hover {
    box-shadow: 0 20px 36px -16px rgba(255, 77, 46, 0.9);
  }
}
.go-button:active {
  transform: translateY(0) scale(0.985);
}

.go-button:focus-visible,
.go-token:focus-visible,
.go-toast-close:focus-visible,
.go-foot a:focus-visible {
  outline: 2px solid var(--go-accent);
  outline-offset: 5px;
}
.go-hint {
  max-width: 340px;
  margin: 22px auto 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: #687990;
  text-align: center;
  text-wrap: pretty;
}
/* 口令页里的二维码只是补充：只有「强制仅限手机」才出现，放在按钮之后 */
.go-qr-foot {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.go-qr-foot .qr-box {
  margin: 0 auto 10px;
}
/* 「查看更多」是离开本页的出口：描边胶囊按钮，跟上面两颗行动按钮分得开，
   也不再靠一条分隔线单独占一段高度 */
.go-foot {
  margin: 16px 0 0;
  text-align: center;
}
.go-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.go-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--spring);
}
@media (hover: hover) {
  .go-more:hover {
    border-color: color-mix(in srgb, var(--blue) 34%, #fff);
    background: var(--blue-soft);
    color: var(--blue);
  }
  /* 四宫格是「全部」的意思，没有方向性，hover 只做轻微放大 */
  .go-more:hover svg {
    transform: scale(1.12);
  }
}
/* 锚定卡片上半部，不随整页高度下沉；窄屏保持卡片内留白。 */
.go-toast {
  position: absolute;
  top: min(42%, 180px);
  left: 50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 9px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 340px;
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(13, 27, 48, 0.96);
  box-shadow: 0 30px 70px -18px rgba(13, 27, 48, 0.7);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s, transform 0.35s var(--spring);
  pointer-events: none;
}
.go-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.go-toast svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: #07c160;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.go-toast-title {
  font-size: 21px;
  line-height: 1.3;
}
/* 提示里的「手机淘宝 APP」用淘宝橙点出来：深色提示条上够亮，又不至于被读成警告红 */
.go-toast-app {
  color: #ff8a00;
  font-weight: 700;
}
.go-toast.is-error svg {
  display: none;
}
.go-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 22px/1 var(--f-text);
  cursor: pointer;
}
.go-toast-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
#offer-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: 90dvh;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(60% 40% at 100% 0%, color-mix(in srgb, var(--blue) 8%, transparent), transparent),
    #fff;
  box-shadow: 0 30px 100px #10203e33;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
#offer-dialog::-webkit-scrollbar {
  display: none;
}
body:has(#offer-dialog[open]) {
  overflow: hidden;
}
#offer-dialog::backdrop {
  background: #12284166;
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: sticky;
  float: right;
  top: 0;
  display: grid;
  place-items: center;
  margin: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
}
.dialog-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 弹窗内再打开商品时，同一个按钮的语义是「返回上一层」，换成箭头图标更符合直觉 */
.dialog-close .dialog-close-back {
  display: none;
}
.dialog-close.is-back .dialog-close-cross {
  display: none;
}
.dialog-close.is-back .dialog-close-back {
  display: block;
}
.dialog-close:hover {
  background: var(--blue-soft);
}
.dialog-loading {
  padding: 50px 20px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}
/* 弹窗底部动作行：左边去类型页看同类会员，右边进入完整详情页 */
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dialog-actions .back-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 0;
  font-size: 12.5px;
  color: #1767c4;
}
.dialog-actions .back-link:hover {
  background: none;
  color: var(--blue);
  text-decoration: underline;
}
#offer-dialog .product-header h1 {
  font-size: 22px;
}
/* 扫码提示弹窗：手机 / 微信专属渠道在桌面端点击时出现 */
#qr-dialog {
  width: min(366px, calc(100vw - 28px));
  padding: 26px 24px 22px;
  border: 1px solid rgba(20, 50, 100, 0.08);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -12%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 62%),
    #fff;
  box-shadow: 0 30px 90px -24px rgba(16, 32, 62, 0.55);
  overflow: visible;
}
#qr-dialog[open] {
  animation: qr-in 0.34s var(--ease) both;
}
/* 容器只承接初始焦点，不需要轮廓；键盘 Tab 到关闭按钮时仍会有焦点环 */
#qr-dialog:focus,
#qr-dialog:focus-visible {
  outline: none;
}
#qr-dialog::backdrop {
  background: rgba(13, 27, 48, 0.62);
  backdrop-filter: blur(6px);
}
.qr-close {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(16, 32, 62, 0.6);
  transition: background 0.25s, color 0.25s, transform 0.35s var(--spring);
}
.qr-close:hover {
  background: var(--blue-soft);
  color: #1767c4;
  transform: rotate(90deg);
}
.qr-emblem {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(140deg, #4aa8ff, #2a7bfc);
  box-shadow: 0 14px 26px -14px rgba(42, 123, 252, 0.95);
  transition: background 0.3s, box-shadow 0.3s;
}
#qr-dialog[data-kind='wechat'] .qr-emblem {
  background: linear-gradient(140deg, #3ee283, #07c160);
  box-shadow: 0 14px 26px -14px rgba(7, 193, 96, 0.95);
}
.qr-emblem svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qr-emblem .qr-emblem-wechat {
  display: none;
}
#qr-dialog[data-kind='wechat'] .qr-emblem-phone {
  display: none;
}
#qr-dialog[data-kind='wechat'] .qr-emblem-wechat {
  display: block;
}
.qr-body {
  display: none;
}
#qr-dialog[data-kind='mobile'] .qr-body[data-for='mobile'],
#qr-dialog[data-kind='wechat'] .qr-body[data-for='wechat'] {
  display: block;
}
.qr-body h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.01em;
}
/* 仅「微信扫一扫」「微信 APP」等微信能力用品牌绿强调 */
.qr-body b {
  font-weight: 700;
  color: #07c160;
}
.qr-body[data-for='mobile'] b {
  color: inherit;
}
.qr-sub {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: center;
}
.qr-box {
  display: grid;
  place-items: center;
  width: 216px;
  min-height: 216px;
  margin: 16px auto 14px;
  padding: 12px;
  border: 1px solid rgba(20, 50, 100, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px -22px rgba(16, 32, 62, 0.8);
}
.qr-code {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.qr-code img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  -webkit-touch-callout: default;
}
.qr-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #a33d3a;
  text-align: center;
}
.qr-tip {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}
.qr-tip + .qr-tip {
  margin-top: 3px;
}
.qr-tip-save {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.qr-tip-muted {
  font-size: 12.5px;
  color: #9aa8ba;
}
/* 微信版：桌面给「用微信扫码」，手机给「截屏/保存后用微信识别」，只显示一条 */
.qr-body[data-for='wechat'] .qr-tip[data-surface] {
  display: none;
}
#qr-dialog[data-surface='desktop'] .qr-body[data-for='wechat'] .qr-tip[data-surface='desktop'],
#qr-dialog[data-surface='mobile'] .qr-body[data-for='wechat'] .qr-tip[data-surface='mobile'] {
  display: block;
}
@keyframes qr-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
body:has(#qr-dialog[open]) {
  overflow: hidden;
}
:focus-visible {
  outline: 3px solid #168baf;
  outline-offset: 4px;
}
@media (max-width: 1120px) {
  /* 窄屏：搜索收进首行，站点导航独立成一行 */
  .nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    grid-template-areas:
      'logo search'
      'nav nav';
    gap: 12px;
    padding: 22px 0 20px;
  }
  .logo {
    grid-area: logo;
  }
  .search {
    grid-area: search;
    width: 100%;
  }
  /* 窄屏不再换行：导航压成一条可横向拖动的胶囊轨道，条目收窄、圆角收小。
     轨道一旦带上 overflow 就会裁掉下拉菜单，所以菜单在下面改成视口级定位。 */
  .site-nav {
    grid-area: nav;
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    /* 拖到两端时不把整页一起拖着走 */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 祖先上的 backdrop-filter 会成为 fixed 子元素的包含块，
       菜单就又被关回滚动容器里了，窄屏只能放弃这层模糊 */
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.82);
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  /* 条目横向收紧、纵向留足：一行塞得下更多入口，高度又不至于比 LOGO / 搜索框矮一截 */
  .site-nav > a,
  .nav-drop-trigger {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 13px;
  }
  .site-nav-sep {
    margin: 0 1px;
  }
  /* 窄屏的菜单一律改用视口级定位：轨道带 overflow（哪怕这次没溢出）也会把菜单裁掉，
     而 fixed 既逃出裁剪，也不会跟着轨道一起被拖走。
     横向坐标由脚本按触发器算好并夹在视口内，纵向贴着胶囊轨道底边。 */
  .nav-drop > .nav-drop-menu,
  .nav-drop:last-child > .nav-drop-menu {
    position: fixed;
    top: var(--nav-menu-top, 0px);
    left: var(--nav-menu-left, 0px);
    right: auto;
    transform: translateY(6px);
  }
  .nav-drop:hover > .nav-drop-menu,
  .nav-drop:has(:focus-visible) > .nav-drop-menu,
  .nav-drop.is-open > .nav-drop-menu,
  .nav-drop:last-child:hover > .nav-drop-menu,
  .nav-drop:last-child:has(:focus-visible) > .nav-drop-menu,
  .nav-drop:last-child.is-open > .nav-drop-menu {
    transform: translateY(0);
  }
  /* 尖角跟着触发器走，并夹在卡片两端的圆角之内 */
  .nav-drop-card::before,
  .nav-drop:last-child .nav-drop-card::before {
    left: var(--nav-menu-arrow, 24px);
    right: auto;
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .page {
    width: calc(100% - 28px);
  }
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 0 20px;
    gap: 10px 12px;
  }
  /* —— 搜索：收起是一枚圆形按钮，和 LOGO 同一行，点开才占满整行 ——
     收起态只留一个圆：放大镜居中，输入框、清空按钮全部藏起来；
     点圆按钮时脚本加 is-open，表单再横跨整行（盖住 LOGO 那一列）。 */
  .search {
    grid-area: search;
    justify-self: end;
    width: 40px;
    height: 40px;
    /* 收起时输入框的左右内边距会把自己撑出圆形之外（它只是被隐藏，仍占布局），
       这里直接裁掉，页面才不会被顶出一条横向滚动 */
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
  }
  .search > svg {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .search input {
    opacity: 0;
    visibility: hidden;
  }
  .search-clear {
    display: none;
  }
  /* 整枚圆都是热区，点在图标上也算 */
  .search-toggle {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
  }
  .search-toggle:active {
    background: rgba(20, 50, 100, 0.05);
  }
  .search.is-open {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    /* 右侧留出「取消」的位置，输入框仍是完整的一颗胶囊 */
    padding-right: 46px;
    /* 展开后要露出输入框的聚焦光圈 */
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .search.is-open > svg {
    left: 14px;
    transform: translateY(-50%);
  }
  .search.is-open input {
    opacity: 1;
    visibility: visible;
  }
  /* 展开后清空按钮回到输入框内右端（46px 是「取消」让出来的宽度） */
  .search.is-open .search-clear {
    display: grid;
    right: 55px;
  }
  .search.is-open .search-toggle {
    display: none;
  }
  /* 「取消」只在展开时出现：它是退出搜索的出口，收起态不能占位 */
  .search.is-open .search-cancel {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink-2);
    font: 13px/1 var(--f-text);
    cursor: pointer;
    transform: translateY(-50%);
  }
  /* 展开时 LOGO 让位：搜索框铺满整行，底下的 LOGO 不能透出来 */
  .nav:has(.search.is-open) .logo {
    opacity: 0;
    pointer-events: none;
  }
  .search kbd {
    display: none;
  }
  /* 导航轨道再收一档：更小的间距、更小的圆角，一行装得下更多入口 */
  .site-nav {
    padding: 4px;
    border-radius: 12px;
  }
  .site-nav > a,
  .nav-drop-trigger {
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    gap: 5px;
  }

  /* 焦点图：文字左、大图标右并垂直居中 */
  .carousel {
    border-radius: 22px;
  }
  .slide {
    align-items: center;
    min-height: 0;
    padding: 22px 20px 84px;
    background:
      radial-gradient(
        circle at 84% 46%,
        color-mix(in srgb, var(--brand) 20%, transparent),
        transparent 46%
      ),
      linear-gradient(160deg, #fff 45%, color-mix(in srgb, var(--brand) 7%, #f3f8ff));
    grid-template-columns: minmax(0, 1fr) clamp(96px, 26vw, 124px);
    gap: 10px;
  }
  .slide::before {
    -webkit-mask: radial-gradient(ellipse at 84% 46%, #000 6%, transparent 55%);
    mask: radial-gradient(ellipse at 84% 46%, #000 6%, transparent 55%);
  }
  .slide-copy {
    min-width: 0;
  }
  .kicker {
    margin-bottom: 10px;
    font-size: 12px;
  }
  .slide h2 {
    font-size: clamp(24px, 5vw, 32px);
    overflow-wrap: anywhere;
  }
  .slide-desc {
    margin-top: 6px;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .slide-tag {
    margin-top: 8px;
    padding: 2px 8px;
    font-size: 12px;
  }
  .slide-price {
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .big {
    font-size: 42px;
  }
  .big em {
    font-size: 12px;
  }
  .slide-meta b {
    font-size: 12.5px;
    padding: 1px 8px;
  }
  .slide-meta s {
    font-size: 11.5px;
  }
  .cta {
    margin-top: 16px;
    padding: 9px 16px;
    font-size: 13px;
  }
  .slide-art {
    width: clamp(96px, 26vw, 124px);
    margin: 0;
  }
  .slide-art img {
    width: 90%;
    animation-duration: 5s;
    border-radius: 26%;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.05),
      0 18px 34px -14px color-mix(in srgb, var(--brand) 85%, #000);
  }
  .stack-slide {
    --stack-size: clamp(86.4px, 23.4vw, 111.6px);
    /* 窄屏右栏只有 96~124px，位移比例收到 0.21：再大侧边图标就会顶到卡片右边缘 */
    --stack-spread: calc(var(--stack-size) * 0.21);
    --stack-border: 3px;
  }
  .stack-tab {
    --stack-size: 22px;
    --stack-overlap: 18px;
    --stack-radius: 7px;
  }
  .ring {
    inset: -9%;
  }
  .r2 {
    inset: 1%;
  }
  .glow {
    inset: 22%;
    filter: blur(26px);
    opacity: 0.42;
  }
  .chip {
    display: none;
  }

  /* 标签：仅图标，均分宽度 */
  .tabs {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 4px;
    border-radius: 16px;
  }
  .tabs button {
    justify-content: center;
    padding: 6px 4px 9px;
    border-radius: 12px;
  }
  /* 小屏只剩图标，一格 34px 就够；10 个条目装不下时同样走横向滚动 */
  .tab-track button {
    flex: 1 0 auto;
    min-width: 34px;
  }
  .tabs .tab-copy {
    display: none;
  }
  .tabs img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .tabs button i {
    left: 30%;
    right: 30%;
    bottom: 3px;
  }
  .tabs .auto {
    width: 40px;
  }

  .ticker {
    margin: 20px -14px 32px;
  }
  .section-head p {
    font-size: 12px;
  }
  .grid,
  .results {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 18px;
    gap: 16px;
  }
  .now {
    font-size: 38px;
  }
  .slide-art .hero-icon {
    font-size: 38px;
    width: 90%;
  }
  /* 页脚品牌：窄屏收小 LOGO 与站名；分隔线收起，Slogan 折行后不会留下悬空竖线 */
  .footer-brand {
    gap: 8px 10px;
  }
  .footer-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .footer-brand-name {
    font-size: 17px;
  }
  .footer-brand-slogan {
    padding-left: 0;
    font-size: 12px;
  }
  .footer-brand-slogan::before {
    display: none;
  }
}
@media (min-width: 400px) and (max-width: 899px) {
  .grid,
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card {
    --card-icon-size: 48px;
    padding: 14px;
    gap: 12px;
    border-radius: 18px;
  }
  .card-top {
    gap: 10px;
  }
  .app {
    border-width: 2.5px;
    border-radius: 14px;
  }
  .stack {
    padding-left: 11px;
  }
  .stack img,
  .stack .stack-fallback,
  .stack .more {
    margin-left: -11px;
    border-width: 2.5px;
    border-radius: 14px;
  }
  .stack .more {
    font-size: 13px;
  }
  .card:hover .stack img,
  .card:hover .stack .stack-fallback,
  .card:hover .stack .more,
  .card:hover .stack > :first-child {
    margin-left: -11px;
  }
  .combo .card-top {
    gap: 10px;
  }
  .combo .card-foot {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .meta h3 {
    font-size: 15px;
  }
  .meta p {
    font-size: 11.5px;
  }
  .price {
    flex-wrap: wrap;
    gap: 2px 6px;
  }
  .now {
    font-size: 30px;
  }
  .now small {
    font-size: 15px;
  }
  .now em {
    font-size: 11.5px;
  }
  .price s {
    font-size: 12px;
  }
  .card-foot {
    gap: 6px;
    font-size: 11.5px;
  }
  .status {
    gap: 4px;
    padding: 3px 8px;
  }
  .save {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .go {
    width: 26px;
    height: 26px;
  }
  .go svg {
    width: 14px;
    height: 14px;
  }
  .is-hot::after {
    padding: 1px 8px 2px;
    font-size: 10px;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid,
  .results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
/* 平板宽度仍是左右两栏，但右栏被压窄，叠图按 0.44 收一档，
   否则最右边的成员会顶到卡片边缘被裁掉一角 */
@media (min-width: 761px) and (max-width: 899px) {
  .stack-slide {
    --stack-spread: calc(var(--stack-size) * 0.44);
  }
}
@media (hover: none) {
  .card:hover {
    transform: none;
  }
  .card:active {
    transform: scale(0.985);
  }
}
@media (max-width: 650px) {
  .detail-panel {
    padding: 20px;
  }
  #offer-dialog {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .product-header {
    gap: 10px;
  }
  .product-header h1,
  #offer-dialog .product-header h1 {
    font-size: 20px;
  }
  .product-header img,
  .product-header .fallback-icon {
    width: 46px;
    height: 46px;
  }
  .product-header .stack {
    --stack-size: 46px;
    --stack-overlap: 10px;
    --stack-overlap-hover: 4px;
    --stack-border: 2px;
    --stack-radius: 12px;
  }
  .offer-purchase {
    padding: 13px 12px 11px;
  }
  .offer-top {
    gap: 8px;
  }
  .offer-info h3 {
    font-size: 14px;
    gap: 4px;
  }
  .offer-badge {
    font-size: 9px;
  }
  .offer-specs,
  .offer-note,
  .offer-conditions {
    font-size: 10px;
  }
  .offer-price {
    max-width: 130px;
  }
  .offer-price strong {
    font-size: 25px;
  }
  .offer-channels {
    padding: 0 12px 12px;
    gap: 6px;
  }
  .offer-channel {
    padding: 6px 9px;
  }
  .offer-bottom {
    margin: 0 12px;
    padding: 8px 0 10px;
    gap: 6px;
    font-size: 10px;
  }
  .related-link {
    padding: 12px;
    gap: 9px;
  }
  .related-link img,
  .related-link-fallback {
    width: 32px;
    height: 32px;
  }
  /* 窄屏收一档，给标题留出可读空间 */
  .related-link .stack {
    --stack-size: 40px;
    --stack-overlap: 11px;
  }
  .token-panel {
    padding: 25px 20px;
  }
  .go-wrap {
    margin-top: 24px;
  }
  .go-card {
    padding: 26px 22px 22px;
    border-radius: 26px;
  }
  .go-head {
    gap: 14px;
  }
  .go-name {
    font-size: 17px;
  }
  .go-thumb.has-image {
    width: 76px;
    height: 76px;
  }
  /* 手机上的胶囊、留白与字号同步收边 */
  .go-chip {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
  }
  .go-wrap {
    margin-top: -10px;
  }
  .go-main {
    padding: 16px 18px 18px;
  }
  /* 方案名在手机上只占一行：放不下就左右拖看。折行会把价格和按钮一路往下推，
     首屏就只剩标题了；横向滚动条本身不显示，留白也不占位。 */
  .go-title {
    font-size: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .go-title::-webkit-scrollbar {
    display: none;
  }
  .go-token {
    margin-top: 12px;
  }
  .go-actions {
    margin-top: 16px;
  }
  .go-scan {
    margin-top: 26px;
    padding-top: 24px;
  }
  .go-qr-title {
    font-size: 17px;
  }
  .site-footer {
    margin-top: 30px;
  }
}
/* 小屏（SE 一类）再收一档：方案名与价格同步缩小，
   否则标题占三行、价格折行，按钮就被挤出首屏 */
@media (max-width: 400px) {
  .go-title {
    font-size: 17px;
  }
  .go-cost strong {
    font-size: 28px;
  }
  .go-cost strong em {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* iOS / iPadOS 聚焦字号小于 16px 的输入框时会把整个页面自动放大，之后整页都能被拖着走，
   看起来就像点了一下搜索框页面就「坏了」。触屏设备上把字号锁在 16px，这段缩放就不会触发。 */
@media (hover: none), (max-width: 760px) {
  .search input {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .search input {
    /* 只收右侧内边距，让清空按钮不压字；字号仍锁 16px，再小一档 iOS 又会把页面放大 */
    padding-right: 34px;
  }
}

@media (max-width: 360px) {
  .detail-panel {
    padding: 12px;
  }
  .offer-top {
    flex-wrap: wrap;
  }
  .offer-figure {
    align-items: flex-start;
    flex: none;
    width: 100%;
  }
  .offer-price {
    justify-content: flex-start;
    max-width: none;
  }
  .offer-bottom {
    gap: 4px;
  }
  /* 320～360 的窄机上再让一步：数字仍要比正文明显，但不至于占满半行 */
  .go-title {
    font-size: 16px;
  }
  .go-cost strong {
    font-size: 26px;
  }
  .go-cost strong em {
    font-size: 13px;
  }
}
