/* ============================================================
   短剧基地 duanjujidi.com — 设计系统 v2「暗夜片场」
   电影感暗色主题 · 动态光晕 · 胶片颗粒 · 流光边框
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-soft: #0b0d15;
  --surface: #10131d;
  --surface-2: #161a29;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ecf4;
  --muted: #99a1b5;
  --accent: #ff6b3d;
  --accent-2: #ff3d81;
  --blue: #5ea2ff;
  --gold: #ffd166;
  --grad: linear-gradient(135deg, #ff6b3d 0%, #ff3d81 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 107, 61, 0.14), rgba(255, 61, 129, 0.14));
  --glow: 0 0 40px rgba(255, 82, 100, 0.28);
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(94, 162, 255, 0.07), transparent 60%),
    radial-gradient(1100px 600px at 10% -5%, rgba(255, 107, 61, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全局胶片颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(255, 107, 61, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3042; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4258; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

section[id] { scroll-margin-top: 76px; }

/* ================= 顶部导航 ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 13, 0.6);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
  background: rgba(7, 8, 13, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 17px; color: #fff; font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 82, 100, 0.45);
}
.logo b { background: linear-gradient(135deg, #ffa07a, #ff5c8a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  position: relative;
  padding: 8px 18px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(255, 82, 100, 0.7);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 110px 0 96px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 320px at 18% 0%, rgba(255, 107, 61, 0.17), transparent 65%),
    radial-gradient(700px 360px at 82% 0%, rgba(94, 162, 255, 0.13), transparent 65%),
    radial-gradient(500px 260px at 50% 110%, rgba(255, 61, 129, 0.10), transparent 70%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.orb-a { width: 380px; height: 380px; left: -80px; top: -120px; background: radial-gradient(circle, rgba(255, 107, 61, 0.55), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; right: -100px; top: -80px; background: radial-gradient(circle, rgba(94, 162, 255, 0.42), transparent 70%); animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-c { width: 300px; height: 300px; left: 42%; bottom: -180px; background: radial-gradient(circle, rgba(255, 61, 129, 0.40), transparent 70%); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.15); }
}

/* 底部胶片带 */
.filmstrip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.10) 14px 30px,
      transparent 30px 44px) center / 44px 7px no-repeat,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  background-size: 44px 7px, 100% 100%;
  background-position: center 5px, center;
  background-repeat: repeat-x, no-repeat;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 61, 0.4);
  background: var(--grad-soft);
  color: #ffb59d;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 26px;
  box-shadow: inset 0 0 24px rgba(255, 107, 61, 0.10);
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.22;
  letter-spacing: 1px;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #ff9a62 0%, #ff5c8a 55%, #c96bff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 82, 100, 0.35));
  transition: filter 0.3s;
}
.hero h1 a.grad:hover { filter: drop-shadow(0 0 36px rgba(255, 82, 100, 0.6)); }
.hero p.sub {
  max-width: 660px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17.5px);
}
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-chips span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================= 按钮 ================= */
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.25s;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 26px rgba(255, 82, 100, 0.4);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(255, 82, 100, 0.55); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255, 138, 90, 0.55); background: rgba(255, 107, 61, 0.08); transform: translateY(-2px); }

/* ================= 特价跑马灯 ================= */
.ticker {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(16, 19, 29, 0.7);
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffb59d;
  background: var(--grad-soft);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-label .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 61, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 129, 0); }
}
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  font-size: 13.5px;
  color: var(--muted);
}
.ticker-track span i { font-style: normal; color: var(--accent); }
.ticker-track span:hover { color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= 区块 ================= */
.section { padding: 88px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(16, 19, 29, 0), rgba(16, 19, 29, 0.9) 18%, rgba(16, 19, 29, 0.9) 82%, rgba(16, 19, 29, 0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.eyebrow::after { background: linear-gradient(90deg, var(--accent), transparent); }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: 0.5px; font-weight: 800; }
.section-head h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-head .bar { width: 52px; height: 3px; border-radius: 3px; background: var(--grad); margin: 18px auto 0; box-shadow: var(--glow); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 15px; }

/* ================= 卡片 ================= */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 61, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 107, 61, 0.12), 0 8px 40px rgba(255, 82, 100, 0.12);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 107, 61, 0.35);
  display: grid; place-items: center;
  font-size: 21px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 18px rgba(255, 107, 61, 0.12);
}
.card h3 { font-size: 17.5px; margin-bottom: 9px; letter-spacing: 0.01em; }
.card p { color: var(--muted); font-size: 14px; }

/* 主办活动流光边框卡 */
.card-featured {
  background:
    linear-gradient(135deg, rgba(255, 107, 61, 0.12), rgba(255, 61, 129, 0.10) 60%, rgba(94, 162, 255, 0.08)),
    var(--surface);
  border: 1px solid rgba(255, 107, 61, 0.5);
}
.card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-angle),
    rgba(255, 107, 61, 0) 0deg,
    rgba(255, 107, 61, 0.9) 60deg,
    rgba(255, 61, 129, 0.9) 110deg,
    rgba(94, 162, 255, 0.55) 160deg,
    rgba(255, 107, 61, 0) 240deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: ring-spin 5s linear infinite;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s;
}
.card-featured:hover::before { opacity: 1; }
@keyframes ring-spin {
  to { --ring-angle: 360deg; }
}

/* ================= 特价卡片 ================= */
.tejia-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.tejia-card::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.85;
}
.tejia-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 61, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 4px 30px rgba(255, 82, 100, 0.10);
}
.tejia-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; }
.tejia-date {
  font-size: 13px;
  color: #ffb59d;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 107, 61, 0.3);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tejia-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffe3c2;
  border: 1px solid rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.10);
  padding: 2px 10px;
  border-radius: 999px;
}
.tejia-new .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s infinite;
}
.tejia-src { font-size: 13px; color: var(--muted); }
.tejia-card h3 { font-size: 16.5px; line-height: 1.55; margin-bottom: 8px; }
.tejia-card h3 a:hover { color: var(--accent); }
.tejia-card .summary { color: var(--muted); font-size: 14px; }

/* ================= 活动卡片 ================= */
.activity-card { display: flex; flex-direction: column; }
.activity-card .act-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.tag {
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.tag-hot { color: #ffb59d; border-color: rgba(255, 107, 61, 0.45); background: var(--grad-soft); }
.activity-card h3 { font-size: 17px; }
.activity-card h3 a:hover { color: var(--accent); }
.activity-card .brief { color: var(--muted); font-size: 14px; margin: 9px 0 16px; flex: 1; }
.activity-card .more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: letter-spacing 0.25s;
}
.activity-card .more:hover { letter-spacing: 0.06em; }

/* ================= 活动详情页 ================= */
.article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 42px 44px;
  margin-top: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 28px; }
.article-head h1 { font-size: clamp(23px, 3.6vw, 32px); line-height: 1.35; margin: 14px 0; font-weight: 800; }
.article-head .act-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.article h2 {
  font-size: 20px;
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
  letter-spacing: 0.02em;
}
.article p, .article li { color: #c6ccd9; font-size: 15px; }
.article ul, .article ol { padding-left: 22px; margin: 12px 0; }
.article li { margin: 7px 0; }
.article li::marker { color: var(--accent); }
.article strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.article th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.article td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.article tbody tr { transition: background 0.2s; }
.article tbody tr:hover { background: rgba(255, 107, 61, 0.05); }
.article .cta-box {
  margin-top: 36px;
  padding: 24px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 107, 61, 0.35);
  text-align: center;
  box-shadow: inset 0 0 40px rgba(255, 107, 61, 0.06);
}
.breadcrumb { margin-top: 28px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

/* ================= FAQ ================= */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  padding: 20px 24px;
  margin-bottom: 13px;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: rgba(255, 107, 61, 0.35); }
.faq-item h3 { font-size: 15px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14px; }

/* ================= 页脚 ================= */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 52px 0 44px;
  margin-top: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 19, 29, 0), rgba(16, 19, 29, 0.8));
}
.footer-mark {
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  font-size: clamp(90px, 16vw, 200px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; position: relative; }
.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 44px; }
.footer-links h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); letter-spacing: 0.06em; }
.footer-links ul { list-style: none; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.copyright { margin-top: 36px; text-align: center; color: #5c6577; font-size: 12.5px; position: relative; }

/* ================= 回到顶部 ================= */
#backTop {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 60;
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 107, 61, 0.4);
  background: rgba(22, 26, 41, 0.85);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
#backTop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backTop:hover { box-shadow: var(--glow); transform: translateY(-2px); }

/* ================= 滚动渐显 ================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].reveal-in { opacity: 1; transform: none; }

/* ================= 响应式 ================= */
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .article { padding: 28px 22px; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 70px; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(11, 13, 21, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 18px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 16px; font-size: 16px; }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; }
  #backTop { right: 16px; bottom: 16px; }
}

/* ================= 无障碍：减少动效 ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
