/* ============================================================
   common.css — 全局共享基础样式  (Soft UI · 白瓷 · 网格渐变)
   导航 / 页脚 / 弹窗 / 按钮 / 表单 / Toast / 动画
   ============================================================ */

:root {
  /* ── 色彩（正文深海蓝，非纯黑） ── */
  --bg: #f4f6fb;
  --white: #FFFFFF;
  --dark: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-soft: rgba(37,99,235,0.08);
  --accent-border: rgba(37,99,235,0.18);

  /* ── 白瓷软阴影（替代玻璃态） ── */
  --soft-shadow: 0 24px 50px -12px rgba(15,23,42,0.05), 0 8px 16px -4px rgba(15,23,42,0.04);
  --soft-shadow-sm: 0 12px 28px -8px rgba(15,23,42,0.06), 0 4px 10px -4px rgba(15,23,42,0.03);
  --soft-hover: 0 28px 56px -12px rgba(15,23,42,0.08), 0 12px 24px -6px rgba(15,23,42,0.05);
  --cta-shadow: 0 20px 40px -8px rgba(37,99,235,0.38), 0 8px 16px -4px rgba(37,99,235,0.22);

  /* ── 兼容旧变量名 ── */
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --glass-border: #e2e8f0;
  --glass-shadow: var(--soft-shadow);
  --glass-hover: var(--soft-hover);

  --bounce: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
  --ease:   all 0.3s ease;

  --clay-shadow: var(--soft-shadow);
  --clay-hover:  var(--soft-hover);
  --purple: #7B61FF;
  --pink:   #FBCFE8;
  --yellow: #FDE68A;

  /* 顶栏 / 页脚（全站） */
  --nav-height: 68px;
  --nav-inner-max: 1180px;
  --nav-surface: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(15, 23, 42, 0.07);
  --nav-track: rgba(241, 245, 249, 0.95);
  --nav-track-border: rgba(226, 232, 240, 0.95);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x 放在 html：写在 body 上时与 overflow-y 互算，部分环境会把纵向滚轮绑到异常滚动盒子上 */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f6f8fc;
  background-image:
    radial-gradient(at 0% 0%, rgba(191,219,254,0.55) 0, transparent 52%),
    radial-gradient(at 100% 0%, rgba(221,214,254,0.45) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(199,210,254,0.4) 0, transparent 52%),
    radial-gradient(at 0% 100%, rgba(224,242,254,0.5) 0, transparent 48%),
    linear-gradient(180deg, #fafbfd 0%, #f1f4fa 100%);
  background-attachment: fixed;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* 极淡噪点层（纸质肌理） */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

body > * { position: relative; z-index: 1; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════ 导航栏（全宽顶栏：品牌 | 居中链接 | 操作区） ════════════════════════ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  transform: none;
  z-index: 900;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-surface);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 8px 28px -18px rgba(15, 23, 42, 0.1);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(37, 99, 235, 0.18) 50%, transparent 95%);
  pointer-events: none;
  opacity: 0.85;
}

.nav-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: var(--nav-inner-max);
  margin: 0 auto;
  min-height: var(--nav-height);
  padding: 8px clamp(14px, 3.2vw, 26px);
}

.brand-mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.brand-mark--sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.38);
}
.brand-mark--lg {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.42);
}
.brand-logo-img { width: 58%; height: auto; display: block; object-fit: contain; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 45%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding: 0;
  margin: 0;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-links a {
  text-decoration: none;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 登录态切换时占位固定，避免顶栏右侧「弹射」跳动 */
.nav-auth-slot {
  position: relative;
  width: 176px;
  height: 40px;
  flex-shrink: 0;
}
.nav-auth-layer {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

/* 登录/访客切换不用 display:none，避免顶栏右侧与 backdrop 合成时闪屏 */
.nav-auth-slot > .nav-auth-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.nav-auth-slot > .nav-auth-layer.nav-auth-layer--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.btn-ghost { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 12px; cursor: pointer; transition: var(--ease); font-family: inherit; }
.btn-ghost:hover { color: var(--accent); background: var(--accent-soft); }

.btn-nav-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white; border: none; padding: 9px 20px; border-radius: 14px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-family: inherit;
  box-shadow: var(--cta-shadow);
}
.btn-nav-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 44px -10px rgba(37, 99, 235, 0.42);
}

/* 语言：光晕环 + 地球线稿 + 国旗；列表见 #lang-menu 下拉 */
.nav-lang {
  display: flex;
  align-items: center;
}
.btn-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
  border-radius: 999px;
  transition: transform 0.2s ease;
}
.btn-lang:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-lang:hover {
  transform: translateY(-1px);
}
.btn-lang:active {
  transform: translateY(0);
}
.btn-lang__halo {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(from 210deg, #2563eb, #6366f1, #a855f7, #38bdf8, #2563eb);
  opacity: 0.32;
  z-index: 0;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-lang__halo {
    animation: btn-lang-orbit 12s linear infinite;
  }
}
.btn-lang:hover .btn-lang__halo {
  opacity: 0.52;
  filter: brightness(1.06);
}
.btn-lang.lang-active .btn-lang__halo {
  opacity: 0.58;
}
@keyframes btn-lang-orbit {
  to {
    transform: rotate(360deg);
  }
}
.btn-lang__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 4px 14px -4px rgba(15, 23, 42, 0.08);
  color: var(--muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn-lang:hover .btn-lang__body {
  border-color: rgba(37, 99, 235, 0.38);
  color: var(--accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 22px -8px rgba(37, 99, 235, 0.22);
}
.btn-lang.lang-active .btn-lang__body {
  border-color: rgba(37, 99, 235, 0.5);
  color: var(--accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(37, 99, 235, 0.1),
    0 10px 26px -10px rgba(37, 99, 235, 0.3);
}
.btn-lang__globe {
  flex-shrink: 0;
  display: block;
  opacity: 0.88;
}
.btn-lang:hover .btn-lang__globe {
  opacity: 1;
}
.btn-lang__flag {
  font-size: 18px;
  line-height: 1;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .btn-lang__halo {
    animation: none;
  }
  .btn-lang:hover {
    transform: none;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  flex-shrink: 0;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open #main-nav .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.mobile-menu-open #main-nav .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
body.mobile-menu-open #main-nav .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.user-pill { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 50%; padding: 4px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; font-weight: 700; font-size: 14px; color: var(--dark); text-decoration: none; }
.user-pill:hover { background: var(--accent-soft); color: var(--accent); }
.user-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* 顶栏：与语言按钮同尺方的控制台入口，字母在变也不改外框 */
.user-pill--tile {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  justify-content: center;
  box-sizing: border-box;
}
.user-pill--tile .user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

.nav-logout-btn {
  color: #dc2626;
}
.nav-logout-btn:hover {
  color: #b91c1c;
}

/* ════════════════════════ 通用按钮 ════════════════════════ */
/* 液态玻璃次要按钮 */
.btn-clay {
  background: #ffffff;
  color: var(--accent);
  padding: 13px 28px; border-radius: 100px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: var(--soft-shadow-sm);
  border: 1px solid #e8ecf2;
  transition: var(--bounce); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
}
.btn-clay:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--soft-hover); }

/* 主按钮：高饱和亮蓝 + 投影锚点 */
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  color: white; border: none; padding: 14px 32px; border-radius: 100px;
  font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
  box-shadow: var(--cta-shadow);
  transition: var(--bounce); display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 26px 52px -10px rgba(37,99,235,0.48); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 0 6px 16px rgba(37,99,235,0.2); }
.btn-primary:disabled:hover { transform: none; }

/* ════════════════════════ 标题排版 ════════════════════════ */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 100px;
  letter-spacing: 0.5px; margin-bottom: 16px;
}
.section-title { font-size: clamp(26px,4vw,42px); font-weight: 900; line-height: 1.2; letter-spacing: -0.5px; color: var(--dark); }
.section-sub { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 540px; }

/* 通用标签按钮 */
.tag-btn {
  padding: 7px 18px; border-radius: 100px;
  border: 1px solid #e2e8f0;
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: #ffffff; cursor: pointer; font-family: inherit; transition: var(--ease);
  box-shadow: var(--soft-shadow-sm);
}
.tag-btn:hover, .tag-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ════════════════════════ 页脚（大众站常见：品牌 + 多栏链接 + 底栏法律） ════════════════════════ */
#main-footer.site-footer {
  position: relative;
  margin-top: 56px;
  padding: 0;
  border-radius: 0;
  background: #0f172a;
  color: #cbd5e1;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

#main-footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 35%, #22c55e 70%, #34d399 100%);
  opacity: 0.95;
  pointer-events: none;
}

.site-footer__inner {
  padding: 48px 24px 28px;
  max-width: var(--nav-inner-max, 1180px);
  margin: 0 auto;
}

.site-footer__primary {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2.2fr);
  gap: 40px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo.footer-logo {
  margin-bottom: 14px;
}

.site-footer__tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  max-width: 320px;
  color: #94a3b8;
  font-weight: 500;
}

.site-footer__contact-mail {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__contact-mail a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.site-footer__contact-mail a:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.site-footer__heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 10px;
}

.site-footer__list li:last-child {
  margin-bottom: 0;
}

.site-footer__list a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer__list a:hover {
  color: #93c5fd;
}

.site-footer__list--muted .site-footer__note {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  font-weight: 500;
}

.site-footer__list--muted .site-footer__note--sm {
  font-size: 12px;
  opacity: 0.9;
}

.site-footer__bar {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.site-footer__copy {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-footer__legal a {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: #cbd5e1;
}

/* 兼容旧类名（控制台等局部样式仍可能引用 .footer-logo） */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ════════════════════════ 弹窗通用 ════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,18,40,0.55); backdrop-filter: blur(12px); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
@keyframes modal-in { from { opacity: 0; transform: scale(0.88) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; background: rgba(241,245,249,0.80); border: none; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--ease); }
.modal-close:hover { background: rgba(226,232,240,0.90); }

/* ════════════════════════ 登录 / 注册弹窗 ════════════════════════ */
.auth-modal {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 32px; padding: 40px; width: 100%; max-width: 420px;
  position: relative; box-shadow: var(--soft-shadow), 0 40px 80px -20px rgba(15,23,42,0.12);
  animation: modal-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.auth-logo { font-size: 22px; font-weight: 900; text-align: center; margin-bottom: 8px; background: linear-gradient(135deg,#2563EB,#60A5FA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-logo--brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 12px; background: none; -webkit-text-fill-color: initial; }
.auth-logo--brand .auth-logo-text { font-size: 22px; font-weight: 900; background: linear-gradient(135deg,#2563EB,#60A5FA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-tabs { display: flex; gap: 0; margin: 20px 0 24px; }
.auth-tab { flex: 1; padding: 10px 0 13px; text-align: center; border: none; background: none; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; font-family: inherit; transition: var(--ease); position: relative; }
.auth-tab:hover { color: var(--dark); }
.auth-tab.active { color: var(--dark); }
.auth-tab.active::after { content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 2.5px; background: var(--accent); border-radius: 2px; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-email-display { word-break: break-all; }

/* ════════════════════════ 表单 ════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 16px; border: 1.5px solid #e2e8f0; border-radius: 12px; font-size: 14px; font-weight: 500; font-family: inherit; color: var(--dark); background: #f8fafc; transition: var(--ease); outline: none; }
.form-input:focus { border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-row { display: flex; gap: 10px; }
.form-row .form-input { flex: 1; }
.btn-send-code { padding: 12px 16px; background: rgba(241,245,249,0.85); border: 1.5px solid rgba(226,232,240,0.80); border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; font-family: inherit; transition: var(--ease); white-space: nowrap; }
.btn-send-code:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-send-code:disabled { color: var(--muted); cursor: not-allowed; }
.btn-submit { width: 100%; padding: 14px; background: linear-gradient(135deg,#2563eb,#3b82f6); color: white; border: none; border-radius: 100px; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; box-shadow: var(--cta-shadow); transition: var(--bounce); margin-top: 8px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -10px rgba(37,99,235,0.45); }

/* 登录模式切换 */
.auth-modal .form-group > div:has(> a.mode-toggle) { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; justify-content: space-between; margin-bottom: 6px !important; }
.auth-modal .form-group > div:has(> a.mode-toggle) .form-label { margin: 0; flex: 0 1 auto; max-width: 100%; min-width: 0; }
.mode-toggle { font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; transition: var(--ease); text-decoration: none; white-space: normal; line-height: 1.4; overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; text-align: right; flex: 1 1 9rem; min-width: 0; max-width: 100%; }
.mode-toggle:hover { opacity: 0.75; }
.auth-footer-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.5; overflow-wrap: break-word; padding: 0 6px; max-width: 100%; }
.auth-footer-link a { color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: none; margin-left: .35em; display: inline; }
.auth-footer-link a:only-child { margin-left: 0; }

/* 登录弹窗专用：更紧凑的层次与顶色带（仅 #auth-modal，控制台工单等其它 .auth-modal 不受影响） */
#auth-modal.modal-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(14px);
}
#auth-modal .auth-modal {
  position: relative;
  overflow: hidden;
  max-width: 400px;
  padding: 42px 34px 34px;
  border-radius: 22px;
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 28px 56px -16px rgba(15, 23, 42, 0.2),
    0 12px 28px -10px rgba(15, 23, 42, 0.1);
}
#auth-modal .auth-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 42%, #38bdf8 100%);
  border-radius: 22px 22px 0 0;
}
#auth-modal .auth-modal > * {
  position: relative;
  z-index: 1;
}
#auth-modal .modal-close {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 15px;
  line-height: 1;
  color: #64748b;
}
#auth-modal .modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
#auth-modal .auth-logo--brand {
  gap: 12px;
  margin-bottom: 6px;
}
#auth-modal .auth-modal > p:first-of-type {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
#auth-modal .auth-step .btn-submit {
  margin-top: 10px;
}
#auth-modal .form-input,
#auth-modal .btn-send-code {
  border-radius: 14px;
}

/* body.home-forest：登录/注册弹窗与站重森林深色统一（index.css 提供 --fr-*；不依赖是否加载 forest-pages.css） */
body.home-forest #auth-modal.modal-overlay {
  background: rgba(6, 20, 14, 0.72);
  backdrop-filter: blur(12px);
}
body.home-forest #auth-modal .modal-close {
  background: rgba(15, 31, 24, 0.65);
  color: var(--fr-mist, #ecfdf5);
}
body.home-forest #auth-modal .modal-close:hover {
  background: rgba(74, 222, 128, 0.15);
}
body.home-forest #auth-modal .auth-modal {
  background: rgba(15, 31, 24, 0.96);
  border-color: rgba(167, 243, 208, 0.2);
  border-radius: 22px;
  max-width: 400px;
  padding: 42px 34px 34px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 36px 72px -18px rgba(0, 0, 0, 0.55);
}
body.home-forest #auth-modal .auth-modal::before {
  background: linear-gradient(90deg, #14532d 0%, #22c55e 48%, #86efac 100%);
}
body.home-forest #auth-modal .modal-close {
  border-radius: 11px;
  width: 36px;
  height: 36px;
}
body.home-forest #auth-modal .auth-logo,
body.home-forest #auth-modal .auth-logo--brand .auth-logo-text {
  background: linear-gradient(135deg, #bbf7d0, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.home-forest #auth-modal .auth-modal > p:first-of-type {
  color: rgba(236, 253, 245, 0.72) !important;
}
body.home-forest #auth-modal .auth-email-display {
  color: rgba(236, 253, 245, 0.68) !important;
}
body.home-forest #auth-modal .auth-modal p[style*="var(--muted)"] {
  color: rgba(236, 253, 245, 0.6) !important;
}
body.home-forest #auth-modal .form-label {
  color: rgba(236, 253, 245, 0.7);
}
body.home-forest #auth-modal .form-input {
  background: rgba(10, 22, 18, 0.85);
  border-color: rgba(167, 243, 208, 0.2);
  color: var(--fr-mist, #ecfdf5);
}
body.home-forest #auth-modal .form-input:focus {
  border-color: var(--fr-moss, #4ade80);
  background: rgba(12, 28, 22, 0.95);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}
body.home-forest #auth-modal .btn-send-code {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(167, 243, 208, 0.25);
  color: var(--fr-moss, #4ade80);
}
body.home-forest #auth-modal .btn-send-code:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: var(--fr-moss, #4ade80);
}
body.home-forest #auth-modal .btn-send-code:disabled {
  color: rgba(236, 253, 245, 0.45);
}
body.home-forest .btn-submit {
  background: linear-gradient(135deg, #14532d 0%, #166534 55%, #15803d 100%);
  box-shadow: 0 10px 24px -8px rgba(22, 101, 52, 0.25);
  color: #fff;
}
body.home-forest .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(22, 101, 52, 0.30);
}
body.home-forest #auth-modal .mode-toggle,
body.home-forest #auth-modal .auth-footer-link a {
  color: var(--fr-fern, #86efac);
}
body.home-forest #auth-modal .auth-footer-link {
  color: rgba(236, 253, 245, 0.55);
}
body.home-forest #auth-modal a[style*="var(--muted)"] {
  color: rgba(236, 253, 245, 0.55) !important;
}

/* 森林主题：弹窗内 logo 方块与顶栏一致（避免仍用默认蓝紫渐变） */
body.home-forest #auth-modal .auth-logo--brand .brand-mark {
  background: linear-gradient(145deg, #14532d 0%, #15803d 50%, #4ade80 100%);
  box-shadow:
    0 0 0 1px rgba(134, 239, 172, 0.28),
    0 4px 18px rgba(34, 197, 94, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
body.home-forest #auth-modal .auth-logo--brand .brand-mark--lg {
  box-shadow:
    0 0 0 1px rgba(134, 239, 172, 0.28),
    0 4px 18px rgba(34, 197, 94, 0.35);
}
body.home-forest #auth-modal .auth-logo--brand .brand-logo-img {
  width: 56%;
  height: auto;
}

/* 登录弹窗：极简营销一行（main.js 注入 .auth-modal__pitch） */
#auth-modal .auth-modal__pitch {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
}
#auth-modal .auth-modal__pitch-line {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
body.home-forest #auth-modal .auth-modal__pitch-line {
  color: rgba(236, 253, 245, 0.72);
  background: rgba(22, 101, 52, 0.45);
  border-color: rgba(134, 239, 172, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

/* ════════════════════════ 语言下拉（固定定位，无全屏遮罩） ════════════════════════ */
.lang-menu {
  position: fixed;
  z-index: 1600;
  box-sizing: border-box;
  padding: 10px 10px 8px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  box-shadow: var(--soft-shadow), 0 28px 70px -20px rgba(15, 23, 42, 0.2);
  max-height: none;
  overflow: visible;
  animation: lang-menu-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-menu[hidden] {
  display: none !important;
}
@keyframes lang-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lang-menu__title {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}
.lang-menu__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
}
.lang-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.lang-menu .lang-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}
@media (max-width: 340px) {
  .lang-menu .lang-grid {
    grid-template-columns: 1fr;
  }
}
.lang-menu .lang-option {
  padding: 9px 10px;
  gap: 10px;
  border-radius: 14px;
}
.lang-menu .lang-flag {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 11px;
}
.lang-menu .lang-option-text {
  font-size: 14px;
}
.lang-menu .lang-option.selected::after {
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  background-size: 10px auto;
}
.lang-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: linear-gradient(148deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .lang-option {
    animation: lang-option-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .lang-grid .lang-option:nth-child(1) { animation-delay: 0.03s; }
  .lang-grid .lang-option:nth-child(2) { animation-delay: 0.06s; }
  .lang-grid .lang-option:nth-child(3) { animation-delay: 0.09s; }
  .lang-grid .lang-option:nth-child(4) { animation-delay: 0.12s; }
  .lang-grid .lang-option:nth-child(5) { animation-delay: 0.15s; }
  .lang-grid .lang-option:nth-child(6) { animation-delay: 0.18s; }
  .lang-grid .lang-option:nth-child(7) { animation-delay: 0.21s; }
  .lang-grid .lang-option:nth-child(8) { animation-delay: 0.24s; }
}
@keyframes lang-option-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lang-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), #818cf8);
  opacity: 0;
  transform: scaleY(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-option:hover::before,
.lang-option.selected::before {
  opacity: 1;
  transform: scaleY(1);
}
.lang-option:hover {
  border-color: rgba(37, 99, 235, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(37, 99, 235, 0.2);
}
.lang-option.selected {
  border-color: rgba(37, 99, 235, 0.48);
  background: linear-gradient(148deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.5) 100%);
  color: var(--accent);
}
.lang-option.selected::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.lang-option > div {
  flex: 1;
  min-width: 0;
}
.lang-option-text {
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.lang-flag {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  border-radius: 14px;
  background: radial-gradient(circle at 32% 22%, #ffffff 0%, #e8eef6 55%, #dce3ee 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 10px rgba(15, 23, 42, 0.06);
}

/* ════════════════════════ 移动端菜单：顶栏下方抽屉（与顶栏像素不重叠，无全屏 blur） ════════════════════════ */
#mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.32s;
}
#mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* 左侧点击关闭：仅实色，不用 backdrop-filter，避免 GPU 合成与顶栏互相干扰 */
.mobile-menu-scrim {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
  -webkit-appearance: none;
  appearance: none;
  display: block;
  color: transparent;
  font-size: 0;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.open .mobile-menu-scrim {
  opacity: 1;
}

.mobile-nav-panel {
  flex: 0 0 min(320px, 88vw);
  width: min(320px, 88vw);
  max-width: 320px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-right: none;
  border-radius: 22px 0 0 22px;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  display: flex;
  flex-direction: column;
}
#mobile-menu.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.mobile-nav-panel__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.mobile-nav-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-panel__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mobile-nav-panel__links {
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-panel__links a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  text-decoration: none;
  transition: var(--ease);
}
.mobile-nav-panel__links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-nav-actions {
  margin: 8px 16px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(241, 245, 249, 0.9);
}

/* ════════════════════════ Toast ════════════════════════ */
#toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0f172a; color: white; padding: 14px 24px; border-radius: 100px; font-size: 14px; font-weight: 600; z-index: 2000; opacity: 0; pointer-events: none; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1); white-space: nowrap; box-shadow: var(--soft-shadow); border: 1px solid rgba(255,255,255,0.08); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.success { background: rgba(16,185,129,0.92); }
#toast.error { background: rgba(239,68,68,0.92); }

/* ════════════════════════ 滚动入场动画 ════════════════════════ */
.pop-in { opacity: 0; transform: scale(0.92) translateY(24px); transition: var(--bounce); }
.pop-in.visible { opacity: 1; transform: scale(1) translateY(0); }
.pop-in.visible.scroll-out { opacity: 0; transform: scale(0.92) translateY(-32px); pointer-events: none; }
.pop-l { opacity: 0; transform: translateX(-32px); transition: opacity 0.55s cubic-bezier(0.34,1.2,0.64,1), transform 0.55s cubic-bezier(0.34,1.2,0.64,1); }
.pop-l.visible { opacity: 1; transform: translateX(0); }
.pop-l.visible.scroll-out { opacity: 0; transform: translateX(-40px) translateY(-24px) scale(0.96); pointer-events: none; }
.pop-r { opacity: 0; transform: translateX(32px); transition: opacity 0.55s cubic-bezier(0.34,1.2,0.64,1), transform 0.55s cubic-bezier(0.34,1.2,0.64,1); }
.pop-r.visible { opacity: 1; transform: translateX(0); }
.pop-r.visible.scroll-out { opacity: 0; transform: translateX(40px) translateY(-24px) scale(0.96); pointer-events: none; }

/* ════════════════════════ 响应式 ════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner {
    flex-wrap: nowrap;
  }
  .nav-auth-slot {
    width: auto;
    min-width: 0;
    height: auto;
    position: static;
  }
  .nav-auth-layer {
    position: static;
    transform: none;
  }
  .hamburger { display: flex; }
  .site-footer__primary {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  #main-footer.site-footer {
    margin-top: 40px;
  }
  .site-footer__inner {
    padding: 40px 20px 24px;
  }
}
@media (max-width: 480px) {
  .nav-actions .btn-ghost { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-in.visible.scroll-out, .pop-l.visible.scroll-out, .pop-r.visible.scroll-out { opacity: 1; transform: none; pointer-events: auto; }
  #mobile-menu {
    transition-delay: 0s !important;
  }
  .mobile-nav-panel {
    transition: none !important;
  }
  .lang-option {
    animation: none !important;
  }
  .lang-menu {
    animation: none !important;
  }
}

/* ── 全站页面切换：顶栏进度条填充 = #main-footer::before 同款渐变（common / home-forest 各一套） ── */
#macstripe-pt-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 1px 0 rgba(15, 23, 42, 0.06);
  transition: opacity 0.14s ease;
}

body.home-forest #macstripe-pt-bar {
  background: linear-gradient(180deg, rgba(10, 26, 20, 0.92) 0%, rgba(15, 31, 24, 0.85) 100%);
  box-shadow:
    0 1px 0 rgba(74, 222, 128, 0.12) inset,
    0 1px 0 rgba(0, 0, 0, 0.25);
}

html.macstripe-pt.macstripe-pt--out #macstripe-pt-bar {
  opacity: 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 3px 16px rgba(59, 130, 246, 0.16),
    0 7px 26px rgba(34, 197, 94, 0.1);
}

html.macstripe-pt.macstripe-pt--out body.home-forest #macstripe-pt-bar {
  box-shadow:
    0 1px 0 rgba(167, 243, 208, 0.35) inset,
    0 3px 16px rgba(34, 197, 94, 0.2),
    0 7px 26px rgba(22, 101, 52, 0.12);
}

#macstripe-pt-bar > span {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  overflow: hidden;
  transform: scaleX(0);
  transform-origin: 0 50%;
  /* 与 #main-footer::before 一致 */
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 35%, #22c55e 70%, #34d399 100%);
  opacity: 0.92;
}

body.home-forest #macstripe-pt-bar > span {
  /* 与 body.home-forest #main-footer::before 一致 */
  background: linear-gradient(90deg, #14532d 0%, #22c55e 40%, #4ade80 75%, #86efac 100%);
  opacity: 0.85;
}

#macstripe-pt-bar > span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(236, 253, 245, 0.35) 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

html.macstripe-pt.macstripe-pt--out-go #macstripe-pt-bar > span {
  transform: scaleX(1);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

html.macstripe-pt.macstripe-pt--out-go #macstripe-pt-bar > span::after {
  opacity: 1;
  animation: macstripe-pt-bar-glint 0.52s ease-out forwards;
}

@keyframes macstripe-pt-bar-glint {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}

/* 页面切换不对 body 做任何 opacity/transform/filter：易干扰 document 滚动（含鼠标滚轮） */

@media (prefers-reduced-motion: reduce) {
  #macstripe-pt-bar {
    display: none !important;
  }
}
