/* ============================================================
   XIN · 中式修仙 · 朱红素雅主题
   奶白宣纸背景 + 朱红渐变 + 水墨留白
   ============================================================ */

:root {
  /* ---- 冷银白背景（新中式轻奢）---- */
  --bg:          #edefed;
  --bg-soft:     #f4f6f4;
  --bg-tint:     #e3e7e5;
  --surface:     #ffffff;
  --surface-2:   #f2f4f3;
  --surface-hover:#e9edeb;

  /* ---- 朱红印（点缀）---- */
  --red:         #b23a2e;
  --red-light:   #c85a45;
  --red-deep:    #93271e;
  --vermilion:   #b23a2e;
  --red-grad:    linear-gradient(140deg, #c0453a, #a32c22);

  /* ---- 墨 · 香槟金 · 丝绸灰 ---- */
  --ink:         #33363b;   /* 冷墨 · 标题 */
  --ink-soft:    #4d5157;
  --gold:        #c3a878;   /* 香槟金 */
  --gold-deep:   #a98a55;
  --sand:        #d9c4a1;
  --silk:        #c2ccd0;   /* 丝绸冷灰 */
  --jade:        #9fb0a6;

  /* 语义（沿用变量名）*/
  --accent:      #b23a2e;
  --accent-2:    #a98a55;
  --success:     #7f9a86;
  --danger:      #b23a2e;
  --amber:       #a98a55;
  --nature:      var(--red-grad);
  --energy:      var(--red-grad);

  /* ---- 文字 ---- */
  --text:        #4a4d52;
  --text-muted:  #898d92;
  --text-dim:    #b2b6ba;

  /* ---- 描边 / 玻璃 / 阴影（清冷通透）---- */
  --line:        rgba(52, 54, 59, 0.10);
  --line-strong: rgba(52, 54, 59, 0.17);
  --glass:       rgba(255, 255, 255, 0.72);
  --glass-strong:rgba(255, 255, 255, 0.92);
  --shadow:      0 22px 55px rgba(110, 120, 130, 0.14);
  --shadow-lg:   0 32px 70px rgba(110, 120, 130, 0.20);
  --glow:        0 8px 26px rgba(178, 58, 46, 0.22);

  --radius:      26px;
  --radius-sm:   16px;
  --maxw:        1180px;

  --font-serif:  'Noto Serif SC', 'Cormorant Garamond', serif;
  --font-sans:   'Noto Sans SC', 'Poppins', system-ui, sans-serif;
  --font-brush:  'Ma Shan Zheng', 'Noto Serif SC', cursive;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 冷银白 · 丝绸微光背景 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%,  rgba(194, 204, 208, 0.35), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 96%, rgba(195, 168, 120, 0.14), transparent 60%),
    var(--bg);
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 朱红渐变文字 */
.glow-text {
  background: var(--red-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.chakra-bar { height: 3px; border-radius: 100px; background: var(--red-grad); }

/* ============================================================
   Loading 屏
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 1s var(--ease), visibility 1s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-orb {
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #f7a07a, var(--vermilion) 55%, var(--red-deep));
  box-shadow: var(--glow); position: relative; animation: breathe 3s var(--ease) infinite;
}
.loader-orb::after {
  content: ''; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid rgba(216, 58, 43, 0.25); animation: ripple 3s var(--ease) infinite;
}
.loader-text {
  margin-top: 30px; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.4em; color: var(--ink); animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse  { 0%,100%{ opacity: 0.55;} 50%{ opacity: 1;} }
@keyframes breathe{ 0%,100%{ transform: scale(0.86); opacity: 0.82;} 50%{ transform: scale(1.06); opacity: 1;} }
@keyframes ripple { 0%{ transform: scale(0.85); opacity: 0.6;} 100%{ transform: scale(1.9); opacity: 0;} }
@keyframes spin   { to { transform: rotate(360deg); } }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(150, 120, 85, 0.08);
  padding: 14px 40px;
}
.nav-logo { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.12em; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.nav-logo .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red-grad); box-shadow: 0 0 10px rgba(216,58,43,0.5);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.94rem; color: var(--text-muted); position: relative; transition: color 0.3s; letter-spacing: 0.04em; }
.nav-links a:hover, .nav-links a.active-link { color: var(--ink); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; border-radius: 2px; background: var(--red-grad); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a.btn::after { display: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; }
.nav-right-m { display: none; }

/* ============================================================
   按钮（朱红渐变）
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 32px; border-radius: 100px; font-size: 0.94rem; font-weight: 500; letter-spacing: 0.05em;
  border: 1px solid transparent; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-primary {
  background: var(--red-grad); color: #fff;
  box-shadow: 0 10px 26px rgba(216, 58, 43, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(216, 58, 43, 0.42); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-3px); }

/* ============================================================
   Hero + 水墨 / 红日
   ============================================================ */
#three-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; }

/* 顶部远山薄雾 */
.hero-mist { position: absolute; top: 0; left: 0; right: 0; z-index: -1; pointer-events: none; opacity: 0.85; }
.hero-mist svg { width: 100%; height: auto; display: block; }

/* 底部丝绸流山 + 明月 + 飞鸟（SVG 场景）*/
.hero-silk { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; z-index: -1; pointer-events: none; }
.hero-silk svg { width: 100%; height: auto; display: block; }
.hero-silk .float-moon { animation: floaty 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* 佛经浮字（随机出现 · 墨黑渐隐）*/
.hero-sutra { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sutra-line {
  position: absolute; font-family: var(--font-brush); color: #211e1a;
  line-height: 1.1; letter-spacing: 0.08em; white-space: nowrap;
  opacity: 0; will-change: opacity, transform;
  animation: sutra-fade linear forwards;
}
@keyframes sutra-fade {
  0%   { opacity: 0; transform: translateY(8px) scale(0.98); }
  14%  { opacity: 0.66; }
  40%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-6px) scale(1.02); }
}

/* 竖排书法标题（右侧）*/
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 110px 44px 0; display: flex; justify-content: flex-end; }
.hero-inner { text-align: right; }
.v-title { display: inline-flex; gap: 26px; align-items: flex-start; justify-content: flex-end; opacity: 0; animation: rise 1.2s var(--ease) 0.4s forwards; }
.vt-seal { writing-mode: horizontal-tb; width: 42px; height: 42px; border-radius: 6px; background: var(--red-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; box-shadow: var(--glow); margin-top: 8px; }
.vt-col { writing-mode: vertical-rl; font-family: var(--font-serif); color: var(--ink); line-height: 1.2; }
.vt-main { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: 0.32em; }
.vt-sub { font-size: 1rem; letter-spacing: 0.55em; color: var(--text-muted); margin-top: 4px; }
.hero-latin { margin-top: 36px; font-size: 0.72rem; letter-spacing: 0.48em; color: var(--text-dim); text-transform: uppercase; opacity: 0; animation: rise 1.2s var(--ease) 0.7s forwards; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; opacity: 0; animation: rise 1.2s var(--ease) 0.9s forwards; }

/* ============================================================
   全屏照片箴言带
   ============================================================ */
.quote-band { position: relative; min-height: 480px; display: grid; place-items: center; text-align: center; overflow: hidden; margin: 40px 0; background: var(--bg-soft); }
.quote-band .qb-photo { position: absolute; inset: 0; }
.quote-band .qb-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.1); mix-blend-mode: multiply; opacity: 0.82; }
.quote-band .qb-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(243,237,226,0.5), rgba(243,237,226,0.86)); }
.quote-band .qb-inner { position: relative; z-index: 2; padding: 60px 24px; max-width: 760px; }
.quote-band .qb-seal { width: 54px; height: 54px; border-radius: 10px; background: var(--red-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-brush); font-size: 1.7rem; margin: 0 auto 28px; box-shadow: var(--glow); }
.quote-band h2 { color: var(--ink); font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: 0.18em; line-height: 1.8; }
.quote-band .qb-by { color: var(--text-muted); margin-top: 22px; font-size: 0.9rem; letter-spacing: 0.2em; }

@keyframes rise { from { opacity: 0; transform: translateY(28px);} to { opacity: 1; transform: translateY(0);} }

/* 竖排装饰印章 */
.seal {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 40;
  writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 0.8rem; letter-spacing: 0.3em;
  color: var(--text-dim); display: flex; align-items: center; gap: 14px;
}
.seal .stamp { width: 34px; height: 34px; border-radius: 8px; background: var(--red-grad); color: #fff; writing-mode: horizontal-tb; display: grid; place-items: center; font-family: var(--font-brush); font-size: 1.1rem; box-shadow: var(--glow); }

/* ============================================================
   区块
   ============================================================ */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; font-weight: 500; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: 0.08em; }
.section-head p { color: var(--text-muted); margin-top: 16px; max-width: 52ch; margin-inline: auto; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #eef1f0, #dde3e2); position: relative; overflow: hidden; }
.card-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 72% 30%, rgba(216,58,43,0.14), transparent 55%); }
.card-media:has(img)::after { display: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* 山水题材卡片 → 水墨处理 */
.card-media.ink-media img { filter: grayscale(1) contrast(1.16) brightness(1.06); }
.card:hover .card-media.ink-media img { filter: grayscale(0.6) contrast(1.12) brightness(1.05); transition: filter 0.5s var(--ease); }
.card-body { padding: 24px; }
.card-tag { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); font-weight: 600; }

/* ---- 线描图标 ---- */
.ic { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: none; }

/* ---- 卡片新设计（图标 · 徽标 · 悬停播放）---- */
.media-badge { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--glass-strong); backdrop-filter: blur(6px); color: var(--ink); font-size: 0.72rem; letter-spacing: 0.08em; padding: 5px 13px; border-radius: 100px; border: 1px solid var(--line); }
.media-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; opacity: 0; transition: opacity 0.35s var(--ease); }
.media-play .ic { width: 54px; height: 54px; color: #fff; background: rgba(30,24,20,0.34); border-radius: 50%; padding: 13px; stroke-width: 1.4; backdrop-filter: blur(2px); }
.card:hover .media-play { opacity: 1; }
.card-meta { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 8px; }
.card-meta .ic { width: 16px; height: 16px; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 0.88rem; font-weight: 500; }
.card-cta .ic { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card:hover .card-cta .ic { transform: translateX(4px); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--energy); color: #fff; box-shadow: 0 6px 16px rgba(178,58,43,0.28); }
.icon-btn .ic { width: 18px; height: 18px; color: #fff; }
.card-body h3 { font-size: 1.3rem; margin: 10px 0; letter-spacing: 0.04em; }
.card-body p { color: var(--text-muted); font-size: 0.92rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.price { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--red); }

/* ---------- 进度条 ---------- */
.progress { height: 6px; border-radius: 100px; background: var(--bg-tint); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 100px; background: var(--red-grad); }

/* ============================================================
   特性区
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature { text-align: center; padding: 40px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature .icon { width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg-tint); color: var(--red); }
.feature h3 { font-size: 1.35rem; margin-bottom: 12px; letter-spacing: 0.06em; }
.feature p { color: var(--text-muted); font-size: 0.94rem; }
.feature .icon.char { font-family: var(--font-serif); font-weight: 600; font-size: 1.9rem; color: var(--red); }

/* ============================================================
   佛学 · 禅圆 · 心经 · 水印
   ============================================================ */
.sutra-sec { position: relative; text-align: center; padding: 110px 0; }
.sutra-sec .enso { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(520px, 82vw); z-index: 0; pointer-events: none; }
.sutra-sec .enso svg { width: 100%; height: auto; display: block; }
.sutra-head { position: relative; z-index: 1; margin-bottom: 44px; }
.sutra-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; font-weight: 500; }
.sutra-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.42em; padding-left: 0.42em; }
.sutra-cols { position: relative; z-index: 1; display: flex; flex-direction: row-reverse; justify-content: center; gap: 28px; flex-wrap: wrap; }
.sutra-cols p { writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.24em; color: var(--ink-soft); line-height: 2; }
.sutra-seal { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--red-grad); color: #fff; font-family: var(--font-brush); font-size: 1.6rem; margin-top: 44px; position: relative; z-index: 1; box-shadow: var(--glow); }

/* 巨字水印 */
.watermark { position: relative; overflow: hidden; }
.watermark::before { content: attr(data-char); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-brush); font-size: min(48vw, 640px); color: var(--ink); opacity: 0.04; z-index: 0; pointer-events: none; line-height: 1; }
.watermark > * { position: relative; z-index: 1; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 40px; background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { text-align: center; margin-top: 48px; color: var(--text-dim); font-size: 0.82rem; letter-spacing: 0.05em; }

/* ---------- 滚动进入 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   移动端标签栏
   ============================================================ */
.mobile-tabbar { display: none; }
@media (max-width: 720px) {
  .mobile-tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(255, 253, 248, 0.96); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
  }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-dim); font-size: 0.66rem; padding: 4px 0; position: relative; }
  .mobile-tabbar a .ic { width: 22px; height: 22px; }
  .mobile-tabbar a.active { color: var(--red); }
  .mobile-tabbar a .tab-badge { position: absolute; top: -2px; right: 50%; margin-right: -22px; background: var(--red-grad); color: #fff; font-size: 0.6rem; min-width: 16px; height: 16px; border-radius: 100px; display: grid; place-items: center; padding: 0 4px; }
  body { padding-bottom: 68px; }
  .seal { display: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) { .grid-3, .grid-4, .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .hero-copy { justify-content: center; padding: 130px 24px 0; }
  .hero-inner { text-align: center; }
  .v-title { justify-content: center; }
  .hero-latin, .hero-actions { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .nav { padding: 16px 22px; }
  .nav-links { position: fixed; inset: 0; width: 100%; height: 100dvh; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: var(--bg); padding: 90px 24px 40px; z-index: 100;
    transform: translateX(100%); transition: transform 0.4s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  /* 手机版：隐藏桌面图标簇，改用平铺菜单 */
  .nav-links .nav-icons { display: none; }
  .nav-links .nav-mobile { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 6px; }
  .nav-mobile a { font-size: 1.2rem; color: var(--text-muted); }
  .nav-mobile a:hover { color: var(--ink); }
  .nav-mobile .lang-row { display: flex; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; margin-top: 6px; }
  .nav-mobile .lang-row button { background: none; border: none; padding: 9px 22px; font-family: inherit; font-size: 1rem; color: var(--text-muted); cursor: pointer; transition: background .25s, color .25s; }
  .nav-mobile .lang-row button.on { background: var(--red-grad); color: #fff; }
  /* 顶栏：购物车图标 + 汉堡（在右侧一组）*/
  .nav-right-m { display: flex; align-items: center; gap: 18px; z-index: 101; }
  .nav-right-m .nav-cart-m .ic { width: 24px; height: 24px; }
  .nav-toggle { display: block; z-index: 101; position: relative; }
  .grid-3, .features { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-4 .card-body { padding: 16px; }
  .grid-4 .card-body h3 { font-size: 1rem; }
}

/* ============================================================
   语言切换 + Header 动效
   ============================================================ */
.lang-select { background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted); border-radius: 100px; padding: 7px 12px; font-size: 0.82rem; font-family: inherit; cursor: pointer; transition: color .3s, border-color .3s; }
.lang-select:hover { color: var(--text); border-color: var(--accent); }
.lang-select::after { display: none; }

.nav { animation: navDrop 0.9s var(--ease) both; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
.nav-logo .dot { animation: dotPulse 3.2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(178,58,43,0.45); } 50% { box-shadow: 0 0 0 7px rgba(178,58,43,0); } }
.nav-logo { transition: letter-spacing .4s var(--ease); }
.nav-logo:hover { letter-spacing: 0.2em; }

/* ============================================================
   导航图标 · 购物车 · 用户下拉
   ============================================================ */
.nav-icons { display: flex; align-items: center; gap: 16px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 4px; transition: color 0.3s, transform 0.3s var(--ease); }
.icon-link:hover { color: var(--ink); transform: translateY(-1px); }
.icon-link .ic { width: 22px; height: 22px; }
.nav-links .icon-link::after { display: none; }
.nav .cart-badge > span { position: absolute; top: -3px; right: -5px; background: var(--red-grad); color: #fff; font-size: 0.6rem; min-width: 15px; height: 15px; border-radius: 100px; display: grid; place-items: center; padding: 0 3px; }

.user-menu { position: relative; }
.user-dropdown { position: absolute; top: calc(100% + 12px); right: 0; min-width: 178px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s; z-index: 120; }
.user-menu:hover .user-dropdown, .user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown .ud-head { padding: 8px 12px 10px; font-size: 0.8rem; color: var(--text-dim); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.02em; transition: background 0.2s, color 0.2s; }
.user-dropdown a::after { display: none; }
.user-dropdown a:hover { background: var(--surface-hover); color: var(--ink); }
.user-dropdown a#logout-link { color: var(--accent); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }

/* ============================================================
   移动端字体整体调小
   ============================================================ */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .hero2 h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .section-head h2, .page-head h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .card-body p, .feature p { font-size: 0.85rem; }
  .nav-links a { font-size: 0.9rem; }
}
@media (max-width: 380px) {
  html { font-size: 14px; }
}

/* ============================================================
   语言菜单（点击下拉，替代原生 select）
   ============================================================ */
.lang-menu { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--line-strong); color: var(--text-muted); border-radius: 100px; padding: 7px 14px; font-size: 0.85rem; font-family: inherit; cursor: pointer; transition: color .3s, border-color .3s; }
.lang-trigger:hover { color: var(--ink); border-color: var(--accent); }
.lang-trigger .caret { font-size: 0.62rem; }
.lang-dropdown { position: absolute; top: calc(100% + 12px); right: 0; min-width: 132px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s; z-index: 120; }
.lang-menu:hover .lang-dropdown, .lang-menu.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.lang-dropdown a::after { display: none; }
.lang-dropdown a:hover, .lang-dropdown a.ld-active { background: var(--surface-hover); color: var(--ink); }

.nav-mobile { display: none; }

/* ============================================================
   右下角社媒悬浮按钮
   ============================================================ */
.fab { position: fixed; right: 24px; bottom: 28px; z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fab-toggle { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--red-grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(178,58,43,0.42); transition: transform 0.35s var(--ease), box-shadow 0.3s; }
.fab-toggle:hover { box-shadow: 0 14px 34px rgba(178,58,43,0.5); }
.fab-toggle .ic { width: 26px; height: 26px; transition: transform 0.35s var(--ease); }
.fab.open .fab-toggle .ic { transform: rotate(135deg); }
.fab-item { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.22); opacity: 0; transform: translateY(14px) scale(0.5); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.fab-item svg { width: 24px; height: 24px; }
.fab.open .fab-item { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab.open .fab-item:nth-child(4) { transition-delay: 0.04s; }
.fab.open .fab-item:nth-child(3) { transition-delay: 0.09s; }
.fab.open .fab-item:nth-child(2) { transition-delay: 0.14s; }
.fab.open .fab-item:nth-child(1) { transition-delay: 0.19s; }
.fab-item:hover { transform: translateY(-2px) scale(1.06); }
.fab-fb { background: #1877F2; }
.fab-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fab-yt { background: #FF0000; }
.fab-wa { background: #25D366; }
/* 移动端：抬高到底部标签栏之上 */
@media (max-width: 720px) { .fab { bottom: 84px; right: 18px; } }

/* 直播 LIVE 红点 */
.nav-live { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0242b; box-shadow: 0 0 0 0 rgba(224,36,43,0.6); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(224,36,43,0.6);} 70% { box-shadow: 0 0 0 7px rgba(224,36,43,0);} 100% { box-shadow: 0 0 0 0 rgba(224,36,43,0);} }
