/* ============================================================
 * LUMIÈRE 流光影像 — style.css
 * 暗色电影感 · 极简 · 大留白 · 单一暖色强调
 * ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #09090c;
  --bg-2: #0e0e13;
  --panel: #121219;
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ece9e2;
  --soft: #b8b4ac;
  --muted: #86837d;
  --accent: #ff5c7a;
  --accent-2: #ffa14a;
  --grad: linear-gradient(120deg, #ff5c7a, #ffa14a);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --serif: "Playfair Display", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;
  --nav-h: 72px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: 0 10px 44px -10px rgba(255, 92, 122, .5);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 细腻噪点，让暗色更“高级” */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: rgba(255, 92, 122, .32); color: #fff; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 排版 ---------- */
h1, h2, h3 { line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: clamp(2.7rem, 6.2vw, 4.6rem); font-weight: 500; }
h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 500; }
em.grad, h1 em, h2 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
p { color: var(--soft); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.kicker {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-more { text-align: center; margin-top: 44px; }
.panel-title { margin-bottom: 20px; font-size: 1rem; }
.mt-22 { margin-top: 22px; }
.v-small { font-size: .85rem; font-weight: 500; word-break: break-all; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  border-radius: var(--r-full);
  padding: .82rem 1.7rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .25s ease, border-color .25s ease, filter .25s ease;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--grad);
  color: #20101a;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 14px 52px -10px rgba(255, 92, 122, .62); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .34); background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.15rem; font-size: .88rem; }
.btn-lg { padding: 1.02rem 2.2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 演示横幅 ---------- */
.demo-banner {
  position: relative;
  z-index: 60;
  text-align: center;
  font-size: .82rem;
  color: #ffd9e0;
  background: repeating-linear-gradient(-45deg, rgba(255, 92, 122, .14) 0 14px, rgba(255, 92, 122, .07) 14px 28px);
  border-bottom: 1px solid rgba(255, 92, 122, .25);
  padding: 8px 16px;
}
.demo-banner code { background: rgba(0, 0, 0, .35); padding: 1px 7px; border-radius: 6px; font-size: .78rem; }
.demo-banner b { color: #fff; margin-right: 6px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(9, 9, 12, .74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad);
  position: relative;
  box-shadow: 0 0 22px rgba(255, 92, 122, .55);
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 10px; top: 7px;
  border-left: 9px solid #1a0d13;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1.06rem; letter-spacing: .14em; font-weight: 700; }
.brand-text i { font-style: normal; font-size: .68rem; letter-spacing: .5em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; color: var(--soft); position: relative; transition: color .25s; padding: 4px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .38rem .9rem;
  border-radius: var(--r-full);
  max-width: 260px;
}
.nav-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.nav-logout {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .8rem; padding: 0 2px;
  transition: color .2s;
}
.nav-logout:hover { color: var(--accent); }

/* 未登录：导航栏显示「登录」入口（登录后由 JS 隐藏） */
.nav-links .mobile-only { display: none; }
body[data-page="auth"] #nav-login,
body[data-page="auth"] #nav-cta { display: none; }
.hero-login-hint { margin-top: 22px; font-size: .88rem; color: var(--muted); }
.hero-login-hint a { color: var(--accent); border-bottom: 1px solid rgba(255, 92, 122, .4); padding-bottom: 1px; transition: border-color .25s; }
.hero-login-hint a:hover { border-bottom-color: var(--accent); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 10px; width: 18px; height: 1.6px; background: var(--text); content: "";
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 20s ease-in-out infinite alternate; }
.orb-a {
  width: 520px; height: 520px;
  top: -14%; right: -6%;
  background: radial-gradient(circle, rgba(255, 92, 122, .34), transparent 65%);
}
.orb-b {
  width: 460px; height: 460px;
  bottom: -22%; left: -8%;
  background: radial-gradient(circle, rgba(122, 63, 255, .26), transparent 65%);
  animation-delay: -7s;
}
.orb-c {
  width: 300px; height: 300px;
  top: 30%; left: 42%;
  background: radial-gradient(circle, rgba(255, 161, 74, .16), transparent 65%);
  animation-delay: -13s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-46px, 34px, 0) scale(1.1); }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 40%, transparent 60%, rgba(9, 9, 12, .8) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; padding-block: 40px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--soft);
  border: 1px solid var(--line-2);
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: .5rem 1.2rem;
  border-radius: var(--r-full);
  margin-bottom: 30px;
}
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { margin-bottom: 26px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--soft); max-width: 560px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(48px, 7vw, 76px);
  flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats dt { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; }
.hero-stats dd { font-size: .82rem; color: var(--muted); letter-spacing: .12em; margin-top: 4px; }
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- 标语条（居中，小屏换行） ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  user-select: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 34px;
  padding: 20px 24px;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.marquee span b { color: var(--accent); font-weight: 500; padding: 0 .35em; }
@media (max-width: 760px) {
  .marquee span { font-size: .95rem; }
}

/* ---------- 视频网格 / 卡片 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.video-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0c11; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s ease; }
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card.locked .thumb img { filter: blur(16px) saturate(.55) brightness(.7); }
.video-card .dur {
  position: absolute;
  right: 10px; bottom: 10px;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  padding: .18rem .5rem;
  border-radius: 7px;
  color: #fff;
}
.video-card .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(9, 9, 12, .55), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
}
.video-card:hover .play { opacity: 1; }
.video-card .play svg {
  color: #fff;
  filter: drop-shadow(0 4px 18px rgba(255, 92, 122, .7));
  transform: scale(.85);
  transition: transform .35s var(--ease);
}
.video-card:hover .play svg { transform: scale(1); }
.video-card .lock {
  position: absolute; inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #fff;
}
.video-card .lock b {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  background: rgba(9, 9, 12, .6);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.08rem; font-weight: 600; }
.card-desc {
  font-size: .86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  color: var(--soft);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .24rem .68rem;
  border-radius: var(--r-full);
  cursor: default;
}
.chip-sm { font-size: .7rem; padding: .16rem .58rem; }
button.chip { cursor: pointer; transition: border-color .25s, color .25s, background-color .25s; }
button.chip:hover { color: var(--text); border-color: var(--line-2); }
button.chip.active { background: rgba(255, 92, 122, .14); border-color: rgba(255, 92, 122, .5); color: #ffc2cd; }
.views { font-size: .74rem; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- 特性 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 34px 30px;
  transition: border-color .35s ease, transform .35s var(--ease), background-color .35s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--surface-2); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 92, 122, .12);
  border: 1px solid rgba(255, 92, 122, .3);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature h3 { font-size: 1.16rem; margin-bottom: 10px; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- 价格 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 26px; }
.price-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 80px -40px rgba(255, 92, 122, .5);
}
.pop-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #20101a;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .3rem 1rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price .currency { font-size: 1.3rem; color: var(--soft); }
.price .amount { font-family: var(--serif); font-size: 3.6rem; font-weight: 500; line-height: 1; }
.price .period { color: var(--muted); font-size: .95rem; }
.price-note { font-size: .84rem; color: var(--muted); margin-top: -12px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.feature-list li { display: flex; gap: 11px; font-size: .92rem; color: var(--soft); align-items: flex-start; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 17px; height: 17px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(255, 92, 122, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5c7a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.pricing-note { text-align: center; margin-top: 34px; font-size: .84rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 24px 4px;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--text);
  transition: color .25s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-x {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  position: relative;
  transition: transform .35s var(--ease), border-color .25s, background-color .25s;
}
.faq-q .faq-x::before, .faq-q .faq-x::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s;
}
.faq-q .faq-x::before { width: 11px; height: 1.6px; }
.faq-q .faq-x::after { width: 1.6px; height: 11px; }
.faq-item.open .faq-x { transform: rotate(180deg); background: rgba(255, 92, 122, .14); border-color: rgba(255, 92, 122, .45); }
.faq-item.open .faq-x::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 4px 24px; font-size: .93rem; color: var(--muted); max-width: 640px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 34px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 18px; }
.footer-desc { font-size: .86rem; color: var(--muted); max-width: 280px; }
.footer h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: .88rem; color: var(--soft); padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted);
}
.footer-bottom .stack span { color: var(--soft); }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 480px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 25, .92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  border-radius: var(--r-full);
  padding: .72rem 1.4rem;
  font-size: .9rem;
  color: var(--text);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .35s ease, transform .35s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--soft); }
.toast-success .toast-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast-error .toast-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.toast-info .toast-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- 页面骨架（登录/仪表盘） ---------- */
.page { padding: calc(var(--nav-h) + clamp(36px, 6vw, 64px)) 0 90px; flex: 1; }
.page-head { margin-bottom: clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-head p { margin-top: 12px; color: var(--muted); }
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
}

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: grid; place-items: center; min-height: calc(100svh - var(--nav-h)); }
.auth-card {
  width: min(440px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}
.auth-card h1 { font-size: 1.9rem; text-align: center; }
.auth-sub { text-align: center; font-size: .9rem; color: var(--muted); margin: 10px 0 28px; }
.auth-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 26px;
}
.auth-tabs button {
  flex: 1;
  border: none;
  background: none;
  border-radius: var(--r-full);
  padding: .58rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s, background-color .25s;
}
.auth-tabs button.active { background: var(--grad); color: #20101a; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-alt { margin-top: 24px; text-align: center; }
.auth-alt p { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.oauth-row { display: flex; gap: 12px; }
.oauth-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: .62rem;
  font-size: .86rem;
  color: var(--soft);
  cursor: pointer;
  transition: border-color .25s, color .25s, background-color .25s;
}
.oauth-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .32); background: var(--surface-2); }
.auth-note { margin-top: 20px; font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--soft); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: .94rem;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .72rem .95rem;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #5d5b57; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(255, 92, 122, .55);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(255, 92, 122, .14);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-hint { font-size: .76rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkline { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--soft); cursor: pointer; }
.checkline input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- 影像库（videos.html） ---------- */
.lib-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: .68rem 1.1rem .68rem 2.7rem;
  transition: border-color .25s, box-shadow .25s;
}
.search-box input:focus { outline: none; border-color: rgba(255, 92, 122, .5); box-shadow: 0 0 0 3px rgba(255, 92, 122, .12); }
.search-box::before {
  content: "";
  position: absolute;
  left: 15px; top: 50%;
  width: 15px; height: 15px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386837d' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tag-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

/* 付费墙 */
.paywall {
  max-width: 560px;
  margin: clamp(20px, 6vh, 70px) auto;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.paywall::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 200px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 92, 122, .22), transparent 70%);
  pointer-events: none;
}
.paywall-icon {
  width: 58px; height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 92, 122, .1);
  border: 1px solid rgba(255, 92, 122, .35);
  color: var(--accent);
}
.paywall h2 { font-size: 1.6rem; margin-bottom: 12px; }
.paywall p { font-size: .92rem; color: var(--muted); margin-bottom: 28px; }
.paywall-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 播放页 ---------- */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.player-frame-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050507;
  box-shadow: 0 40px 120px -50px rgba(0, 0, 0, .95);
}
.player-frame-wrap::before { content: ""; display: block; padding-top: 56.25%; }
.player-frame-wrap video, .player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-frame-wrap video { background: #000; }
.player-fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: .88rem;
}
.watch-meta { margin-top: 26px; }
.watch-meta h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.watch-meta .meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.watch-desc { font-size: .95rem; color: var(--soft); max-width: 720px; }
.watch-side h3 { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: 9px;
  transition: border-color .3s, transform .3s var(--ease);
}
.side-item:hover { border-color: var(--line-2); transform: translateX(3px); }
.side-item img { width: 108px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.side-item .si-title { font-size: .88rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-item .si-meta { font-size: .74rem; color: var(--muted); margin-top: 3px; }

/* ---------- 账户 ---------- */
.account-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.sub-card { position: relative; overflow: hidden; }
.sub-card::before {
  content: "";
  position: absolute;
  inset: -60% 30% auto;
  height: 220px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 92, 122, .16), transparent 70%);
  pointer-events: none;
}
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sub-head h2 { font-size: 1.3rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  padding: .32rem .85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  color: var(--soft);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.badge-warn { color: var(--warn); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.badge-off { color: var(--muted); }
.sub-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 26px; margin-bottom: 26px; }
.sub-rows .k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.sub-rows .v { font-size: 1.02rem; font-weight: 600; }
.sub-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.account-side { display: flex; flex-direction: column; gap: 26px; }
.account-side h3 { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.order-row:last-child { border-bottom: 0; }
.order-row .o-plan { font-weight: 600; }
.order-row .o-sub { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.order-row .o-amount { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.order-row .o-status { font-size: .74rem; color: var(--muted); }
.pay-success {
  display: none;
  border: 1px solid rgba(74, 222, 128, .35);
  background: rgba(74, 222, 128, .07);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: .9rem;
  color: #bbf7d0;
  margin-bottom: 26px;
  align-items: center;
  gap: 12px;
}
.pay-success.show { display: flex; }
.pay-success .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(74, 222, 128, .3);
  border-top-color: var(--ok);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 管理端 ---------- */
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.admin-form { display: flex; flex-direction: column; gap: 15px; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tbl th {
  text-align: left;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background-color .2s; }
table.tbl tbody tr:hover { background: var(--surface); }
.tbl-title { font-weight: 600; }
.tbl-sub { font-size: .76rem; color: var(--muted); margin-top: 2px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-actions { text-align: right; white-space: nowrap; }
.link-danger {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .82rem;
  transition: color .2s;
}
.link-danger:hover { color: var(--danger); }
.forbidden { text-align: center; padding: 80px 24px; }
.forbidden h2 { margin-bottom: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: minmax(0, 460px); }
  .watch-layout { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(9, 9, 12, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 22px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 9px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-user { display: none; }
  #nav-cta { display: none; }
  .nav-links .mobile-only { display: block; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .side-item { grid-template-columns: 88px 1fr; }
  .side-item img { width: 88px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
