:root {
  --bg: #070a12;
  --bg2: #0b1120;
  --glass: rgba(18, 26, 44, 0.6);
  --glass-brd: rgba(120, 160, 255, 0.14);
  --cyan: #38e8ff;
  --violet: #8b7bff;
  --pink: #ff5fa2;
  --txt: #e7eefc;
  --txt-dim: #8a97b4;
  --ok: #43e6a0;
  --warn: #ffb454;
  --err: #ff6b6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景科技感 */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,160,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% 0%, rgba(56,232,255,0.12), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(139,123,255,0.14), transparent 60%);
}

.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 22px rgba(56,232,255,0.45);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: var(--txt-dim); margin-top: 2px; }
.badge-personal {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 600;
  background: rgba(67,230,160,0.15); color: var(--ok); border: 1px solid rgba(67,230,160,0.3);
  vertical-align: middle; margin-left: 4px;
}

.tabs { display: flex; gap: 8px; position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 14px 20px 0; }
.tab {
  background: transparent; border: 1px solid transparent; color: var(--txt-dim);
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; transition: .2s;
}
.tab:hover { color: var(--txt); }
.tab.active { color: var(--txt); background: var(--glass); border-color: var(--glass-brd); }
.count {
  font-size: 11px; background: rgba(56,232,255,0.16); color: var(--cyan);
  border-radius: 10px; padding: 1px 7px; margin-left: 4px;
}

main { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
.panel { display: none; animation: fade .3s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }

/* 输入区 */
.glass {
  background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: 16px; padding: 18px; backdrop-filter: blur(12px);
}
.input-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--txt-dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
textarea {
  width: 100%; resize: vertical; background: rgba(7,11,20,0.6); color: var(--txt);
  border: 1px solid var(--glass-brd); border-radius: 12px; padding: 12px 14px;
  font-size: 14px; line-height: 1.6; font-family: inherit; outline: none;
}
textarea:focus { border-color: rgba(56,232,255,0.5); box-shadow: 0 0 0 3px rgba(56,232,255,0.1); }
.input-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.hint { font-size: 12px; color: var(--txt-dim); }
.input-extra { margin-top: 10px; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--txt-dim); cursor: pointer; user-select: none; }
.chk input { width: 15px; height: 15px; accent-color: var(--cyan); cursor: pointer; }
.lib-note { font-size: 12px; color: var(--txt-dim); margin-top: 6px; opacity: 0.85; }
.lib-search { margin-top: 10px; }
.lib-search input {
  width: 100%; background: rgba(7,11,20,0.6); color: var(--txt);
  border: 1px solid var(--glass-brd); border-radius: 10px; padding: 9px 13px;
  font-size: 13px; outline: none; font-family: inherit;
}
.lib-search input:focus { border-color: rgba(56,232,255,0.5); box-shadow: 0 0 0 3px rgba(56,232,255,0.1); }
.lib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-chip {
  font-size: 11.5px; padding: 3px 10px; border-radius: 20px; cursor: pointer;
  background: rgba(120,160,255,0.08); color: var(--txt-dim); border: 1px solid var(--glass-brd);
  transition: .15s; user-select: none;
}
.tag-chip:hover { color: var(--txt); }
.tag-chip.active { background: rgba(56,232,255,0.18); color: var(--cyan); border-color: rgba(56,232,255,0.4); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tags .tag-chip { cursor: default; }
.tags .tag-chip:hover { color: var(--txt-dim); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #04121a;
  border: none; padding: 10px 22px; border-radius: 10px; font-weight: 700; cursor: pointer;
  font-size: 14px; transition: .2s; box-shadow: 0 4px 18px rgba(56,232,255,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(56,232,255,0.45); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; border: 1px solid var(--glass-brd); color: var(--txt-dim);
  padding: 7px 14px; border-radius: 9px; cursor: pointer; font-size: 13px; transition: .2s;
}
.btn-ghost:hover { color: var(--txt); border-color: rgba(255,107,107,0.4); }

/* 结果卡片 */
/* 批量工具条 */
.batch-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 11px 16px; border-radius: 12px;
  background: rgba(56,232,255,0.06); border: 1px solid rgba(56,232,255,0.18);
}
.batch-bar[hidden] { display: none; }
.batch-info { font-size: 13px; color: var(--txt-dim); }
.batch-info b { color: var(--cyan); }
.batch-actions { display: flex; gap: 8px; }

.result-area { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lib-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.card {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 16px;
  overflow: hidden; backdrop-filter: blur(12px); position: relative; animation: fade .3s ease;
}
.card .thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0d1424; display: block;
}
.card .thumb-ph {
  width: 100%; aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(135deg, #0e1730, #131c38); color: var(--txt-dim); font-size: 13px;
}
.card .body { padding: 14px; }
.pf-badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 8px; background: rgba(7,11,20,0.7); color: var(--cyan);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(4px);
}
.card .title { font-size: 14px; font-weight: 600; line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .author { font-size: 12px; color: var(--txt-dim); margin-bottom: 12px; }
.qrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.qrow label { font-size: 12px; color: var(--txt-dim); }
select {
  flex: 1; background: rgba(7,11,20,0.7); color: var(--txt); border: 1px solid var(--glass-brd);
  border-radius: 9px; padding: 8px 10px; font-size: 13px; outline: none; cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act {
  flex: 1; min-width: 84px; text-align: center; font-size: 12.5px; padding: 9px 6px;
  border-radius: 9px; cursor: pointer; border: 1px solid var(--glass-brd);
  background: rgba(7,11,20,0.5); color: var(--txt); transition: .18s;
}
.act:hover { border-color: rgba(56,232,255,0.5); color: var(--cyan); }
.act.dl { background: linear-gradient(135deg, rgba(56,232,255,0.18), rgba(139,123,255,0.18)); }
.act.dl:hover { color: #fff; box-shadow: 0 0 14px rgba(56,232,255,0.3); }
.act.saved { color: var(--ok); border-color: rgba(67,230,160,0.4); }
.act.reresolve { background: rgba(139,123,255,0.12); border-color: rgba(139,123,255,0.35); }
.act.reresolve:hover { color: var(--violet); border-color: rgba(139,123,255,0.6); }
.act.reresolve:disabled { opacity: .5; cursor: progress; }

/* 状态 */
.empty { text-align: center; color: var(--txt-dim); padding: 60px 20px; font-size: 14px; }
.lib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lib-head h2 { font-size: 16px; }
.card.loading .body::after {
  content: ""; display: block; height: 2px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  background-size: 200% 100%; animation: slide 1.1s infinite;
}
@keyframes slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.card.error { border-color: rgba(255,107,107,0.4); }
.card.error .title { color: var(--err); }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: rgba(18,26,44,0.95); border: 1px solid var(--glass-brd); color: var(--txt);
  padding: 11px 20px; border-radius: 11px; font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 50; backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(67,230,160,0.4); }
.toast.err { border-color: rgba(255,107,107,0.4); }

/* 账户区 */
.account { display: flex; align-items: center; gap: 10px; }
.account .who { font-size: 13px; color: var(--txt-dim); }
.tag-pro {
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #04121a;
}
.badge-pro {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 600;
  background: rgba(56,232,255,0.15); color: var(--cyan); border: 1px solid rgba(56,232,255,0.3);
  vertical-align: middle; margin-left: 4px;
}
.foot {
  position: relative; z-index: 2; text-align: center; padding: 24px 20px 40px;
  font-size: 12px; color: var(--txt-dim); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.foot a { color: var(--cyan); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* 弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(4,7,14,0.7); backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-card { width: 340px; max-width: 92vw; padding: 26px 24px; position: relative; border-radius: 18px; }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--txt-dim); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--txt); }
.modal-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.modal-tabs button {
  flex: 1; background: transparent; border: 1px solid var(--glass-brd); color: var(--txt-dim);
  padding: 8px; border-radius: 9px; cursor: pointer; font-size: 14px;
}
.modal-tabs button.active { color: var(--txt); background: rgba(56,232,255,0.12); border-color: rgba(56,232,255,0.4); }
.modal-card input {
  width: 100%; background: rgba(7,11,20,0.7); color: var(--txt); border: 1px solid var(--glass-brd);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none; margin-bottom: 11px; font-family: inherit;
}
.modal-card input:focus { border-color: rgba(56,232,255,0.5); }
.modal-card .btn-primary { width: 100%; margin-top: 4px; }
.auth-msg { color: var(--err); font-size: 12.5px; min-height: 18px; margin-top: 8px; }
.auth-tip { color: var(--txt-dim); font-size: 11.5px; margin-top: 12px; line-height: 1.6; }

/* Pro 会员页 */
.pro-wrap { max-width: 520px; margin: 10px auto 0; }
.pro-wrap h2 { font-size: 20px; }
.pro-sub { color: var(--txt-dim); font-size: 13.5px; margin: 6px 0 18px; }
.plan { padding: 24px; text-align: center; }
.plan-name { font-size: 15px; color: var(--cyan); font-weight: 700; letter-spacing: .5px; }
.plan-price { font-size: 36px; font-weight: 800; margin: 10px 0 4px; }
.plan-price span { font-size: 14px; color: var(--txt-dim); font-weight: 500; }
.plan-feats { list-style: none; text-align: left; margin: 16px auto; max-width: 360px; }
.plan-feats li { font-size: 13.5px; color: var(--txt); padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid rgba(120,160,255,0.07); }
.plan-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.plan .btn-primary { width: 100%; margin-top: 8px; }
.plan-note { font-size: 12px; color: var(--warn); margin-top: 12px; line-height: 1.6; min-height: 16px; }
.pro-state { margin-top: 16px; }
.pro-tip { font-size: 13.5px; color: var(--txt-dim); background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 12px; padding: 12px 16px; }
.pro-tip.ok { color: var(--ok); border-color: rgba(67,230,160,0.35); }

.card.locked { border-color: rgba(255,180,84,0.35); }

/* 支付方式 */
.pay-methods { display: flex; gap: 12px; margin-top: 6px; }
.btn-pay {
  flex: 1; border: 1px solid var(--glass-brd); border-radius: 11px; padding: 13px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--txt); background: rgba(7,11,20,0.5); transition: .18s;
}
.btn-pay:hover { transform: translateY(-1px); }
.btn-pay.ali { border-color: rgba(56,232,255,0.4); }
.btn-pay.ali:hover { box-shadow: 0 0 16px rgba(56,232,255,0.3); }
.btn-pay.wx { border-color: rgba(67,230,160,0.4); }
.btn-pay.wx:hover { box-shadow: 0 0 16px rgba(67,230,160,0.3); }

/* 微信二维码弹窗 */
.qr-card { width: 280px; max-width: 92vw; text-align: center; padding: 24px 22px; }
.qr-card h3 { font-size: 16px; margin-bottom: 16px; }
.qr { width: 180px; height: 180px; margin: 0 auto 12px; background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; padding: 6px; }
.qr img, .qr canvas { display: block; }
.qr-ph { font-size: 13px; color: #555; line-height: 1.7; padding: 10px; }
.qr-status { font-size: 13px; color: var(--txt-dim); margin-bottom: 10px; }
#wxSim { width: 100%; margin-bottom: 4px; }

/* 视频预览弹窗 */
.pv-card { width: min(880px, 94vw); padding: 16px; }
.pv-video { width: 100%; max-height: 78vh; border-radius: 12px; background: #000; display: block; }
.pv-hint { font-size: 12px; color: var(--txt-dim); margin-top: 10px; text-align: center; }

/* 平台分区导航与面板 */
.plat-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.plat-tab {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: rgba(7,11,20,0.55); color: var(--txt-dim); border: 1px solid var(--glass-brd); transition: .2s;
}
.plat-tab:hover { color: var(--txt); border-color: rgba(56,232,255,0.4); }
.plat-tab.active {
  color: #06121f; background: linear-gradient(135deg, var(--cyan), #6ee7ff);
  border-color: transparent; box-shadow: 0 0 18px rgba(56,232,255,0.35);
}
.plat-panel { display: none; }
.plat-panel.active { display: block; animation: fade .3s ease; }
.plat-box { padding: 16px; margin-bottom: 4px; }
.plat-box .plat-input {
  width: 100%; background: rgba(7,11,20,0.7); color: var(--txt); border: 1px solid var(--glass-brd);
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-family: inherit;
  resize: vertical; outline: none; transition: border-color .2s; margin: 10px 0 12px;
}
.plat-box .plat-input:focus { border-color: rgba(56,232,255,0.55); }
.plat-btns { display: flex; gap: 8px; }

/* 卡片内嵌预览 */
.thumb-wrap { position: relative; }
.thumb-wrap .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0d1424; display: block; }
.thumb-wrap .thumb-ph { width: 100%; aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(135deg, #0e1730, #131c38); color: var(--txt-dim); font-size: 13px; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85); background: rgba(7,11,20,0.55); color: #fff;
  font-size: 18px; cursor: pointer; display: grid; place-items: center; transition: .2s;
  backdrop-filter: blur(4px);
}
.play-btn:hover { background: rgba(56,232,255,0.35); transform: scale(1.08); }
.embed-video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.embed-close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(7,11,20,0.75); color: #fff; font-size: 15px; cursor: pointer; z-index: 2;
}
.embed-close:hover { background: rgba(255,107,107,0.7); }

/* 全局下载进度条 */
.dl-progress {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(460px, 92vw); z-index: 90; padding: 12px 16px; border-radius: 14px;
  background: rgba(10,16,30,0.92); border: 1px solid rgba(56,232,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45); backdrop-filter: blur(10px);
}
.dl-progress[hidden] { display: none; }
.dl-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.dl-info #dlLabel { font-size: 12.5px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-pct { font-size: 12.5px; font-weight: 700; color: var(--cyan); }
.dl-track { height: 8px; border-radius: 999px; background: rgba(56,232,255,0.12); overflow: hidden; }
.dl-bar {
  height: 100%; width: 0%; border-radius: 999px; transition: width .25s ease;
  background: linear-gradient(90deg, var(--cyan), #6ee7ff);
  box-shadow: 0 0 12px rgba(56,232,255,0.5);
}
.dl-bar.indeterminate { animation: dlPulse 1.2s ease-in-out infinite; }
@keyframes dlPulse {
  0% { width: 12%; margin-left: 0; }
  50% { width: 40%; }
  100% { width: 12%; margin-left: 60%; }
}

/* 部署就绪广告位（本地默认隐藏） */
.ad-slot {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 12px;
  background: rgba(18,26,44,0.55); border: 1px dashed rgba(120,160,255,0.22);
  font-size: 13px; color: var(--txt-dim); text-align: center;
}
.ad-slot[hidden] { display: none; }
.ad-slot :is(a, img) { max-width: 100%; }

/* 抖音 Cookie 状态行 */
.cookie-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; }
.cookie-status { flex: 1; padding: 6px 10px; border-radius: 8px; line-height: 1.4; }
.cookie-status.ok { color: var(--ok); background: rgba(67,230,160,0.1); border: 1px solid rgba(67,230,160,0.25); }
.cookie-status.warn { color: var(--warn); background: rgba(255,180,84,0.1); border: 1px solid rgba(255,180,84,0.25); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }

/* 解析结果卡片：第三方 API 兜底徽标 */
.badge-api {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  color: #06121f; background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 2px 10px rgba(56,232,255,0.4);
}
.card { position: relative; }

/* 解析中进度卡（SSE 进度条） */
.card.resolving .body { padding: 14px 16px; }
.card.resolving .title { color: #cfd6e4; font-weight: 600; }
.card.resolving .rstep { font-size: 12px; color: #9aa3b2; margin-top: 8px; min-height: 16px; line-height: 1.4; }
.card.resolving .rbar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.card.resolving .rfill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff5a5f, #ffb86c); border-radius: 4px; transition: width .3s ease; }

/* ── 第1批：教程视频位 ── */
.input-extra { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tutorial-btn {
  background: rgba(139,123,255,0.1); border: 1px solid rgba(139,123,255,0.35); color: var(--violet);
  font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.tutorial-btn:hover { background: rgba(139,123,255,0.2); color: #cfc7ff; }
.tutorial-links {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(139,123,255,0.07); border: 1px solid rgba(139,123,255,0.22);
  animation: fadeOnly .3s ease;
}
.tutorial-links[hidden] { display: none; }
.tutorial-tip { font-size: 12px; color: var(--txt-dim); }
.tutorial-items { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tutorial-items a, .tutorial-items .tut-soon {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  padding: 7px 15px; border-radius: 10px; text-decoration: none; transition: .18s;
  border: 1px solid var(--glass-brd); background: rgba(7,11,20,0.5); color: var(--txt);
}
.tutorial-items a:hover { border-color: rgba(56,232,255,0.5); color: var(--cyan); }
.tutorial-items .tut-soon { color: var(--txt-dim); cursor: default; }
.tut-yt { color: #ff5a5f !important; }
.tut-bi { color: var(--cyan) !important; }

/* ── 第1批：支持的平台（图标墙） ── */
.plat-wall {
  position: relative; z-index: 2; max-width: 1080px; margin: 8px auto 0; padding: 22px 20px 16px;
}
.pw-title { font-size: 16px; text-align: center; }
.pw-sub { font-size: 12px; color: var(--txt-dim); text-align: center; margin: 5px 0 16px; }
.pw-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  max-height: 178px; overflow: hidden; transition: max-height .35s ease;
}
.pw-grid.open { max-height: 640px; }
.pw-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 6px 10px; border-radius: 12px; border: 1px solid transparent;
  transition: .18s; cursor: default;
}
.pw-item:hover { border-color: rgba(56,232,255,0.35); background: rgba(56,232,255,0.05); }
.pw-ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(120,160,255,0.09); border: 1px solid rgba(120,160,255,0.16); color: #aebadd;
  transition: .18s;
}
.pw-item:hover .pw-ic { color: var(--cyan); border-color: rgba(56,232,255,0.4); box-shadow: 0 0 14px rgba(56,232,255,0.18); }
.pw-ic svg { width: 21px; height: 21px; }
.pw-name { font-size: 11.5px; color: var(--txt-dim); white-space: nowrap; }
.pw-item:hover .pw-name { color: var(--txt); }
.pw-more {
  display: block; margin: 14px auto 0; background: none; border: none; cursor: pointer;
  color: var(--cyan); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; transition: .2s;
}
.pw-more:hover { background: rgba(56,232,255,0.1); }
.pw-fade {
  position: absolute; left: 0; right: 0; bottom: 52px; height: 56px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(11,17,32,0.92));
  transition: opacity .3s ease;
}
.pw-fade.gone { opacity: 0; }

/* ── 第1批：免责声明 ── */
.statement { position: relative; z-index: 2; max-width: 1080px; margin: 12px auto 0; padding: 22px 20px; }
.statement h2 { font-size: 15px; text-align: center; margin-bottom: 14px; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-item {
  padding: 13px 15px; border-radius: 12px;
  background: rgba(7,11,20,0.4); border: 1px solid rgba(120,160,255,0.1);
}
.st-item h3 { font-size: 13px; color: var(--cyan); margin-bottom: 6px; font-weight: 700; }
.st-item p { font-size: 12px; color: var(--txt-dim); line-height: 1.7; }

/* ── 第1批：Cookie 同意条（纯 fade） ── */
.cookie-bar {
  position: fixed; left: 50%; bottom: 26px; z-index: 95;
  width: min(640px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 13px 18px; border-radius: 14px;
  background: rgba(18,26,44,0.94); border: 1px solid var(--glass-brd);
  box-shadow: 0 10px 36px rgba(0,0,0,0.5); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cookie-bar.show { opacity: 1; pointer-events: auto; }
.cookie-bar[hidden] { display: none; }
.cookie-text { flex: 1; font-size: 12.5px; color: var(--txt-dim); line-height: 1.6; }
.cookie-text a { color: var(--cyan); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── 第1批：新版本提示（纯 fade，零位移） ── */
.update-mask {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(4,7,14,0.72); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.update-mask.show { opacity: 1; pointer-events: auto; }
.update-mask[hidden] { display: none; }
.update-card {
  width: 320px; max-width: 90vw; padding: 28px 26px; text-align: center; border-radius: 18px;
}
.update-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.update-desc { font-size: 13px; color: var(--txt-dim); margin-bottom: 18px; }
.update-card .btn-primary { width: 100%; }
.update-later { display: block; margin: 10px auto 0; }

/* 响应式：平台墙与声明 */
@media (max-width: 900px) {
  .pw-grid { grid-template-columns: repeat(4, 1fr); max-height: 200px; }
  .pw-grid.open { max-height: 760px; }
}
@media (max-width: 560px) {
  .pw-grid { grid-template-columns: repeat(3, 1fr); }
  .st-grid { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 10px; bottom: 14px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
