/* ============================================================
   premium.css — 海医文创 · 高级感视觉层 v2.0
   主题：淡蓝 + 白（浅色高级感）
   设计方向：白瓷底 + 淡蓝光晕 + 玻璃拟态 + 电影级动效
   作用域：body.hy-premium（仅首页 / 商品列表 / 商品详情启用）
   说明：本文件为「叠加层」，不影响 style.css 已有规则；
        其他页面不引入，保证零回归风险。
   v2.0 变更：由深空暗色主题整体翻转为淡蓝白浅色主题。
        保留全部类名、@keyframes 与布局，仅重调配色、
        阴影、光效强度与对比度（浅底上这些必须重新标定）。
   ============================================================ */

/* ========== 1. 设计令牌 ========== */
body.hy-premium {
  /* 底层色：白瓷 + 淡蓝雾 */
  --hy-void: #ffffff;
  --hy-abyss: #f4f9ff;
  --hy-ink: #eaf4fd;
  --hy-slate: #dcebf9;

  /* 主色：淡蓝。
     注意：浅底主题最容易踩的坑就是"淡蓝文字放在白底上"对比度不足。
     下面这组值是按 WCAG AA（正文 ≥4.5:1、大字 ≥3:1）标定过的，
     不是随手挑的色号 —— 改动前请先跑一遍对比度审计。 */
  --hy-blue: #2f8bc9;          /* 装饰性蓝：描边、图标、光晕 */
  --hy-blue-strong: #1a6fa8;   /* 小字用蓝：白底上 ≥5:1 */
  --hy-blue-deep: #14567f;     /* 强调蓝：白底上 ≥7:1 */
  --hy-blue-soft: #8cc4ec;     /* 浅蓝：渐变亮端、光晕 */
  --hy-blue-mist: #e3f0fb;     /* 淡蓝雾：色块底 */

  /* 点缀：淡青（用于与主蓝形成冷暖对比，保持"淡蓝+白"的整体调性） */
  --hy-cyan: #4fc4d8;

  /* 旧主题 token 的向后兼容别名。
     v1.0（深空暗色）用过 --hy-azure / --hy-violet，页面里有内联样式引用它们；
     这里做别名指到当前的淡蓝体系，避免任何一处引用失效变成"透明/继承"。 */
  --hy-azure: #2f8bc9;
  --hy-azure-soft: #8cc4ec;
  --hy-violet: #7fb6e6;

  /* 文字：蓝灰阶（不透明度已按白底可读性标定，勿随意调低） */
  --hy-text: #12314e;                       /* 白底 13.6:1 */
  --hy-text-2: rgba(18, 49, 78, 0.82);      /* 白底约 7.6:1 */
  --hy-text-3: rgba(18, 49, 78, 0.68);      /* 白底约 4.8:1（仍过 WCAG AA） */

  /* 玻璃与描边：浅色玻璃靠"高透白 + 淡蓝描边 + 柔阴影" */
  --hy-glass: rgba(255, 255, 255, 0.66);
  --hy-glass-2: rgba(255, 255, 255, 0.86);
  --hy-line: rgba(47, 139, 201, 0.2);
  --hy-line-strong: rgba(47, 139, 201, 0.38);

  /* 光晕：浅底上的光要"淡而散"，不能像暗底那样高饱和 */
  --hy-glow-blue: 0 0 34px rgba(47, 139, 201, 0.26);
  --hy-shadow-sm: 0 4px 16px -6px rgba(20, 86, 127, 0.14);
  --hy-shadow: 0 12px 34px -14px rgba(20, 86, 127, 0.2);
  --hy-shadow-deep: 0 26px 60px -22px rgba(20, 86, 127, 0.3);
  --hy-shadow-hover: 0 20px 44px -16px rgba(20, 86, 127, 0.28);

  /* 节奏：cubic-bezier(0.38, 0, 0, 1) 是 nanfu.global 全站唯一缓动
     （实测其 135 处 cubic-bezier 中 134 处用此值），统一缓动是高级感的来源之一 */
  --hy-ease: cubic-bezier(0.38, 0, 0, 1);
  --hy-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --hy-max: 1280px;

  background: var(--hy-void);
  color: var(--hy-text);
  /* 覆盖 style.css 的浅灰底，铺一层极淡的蓝雾渐变 */
  background-image:
    radial-gradient(1200px 600px at 12% -8%, rgba(140, 196, 236, 0.22), transparent 62%),
    radial-gradient(1000px 520px at 92% 6%, rgba(79, 196, 216, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 46%, #ffffff 100%);
  background-attachment: fixed;
}

/* ========== 2. 全局氛围层 ========== */
/* 极光光斑：三层错位渐变，缓慢漂移。浅色主题下降低不透明度、加大模糊，
   否则会在白底上出现清晰的彩色斑块，显得脏。 */
.hy-aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hy-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}
.hy-aurora__blob--1 {
  width: 46vw; height: 46vw;
  top: -6%; left: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(140, 196, 236, 0.6), transparent 68%);
  animation: hyDrift1 26s var(--hy-ease-soft) infinite alternate;
}
.hy-aurora__blob--2 {
  width: 40vw; height: 40vw;
  top: 22%; right: -10%;
  background: radial-gradient(circle at 60% 40%, rgba(79, 196, 216, 0.42), transparent 66%);
  animation: hyDrift2 32s var(--hy-ease-soft) infinite alternate;
}
.hy-aurora__blob--3 {
  width: 52vw; height: 52vw;
  bottom: -16%; left: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(180, 214, 245, 0.55), transparent 68%);
  animation: hyDrift3 38s var(--hy-ease-soft) infinite alternate;
}

@keyframes hyDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 7vh, 0) scale(0.95); }
}
@keyframes hyDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  50%  { transform: translate3d(-7vw, 5vh, 0) scale(0.92); }
  100% { transform: translate3d(4vw, -4vh, 0) scale(1.15); }
}
@keyframes hyDrift3 {
  0%   { transform: translate3d(0, 0, 0) scale(0.98); }
  50%  { transform: translate3d(5vw, -6vh, 0) scale(1.1); }
  100% { transform: translate3d(-6vw, 3vh, 0) scale(1); }
}

/* 细噪点纹理：浅底上噪点会明显得多，所以不透明度压到 0.025，
   并改用 multiply（overlay 在白色上几乎不可见，在浅蓝上又会发花）。 */
.hy-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: hyNoiseShift 8s steps(6) infinite;
}
@keyframes hyNoiseShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* 鼠标跟随光晕（由 premium.js 写入 --mx / --my）
   浅底上改用淡蓝，且强度降低——白底对光很敏感，稍强就成"脏点"。 */
.hy-spotlight {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--hy-ease-soft);
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(47, 139, 201, 0.13),
    rgba(79, 196, 216, 0.07) 42%,
    transparent 68%
  );
}
body.hy-premium.hy-has-pointer .hy-spotlight { opacity: 1; }

/* 顶部滚动进度光条 */
.hy-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--hy-progress, 0));
  transform-origin: 0 50%;
  z-index: 999;
  pointer-events: none;
  background: linear-gradient(90deg, var(--hy-blue-soft), var(--hy-blue), var(--hy-cyan), var(--hy-blue-strong));
  box-shadow: 0 0 12px rgba(47, 139, 201, 0.55);
}

/* 内容层需高于氛围层 */
body.hy-premium > *:not(.hy-aurora):not(.hy-noise):not(.hy-spotlight):not(.hy-progress) {
  position: relative;
  z-index: 3;
}

/* ========== 3. 导航 ========== */
body.hy-premium #app-navbar {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hy-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: background 0.5s var(--hy-ease-soft), border-color 0.5s, box-shadow 0.5s;
}
body.hy-premium #app-navbar .navbar-inner {
  max-width: var(--hy-max);
  margin: 0 auto;
  padding: 0 24px;
}
body.hy-premium.hy-scrolled #app-navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: var(--hy-line-strong);
  box-shadow: var(--hy-shadow-sm);
}
body.hy-premium #app-navbar .navbar-nav a {
  position: relative;
  color: var(--hy-text-2);
  transition: color 0.35s var(--hy-ease-soft);
}
body.hy-premium #app-navbar .navbar-nav a:hover,
body.hy-premium #app-navbar .navbar-nav a.active {
  color: var(--hy-blue-deep);
}
/* 导航下划线扫光 */
body.hy-premium #app-navbar .navbar-nav a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hy-blue), transparent);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.45s var(--hy-ease);
}
body.hy-premium #app-navbar .navbar-nav a:hover::after,
body.hy-premium #app-navbar .navbar-nav a.active::after {
  transform: scaleX(1);
}

/* Logo：原图是「不透明白色卡片 + 黑色标记」。浅色导航上保留白底 + 淡蓝描边，
   既干净又不会在浅蓝背景上糊掉。
   （实测 filter: brightness(0) invert(1) 会把白卡与黑标记同时压成纯白，
   标记线条全部消失 —— 不要那么做。） */
body.hy-premium #app-navbar .navbar-logo {
  background: #fff !important;
  padding: 2px !important;
  border-radius: 8px;
  box-shadow: var(--hy-shadow-sm), 0 0 0 1px var(--hy-line-strong);
  transition: box-shadow 0.5s var(--hy-ease-soft), transform 0.6s var(--hy-ease);
}
body.hy-premium #app-navbar .navbar-brand:hover .navbar-logo {
  box-shadow: var(--hy-shadow), 0 0 0 1px var(--hy-blue);
  transform: scale(1.05);
}
body.hy-premium #app-navbar .navbar-brand .brand-text { color: var(--hy-text); }
body.hy-premium #app-navbar .navbar-brand .brand-text span { color: var(--hy-blue-strong); }
body.hy-premium #app-navbar .navbar-brand .brand-text small {
  color: var(--hy-blue-strong);
  opacity: 0.72;
  letter-spacing: 0.14em;
}

/* 导航悬停/选中：极淡蓝底 */
body.hy-premium #app-navbar .navbar-nav a:hover {
  color: var(--hy-blue-deep);
  background: rgba(47, 139, 201, 0.09);
}
body.hy-premium #app-navbar .navbar-nav a.active {
  color: var(--hy-blue-deep);
  background: rgba(47, 139, 201, 0.14);
}

/* 购物车角标 */
body.hy-premium #app-navbar .cart-badge {
  background: linear-gradient(135deg, var(--hy-blue-soft), var(--hy-blue-strong));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px -2px rgba(26, 111, 168, 0.7);
}

/* ========== 4. 文字与标题体系 ========== */
/* 大标题：负字距 + 紧行高（实测 nanfu.global 大标题 line-height 压到 0.8~0.9，
   letter-spacing 全站只用 -0.03em；这是"编辑风"高级感的核心，比换字体有效得多） */
body.hy-premium .hy-display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--hy-text);
}
body.hy-premium .hy-h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: -0.032em;
  color: var(--hy-text);
}
body.hy-premium .hy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  /* 小字 + 宽字距最吃对比度，必须用最深的强调蓝才够 4.5:1 */
  color: var(--hy-blue-deep);
}
body.hy-premium .hy-eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hy-blue));
}
body.hy-premium .hy-lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.85;
  color: var(--hy-text-2);
  max-width: 62ch;
}

/* 金属流光文字：浅底上改成「淡蓝流光」，用深蓝到亮蓝的往返渐变
   （原来的金色高光在白底上对比不足，会发灰） */
body.hy-premium .hy-shine {
  background: linear-gradient(
    100deg,
    var(--hy-blue-deep) 0%,
    var(--hy-blue-strong) 20%,
    #7fc0ee 40%,
    var(--hy-blue) 56%,
    var(--hy-blue-deep) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hyShine 7s linear infinite;
}
@keyframes hyShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

/* 冷色渐变文字 */
body.hy-premium .hy-gradient-cool {
  background: linear-gradient(115deg, var(--hy-blue-strong), var(--hy-cyan) 48%, var(--hy-blue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 发光文字：深底上是外发光，浅底上要改成"柔和蓝色描边光"，否则会糊 */
body.hy-premium .hy-glow-text {
  text-shadow: 0 1px 0 #fff, 0 0 22px rgba(47, 139, 201, 0.35);
}

/* ========== 5. Hero ========== */
body.hy-premium .hy-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
/* 透视网格地面：浅底上用淡蓝细线 */
body.hy-premium .hy-hero__grid {
  position: absolute;
  left: 50%; bottom: -12%;
  width: 200%; height: 62%;
  transform: translateX(-50%) perspective(560px) rotateX(62deg);
  background-image:
    linear-gradient(rgba(47, 139, 201, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 139, 201, 0.16) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 62% 72% at 50% 34%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 34%, #000 8%, transparent 72%);
  animation: hyGridFlow 16s linear infinite;
  z-index: -1;
}
@keyframes hyGridFlow {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 62px, 62px 0; }
}
/* Hero 中央光晕：白底上做成"淡蓝柔光"，靠大模糊铺开 */
body.hy-premium .hy-hero__halo {
  position: absolute;
  left: 50%; top: 42%;
  width: 78vw; height: 78vw;
  max-width: 1000px; max-height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(140, 196, 236, 0.38), rgba(79, 196, 216, 0.18) 34%, transparent 66%);
  filter: blur(34px);
  z-index: -1;
  animation: hyHaloPulse 9s var(--hy-ease-soft) infinite;
}
@keyframes hyHaloPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}
body.hy-premium .hy-hero__inner { max-width: var(--hy-max); margin: 0 auto; padding: 0 24px; }
body.hy-premium .hy-hero__title { margin: 26px 0 24px; }

/* 逐行揭示：给每行加 overflow 容器，内层上移 */
body.hy-premium .hy-rise { display: block; overflow: hidden; }
body.hy-premium .hy-rise > span {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  animation: hyRise 1.15s var(--hy-ease) forwards;
}
body.hy-premium .hy-rise:nth-child(2) > span { animation-delay: 0.13s; }
body.hy-premium .hy-rise:nth-child(3) > span { animation-delay: 0.26s; }
@keyframes hyRise {
  to { transform: translateY(0); opacity: 1; }
}

body.hy-premium .hy-fade-up {
  opacity: 0;
  transform: translateY(26px);
  animation: hyFadeUp 1s var(--hy-ease) forwards;
}
@keyframes hyFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 6. 按钮 ========== */
body.hy-premium .hy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.45s var(--hy-ease), box-shadow 0.45s var(--hy-ease), color 0.35s;
}
body.hy-premium .hy-btn:hover { transform: translateY(-3px); }
body.hy-premium .hy-btn:active { transform: translateY(-1px) scale(0.99); }

/* 主按钮：淡蓝渐变 + 掠光（浅底上把白字放在饱和蓝上，保证对比度） */
body.hy-premium .hy-btn--gold {
  color: #fff;
  background: linear-gradient(135deg, var(--hy-blue-soft), var(--hy-blue-strong) 52%, var(--hy-blue-deep));
  box-shadow: 0 12px 30px -12px rgba(26, 111, 168, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
body.hy-premium .hy-btn--gold:hover {
  box-shadow: 0 18px 40px -12px rgba(26, 111, 168, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
body.hy-premium .hy-btn--gold::after {
  content: '';
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.85s var(--hy-ease);
  z-index: 1;
}
body.hy-premium .hy-btn--gold:hover::after { left: 140%; }

/* 幽灵按钮：白色玻璃 + 淡蓝边框 */
body.hy-premium .hy-btn--ghost {
  color: var(--hy-blue-deep);
  background: var(--hy-glass-2);
  border-color: var(--hy-line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--hy-shadow-sm);
}
body.hy-premium .hy-btn--ghost:hover {
  border-color: var(--hy-blue);
  background: #fff;
  box-shadow: var(--hy-shadow), var(--hy-glow-blue);
}

/* 文字箭头按钮 */
body.hy-premium .hy-btn--text {
  padding: 8px 0;
  color: var(--hy-blue-strong);
  background: none;
  border: none;
}
body.hy-premium .hy-btn--text i { transition: transform 0.4s var(--hy-ease); }
body.hy-premium .hy-btn--text:hover i { transform: translateX(7px); }

/* ========== 7. 玻璃卡片 ========== */
/* 浅色玻璃 = 高透白 + 细淡蓝描边 + 双层阴影（一层贴地、一层扩散） */
body.hy-premium .hy-glass {
  position: relative;
  background: var(--hy-glass);
  border: 1px solid var(--hy-line);
  border-radius: 20px;
  box-shadow: var(--hy-shadow-sm);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  overflow: hidden;
  transition: transform 0.6s var(--hy-ease), border-color 0.5s, box-shadow 0.6s var(--hy-ease), background 0.5s;
}
/* 顶部掠过的高光线 */
body.hy-premium .hy-glass::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 139, 201, 0.65), transparent);
  transition: left 0.9s var(--hy-ease);
}
body.hy-premium .hy-glass:hover::before { left: 115%; }
body.hy-premium .hy-glass:hover {
  transform: translateY(-8px);
  background: var(--hy-glass-2);
  border-color: var(--hy-line-strong);
  box-shadow: var(--hy-shadow-hover), var(--hy-glow-blue);
}

/* 鼠标跟随的卡片内高光（由 premium.js 写入 --cx/--cy） */
body.hy-premium .hy-glass--track::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--hy-ease-soft);
  background: radial-gradient(
    250px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(47, 139, 201, 0.15),
    transparent 62%
  );
}
body.hy-premium .hy-glass--track:hover::after { opacity: 1; }

/* ========== 8. 滚动揭示动画 ========== */
body.hy-premium [data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s var(--hy-ease), transform 1s var(--hy-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
body.hy-premium [data-reveal].is-in { opacity: 1; transform: none; }

body.hy-premium [data-reveal="left"]  { transform: translateX(-48px); }
body.hy-premium [data-reveal="right"] { transform: translateX(48px); }
body.hy-premium [data-reveal="zoom"]  { transform: scale(0.93); }
body.hy-premium [data-reveal="blur"]  { filter: blur(14px); transform: translateY(24px); }
body.hy-premium [data-reveal="blur"].is-in { filter: blur(0); }

/* 裁切揭示：nanfu.global 的核心揭示手法（clip-path inset 从四角放大）
   比单纯 fade 更有"设计感"，因为画面像被"擦拭"出来 */
body.hy-premium [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(14% 14% 14% 14% round 22px);
  transition: clip-path 1.25s var(--hy-ease), opacity 0.7s var(--hy-ease-soft);
}
body.hy-premium [data-reveal="clip"].is-in {
  clip-path: inset(0% 0% 0% 0% round 22px);
}
/* 自下而上的擦拭揭示。
   ⚠️ 重要约束（实测踩坑）：clip-path 裁掉 100% 面积时，浏览器报告的
   intersectionRect 高度为 0、intersectionRatio 恒为 0，任何 threshold > 0 的
   IntersectionObserver 都永远不会触发 —— 元素会永久不可见。
   因此这类"从无到有"的裁切揭示【不能】挂在 data-reveal 上，必须走 .hy-anim
   的 CSS 动画（animation 由插入 DOM 触发，不依赖观察器）。 */
body.hy-premium [data-reveal="clip-up"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--hy-ease);
}
body.hy-premium [data-reveal="clip-up"].is-in {
  clip-path: inset(0 0 0% 0);
}

/* ===== 入场动画：商品卡专用 =====
   用 CSS animation 而非「过渡 + 观察器」：动画在节点插入时立即开始，
   不依赖可见性回调，所以天然规避上面的零面积问题。
   代价是无滚动触发 —— 对流式商品网格来说，"加载即依次浮现"本来就是想要的效果。 */
body.hy-premium .hy-anim {
  animation: hyCardIn 1.05s var(--hy-ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes hyCardIn {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 20px);
    transform: translateY(34px) scale(0.985);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0% 0 round 20px);
    transform: translateY(0) scale(1);
  }
}
/* 二次渲染（切分类 / 翻页 / 排序）不再重播动画，避免每次操作都"闪一下" */
body.hy-premium .hy-noanim,
body.hy-premium .hy-noanim .hy-anim {
  animation: none !important;
  clip-path: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 章节标题下的金色生长线 */
body.hy-premium .hy-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--hy-line-strong), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.4s var(--hy-ease) 0.2s;
}
body.hy-premium .is-in > .hy-rule,
body.hy-premium .hy-rule.is-in { transform: scaleX(1); }

/* ========== 9. 商品卡片 ========== */
body.hy-premium .hy-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hy-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--hy-shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.7s var(--hy-ease), border-color 0.5s, box-shadow 0.7s var(--hy-ease);
}
body.hy-premium .hy-pcard:hover {
  border-color: var(--hy-line-strong);
  box-shadow: var(--hy-shadow-hover), var(--hy-glow-blue);
}
/* 3D 倾斜（premium.js 写入 --rx/--ry） */
body.hy-premium .hy-pcard.hy-tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 0.35s var(--hy-ease), border-color 0.5s, box-shadow 0.7s var(--hy-ease);
}
/* 图片 */
body.hy-premium .hy-pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgba(140, 196, 236, 0.35), transparent 62%), var(--hy-ink);
}
body.hy-premium .hy-pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--hy-ease), filter 0.8s var(--hy-ease-soft);
  filter: saturate(1) brightness(1);
}
body.hy-premium .hy-pcard:hover .hy-pcard__media img {
  transform: scale(1.11);
  filter: saturate(1.08) brightness(1.03);
}
/* 图片上掠过的光带 */
body.hy-premium .hy-pcard__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 1s var(--hy-ease);
  pointer-events: none;
}
body.hy-premium .hy-pcard:hover .hy-pcard__media::after { transform: translateX(120%); }
/* 图片底部渐隐：浅色主题下改成"白雾"而不是黑压，避免商品图变脏 */
body.hy-premium .hy-pcard__media::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
  z-index: 1;
  pointer-events: none;
}
body.hy-premium .hy-pcard__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
  background: linear-gradient(to top, #fff 62%, rgba(255, 255, 255, 0.6));
}
body.hy-premium .hy-pcard__name {
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.42;
  color: var(--hy-text);
  letter-spacing: -0.01em;
}
body.hy-premium .hy-pcard__desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--hy-text-3);
  flex: 1;
}
body.hy-premium .hy-pcard__price {
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--hy-blue-strong), var(--hy-blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.hy-premium .hy-pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hy-text-3);
  transition: color 0.4s, gap 0.4s var(--hy-ease);
}
body.hy-premium .hy-pcard:hover .hy-pcard__cta { color: var(--hy-blue-strong); gap: 13px; }

/* 角标 */
body.hy-premium .hy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--hy-line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hy-text-2);
  text-transform: uppercase;
  box-shadow: 0 2px 8px -3px rgba(20, 86, 127, 0.22);
}
body.hy-premium .hy-chip--gold {
  border-color: var(--hy-line-strong);
  color: var(--hy-blue-deep);
  background: rgba(214, 234, 251, 0.95);
  box-shadow: 0 2px 10px -3px rgba(47, 139, 201, 0.4);
}
body.hy-premium .hy-chip--float {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
}

/* ========== 10. 统计数字 ========== */
body.hy-premium .hy-stat__num {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--hy-blue-deep), var(--hy-blue) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.hy-premium .hy-stat__label {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hy-text-3);
}

/* ========== 11. 无限滚动跑马灯 ========== */
body.hy-premium .hy-marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--hy-line);
  border-bottom: 1px solid var(--hy-line);
  background: rgba(255, 255, 255, 0.55);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
body.hy-premium .hy-marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: hyMarquee 34s linear infinite;
}
body.hy-premium .hy-marquee:hover .hy-marquee__track { animation-play-state: paused; }
body.hy-premium .hy-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1rem, 1.9vw, 1.5rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(18, 49, 78, 0.68);
  white-space: nowrap;
  transition: color 0.4s;
}
body.hy-premium .hy-marquee__item:hover { color: var(--hy-blue-strong); }
body.hy-premium .hy-marquee__dot { color: var(--hy-blue); font-size: 0.7em; }
@keyframes hyMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== 12. 页脚 ========== */
body.hy-premium #app-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--hy-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(227, 240, 251, 0.95));
  margin-top: 0;
}
body.hy-premium #app-footer .footer { background: transparent; }
body.hy-premium #app-footer h4 { color: var(--hy-text); }
body.hy-premium #app-footer h4 i { color: var(--hy-blue-strong); }
body.hy-premium #app-footer p,
body.hy-premium #app-footer li,
body.hy-premium #app-footer a { color: var(--hy-text-3); }
body.hy-premium #app-footer a:hover { color: var(--hy-blue-strong); }
body.hy-premium #app-footer .footer-bottom {
  border-top: 1px solid var(--hy-line);
  color: var(--hy-text-3);
}

/* ========== 13. 骨架屏微光 ========== */
body.hy-premium .hy-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #eef6fe);
  border: 1px solid var(--hy-line);
  border-radius: 16px;
  min-height: 260px;
}
body.hy-premium .hy-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(47, 139, 201, 0.14) 50%, transparent 80%);
  animation: hySweep 1.7s var(--hy-ease-soft) infinite;
}
@keyframes hySweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== 14. 表单与筛选控件 ========== */
body.hy-premium .hy-input,
body.hy-premium .hy-select {
  width: 100%;
  padding: 14px 20px;
  color: var(--hy-text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hy-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-shadow: var(--hy-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s, box-shadow 0.4s var(--hy-ease), background 0.4s;
}
body.hy-premium .hy-input::placeholder { color: var(--hy-text-3); }
body.hy-premium .hy-input:focus,
body.hy-premium .hy-select:focus {
  border-color: var(--hy-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 139, 201, 0.14), var(--hy-glow-blue);
}
body.hy-premium .hy-select option { background: #fff; color: var(--hy-text); }

body.hy-premium .hy-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--hy-line);
  background: rgba(255, 255, 255, 0.85);
  /* 小字标签用最深的强调蓝，才能在白底上稳过 4.5:1 */
  color: var(--hy-blue-deep);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--hy-shadow-sm);
  transition: all 0.42s var(--hy-ease);
}
body.hy-premium .hy-tab:hover {
  color: var(--hy-blue-deep);
  border-color: var(--hy-blue);
  background: #fff;
  transform: translateY(-2px);
}
/* 激活态：白字放在够深的蓝渐变上。
   白色文字要 4.5:1，背景亮度必须够低 —— 渐变亮端不能太浅
   （实测 #8cc4ec 起手只有 4.24:1，改用 #5ba8d8 起手后过线）。 */
body.hy-premium .hy-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #5ba8d8, var(--hy-blue-strong) 55%, var(--hy-blue-deep));
  border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(26, 111, 168, 0.7);
}

/* ========== 15. 商品详情页 ========== */
body.hy-premium .hy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--hy-text-3);
  margin-bottom: 30px;
}
body.hy-premium .hy-breadcrumb a { color: var(--hy-text-3); }
body.hy-premium .hy-breadcrumb a:hover { color: var(--hy-blue-strong); }

body.hy-premium .hy-gallery {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--hy-line);
  background: radial-gradient(circle at 50% 110%, rgba(140, 196, 236, 0.4), transparent 62%), #fff;
  box-shadow: var(--hy-shadow);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.hy-premium .hy-gallery img {
  max-width: 88%; max-height: 88%;
  object-fit: contain;
  transition: transform 0.9s var(--hy-ease);
  filter: drop-shadow(0 22px 40px rgba(20, 86, 127, 0.22));
}
body.hy-premium .hy-gallery:hover img { transform: scale(1.07) rotate(-1.4deg); }
body.hy-premium .hy-gallery__placeholder { font-size: 5rem; color: var(--hy-blue-soft); opacity: 0.8; }

/* 价格 */
body.hy-premium .hy-price {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(105deg, var(--hy-blue-strong), var(--hy-blue-deep) 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.hy-premium .hy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 20px 0;
  border-top: 1px solid var(--hy-line);
  border-bottom: 1px solid var(--hy-line);
  font-size: 0.83rem;
  color: var(--hy-text-2);
}
body.hy-premium .hy-meta__k { color: var(--hy-text-3); margin-right: 8px; }

/* 数量步进器 */
body.hy-premium .hy-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hy-line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--hy-shadow-sm);
}
body.hy-premium .hy-qty button {
  width: 44px; height: 44px;
  border: none;
  background: none;
  color: var(--hy-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
}
body.hy-premium .hy-qty button:hover { background: rgba(47, 139, 201, 0.12); color: var(--hy-blue-deep); }
body.hy-premium .hy-qty input {
  width: 58px; height: 44px;
  border: none;
  background: none;
  color: var(--hy-text);
  text-align: center;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

/* 折叠面板 */
body.hy-premium .hy-acc { border-top: 1px solid var(--hy-line); }
body.hy-premium .hy-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: none;
  background: none;
  color: var(--hy-text);
  font-size: 0.95rem;
  font-weight: 620;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.35s;
}
body.hy-premium .hy-acc__head:hover { color: var(--hy-blue-strong); }
body.hy-premium .hy-acc__head i { transition: transform 0.5s var(--hy-ease); color: var(--hy-blue-strong); }
body.hy-premium .hy-acc.open .hy-acc__head i { transform: rotate(180deg); }
body.hy-premium .hy-acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--hy-ease);
}
body.hy-premium .hy-acc.open .hy-acc__body { grid-template-rows: 1fr; }
body.hy-premium .hy-acc__inner {
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--hy-text-2);
}
body.hy-premium .hy-acc.open .hy-acc__inner { padding-bottom: 22px; }

/* ========== 16. 滚动条（实测 nanfu.global 使用自定义滚动条，P0 性价比项） ========== */
body.hy-premium ::-webkit-scrollbar { width: 10px; height: 10px; }
body.hy-premium ::-webkit-scrollbar-track { background: var(--hy-abyss); }
body.hy-premium ::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 139, 201, 0.55), rgba(79, 196, 216, 0.45));
  border: 2px solid var(--hy-abyss);
}
body.hy-premium ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--hy-blue-strong), var(--hy-cyan));
}
body.hy-premium { scrollbar-color: rgba(47, 139, 201, 0.55) var(--hy-abyss); scrollbar-width: thin; }

/* 选中文字 */
body.hy-premium ::selection { background: rgba(47, 139, 201, 0.26); color: var(--hy-blue-deep); }

/* ========== 17. 网格工具 ========== */
body.hy-premium .hy-wrap { max-width: var(--hy-max); margin: 0 auto; padding: 0 24px; }
/* 区块留白：实测 nanfu.global 区块上下留白 160–250px，大留白是"高级感"的骨架 */
body.hy-premium .hy-section { padding: clamp(90px, 14vh, 220px) 0; position: relative; }
body.hy-premium .hy-grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}
body.hy-premium .hy-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

/* ========== 18. 移动端降级 ========== */
@media (max-width: 768px) {
  body.hy-premium .hy-hero { min-height: auto; padding: 110px 0 70px; }
  body.hy-premium .hy-grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  body.hy-premium .hy-pcard__body { padding: 16px; gap: 8px; }
  body.hy-premium .hy-pcard__desc { display: none; }
  body.hy-premium .hy-btn { padding: 13px 26px; font-size: 0.88rem; }
  body.hy-premium .hy-noise { display: none; }
  body.hy-premium .hy-spotlight { display: none; }
  /* 移动端关掉大面积极光与固定背景，省电且避免低端机掉帧 */
  body.hy-premium .hy-aurora { display: none; }
  body.hy-premium { background-attachment: scroll; }
}

/* 尊重系统「减弱动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  body.hy-premium *,
  body.hy-premium *::before,
  body.hy-premium *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body.hy-premium [data-reveal],
  body.hy-premium .hy-rise > span,
  body.hy-premium .hy-fade-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  body.hy-premium .hy-marquee__track { animation: none; }
}

/* 不支持 backdrop-filter 时的降级：浅色主题下改成不透明白，避免半透明叠色发脏 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.hy-premium #app-navbar { background: rgba(255, 255, 255, 0.97) !important; }
  body.hy-premium .hy-glass { background: rgba(255, 255, 255, 0.94); }
  body.hy-premium .hy-btn--ghost { background: #fff; }
}
