/* ============================================================
   有效期助手官网 · 全站样式（2026-07 全新设计系统）
   基调：暖沙纸张 + 墨色文字 + 朱橙强调 + 深夜色区块
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #f7f2ea;
  --paper-deep: #efe8db;
  --surface: #fffdf8;
  --ink: #211a12;
  --text: #4d4437;
  --muted: #8d8171;
  --line: #e5dccb;
  --line-strong: #d5c9b4;

  --accent: #e4572e;
  --accent-deep: #c93f17;
  --accent-soft: #fbe4d8;
  --accent-light: #ffab85;
  --gold: #e9a13b;
  --green: #2e7d4f;

  --night: #211a12;
  --night-soft: #2c2418;
  --night-line: rgba(247, 242, 234, 0.14);
  --night-text: rgba(247, 242, 234, 0.78);
  --night-muted: rgba(247, 242, 234, 0.55);

  --shadow-soft: 0 24px 60px rgba(33, 26, 18, 0.1);
  --shadow-card: 0 16px 40px rgba(33, 26, 18, 0.08);
  --shadow-card-hover: 0 30px 70px rgba(33, 26, 18, 0.16);
  --shadow-frame: 0 48px 110px rgba(33, 26, 18, 0.22);

  --radius: 22px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础 ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(46px, 6.4vw, 84px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
}

p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

::selection {
  background: #ffd9c4;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- 入场动画 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

[data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(228, 87, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 87, 46, 0);
  }
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -20px) scale(1.06);
  }
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 16px max(20px, calc((100% - var(--max)) / 2)) 0;
  transition: padding 260ms var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 8px 12px 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    background 260ms var(--ease),
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.site-header.is-scrolled {
  padding-top: 10px;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 253, 248, 0.88);
  border-color: var(--line);
  box-shadow: 0 14px 44px rgba(33, 26, 18, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(33, 26, 18, 0.18);
  transition: transform 280ms var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--paper-deep);
  color: var(--ink);
  outline: none;
}

.primary-nav a.is-active {
  color: var(--accent);
}

.primary-nav .nav-cta {
  margin-left: 8px;
  color: #fffdf8;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(228, 87, 46, 0.32);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  background: var(--accent-deep);
  color: #fffdf8;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 200ms var(--ease),
    border-color 200ms var(--ease);
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 240ms var(--ease),
    opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 通用 ---------- */

.section-inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-tint {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.section-night {
  background:
    radial-gradient(820px 500px at 12% 8%, rgba(228, 87, 46, 0.2), transparent 58%),
    radial-gradient(760px 520px at 92% 96%, rgba(233, 161, 59, 0.14), transparent 60%),
    var(--night);
  color: var(--night-text);
}

.section-heading {
  max-width: 640px;
}

.section-heading.centered {
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.section-night .section-heading > p:last-child {
  color: var(--night-muted);
}

.section-night h2,
.section-night h3 {
  color: #fffdf8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}

.section-night .eyebrow {
  color: var(--accent-light);
}

.section-night .eyebrow::before {
  background: var(--accent-light);
}

/* ---------- 按钮 ---------- */

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition:
    transform 200ms var(--ease),
    background 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    color 200ms var(--ease);
}

.button svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) translate(var(--mag-x, 0px), var(--mag-y, 0px));
  outline: none;
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fffdf8;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(228, 87, 46, 0.34);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
  box-shadow: 0 22px 44px rgba(228, 87, 46, 0.42);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
  background: var(--surface);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 96px;
  background:
    radial-gradient(1000px 620px at 88% -12%, rgba(233, 161, 59, 0.2), transparent 60%),
    radial-gradient(900px 640px at -12% 34%, rgba(228, 87, 46, 0.11), transparent 55%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 50% 36%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 36%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 4%;
  background: rgba(233, 161, 59, 0.35);
  animation: orb-drift 12s ease-in-out infinite;
}

.orb-b {
  width: 340px;
  height: 340px;
  bottom: 2%;
  left: -140px;
  background: rgba(228, 87, 46, 0.24);
  animation: orb-drift 14s ease-in-out 2s infinite;
}

.orb-c {
  width: 260px;
  height: 260px;
  top: 34%;
  right: 34%;
  background: rgba(46, 125, 79, 0.16);
  animation: orb-drift 16s ease-in-out 4s infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  background-image: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--gold) 34%,
    #ffd9a8 46%,
    #fff3e0 50%,
    #ffd9a8 54%,
    var(--gold) 66%,
    var(--accent) 100%
  );
  background-size: 240% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  animation: em-shimmer 7.5s linear infinite;
}

@keyframes em-shimmer {
  to {
    background-position: -240% center;
  }
}

.hero-lead {
  max-width: 580px;
  margin-top: 26px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px dashed var(--line-strong);
}

.hero-metrics dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.hero-metrics dt::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.hero-metrics dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  perspective: 1100px;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  margin: 0 auto;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 46px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  transform: perspective(1100px) rotate(-2deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 400ms var(--ease);
}

.hero-visual:hover .phone-frame {
  transform: perspective(1100px) rotate(0deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.phone-notch {
  width: 116px;
  height: 22px;
  margin: 0 auto 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  max-width: 250px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.float-chip .chip-dot {
  grid-row: 1 / 3;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease-out infinite;
}

.float-chip .chip-dot--green {
  background: var(--green);
  animation: none;
}

.float-chip strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.float-chip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chip-expiring {
  top: -26px;
  right: -20px;
  animation: float-y 6s ease-in-out infinite;
}

.chip-sync {
  bottom: -24px;
  left: -16px;
  animation: float-y 7s ease-in-out 1s infinite;
}

/* ---------- 产品能力 ---------- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  perspective: 1100px;
}

.capability-card {
  position: relative;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease),
    border-color 280ms var(--ease);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px circle at var(--glare-x, 50%) var(--glare-y, 0%),
    rgba(228, 87, 46, 0.08),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 280ms var(--ease);
  pointer-events: none;
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.capability-card:hover {
  transform: translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

.capability-card:hover::after {
  transform: scaleX(1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-num {
  color: var(--line-strong);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.capability-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.capability-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 使用流程 ---------- */

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 3%;
  right: 3%;
  border-top: 2px dashed var(--line-strong);
}

.workflow-steps li {
  position: relative;
}

.step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(33, 26, 18, 0.08);
}

.workflow-steps h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.workflow-steps p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 界面预览 ---------- */

.showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.showcase-tabs {
  position: relative;
  display: flex;
  flex: none;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
}

.showcase-tabs button {
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 200ms var(--ease),
    color 200ms var(--ease);
}

.showcase-tabs button:hover,
.showcase-tabs button:focus-visible {
  color: var(--ink);
  outline: none;
}

.showcase-tabs button.active {
  background: var(--ink);
  color: #fffdf8;
  box-shadow: 0 8px 20px rgba(33, 26, 18, 0.24);
}

.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.showcase-copy h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.showcase-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}

.showcase-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.showcase-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.showcase-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 900;
}

.showcase-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-deep);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.showcase-media img {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 260ms var(--ease);
}

.showcase-media img.is-changing {
  opacity: 0;
}

/* ---------- 数据安全（夜色区块） ---------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.security-grid article {
  padding: 30px 26px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 240ms var(--ease),
    background 240ms var(--ease);
}

.security-grid article:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(228, 87, 46, 0.18);
  color: var(--accent-light);
}

.security-icon svg {
  width: 26px;
  height: 26px;
}

.security-grid h3 {
  margin-bottom: 8px;
  color: #fffdf8;
  font-size: 18px;
}

.security-grid p {
  color: var(--night-muted);
  font-size: 14px;
}

/* ---------- 开始使用 ---------- */

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  perspective: 1100px;
}

.use-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease);
}

.use-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--glare-x, 50%) var(--glare-y, 0%),
    rgba(233, 161, 59, 0.09),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 280ms var(--ease);
  pointer-events: none;
}

.use-card:hover::before {
  opacity: 1;
}

.use-card:hover {
  transform: translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: var(--shadow-card-hover);
}

.use-card-icon {
  flex: none;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(33, 26, 18, 0.16);
}

.use-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.use-card > p:not(.use-card-hint) {
  color: var(--muted);
  font-size: 15px;
}

.use-card-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.use-card-hint strong {
  color: var(--accent);
  font-weight: 900;
}

.mp-qr-img {
  width: 200px;
  height: 200px;
  margin: 22px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.app-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 24px 0;
}

.app-meta > div {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--paper-deep);
  text-align: center;
}

.app-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.app-meta dd {
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.app-download-btn {
  width: 100%;
}

.use-card .app-download-btn + .use-card-hint {
  margin-top: 14px;
}

/* ---------- 用户反馈 ---------- */

.feedback-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}

.feedback-intro h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.feedback-intro > p:last-of-type {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.feedback-flow {
  margin-top: 36px;
  border-bottom: 1px solid var(--line);
}

.feedback-flow li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.feedback-flow li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.feedback-flow strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.feedback-flow p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.feedback-form {
  padding: 38px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-head h3 {
  font-size: 23px;
}

.form-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.form-head [data-feedback-counter] {
  flex: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row-group .form-row {
  margin-bottom: 0;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    background 200ms var(--ease);
}

.form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #b3a894;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238d8171' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.feedback-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.feedback-submit p {
  color: var(--muted);
  font-size: 13px;
}

.feedback-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.feedback-status.is-success {
  color: var(--green);
}

.feedback-status.is-error {
  color: #c0392b;
}

.feedback-status.is-loading {
  color: var(--accent);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-text);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 44px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.footer-brand span {
  display: grid;
  line-height: 1.15;
}

.footer-brand strong {
  color: #fffdf8;
  font-size: 16px;
  font-weight: 900;
}

.footer-brand small {
  margin-top: 4px;
  color: var(--night-muted);
  font-size: 12px;
}

.footer-left {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 260px;
  justify-items: center;
  text-align: center;
}

.footer-copyright {
  color: var(--night-muted);
  font-size: 13px;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--night-muted);
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms var(--ease);
}

.beian-link:hover,
.beian-link:focus-visible {
  color: var(--accent-light);
  outline: none;
}

.beian-icon-img {
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 8px;
}

.footer-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--night-text);
  font-size: 14px;
  font-weight: 800;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fffdf8;
  outline: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    gap: 44px;
  }

  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .hero {
    padding-top: 150px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    max-width: 640px;
    margin: 8px auto 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .workflow-steps::before {
    display: none;
  }

  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
  }

  .feedback-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 40px 90px rgba(33, 26, 18, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 240ms var(--ease),
      transform 240ms var(--ease),
      visibility 0s linear 240ms;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    font-size: 15px;
  }

  .primary-nav .nav-cta {
    margin: 6px 0 0;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }

  .section-inner {
    width: min(100% - 40px, var(--max));
  }

  .section-heading.centered {
    margin-bottom: 40px;
  }

  .hero {
    padding: 140px 0 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .workflow-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding-bottom: 28px;
  }

  .workflow-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    bottom: 0;
    left: 21px;
    border-left: 2px dashed var(--line-strong);
  }

  .step-num {
    margin-bottom: 0;
  }

  .showcase-tabs {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
  }

  .showcase-panel {
    padding: 28px 22px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .use-grid {
    grid-template-columns: 1fr;
  }

  .form-row-group {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .form-row-group .form-row {
    margin-bottom: 18px;
  }

  .feedback-form {
    padding: 30px 22px;
  }

  .feedback-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-submit .button {
    width: 100%;
  }

  .float-chip {
    position: static;
    margin: 16px 0 0;
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    min-width: 0;
  }
}


/* ============================================================
   2026-09 扩展：完整版下载 / 高级动态交互
   ============================================================ */

/* ---------- 顶部滚动进度条 ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  box-shadow: 0 0 12px rgba(228, 87, 46, 0.5);
}

/* ---------- Hero 下载菜单（版本选择） ---------- */

.app-picker {
  position: relative;
}

.picker-chevron {
  width: 16px;
  height: 16px;
  transition: transform 240ms var(--ease);
}

.app-picker.is-open .picker-chevron {
  transform: rotate(180deg);
}

.picker-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 50;
  width: min(360px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(33, 26, 18, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease),
    visibility 0s linear 220ms;
}

.app-picker.is-open .picker-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.picker-title {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.picker-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  transition: background 180ms var(--ease);
}

.picker-option + .picker-option {
  margin-top: 2px;
}

.picker-option:hover,
.picker-option:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.picker-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-deep);
  color: var(--accent-deep);
}

.picker-option-icon svg {
  width: 22px;
  height: 22px;
}

.picker-option-body strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.picker-option-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-green {
  background: rgba(46, 125, 79, 0.13);
  color: var(--green);
}

.badge-gold {
  background: rgba(233, 161, 59, 0.18);
  color: #9a6a1b;
}

/* ---------- 功能跑马灯 ---------- */

.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-group span {
  position: relative;
  padding-right: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.72;
}

.ticker-group span::after {
  content: "◆";
  position: absolute;
  right: 16px;
  color: var(--line-strong);
  font-size: 9px;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 界面预览：滑动指示 pill ---------- */

.showcase-tabs .tab-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(33, 26, 18, 0.24);
  transform: translateX(0);
  opacity: 0;
  transition:
    transform 340ms var(--ease),
    width 340ms var(--ease),
    opacity 200ms var(--ease);
}

.showcase-tabs.has-pill .tab-pill {
  opacity: 1;
}

.showcase-tabs.has-pill button {
  position: relative;
  z-index: 1;
}

.showcase-tabs.has-pill button.active {
  background: transparent;
  box-shadow: none;
  color: #fffdf8;
}

/* ---------- 3D 倾斜卡片（JS 设置 --tilt-x/--tilt-y/--glare-*) ---------- */

[data-tilt] {
  will-change: transform;
}

/* ---------- 涟漪 ---------- */

.ripple-ink {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-grow 550ms var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes ripple-grow {
  to {
    transform: translate(-50%, -50%) scale(26);
    opacity: 0;
  }
}

/* ---------- 夜色区块鼠标聚光 ---------- */

.section-night::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--spot-x, 50%) var(--spot-y, 30%),
    rgba(255, 171, 133, 0.11),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.section-night:hover::after {
  opacity: 1;
}

/* ---------- 下载区：完整版卡片 / 提醒 / 功能标签 ---------- */

.use-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.use-card-head .use-card-icon {
  margin-bottom: 0;
}

.use-card-headtext {
  flex: 1;
  min-width: 0;
}

.use-card-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.use-card-head > .version-badge {
  flex: none;
  margin-left: auto;
  margin-top: 4px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.version-badge--green {
  background: rgba(46, 125, 79, 0.13);
  color: var(--green);
}

.version-badge--gold {
  background: rgba(233, 161, 59, 0.18);
  color: #9a6a1b;
}

.use-card-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 40px;
  align-items: start;
  margin-top: 4px;
}

.use-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.use-card-main > p {
  color: var(--muted);
  font-size: 15px;
}

.use-card-main strong {
  color: var(--ink);
}

.use-card-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(233, 161, 59, 0.07), rgba(228, 87, 46, 0.04) 60%, transparent);
}

.version-notice {
  padding: 18px 20px;
  border: 1px solid #ecd9ae;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: #fdf6e6;
}

.version-notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a5d13;
}

.version-notice-head svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.version-notice-head strong {
  color: #7a4f0e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.version-notice p {
  margin-top: 10px;
  color: #7d6a4a;
  font-size: 13.5px;
  line-height: 1.7;
}

.version-notice p strong {
  color: #7a4f0e;
}

.side-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease);
}

.feature-chips li::before {
  content: "✓";
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.feature-chips li:hover {
  transform: translateY(-2px);
  border-color: var(--accent-light);
  color: var(--accent-deep);
}

/* ---------- 返回顶部 ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(33, 26, 18, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease),
    visibility 0s linear 260ms,
    border-color 200ms var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.to-top-ring {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  transform: rotate(-90deg);
}

.to-top-ring circle {
  fill: none;
  stroke-width: 2.6;
}

.to-top-ring .ring-track {
  stroke: var(--line);
}

.to-top-ring .ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--ring-offset, 100);
  transition: stroke-dashoffset 160ms linear;
}

.to-top-arrow {
  position: relative;
  width: 18px;
  height: 18px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 90;
  max-width: min(88vw, 480px);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 24px 60px rgba(33, 26, 18, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition:
    opacity 280ms var(--ease),
    transform 280ms var(--ease),
    visibility 0s linear 280ms;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

/* ---------- 新组件响应式 ---------- */

@media (max-width: 1080px) {
  .use-card-full {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .use-card-full {
    padding: 30px 24px;
  }

  .use-card-side {
    padding: 22px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .ticker-group span {
    padding-right: 36px;
    font-size: 13.5px;
  }

  .ticker-group span::after {
    right: 13px;
  }
}

/* ---------- 磁性元素通用变换 ---------- */

[data-magnetic] {
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
}

/* ============================================================
   2026-09 再增强：纸张颗粒 / Hero 入场与滚动视差 / 反应式跑马灯 / 光标光晕
   均在 prefers-reduced-motion 时自动降级（见文件顶部全局规则）
   ============================================================ */

/* ---------- 全站纸张颗粒质感（静态、极低透明度） ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero 文案入场（载入 stagger） ---------- */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: hero-rise 820ms var(--ease-out) both;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 80ms;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 170ms;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 260ms;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 350ms;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 440ms;
}

/* Hero 视觉入场：仅淡入，transform 留给滚动视差使用 */

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-visual {
  animation: hero-fade-in 1000ms var(--ease-out) 240ms both;
}

/* 滚动视差时，Hero 文案与视觉的位移/淡出由 JS 写入 inline transform+opacity */

.hero-copy,
.hero-visual {
  will-change: transform, opacity;
}

/* ---------- 反应式跑马灯：随滚动速度轻微倾斜 ---------- */

.ticker-group {
  transform: skewX(var(--ticker-skew, 0deg));
  transition: transform 260ms var(--ease-out);
}

/* ---------- 光标跟随环境光晕（仅桌面精确指针） ---------- */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ease);
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

.cursor-glow span {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(228, 87, 46, 0.13),
    rgba(233, 161, 59, 0.07) 42%,
    transparent 70%
  );
  transform: scale(0.8);
  transition: transform 340ms var(--ease);
}

.cursor-glow.is-active span {
  transform: scale(1.12);
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
