/* ============ 基础与变量 ============ */
:root {
  --bg: #090b10;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-hover: rgba(255, 255, 255, .09);
  --hairline: rgba(255, 255, 255, .09);
  --hairline-strong: rgba(255, 255, 255, .16);
  --text: #f2f4f8;
  --text-2: #a7b0c0;
  --text-3: #747e90;
  --primary: #fe2c55;
  --primary-2: #ff4d6d;
  --cyan: #25f4ee;
  --violet: #8b7bff;
  --success: #2ee6a6;
  --warning: #ffb43c;
  --danger: #ff6370;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
  --shadow-primary: 0 10px 26px -8px rgba(254, 44, 85, .55);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 品牌氛围光晕 */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 260px at 50% -90px, rgba(37, 244, 238, .10), transparent 62%),
    radial-gradient(560px 280px at 50% -60px, rgba(254, 44, 85, .12), transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(139, 123, 255, .05), transparent 60%);
}

button, a, [role="button"], summary, input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  background: rgba(37, 244, 238, .08);
  border: 1px solid rgba(37, 244, 238, .22);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--cyan);
}

.page {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 14px 26px;
}

/* ============ 入场动画 ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise .55s cubic-bezier(.22, .8, .3, 1) forwards; }
.rise-1 { animation-delay: .02s; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .14s; }
.rise-4 { animation-delay: .20s; }
.rise-5 { animation-delay: .28s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ 导航 ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(120deg, #fff 30%, #c9d0dd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-en {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-3);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 2px 6px 1px;
  margin-left: 2px;
}

/* ============ Hero ============ */
.hero { text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: 5px 13px 5px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  flex: 0 0 auto;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--success);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero-title {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: .3px;
}
.grad-text {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 2px;
}
.hero-sub {
  margin: 9px auto 0;
  max-width: 490px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
}

/* ============ 玻璃面板 ============ */
.input-card {
  margin-top: 16px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .028));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .2s, box-shadow .2s;
}
.input-card:focus-within {
  border-color: rgba(254, 44, 85, .55);
  box-shadow: 0 0 0 4px rgba(254, 44, 85, .12), var(--shadow-card);
}

.input-row { display: flex; align-items: stretch; gap: 7px; }
.input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  transition: color .15s;
}
.input-card:focus-within .input-icon { color: var(--primary-2); }
#linkInput {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 37px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
#linkInput::placeholder { color: #606b7d; }

/* ============ 按钮 ============ */
.btn-primary, .btn-secondary, .btn-ghost {
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  transition: transform .12s, box-shadow .18s, background .18s, border-color .18s, color .18s, opacity .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 45%, #e01b44);
  color: #fff;
  padding: 0 18px;
  height: 44px;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(254, 44, 85, .65); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary:disabled { opacity: .6; transform: none; box-shadow: none; }
.btn-secondary {
  background: var(--glass-2);
  border-color: var(--hairline);
  color: var(--text-2);
  padding: 0 13px;
  height: 44px;
}
.btn-secondary:hover { color: var(--text); background: var(--glass-hover); border-color: var(--hairline-strong); }
.btn-secondary:active { transform: scale(.98); }
.btn-ghost {
  background: var(--glass);
  border-color: var(--hairline);
  color: var(--text-2);
  padding: 0 12px;
  height: 34px;
  font-size: 13px;
  border-radius: 9px;
}
.btn-ghost:hover { color: var(--text); background: var(--glass-2); border-color: var(--hairline-strong); }
.btn-sm { height: 32px; font-size: 13px; padding: 0 14px; }
.btn-link {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 12.5px;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color .15s;
}
.btn-link:hover { color: var(--danger); }

.status-line {
  min-height: 22px;
  padding: 2px 6px 0;
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-line.error { color: var(--danger); }
.status-line.success { color: var(--success); }
.status-line .spinner { margin: 0; }

.spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255, 255, 255, .22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 特性行 ============ */
.feature-row {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.feature-item {
  flex: 1 1 0;
  min-width: 150px;
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background .18s, border-color .18s, transform .18s;
}
.feature-item:hover { background: var(--glass-2); border-color: var(--hairline-strong); transform: translateY(-2px); }
.feature-ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ic-cyan { color: var(--cyan); background: rgba(37, 244, 238, .1); border: 1px solid rgba(37, 244, 238, .25); }
.ic-pink { color: var(--primary-2); background: rgba(254, 44, 85, .1); border: 1px solid rgba(254, 44, 85, .28); }
.ic-violet { color: var(--violet); background: rgba(139, 123, 255, .1); border: 1px solid rgba(139, 123, 255, .28); }
.feature-item b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.feature-item small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ============ 设置面板 ============ */
.settings-panel {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
  animation: cardIn .25s ease;
}
.settings-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.settings-inline { display: flex; gap: 8px; }
.settings-inline input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 11px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.settings-inline input:focus { border-color: var(--primary); }
.settings-hint { margin: 9px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.65; }

/* ============ 结果卡片 ============ */
.result-area { margin-top: 14px; }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: cardIn .35s cubic-bezier(.22, .8, .3, 1);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  opacity: .85;
}
.card + .card { margin-top: 10px; }

.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 10px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(254, 44, 85, .35);
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .05);
  padding: 1px;
}
.author-meta { min-width: 0; flex: 1 1 auto; }
.author-name {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-sub {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-video { color: var(--cyan); background: rgba(37, 244, 238, .09); border: 1px solid rgba(37, 244, 238, .3); }
.badge-image { color: var(--warning); background: rgba(255, 180, 60, .09); border: 1px solid rgba(255, 180, 60, .32); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.duration { font-variant-numeric: tabular-nums; }
.sub-sep { color: #3a4150; }

.desc {
  padding: 0 14px 11px;
  font-size: 13.5px;
  color: #dde2ea;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 128px;
  overflow-y: auto;
}

/* 视频播放器 */
.player-wrap {
  position: relative;
  margin: 0 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline);
}
.player-wrap video {
  width: 100%;
  max-height: 60vh;
  display: block;
  margin: 0 auto;
}

/* 操作区 */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 14px;
}
.act-btn {
  height: 37px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--glass-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .12s, background .16s, border-color .16s, box-shadow .16s;
}
.act-btn:hover { background: var(--glass-hover); border-color: var(--hairline-strong); transform: translateY(-1px); }
.act-btn:active { transform: scale(.98); }
.act-btn:disabled { opacity: .6; transform: none; }
.act-btn.primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 45%, #e01b44);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(254, 44, 85, .6);
}
.act-btn.primary:hover { box-shadow: 0 12px 26px -8px rgba(254, 44, 85, .7); }

.backup-detail {
  margin: 0 14px 13px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(0, 0, 0, .22);
}
.backup-detail summary {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
}
.backup-detail summary::-webkit-details-marker { display: none; }
.backup-detail summary::after {
  content: "\25B8";
  font-size: 10px;
  color: var(--text-3);
  transition: transform .15s;
}
.backup-detail[open] summary::after { transform: rotate(90deg); }
.backup-list { padding: 2px 12px 11px; display: flex; flex-direction: column; gap: 7px; }
.backup-list a {
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
  transition: color .15s, border-color .15s;
}
.backup-list a:hover { color: var(--cyan); border-color: rgba(37, 244, 238, .4); }

/* 图集 */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 14px 13px;
}
.gallery-item {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .04);
  aspect-ratio: 3 / 4;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gi-zoom,
.gallery-item .gi-save {
  position: absolute;
  top: 7px;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(9, 11, 16, .72);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .18s, transform .18s, background .15s;
  backdrop-filter: blur(4px);
}
.gallery-item .gi-zoom { right: 7px; }
.gallery-item .gi-save { right: 43px; }
.gallery-item:hover .gi-zoom,
.gallery-item:hover .gi-save { opacity: 1; transform: translateY(0); }
.gallery-item .gi-zoom:hover,
.gallery-item .gi-save:hover { background: var(--primary); border-color: var(--primary); }
.gallery-item .gi-index {
  position: absolute;
  left: 8px; bottom: 7px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 2px 8px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}

/* ============ 视频大播放按钮 ============ */
.vbig {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: rgba(9, 11, 16, .6);
  color: #fff;
  display: grid;
  place-items: center;
  padding-left: 4px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  transition: opacity .2s, transform .18s, background .18s;
}
.vbig:hover { background: var(--primary); border-color: var(--primary); transform: translate(-50%, -50%) scale(1.08); }
.vbig.vbig-hidden { opacity: 0; pointer-events: none; }

/* ============ 图文播放器 ============ */
.image-player { margin: 0 14px; }
.ip-stage {
  position: relative;
  height: min(56vh, 460px);
  background: #000;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ip-img.ip-fade { animation: ipFade .35s ease; }
@keyframes ipFade { from { opacity: .25; } to { opacity: 1; } }
.ip-replay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: rgba(9, 11, 16, .62);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  transition: background .18s, transform .18s;
}
.ip-replay:hover { background: var(--primary); border-color: var(--primary); transform: translate(-50%, -50%) scale(1.08); }

.ip-ctrl {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin: 9px 0 3px;
}
.ip-toggle {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  padding-left: 2px;
  box-shadow: 0 6px 16px -6px rgba(254, 44, 85, .7);
  transition: transform .12s;
}
.ip-toggle:hover { transform: scale(1.06); }
.ip-toggle:active { transform: scale(.96); }
.ip-toggle:has(svg[width="15"]) { padding-left: 0; }
.ip-step {
  width: 28px; height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--glass-2);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: color .15s, background .15s, border-color .15s;
}
.ip-step:hover { color: var(--text); background: var(--glass-hover); border-color: var(--hairline-strong); }
.ip-dots {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}
.ip-dots::-webkit-scrollbar { display: none; }
.ip-dot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  transition: width .2s, background .2s;
}
.ip-dot:hover { background: rgba(255, 255, 255, .45); }
.ip-dot.active { width: 18px; background: var(--primary); }
.ip-count {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ip-music {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 150px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 4px 9px;
}
.ip-music svg { flex: 0 0 auto; color: var(--cyan); }
.ip-music b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-player + .gallery { margin-top: 12px; }

@media (max-width: 430px) {
  .ip-music { display: none; }
  .vbig { width: 54px; height: 54px; }
}

/* ============ 骨架屏 ============ */
.sk-card { padding: 14px; animation: cardIn .25s ease; }
.sk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sk-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.sk-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; }
.sk-player { height: 240px; border-radius: 11px; }
.sk-actions { display: flex; gap: 8px; margin-top: 14px; }
.sk-chip { height: 37px; border-radius: 10px; }
.sk {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .055);
}
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ============ 历史记录 ============ */
.history-panel {
  margin-top: 12px;
  padding: 10px 14px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .022));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.history-head h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  transition: background .15s;
}
.history-item:hover { background: rgba(255, 255, 255, .04); }
.history-item img {
  width: 40px; height: 40px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--hairline);
}
.hi-text { min-width: 0; flex: 1 1 auto; }
.hi-title {
  display: block;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hi-sub { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

/* ============ 页脚 ============ */
.footer { margin-top: 20px; text-align: center; }
.footer p { margin: 3px 0; font-size: 11.5px; color: #5a6374; line-height: 1.65; }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, .95);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .7);
  animation: cardIn .2s ease;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .15s, transform .15s;
}
.lb-close:hover, .lb-nav:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.06); }
.lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 22px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 26px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-index {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  color: #cfd5df;
  font-size: 13px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 3px 13px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: rgba(30, 35, 45, .92);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  font-size: 13px;
  padding: 10px 17px;
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  z-index: 200;
  backdrop-filter: blur(12px);
  animation: toast-in .2s ease;
}
.toast.error { border-color: rgba(255, 99, 112, .55); }
.toast.success { border-color: rgba(46, 230, 166, .5); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ 响应式 ============ */
@media (max-width: 560px) {
  .feature-item { min-width: calc(50% - 6px); max-width: none; flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 430px) {
  .page { padding: 13px 10px 22px; }
  .nav { margin-bottom: 16px; }
  .brand-en { display: none; }
  .btn-ghost span { display: none; }
  .hero-title { font-size: 23px; }
  .hero-sub { font-size: 12.5px; }
  .input-row { flex-wrap: nowrap; }
  #btnPaste { padding: 0 11px; }
  #btnPaste span { display: none; }
  .btn-primary { padding: 0 14px; font-size: 13.5px; }
  .act-btn { flex: 1 1 auto; justify-content: center; }
  .sk-player { height: 190px; }
}
