/* ============================================================
   down.yylls.com — 优兔下载 · 全新前端 v2
   设计：暖炭底 + 火焰橙渐变 · 速度感 · 控制台风格解析台
   ============================================================ */

/* ---------- 字体（自托管子集 WOFF2，国内零外部依赖） ---------- */
@font-face {
  font-family: 'Smiley Sans';
  src: url('/fonts/smiley-sans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+0020-007F, U+FF00-FFEF, U+3000-303F, U+2000-206F, U+2190-21FF, U+25A0-25FF, U+2600-26FF;
}

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #161311;
  --bg-raised: #1e1a17;
  --bg-card: #241f1b;
  --bg-input: #2a2420;
  --border: rgba(255, 149, 0, .12);
  --border-strong: rgba(255, 149, 0, .28);
  --text: #e8e0d8;
  --text-dim: #9a9088;
  --text-strong: #fff;
  --ember1: #FF3B30;
  --ember2: #FF9500;
  --ember3: #FFCC00;
  --grad: linear-gradient(135deg, var(--ember1), var(--ember2) 55%, var(--ember3));
  --grad-h: linear-gradient(135deg, #ff5147, #ffab2e 55%, #ffd633);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: 'Smiley Sans', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-glow: 0 0 40px rgba(255, 149, 0, .12);
  --nav-h: 64px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 149, 0, .35); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a332d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ember2); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
  padding: 12px 26px;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  position: relative; overflow: hidden;
}
.btn-parse {
  background: var(--grad); color: #1a1005;
  box-shadow: 0 4px 20px rgba(255, 120, 0, .3);
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 2px;
  white-space: nowrap;
}
.btn-parse:hover { background: var(--grad-h); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 120, 0, .45); }
.btn-parse:active { transform: translateY(0) scale(.97); }
.btn-parse:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ember2); color: var(--ember3); background: rgba(255, 149, 0, .06); }
.btn.full { width: 100%; }
.parse-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(26, 16, 5, .25); border-top-color: #1a1005;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(22, 19, 17, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display); font-size: 22px; color: var(--text-strong);
  letter-spacing: 2px;
}
.brand-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--text-dim); transition: all .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ember3); background: rgba(255, 149, 0, .08); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-btn {
  background: transparent; border: 1.5px solid var(--border-strong); color: var(--text-dim);
  border-radius: 7px; padding: 5px 11px; font-size: 13px; font-weight: 700;
  transition: all .2s;
}
.lang-btn:hover { color: var(--ember3); border-color: var(--ember2); }
#authArea { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#authArea .btn { padding: 8px 20px; font-size: 14px; }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 149, 0, .08); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 16px 5px 6px; cursor: pointer;
  transition: all .2s;
}
.user-chip:hover { border-color: var(--ember2); background: rgba(255, 149, 0, .14); }
.user-chip .mini-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #1a1005;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
}
.user-chip span { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.mini-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.nav-logout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(255, 69, 58, .3);
  color: #ff6b61; flex-shrink: 0;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background .2s, border-color .2s, color .2s;
}
.nav-logout-btn:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
#authArea:hover .nav-logout-btn,
#authArea:focus-within .nav-logout-btn { opacity: 1; transform: translateX(0); pointer-events: auto; }
#authArea:hover .nav-logout-btn:hover { border-color: #ff453a; background: rgba(255, 69, 58, .12); color: #ff453a; transform: translateY(-1px); }
#authArea:hover .nav-logout-btn:active { transform: translateY(0) scale(.95); }
.nav-admin-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; text-decoration: none;
  border: 1.5px solid rgba(168, 130, 255, .35); color: #b49aff; background: transparent;
  transition: all .2s;
}
.nav-admin-link:hover { border-color: #a882ff; background: rgba(168, 130, 255, .12); color: #c9b3ff; transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; padding: 6px; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* 品牌兔子动画 */
.rabbit-run { animation: rabbit-bounce .65s infinite ease-in-out; transform-origin: 30px 24px; }
@keyframes rabbit-bounce {
  0%, 100% { transform: translate(-3px, 1px) rotate(-4deg) scale(.96, 1.04); }
  45% { transform: translate(4px, -3px) rotate(-7deg) scale(1.12, .85); }
}
.speed-ln { stroke: rgba(255, 149, 0, .3); stroke-width: 1.5; stroke-linecap: round; animation: wind .55s infinite linear; }
.speed-ln.s2 { animation-delay: -.18s; } .speed-ln.s3 { animation-delay: -.36s; }
.speed-ln.big { stroke-width: 2.5; stroke: rgba(255, 149, 0, .22); }
@keyframes wind {
  0% { transform: translateX(18px); opacity: 0; }
  30% { opacity: .9; } 70% { opacity: .9; }
  100% { transform: translateX(-18px); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--nav-h) + 56px) 24px 0;
  min-height: 92vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: glow-drift 12s ease-in-out infinite alternate;
}
.hero-glow.g1 { width: 560px; height: 560px; background: rgba(255, 59, 48, .14); top: -180px; right: -120px; }
.hero-glow.g2 { width: 480px; height: 480px; background: rgba(255, 204, 0, .09); bottom: -100px; left: -160px; animation-delay: -6s; }
@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.15); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 149, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 149, 0, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ember3);
  background: rgba(255, 204, 0, .08); border: 1px solid rgba(255, 204, 0, .2);
  border-radius: 999px; padding: 6px 18px; margin-bottom: 22px;
  animation: fade-up .7s .1s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.22; color: var(--text-strong);
  letter-spacing: 2px; margin-bottom: 20px;
  animation: fade-up .7s .2s both;
}
.hero-title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px; color: var(--text-dim); max-width: 520px; margin-bottom: 24px;
  animation: fade-up .7s .3s both;
}
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; animation: fade-up .7s .4s both; }
.chip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 20px; font-size: 14px; font-weight: 600;
  color: var(--text); transition: all .25s;
}
.chip:hover { border-color: var(--ember2); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero 右侧兔子插画 */
.hero-art { display: flex; justify-content: center; animation: fade-up .8s .35s both; }
.hero-rabbit { width: min(380px, 80vw); filter: drop-shadow(0 0 50px rgba(255, 120, 0, .18)); }
.rabbit-big { animation: rabbit-bounce .7s infinite ease-in-out; transform-origin: 80px 70px; }
.dust { fill: rgba(255, 149, 0, .45); animation: dust-fly .55s infinite linear; }
.dust.d2 { animation-delay: .15s; } .dust.d3 { animation-delay: .32s; }
@keyframes dust-fly {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  30% { opacity: .9; transform: translate(-8px, -2px) scale(1.2); }
  100% { transform: translate(-38px, 4px) scale(.25); opacity: 0; }
}
.spin-ring2 { animation: spin 4.5s linear infinite; transform-origin: 172px 40px; }
.dl-arrow2 { animation: arrow-glide 1.5s infinite cubic-bezier(.4, 0, .2, 1); }
@keyframes arrow-glide {
  0% { transform: translateY(-4px); opacity: 0; }
  25% { opacity: 1; } 75% { transform: translateY(3px); opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ---------- 解析控制台 ---------- */
.console-wrap {
  position: relative; max-width: 1080px; margin: 48px auto 0; width: 100%;
  padding: 0 24px 72px; z-index: 2;
  animation: fade-up .8s .5s both;
}
.console {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), var(--shadow-glow);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.console:focus-within {
  border-color: var(--ember2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 60px rgba(255, 149, 0, .2);
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.console-title { margin-left: 10px; font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: 1px; }
.console-detected {
  margin-left: auto; font-size: 12.5px; font-weight: 700;
  color: var(--ember3); background: rgba(255, 204, 0, .1);
  border: 1px solid rgba(255, 204, 0, .25);
  border-radius: 999px; padding: 3px 14px;
  opacity: 0; transform: scale(.85); transition: all .3s;
}
.console-detected.show { opacity: 1; transform: scale(1); }
.console-body { padding: 24px; }
.input-row { display: flex; gap: 12px; align-items: stretch; }
.url-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 14px;
  transition: border-color .25s, box-shadow .25s;
}
.url-field:focus-within { border-color: var(--ember2); box-shadow: 0 0 0 3px rgba(255, 149, 0, .12); }
.url-icon { width: 19px; height: 19px; color: var(--text-dim); flex-shrink: 0; }
.url-field input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-strong); font-size: 15.5px; padding: 14px 0;
  min-width: 0;
}
.url-field input::placeholder { color: var(--text-dim); font-size: 14px; }
.paste-btn {
  background: none; border: none; font-size: 17px; opacity: .55;
  transition: all .2s; padding: 4px;
}
.paste-btn:hover { opacity: 1; transform: scale(1.15); }
.quality-select {
  background: var(--bg-input); color: var(--text); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 12px; font-size: 14px; font-weight: 600;
  outline: none; cursor: pointer; transition: border-color .2s;
}
.quality-select:focus { border-color: var(--ember2); }
/* —— YouTube Cookie 上传 —— */
.cookie-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 12px; height: 100%; min-height: 42px;
  font-size: 15px; cursor: pointer; transition: all .2s; color: var(--text-dim);
}
.cookie-btn:hover { border-color: var(--ember2); color: var(--ember3); }
.cookie-btn .cookie-status { font-size: 15px; font-weight: 800; line-height: 1; }
.cookie-btn.is-ok { border-color: #34c759; background: rgba(52, 199, 89, .12); }
.cookie-btn.is-ok .cookie-status { color: #34c759; }
.cookie-btn.is-bad { border-color: #ff453a; background: rgba(255, 69, 58, .12); }
.cookie-btn.is-bad .cookie-status { color: #ff453a; }
.cookie-clear-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px; min-height: 40px; border-radius: 9px;
  border: 1.5px solid rgba(255, 69, 58, .45); background: rgba(255, 69, 58, .08);
  color: #ff6b61; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.cookie-clear-btn:hover { border-color: #ff453a; background: rgba(255, 69, 58, .18); color: #ff453a; transform: translateY(-1px); }
.cookie-clear-btn:active { transform: translateY(0) scale(.97); }
.cookie-clear-btn svg { flex-shrink: 0; }
.cookie-help-link {
  font-size: 12.5px; color: var(--text-dim); text-decoration: underline dotted;
  cursor: pointer; white-space: nowrap; transition: color .2s;
}
.cookie-help-link:hover { color: var(--ember3); }
/* —— 视频演示按钮 —— */
.demo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; min-height: 42px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg-input);
  color: var(--text-dim); cursor: pointer; transition: all .25s ease;
}
.demo-btn svg { width: 20px; height: 20px; }
.demo-btn:hover { border-color: var(--ember2); color: var(--ember3); background: rgba(255, 149, 0, .08); transform: translateY(-1px); }
.demo-btn:active { transform: translateY(0) scale(.95); }
/* —— 视频演示弹窗 —— */
.modal-demovideo { max-width: 720px; }
.demo-video-wrap video, .demo-video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; display: block; }
.demo-video-empty { text-align: center; color: var(--text-dim); font-size: 14px; padding: 40px 0; }
/* —— Cookie 说明弹窗 —— */
.modal-cookiehelp { max-width: 560px; }
.ckhelp-body { font-size: 14px; line-height: 1.75; color: var(--text-dim); }
.ckhelp-body h4 { color: var(--text-strong); margin: 18px 0 8px; font-size: 15px; }
.ckhelp-body h4:first-of-type { margin-top: 6px; }
.ckhelp-lead { color: var(--text); margin-bottom: 4px; }
.ckhelp-steps { padding-left: 20px; }
.ckhelp-steps li { margin: 6px 0; }
.ckhelp-steps ul { list-style: none; padding-left: 6px; margin-top: 4px; }
.ckhelp-steps ul li { margin: 3px 0; }
.ckhelp-req { list-style: none; padding-left: 2px; }
.ckhelp-req li { margin: 5px 0; }
.ckhelp-req code { background: rgba(255, 149, 0, .12); color: var(--ember3); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
.ckhelp-note { margin-top: 16px; padding: 10px 14px; background: rgba(255, 149, 0, .06); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.platform-strip {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.p-tag {
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid transparent;
  border-radius: 999px; padding: 4px 14px;
  transition: all .25s; cursor: default;
}
.p-tag:hover { color: var(--ember3); border-color: var(--border-strong); background: rgba(255, 149, 0, .07); }
.p-tag.hot { color: var(--ember2); border-color: rgba(255, 149, 0, .2); }

/* ---------- 解析结果 ---------- */
.result-section { max-width: 1080px; margin: -24px auto 0; padding: 0 24px 64px; position: relative; z-index: 2; }
.result-card {
  background: var(--bg-raised); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
  animation: result-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.result-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px; background: rgba(0, 0, 0, .2);
  border-bottom: 1px solid var(--border);
}
.result-head .ok-badge {
  background: rgba(40, 200, 64, .12); color: #4ade80;
  border: 1px solid rgba(40, 200, 64, .3);
  border-radius: 999px; padding: 3px 14px; font-size: 12.5px; font-weight: 700;
}
.result-head .fail-badge {
  background: rgba(255, 59, 48, .1); color: #f87171;
  border: 1px solid rgba(255, 59, 48, .3);
  border-radius: 999px; padding: 3px 14px; font-size: 12.5px; font-weight: 700;
}
.result-head .r-platform { font-size: 13px; color: var(--text-dim); margin-left: auto; }
.result-body { padding: 24px; }
.result-video { display: flex; gap: 22px; }
.result-cover {
  width: 520px; min-width: 520px; border-radius: 10px; overflow: hidden;
  background: var(--bg-input); position: relative; aspect-ratio: 16/9;
  cursor: pointer; flex-shrink: 0;
}
.result-cover .cover-dl {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.48); color: #fff; opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.result-cover:hover .cover-dl { opacity: 1; }
.result-cover .cover-dl svg { filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); transition: transform .22s; }
.result-cover:hover .cover-dl svg { transform: scale(1.15) translateY(2px); }
.result-cover img { width: 100%; height: 100%; object-fit: cover; }
.result-cover .duration-tag {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, .75); color: #fff;
  font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 2px 8px;
}
.result-info { flex: 1; min-width: 0; }
.result-title {
  font-size: 17px; font-weight: 700; color: var(--text-strong);
  line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; }
.result-meta .m-item { display: flex; align-items: center; gap: 5px; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-dl {
  background: var(--grad); color: #1a1005; border: none;
  border-radius: var(--radius-sm); padding: 11px 28px;
  font-weight: 800; font-size: 15px; font-family: var(--font-display); letter-spacing: 1px;
  transition: all .22s; box-shadow: 0 4px 16px rgba(255, 120, 0, .25);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 120, 0, .4); }
.btn-dl.secondary { background: var(--bg-input); color: var(--text); border: 1.5px solid var(--border-strong); box-shadow: none; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.btn-dl.secondary:hover { border-color: var(--ember2); color: var(--ember3); }
/* 图集 */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.image-grid .img-cell {
  border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 3/4;
  background: var(--bg-input); cursor: pointer; transition: transform .25s;
}
.image-grid .img-cell:hover { transform: scale(1.03); }
.image-grid img { width: 100%; height: 100%; object-fit: cover; }
.image-grid .img-idx {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0, 0, 0, .7); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 8px;
}
/* 多清晰度 */
.quality-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.quality-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 18px;
  transition: border-color .2s;
}
.quality-row:hover { border-color: var(--ember2); }
.quality-row .q-label { font-weight: 800; font-size: 14px; color: var(--ember3); min-width: 64px; }
.quality-row .q-size { font-size: 13px; color: var(--text-dim); flex: 1; }
/* 进度条 */
.dl-progress { margin-top: 14px; }
.dl-progress .bar-track { height: 7px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.dl-progress .bar-fill { height: 100%; background: var(--grad); border-radius: 4px; width: 0%; transition: width .15s; }
.dl-progress .bar-text { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; text-align: right; }
.dl-fallback {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600;
  color: var(--ember2); text-decoration: none; border-bottom: 1px dashed var(--ember2);
  transition: color .15s, border-color .15s;
}
.dl-fallback:hover { color: var(--ember3); border-color: var(--ember3); }
/* 错误结果 */
.result-error { text-align: center; padding: 20px 0; }
.result-error .err-icon { font-size: 42px; margin-bottom: 12px; }
.result-error p { color: var(--text-dim); font-size: 15px; }

/* ---------- 通用 Section ---------- */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px);
  color: var(--text-strong); text-align: center; letter-spacing: 2px; margin-bottom: 44px;
}
.section-title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub { text-align: center; color: var(--text-dim); font-size: 16px; margin: -30px 0 44px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 平台跑马灯 ---------- */
.marquee { overflow: hidden; position: relative; padding: 8px 0; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.plat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 28px;
  min-width: 210px; transition: all .3s; cursor: default;
}
.plat-card:hover { border-color: var(--ember2); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.plat-card .p-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; color: #1a1005; flex-shrink: 0;
  font-family: var(--font-display);
}
.plat-card .p-name { font-weight: 800; font-size: 15.5px; color: var(--text-strong); }
.plat-card .p-desc { font-size: 12.5px; color: var(--text-dim); }

/* ---------- 三步教程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  position: relative; transition: all .3s;
}
.step-card:hover { border-color: var(--ember2); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #1a1005;
  font-family: var(--font-display); font-size: 19px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 120, 0, .35);
}
.step-icon { font-size: 38px; margin-bottom: 16px; display: block; }
.step-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--text-strong); letter-spacing: 1px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- 应用下载 ---------- */
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto; }
.app-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px; text-align: center;
  transition: all .3s; display: block;
}
.app-card:hover { border-color: var(--ember2); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.app-card .app-icon { font-size: 44px; margin-bottom: 14px; display: block; }
.app-card h3 { font-size: 17px; font-weight: 800; color: var(--text-strong); margin-bottom: 6px; }
.app-card p { font-size: 13px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .3s;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; user-select: none;
  font-weight: 700; font-size: 15.5px; color: var(--text-strong);
  transition: color .2s;
}
.faq-q:hover { color: var(--ember3); }
.faq-q .arrow { transition: transform .3s; color: var(--ember2); font-size: 13px; flex-shrink: 0; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}
.faq-a-inner { padding: 0 24px 20px; font-size: 14.5px; color: var(--text-dim); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.footer { background: #121010; border-top: 1px solid var(--border); padding: 56px 24px 0; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
  padding-bottom: 44px;
}
.footer-logo { font-family: var(--font-display); font-size: 26px; color: var(--text-strong); letter-spacing: 2px; margin-bottom: 14px; }
.footer-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .25s;
}
.footer-social a:hover { border-color: var(--ember2); transform: translateY(-3px); background: rgba(255, 149, 0, .1); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.f-col h4 { font-size: 14px; font-weight: 800; color: var(--text-strong); margin-bottom: 16px; letter-spacing: 1px; }
.f-col a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); padding: 5px 0; transition: all .2s; }
.f-col a:hover { color: var(--ember3); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px 0; font-size: 13px; color: var(--text-dim);
}
.footer-links a { margin-left: 18px; transition: color .2s; }
.footer-links a:hover { color: var(--ember3); }

/* ---------- 弹窗 ---------- */
[hidden] { display: none !important; }
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: mask-in .25s both;
}
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-raised); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 36px 32px 28px;
  width: 100%; max-width: 420px; position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: modal-in .35s cubic-bezier(.22, 1, .36, 1) both;
  max-height: calc(100dvh - 48px); overflow-y: auto;
  overscroll-behavior: contain;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--text-dim); font-size: 17px;
  transition: all .2s; padding: 4px;
}
.modal-close:hover { color: var(--ember1); transform: rotate(90deg); }
.modal-brand {
  width: 64px; height: 64px; margin: 0 auto 14px;
  background: rgba(255, 149, 0, .08); border: 1.5px solid rgba(255, 149, 0, .25);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
}
.modal-title { font-family: var(--font-display); font-size: 24px; color: var(--text-strong); letter-spacing: 2px; margin-bottom: 4px; text-align: center; }
.modal-sub { text-align: center; font-size: 13.5px; color: var(--text-dim); margin-bottom: 24px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 15px;
  color: var(--text-strong); font-size: 16px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--text-faint); font-size: 14.5px; }
.field input:focus { border-color: var(--ember2); box-shadow: 0 0 0 3px rgba(255, 149, 0, .12); }
.field input.input-err { border-color: rgba(255, 59, 48, .6); }
/* 密码可见切换 */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 48px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 17px; padding: 8px;
  color: var(--text-dim); cursor: pointer; transition: color .2s;
  line-height: 1;
}
.pass-toggle:hover { color: var(--ember3); }
.caps-hint { display: block; margin-top: 6px; font-size: 12.5px; color: #fbbf24; font-weight: 600; }
/* 记住我 */
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); cursor: pointer; user-select: none; }
.remember input {
  appearance: none; width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--border-strong); background: var(--bg-input);
  cursor: pointer; transition: all .2s; position: relative; flex-shrink: 0;
}
.remember input:checked { background: var(--grad); border-color: transparent; }
.remember input:checked::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #1a1005;
}
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; letter-spacing: 4px; font-weight: 700; text-transform: uppercase; }
.captcha-img { height: 46px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; transition: opacity .2s; flex-shrink: 0; }
.captcha-img:active { opacity: .6; }
.captcha-refresh {
  background: var(--bg-input); border: 1.5px solid var(--border); color: var(--text-dim);
  border-radius: 8px; width: 46px; height: 46px; font-size: 19px;
  transition: all .2s; flex-shrink: 0;
}
.captcha-refresh:hover { border-color: var(--ember2); color: var(--ember3); transform: rotate(180deg); }
.form-err {
  background: rgba(255, 59, 48, .1); border: 1px solid rgba(255, 59, 48, .3);
  color: #f87171; border-radius: 8px; padding: 10px 15px;
  font-size: 13.5px; margin-bottom: 16px;
  animation: err-shake .4s both;
}
@keyframes err-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}
.modal-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.modal-switch a { color: var(--ember3); font-weight: 700; }
.modal-switch a:hover { text-decoration: underline; }
/* 按钮加载态 */
.btn .btn-text { position: relative; z-index: 1; }
.btn.loading .btn-text { opacity: .55; }
.btn.loading { pointer-events: none; }

/* ---------- 用户弹层 ---------- */
.user-pop {
  position: fixed; top: calc(var(--nav-h) + 8px); right: 24px; z-index: 150;
  background: var(--bg-raised); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 22px;
  width: 280px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  animation: modal-in .3s cubic-bezier(.22, 1, .36, 1) both;
}
.user-pop-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #1a1005;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 19px; flex-shrink: 0;
}
.member-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.user-pop-head b { color: var(--text-strong); font-size: 15.5px; }
.user-pop-head small { color: var(--ember3); font-size: 12.5px; font-weight: 600; }
.user-quota { margin-bottom: 16px; }
.quota-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); padding: 5px 0; }
.quota-row b { color: var(--text-strong); }
.quota-bar { height: 6px; background: var(--bg-input); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.quota-bar-fill { height: 100%; background: var(--grad); border-radius: 3px; transition: width .5s; }

/* ============ 会员等级徽章 ============ */
.role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent; line-height: 1.4;
}
.role-badge svg { flex-shrink: 0; }
.rb-gold {
  color: #ffd98a; background: linear-gradient(135deg, rgba(255, 183, 77, .22), rgba(255, 149, 0, .12));
  border-color: rgba(255, 183, 77, .45);
  box-shadow: 0 0 12px rgba(255, 167, 38, .18);
}
.rb-ember {
  color: var(--ember2); background: rgba(255, 149, 0, .1);
  border-color: rgba(255, 149, 0, .3);
}
.rb-plain {
  color: var(--text-dim); background: rgba(255, 255, 255, .05);
  border-color: var(--border-strong);
}

/* ============ 会员中心弹窗 ============ */
.modal-member {
  max-width: min(1200px, calc(100vw - 48px));
  height: calc(100dvh - 48px);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.member-head {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px 18px;
  background: linear-gradient(135deg, rgba(255, 149, 0, .1), rgba(255, 94, 58, .05));
  border-bottom: 1px solid var(--border-strong);
}
.member-avatar {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 122, 41, .35);
}
.member-head-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.member-head-info b { font-size: 18px; color: var(--text-strong); letter-spacing: .3px; }
.member-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mc-balance-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 204, 0, .08); border: 1.5px solid rgba(255, 204, 0, .28);
}
.mc-balance-pill svg { color: #ffcc00; flex-shrink: 0; }
.mc-balance-num { font-size: 16px; font-weight: 800; color: #ffd84d; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.mc-balance-pill i { font-style: normal; font-size: 11.5px; color: var(--text-dim); }
.mc-checkin-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; border: none;
  background: var(--grad); color: #1a1005;
  font-size: 13px; font-weight: 700; transition: all .2s;
  box-shadow: 0 4px 14px rgba(255, 122, 41, .3);
}
.mc-checkin-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 122, 41, .45); }
.mc-checkin-btn:active { transform: scale(.97); }
.mc-checkin-btn.is-done {
  background: rgba(255, 255, 255, .06); color: var(--text-dim);
  box-shadow: none; border: 1.5px solid var(--border-strong); cursor: default;
}
.mc-checkin-btn.is-done:hover { transform: none; }
.member-body { display: flex; flex: 1; min-height: 0; }
.member-tabs {
  width: 190px; flex-shrink: 0; padding: 18px 12px;
  border-right: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, .015);
}
.member-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: none; border-radius: 10px;
  background: transparent; color: var(--text-dim);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s; text-align: left;
}
.member-tab svg { flex-shrink: 0; opacity: .8; }
.member-tab:hover { color: var(--text-strong); background: rgba(255, 149, 0, .07); }
.member-tab.is-active {
  color: var(--ember2); background: rgba(255, 149, 0, .12);
  box-shadow: inset 3px 0 0 var(--ember2);
}
.member-tab.is-active svg { opacity: 1; }
.member-content { flex: 1; min-width: 0; padding: 26px 32px 32px; overflow-y: auto; max-height: none; }
.member-pane[hidden] { display: none; }

/* 统计卡片 */
.mc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.mc-stat {
  background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s;
}
.mc-stat:hover { border-color: rgba(255, 149, 0, .35); transform: translateY(-2px); }
.mc-stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ember2); line-height: 1; }
.mc-stat-label { font-size: 12.5px; color: var(--text-dim); }
.mc-quota { margin-bottom: 22px; }

/* 下载记录 */
.mc-history-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.mc-history-head b { font-size: 15px; color: var(--text-strong); }
.mc-history-head span { font-size: 12.5px; color: var(--text-dim); }
.mc-history { display: flex; flex-direction: column; gap: 8px; }
.mc-hist-row {
  background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 16px;
  transition: border-color .18s;
}
.mc-hist-row:hover { border-color: rgba(255, 149, 0, .35); }
.mc-hist-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-plat {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--ember2);
  background: rgba(255, 149, 0, .12); border-radius: 6px; padding: 2px 8px;
}
.mc-hist-title {
  font-size: 13.5px; color: var(--text-strong); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mc-hist-sub { display: flex; gap: 14px; margin-top: 5px; font-size: 12px; color: var(--text-dim); }

/* 分页器 */
.mc-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.mc-page-btn {
  border: 1px solid var(--border-strong); background: var(--bg-input);
  color: var(--text-strong); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 9px; cursor: pointer; transition: all .18s;
}
.mc-page-btn:hover:not(:disabled) { border-color: var(--ember2); color: var(--ember2); }
.mc-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.mc-page-info { font-size: 13px; color: var(--text-dim); }

/* 订单 / 邀请 */
.mc-order-row, .mc-invite-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 8px;
}
.mc-order-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-order-main b { font-size: 14px; color: var(--text-strong); }
.mc-order-no { font-size: 11.5px; color: var(--text-dim); font-family: ui-monospace, monospace; }
.mc-order-side { display: flex; align-items: center; gap: 12px; }
.mc-price { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.mc-order-sub { width: 100%; font-size: 12px; color: var(--text-dim); }
.mc-status { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.st-paid { color: #7ee2a8; background: rgba(62, 207, 142, .14); }
.st-pending { color: #ffd98a; background: rgba(255, 183, 77, .14); }
.st-expired, .st-canceled { color: var(--text-dim); background: rgba(255, 255, 255, .06); }
.mc-invite-sum { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.mc-invite-code {
  font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700;
  color: var(--ember2); background: rgba(255, 149, 0, .1);
  padding: 4px 12px; border-radius: 8px; letter-spacing: 1px;
}
.mc-invite-by { font-size: 12.5px; color: var(--text-dim); }

/* 基本信息 */
.mc-info-list { display: flex; flex-direction: column; gap: 2px; }
.mc-info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 4px; border-bottom: 1px dashed var(--border-strong);
}
.mc-info-row:last-child { border-bottom: none; }
.mc-info-row span { font-size: 13.5px; color: var(--text-dim); flex-shrink: 0; }
.mc-info-row b { font-size: 14px; color: var(--text-strong); font-weight: 600; text-align: right; word-break: break-all; }

/* 加载 / 空态 */
.mc-loading, .mc-empty { text-align: center; padding: 34px 0; font-size: 13.5px; color: var(--text-dim); }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 13px 26px;
  font-size: 14.5px; font-weight: 600; color: var(--text-strong);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  animation: toast-in .35s cubic-bezier(.22, 1, .36, 1) both;
  display: flex; align-items: center; gap: 10px;
  max-width: 90vw;
}
.toast.success { border-color: rgba(40, 200, 64, .4); }
.toast.error { border-color: rgba(255, 59, 48, .4); }
.toast.out { animation: toast-out .3s both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ---------- 无障碍 & 微交互 ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--grad); color: #1a1005; font-weight: 800;
  padding: 10px 22px; border-radius: 0 0 10px 10px;
  transition: top .25s; font-size: 14px;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--ember2); outline-offset: 2px; }
.faq-q:focus-visible { outline-offset: -3px; border-radius: var(--radius); }

/* 回顶按钮 */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border-strong);
  color: var(--ember3); font-size: 19px; font-weight: 900;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  animation: fade-up .4s both;
}
.back-top:hover { border-color: var(--ember2); transform: translateY(-4px); background: rgba(255, 149, 0, .12); }

/* 解析按钮流光 */
.btn-parse::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .5s;
}
.btn-parse:hover::after { left: 130%; }

/* 控制台呼吸光晕 */
.console { animation: console-breathe 5s ease-in-out infinite; }
@keyframes console-breathe {
  0%, 100% { box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 30px rgba(255,149,0,.08); }
  50% { box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 55px rgba(255,149,0,.18); }
}

/* 结果卡片微光扫过 */
.result-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,149,0,.06), transparent);
  animation: shimmer 2.5s .3s both;
}
@keyframes shimmer { to { left: 160%; } }

/* 平台标签交错入场 */
.p-tag { animation: fade-up .5s both; }
.p-tag:nth-child(2) { animation-delay: .05s; } .p-tag:nth-child(3) { animation-delay: .1s; }
.p-tag:nth-child(4) { animation-delay: .15s; } .p-tag:nth-child(5) { animation-delay: .2s; }
.p-tag:nth-child(6) { animation-delay: .25s; } .p-tag:nth-child(7) { animation-delay: .3s; }
.p-tag:nth-child(8) { animation-delay: .35s; } .p-tag:nth-child(9) { animation-delay: .4s; }
.p-tag:nth-child(10) { animation-delay: .45s; } .p-tag:nth-child(n+11) { animation-delay: .5s; }

/* 汉堡菜单变形 */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 动效降级：尊重用户系统偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}

/* ============ 头像上传区 ============ */
.avatar-section {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0 16px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-strong);
}
.avatar-preview {
  width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--border-strong); background: var(--bg-input);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-actions { display: flex; flex-direction: column; gap: 8px; }
.avatar-upload-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px !important; padding: 7px 16px !important;
}
.avatar-reset-btn { font-size: 13px !important; padding: 7px 16px !important; color: var(--text-dim) !important; }
.avatar-reset-btn:hover { color: #ff6b61 !important; border-color: rgba(255, 69, 58, .4) !important; }

/* ============ 会员中心侧栏退出 ============ */
.member-logout {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 10px 16px; width: 100%;
  border: 1.5px solid rgba(255, 69, 58, .25); border-radius: 10px;
  background: rgba(255, 69, 58, .05); color: #ff6b61;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s;
  flex-shrink: 0;
}
.member-logout:hover { border-color: #ff453a; background: rgba(255, 69, 58, .14); color: #ff453a; }
.member-logout:active { transform: scale(.98); }
.member-logout svg { flex-shrink: 0; }
.member-admin-entry {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding: 10px 14px; border-radius: 10px; flex-shrink: 0;
  color: #b49aff; font-size: 13.5px; font-weight: 600; text-decoration: none;
  border: 1.5px dashed rgba(168, 130, 255, .3); background: rgba(168, 130, 255, .05);
  transition: all .2s;
}
.member-admin-entry[hidden] { display: none; }
.member-admin-entry:hover { border-color: #a882ff; background: rgba(168, 130, 255, .13); color: #c9b3ff; }
.member-admin-entry svg { flex-shrink: 0; }
.member-admin-entry:not([hidden]) + .member-logout { margin-top: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-chips { justify-content: center; }
  .hero-art { order: -1; }
  .hero-rabbit { width: min(260px, 60vw); }
  .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .result-video { flex-direction: column; }
  .result-cover { width: 100%; min-width: 0; }
}
@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .nav-inner { padding: 0 16px; }
  .nav-brand .brand-text { font-size: 19px; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(22, 19, 17, .97); backdrop-filter: blur(16px);
    flex-direction: column; padding: 16px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    animation: menu-drop .25s cubic-bezier(.22, 1, .36, 1) both;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 16px; border-radius: 10px; }
  .nav-links a:active { background: rgba(255, 149, 0, .12); }
  @keyframes menu-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .nav-burger { display: flex; }
  .nav-actions { gap: 8px; }
  .user-chip span:last-child { display: none; } /* 移动端只显示头像 */
  .nav-logout-btn { width: 30px; height: 30px; }
  .avatar-section { flex-direction: column; align-items: flex-start; gap: 12px; }
  .user-chip { padding: 5px; }
  /* hero 移动端 */
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero-title { font-size: clamp(30px, 8.5vw, 42px); }
  .hero-eyebrow, .eyebrow { font-size: 12.5px; }
  .hero-desc { font-size: 15px; }
  .chip { font-size: 12.5px; padding: 6px 13px; }
  /* 解析控制台移动端 */
  .console-wrap { margin-top: 28px; padding: 0 12px; }
  .console-body { padding: 16px 14px 18px; }
  .input-row { flex-direction: column; gap: 10px; }
  .url-field { min-height: 50px; }
  #urlInput { font-size: 16px; } /* 16px 防止 iOS 聚焦缩放 */
  .btn-parse { width: 100%; min-height: 50px; font-size: 16px; }
  .quality-select { width: 100%; padding: 13px; font-size: 16px; }
  .cookie-btn { min-height: 46px; padding: 0 16px; }
  .cookie-clear-btn { min-height: 46px; padding: 0 14px; }
  .demo-btn { min-height: 46px; width: 46px; }
  .cookie-clear-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px; min-height: 40px; border-radius: 9px;
  border: 1.5px solid rgba(255, 69, 58, .45); background: rgba(255, 69, 58, .08);
  color: #ff6b61; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.cookie-clear-btn:hover { border-color: #ff453a; background: rgba(255, 69, 58, .18); color: #ff453a; transform: translateY(-1px); }
.cookie-clear-btn:active { transform: translateY(0) scale(.97); }
.cookie-clear-btn svg { flex-shrink: 0; }
.cookie-help-link { font-size: 13px; align-self: center; }
  .platform-strip { gap: 8px; }
  .p-tag { font-size: 12px; padding: 5px 11px; }
  /* 结果卡片移动端 */
  .result-section { padding: 0 12px; }
  .result-card { padding: 18px 16px; }
  .result-title { font-size: 16px; }
  .result-meta { font-size: 12.5px; }
  .dl-btns { flex-direction: column; }
  .dl-btns .btn { width: 100%; justify-content: center; }
  /* 区块移动端 */
  .section { padding: 56px 16px; }
  .section-title { font-size: clamp(22px, 6vw, 28px); }
  .app-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  /* 弹窗移动端：底部抽屉式 */
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%; border-radius: 22px 22px 0 0;
    padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
    max-height: 92dvh;
    animation: sheet-up .35s cubic-bezier(.22, 1, .36, 1) both;
  }
  @keyframes sheet-up { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
  .modal::before {
    content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong);
  }
  .modal-close { top: 14px; right: 14px; }
  .captcha-row input { letter-spacing: 3px; }
  /* 会员中心移动端：全屏抽屉 + tab 横向滚动 */
  .modal-member { max-width: 100%; border-radius: 22px 22px 0 0; height: 94dvh; max-height: 94dvh; }
  .member-head { padding: 20px 18px 14px; flex-wrap: wrap; }
  .member-head-right { margin-left: 0; width: 100%; }
  .member-body { flex-direction: column; }
  .member-tabs {
    width: 100%; flex-direction: row; overflow-x: auto; gap: 6px;
    padding: 12px 14px; border-right: none; border-bottom: 1px solid var(--border-strong);
    -webkit-overflow-scrolling: touch;
  }
  .member-tab { flex-shrink: 0; padding: 9px 13px; font-size: 13px; }
  .member-tab.is-active { box-shadow: inset 0 -2px 0 var(--ember2); }
  .member-logout { margin-top: 0; margin-left: auto; width: auto; }
  .member-content { padding: 16px 16px 22px; max-height: none; }
  .mc-stat-grid { gap: 10px; }
  .mc-stat { padding: 14px 16px; }
  .mc-stat-num { font-size: 26px; }
  .mc-order-row, .mc-invite-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mc-order-side { align-self: flex-end; }
  /* toast 移动端 */
  .toast-stack { bottom: calc(20px + env(safe-area-inset-bottom)); width: calc(100% - 32px); }
  .toast { max-width: 100%; font-size: 13.5px; }
  /* 回顶按钮移动端 */
  .back-top { bottom: calc(20px + env(safe-area-inset-bottom)); right: 16px; width: 42px; height: 42px; }
  /* 页脚移动端 */
  .footer-inner { padding: 48px 16px 32px; gap: 32px; }
  .footer-cols { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding: 18px 16px; text-align: center; }
}
/* ---------- 公告栏 ---------- */
.announce-bar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 48px 9px 18px;
  background: linear-gradient(90deg, rgba(255,149,0,.14), rgba(255,59,48,.10));
  border-bottom: 1px solid rgba(255,149,0,.18);
  font-size: 13.5px; color: var(--ember3);
  animation: announce-in .4s ease both;
}
@keyframes announce-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
.announce-icon { flex-shrink: 0; font-size: 15px; }
.announce-text { text-align: center; line-height: 1.5; }
.announce-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); font-size: 15px;
  cursor: pointer; padding: 4px 6px; border-radius: 4px; line-height: 1;
}
.announce-close:hover { color: var(--text-strong); background: rgba(255,255,255,.08); }

/* ---------- 忘记密码链接 ---------- */
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.forgot-link { font-size: 13px; color: var(--ember3); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }
.form-ok {
  background: rgba(52,199,89,.12); border: 1px solid rgba(52,199,89,.3);
  color: #6ee7a0; border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13.5px; margin-bottom: 14px; line-height: 1.5;
}

/* ---------- 会员套餐 ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; margin-top: 36px;
}
.plan-card {
  position: relative;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.plan-card:hover { border-color: rgba(255,149,0,.4); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.plan-card.is-recommended {
  border-color: var(--ember2);
  box-shadow: 0 0 30px rgba(255,149,0,.15);
}
.plan-card.is-recommended::before {
  content: '🔥 推荐';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #1a1005;
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 16px; border-radius: 20px; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 20px; color: var(--text-strong); letter-spacing: 1px; }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; }
.plan-price { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--ember2); line-height: 1; }
.plan-price .currency { font-size: 18px; font-weight: 700; }
.plan-original { font-size: 15px; color: var(--text-dim); text-decoration: line-through; }
.plan-free { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: #6ee7a0; }
.plan-benefits { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-benefits li { font-size: 14px; color: var(--text); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.plan-benefits li::before { content: '✓'; color: var(--ember2); font-weight: 800; flex-shrink: 0; }
.plan-btn {
  width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: all .2s ease;
}
.plan-btn-primary { background: var(--grad); color: #1a1005; box-shadow: 0 4px 16px rgba(255,120,0,.25); }
.plan-btn-primary:hover { background: var(--grad-h); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,120,0,.4); }
.plan-btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.plan-btn-ghost:hover { border-color: var(--ember2); color: var(--ember3); }

/* ---------- 结账弹窗 ---------- */
.modal-checkout { max-width: 440px; }
.checkout-plan {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.checkout-plan-name { font-weight: 700; font-size: 16px; color: var(--text-strong); }
.checkout-plan-price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ember2); }
.checkout-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  cursor: pointer; transition: all .2s ease;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.pay-method-btn:hover { border-color: var(--ember2); background: rgba(255,149,0,.06); }
.pay-method-btn .pm-icon { font-size: 22px; flex-shrink: 0; }
.pay-method-btn .pm-arrow { margin-left: auto; color: var(--text-dim); font-size: 13px; }

/* 支付等待 */
.pay-waiting { text-align: center; padding: 20px 0; }
.pay-qr-wrap { display: inline-block; padding: 14px; background: #fff; border-radius: 12px; margin-bottom: 16px; }
.pay-qr-wrap canvas, .pay-qr-wrap img { display: block; }
.pay-usdt-addr {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-family: monospace; font-size: 13px; color: var(--ember3);
  word-break: break-all; margin-bottom: 12px; cursor: pointer;
  transition: border-color .2s;
}
.pay-usdt-addr:hover { border-color: var(--ember2); }
.pay-amount { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.pay-amount b { color: var(--ember2); font-size: 18px; }
.pay-status-text { font-size: 14px; color: var(--text-dim); margin-top: 14px; }
.pay-status-text .dot-pulse { display: inline-block; animation: dotPulse 1.2s infinite; }
@keyframes dotPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.pay-cancel-btn {
  margin-top: 16px; background: none; border: 1px solid var(--border);
  color: var(--text-dim); border-radius: var(--radius-sm); padding: 8px 20px;
  font-size: 13px; cursor: pointer; transition: all .2s;
}
.pay-cancel-btn:hover { border-color: rgba(255,59,48,.5); color: var(--ember1); }

/* 支付成功 */
.pay-success { text-align: center; padding: 30px 0 10px; }
.pay-success-icon { font-size: 52px; display: block; margin-bottom: 14px; }
.pay-success h4 { font-family: var(--font-display); font-size: 22px; color: var(--text-strong); margin-bottom: 8px; }
.pay-success p { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* ---------- 配额超限升级引导 ---------- */
.quota-upgrade {
  margin-top: 14px; padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,149,0,.10), rgba(255,59,48,.08));
  border: 1px solid rgba(255,149,0,.25); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.quota-upgrade-text { font-size: 14px; color: var(--text); flex: 1; min-width: 180px; }
.quota-upgrade-btn {
  background: var(--grad); color: #1a1005; border: none;
  border-radius: var(--radius-sm); padding: 9px 22px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.quota-upgrade-btn:hover { background: var(--grad-h); transform: translateY(-1px); }

/* ---------- 定价区移动端 ---------- */
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .announce-bar { font-size: 12.5px; padding: 8px 40px 8px 14px; }
  .modal-checkout { max-width: 100%; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
  .console-body { padding: 14px 10px 16px; }
  .nav-brand .brand-text { font-size: 17px; }
  .brand-rabbit { width: 28px; height: 23px; }
}
/* 横屏手机 */
@media (max-height: 500px) and (orientation: landscape) {
  .modal { max-height: 96dvh; border-radius: 16px; }
  .modal-mask { align-items: center; padding: 12px; }
}
/* 触屏设备：去掉 hover 依赖，加大点击区域 */
@media (hover: none) {
  .nav-links a, .btn, .faq-q, .app-card, .p-tag { min-height: 44px; }
  .faq-q { display: flex; align-items: center; }
  .dl-link { padding: 12px 18px; }
}

/* ===== YouTube Quality Selector ===== */
.yt-quality-row { display:flex; align-items:center; gap:10px; margin:12px 0 8px; flex-wrap:wrap; }
.yt-quality-label {
  font-weight:800; font-size:1rem; white-space:nowrap; letter-spacing:.5px;
  color:var(--ember3); text-shadow:0 0 14px rgba(255,204,0,.4);
}
.yt-quality-select {
  flex:1; min-width:220px; padding:9px 14px; border:1.5px solid var(--line);
  border-radius:8px; background:var(--card); color:var(--ember3); font-size:0.95rem; font-weight:700;
  cursor:pointer; transition:border-color .2s, box-shadow .2s;
}
.yt-quality-select:focus { border-color:var(--ember2); outline:none; box-shadow:0 0 0 3px rgba(255,149,0,.18); }
.yt-quality-select option { color:var(--ember3); background:var(--card); font-weight:700; }

/* ===== YouTube Subtitle Panel ===== */
.yt-subtitle-panel {
  margin-top:14px; padding:14px; background:var(--bg); border-radius:10px;
  border:1px solid var(--line);
}
.yt-sub-title { font-weight:600; font-size:0.9rem; margin-bottom:10px; color:var(--ink); }
.yt-sub-actions { display:flex; gap:8px; flex-wrap:wrap; }
.btn-sub {
  padding:7px 14px; border:1.5px solid var(--line); border-radius:8px;
  background:var(--card); color:var(--ink); font-size:0.85rem; cursor:pointer;
  transition:all .2s; white-space:nowrap;
}
.btn-sub:hover { border-color:var(--ember); background:var(--ember-bg); }
.btn-sub:disabled { opacity:.5; cursor:not-allowed; }
.btn-sub.small { padding:5px 10px; font-size:0.8rem; }
.sub-hint { font-size:0.82rem; color:var(--ink3); font-style:italic; }
.yt-sub-result { margin-top:12px; }
.sub-status { font-size:0.88rem; color:var(--ok); margin-bottom:8px; }
.sub-actions { display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width:600px) {
  .yt-quality-row { flex-direction:column; align-items:stretch; }
  .yt-sub-actions { flex-direction:column; }
  .btn-sub { text-align:center; }
}

/* ══════════ YouTube Cookie 步骤指引条 ══════════ */
.yt-guide {
  display: flex; align-items: center; gap: 7px;
  margin-left: 14px;
  animation: guideIn .35s ease both;
}
@keyframes guideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.g-step {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255, 255, 255, .03);
  transition: color .3s, border-color .3s, background .3s, box-shadow .3s, transform .2s;
  white-space: nowrap; position: relative; line-height: 1.4;
}
.g-step svg { width: 13px; height: 13px; flex-shrink: 0; }
.g-arrow { display: inline-flex; color: var(--text-dim); opacity: .35; }
.g-arrow svg { width: 12px; height: 12px; }
.g-step.g-active {
  color: var(--ember3);
  border-color: rgba(255, 204, 0, .45);
  background: rgba(255, 204, 0, .08);
}
button.g-step.g-active { animation: gPulse 2s ease-in-out infinite; }
.g-step.g-done {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, .4);
  background: rgba(46, 204, 113, .08);
  animation: none;
}
button.g-step { cursor: pointer; font-family: inherit; }
button.g-step:hover {
  border-color: var(--ember2); color: var(--ember2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, .18);
}
button.g-step.g-done:hover { border-color: rgba(46, 204, 113, .6); color: #2ecc71; }
.g-help {
  position: absolute; top: -7px; right: -7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ember2); color: #1a1205;
  font-size: 10px; font-weight: 800; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(255, 149, 0, .45);
}
.g-help:hover { transform: scale(1.3); box-shadow: 0 3px 12px rgba(255, 149, 0, .6); }
@keyframes gPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, .3); }
  50% { box-shadow: 0 0 0 6px rgba(255, 204, 0, 0); }
}
@media (max-width: 920px) {
  .console-bar { flex-wrap: wrap; }
  .yt-guide { flex-basis: 100%; margin-left: 0; order: 10; padding-top: 6px; }
}

/* 翻译语言选择下拉框 */
.lang-select {
  background: #1e293b; color: #e2e8f0; border: 1px solid #475569;
  border-radius: 6px; padding: 4px 8px; font-size: 12px;
  cursor: pointer; outline: none; vertical-align: middle;
  margin-right: 4px; max-width: 110px;
}
.lang-select:focus { border-color: #f97316; }

/* 翻译进度条 */
.translate-progress{margin-top:10px}
.tp-bar{height:6px;background:rgba(255,255,255,.12);border-radius:3px;overflow:hidden}
.tp-fill{height:100%;width:0;background:linear-gradient(90deg,#6366f1,#8b5cf6);border-radius:3px;transition:width .4s ease}
.tp-text{font-size:12px;color:#94a3b8;margin-top:4px;text-align:center}

/* ============ 推广中心 ============ */
/* ============ 推广中心 · 深色暖调 ============ */
.ref-overview { display:grid; grid-template-columns:repeat(auto-fit,minmax(128px,1fr)); gap:12px; margin-bottom:18px; }
.ref-stat {
  position:relative; overflow:hidden; text-align:center;
  background:linear-gradient(160deg, rgba(255,149,0,.07), rgba(255,94,58,.03)), var(--bg-card);
  border:1px solid var(--border); border-radius:12px; padding:16px 10px 13px;
  transition:transform .2s, border-color .2s, box-shadow .2s;
}
.ref-stat::before { content:''; position:absolute; top:0; left:20%; right:20%; height:2px; background:var(--grad); opacity:0; transition:opacity .25s; border-radius:2px; }
.ref-stat:hover { transform:translateY(-2px); border-color:var(--border-strong); box-shadow:0 8px 24px rgba(0,0,0,.35); }
.ref-stat:hover::before { opacity:1; }
.ref-stat-num { display:block; font-family:var(--font-display); font-size:26px; font-weight:800; color:var(--ember3); line-height:1.1; font-variant-numeric:tabular-nums; }
.ref-stat-label { display:block; font-size:12px; color:var(--text-dim); margin-top:5px; letter-spacing:.3px; }
.ref-stat-sub { display:block; font-size:11.5px; color:var(--ember2); margin-top:3px; font-weight:600; }
.ref-rules {
  background:linear-gradient(135deg, rgba(255,149,0,.08), rgba(255,94,58,.03));
  border:1px solid var(--border-strong); border-left:3px solid var(--ember2);
  border-radius:10px; padding:14px 18px; margin-bottom:20px; font-size:13.5px; color:var(--text);
}
.ref-rules strong { color:var(--ember3); font-size:14px; letter-spacing:.5px; }
.ref-rules ul { margin:9px 0 0; padding-left:20px; }
.ref-rules li { margin-bottom:5px; color:var(--text); line-height:1.55; }
.ref-rules li b { color:var(--ember3); }
.ref-section { margin-bottom:24px; }
.ref-section h4 {
  margin:0 0 12px; font-size:15px; color:var(--text-strong); letter-spacing:.5px;
  display:flex; align-items:center; gap:8px;
}
.ref-section h4::before { content:''; width:3px; height:15px; background:var(--grad); border-radius:2px; }
.ref-buy-btn {
  background:var(--grad); color:#1a1005; font-weight:800; border:none; border-radius:8px;
  padding:9px 22px; cursor:pointer; font-size:13.5px; letter-spacing:.3px;
  box-shadow:0 4px 16px rgba(255,122,41,.35); transition:transform .15s, box-shadow .15s;
}
.ref-buy-btn:hover { transform:translateY(-1px); box-shadow:0 6px 22px rgba(255,122,41,.5); }
.ref-buy-btn:active { transform:scale(.97); }
.ref-buy-btn:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
.ref-codes { margin-top:12px; }
.ref-code-row {
  display:flex; align-items:center; gap:12px; padding:9px 12px; margin-bottom:6px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:8px;
  transition:border-color .2s;
}
.ref-code-row:hover { border-color:var(--border-strong); }
.ref-code-row code {
  font-size:15px; font-weight:700; letter-spacing:2px; color:var(--ember3);
  font-family:ui-monospace,'SF Mono',Consolas,monospace;
}
.ref-copy-btn {
  background:rgba(255,149,0,.08); border:1px solid var(--border-strong); color:var(--ember2);
  border-radius:5px; padding:3px 12px; cursor:pointer; font-size:12px; font-weight:600;
  transition:all .15s;
}
.ref-copy-btn:hover { background:var(--ember2); color:#1a1005; border-color:var(--ember2); }
.ref-code-by { font-size:12.5px; color:var(--text-dim); }
.ref-dl-tabs { display:flex; gap:8px; margin-bottom:12px; }
.ref-dl-tab {
  background:transparent; border:1px solid var(--border-strong); color:var(--text-dim);
  border-radius:7px; padding:5px 16px; cursor:pointer; font-size:13px; font-weight:600; transition:all .15s;
}
.ref-dl-tab:hover { color:var(--ember3); border-color:var(--ember2); }
.ref-dl-tab.is-active { background:var(--grad); color:#1a1005; border-color:transparent; font-weight:800; }
.ref-dl-row {
  display:flex; align-items:center; gap:18px; padding:9px 12px; margin-bottom:5px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:8px;
  font-size:13.5px; color:var(--text); transition:border-color .2s;
}
.ref-dl-row:hover { border-color:var(--border-strong); }
.ref-dl-name { font-weight:700; color:var(--text-strong); }
.ref-dl-role { color:var(--ember2); font-size:12.5px; font-weight:600; }
.ref-dl-orders { color:var(--text-dim); font-size:12.5px; }
.ref-dl-date { color:var(--text-dim); font-size:12px; margin-left:auto; }
.ref-rw-row {
  display:flex; align-items:center; gap:16px; padding:9px 12px; margin-bottom:5px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:8px;
  font-size:13px; color:var(--text); transition:border-color .2s;
}
.ref-rw-row:hover { border-color:var(--border-strong); }
.ref-rw-row > span:first-child {
  font-size:11px; font-weight:800; color:var(--ember2); background:rgba(255,149,0,.12);
  border:1px solid rgba(255,149,0,.3); border-radius:5px; padding:2px 7px; flex-shrink:0;
}
.ref-rw-coins { color:#5ee38a; font-weight:800; font-variant-numeric:tabular-nums; }
.ref-rw-date { color:var(--text-dim); font-size:12px; margin-left:auto; }
.ref-wd-form { display:flex; flex-direction:column; gap:12px; max-width:440px; }
.ref-wd-row { display:flex; align-items:center; gap:12px; }
.ref-wd-row label { min-width:96px; font-size:13.5px; color:var(--text-dim); font-weight:600; }
.ref-wd-row input, .ref-wd-row select {
  flex:1; padding:8px 12px; background:var(--bg-input); color:var(--text-strong);
  border:1px solid var(--border-strong); border-radius:7px; font-size:13.5px;
  transition:border-color .2s, box-shadow .2s;
}
.ref-wd-row input::placeholder { color:var(--text-dim); opacity:.7; }
.ref-wd-row input:focus, .ref-wd-row select:focus {
  outline:none; border-color:var(--ember2); box-shadow:0 0 0 3px rgba(255,149,0,.15);
}
.ref-wd-item {
  background:var(--bg-card); border:1px solid var(--border); border-radius:10px;
  padding:12px 16px; margin-bottom:8px; transition:border-color .2s;
}
.ref-wd-item:hover { border-color:var(--border-strong); }
.ref-wd-head { display:flex; justify-content:space-between; align-items:center; }
.ref-wd-head > span:first-child { font-weight:700; color:var(--text-strong); font-size:14px; }
.ref-wd-meta { font-size:12.5px; color:var(--text-dim); margin-top:5px; }
.ref-wd-note { font-size:13px; color:#ff6b61; margin-top:7px; font-weight:600; }
.ref-wd-paid { font-size:13px; color:#5ee38a; margin-top:7px; font-weight:600; }
.ref-appeal-btn {
  background:rgba(255,69,58,.1); border:1px solid rgba(255,69,58,.4); color:#ff6b61;
  border-radius:6px; padding:4px 14px; cursor:pointer; font-size:12.5px; font-weight:700;
  margin-top:8px; transition:all .15s;
}
.ref-appeal-btn:hover { background:rgba(255,69,58,.22); border-color:#ff453a; }
.ref-appeal-text { width:100%; min-height:64px; margin-top:8px; padding:9px 12px; background:var(--bg-input); color:var(--text-strong); border:1px solid var(--border-strong); border-radius:7px; font-size:13px; resize:vertical; }
.ref-appeal-text:focus { outline:none; border-color:var(--ember2); box-shadow:0 0 0 3px rgba(255,149,0,.15); }
.ref-appeal-text::placeholder { color:var(--text-dim); opacity:.7; }
