/* ==========================================================
   LumiVault / 光影集  —  全局样式
   断点：手机 ≤640 / 平板 641-1024 / 桌面 ≥1025
   ========================================================== */
:root {
  --bg: #07070c;
  --bg-soft: #0b0b13;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f9;
  --text-dim: #a7abbd;
  --muted: #7b8094;
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --accent: #ff4d8d;
  --ok: #2ee6a8;
  --warn: #ffb020;
  --danger: #ff5b6e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(124, 92, 255, 0.32), transparent 70%),
    radial-gradient(760px 480px at 92% 4%, rgba(0, 212, 255, 0.18), transparent 72%),
    radial-gradient(700px 600px at 50% 108%, rgba(255, 77, 141, 0.14), transparent 70%),
    #07070c;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: rgba(124, 92, 255, 0.4);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ==========================================================
   通用组件
   ========================================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, opacity 0.18s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8a63ff 0%, #5b8bff 55%, #00d4ff 100%);
  box-shadow: 0 10px 28px -10px rgba(124, 92, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 16px 36px -10px rgba(124, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover {
  background: var(--panel-strong);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd479, #ff9d3d 60%, #ff6a3d);
  color: #2a1400;
  box-shadow: 0 10px 26px -12px rgba(255, 157, 61, 0.8);
}
.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.32);
  color: #c9b8ff;
  font-size: 12px;
  font-weight: 600;
}
.tag-gold {
  background: rgba(255, 176, 32, 0.14);
  border-color: rgba(255, 176, 32, 0.35);
  color: #ffd479;
}
.tag-ok {
  background: rgba(46, 230, 168, 0.12);
  border-color: rgba(46, 230, 168, 0.32);
  color: #7ff0c9;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

/* 表单 */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field > label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.input,
.select,
.textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}
.textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.select option {
  background: #14141f;
  color: var(--text);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

/* 头像 / 首字母 */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #00d4ff);
  flex: none;
  overflow: hidden;
}

/* ==========================================================
   顶部导航
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(9, 9, 16, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #8a63ff, #00d4ff);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px -6px rgba(124, 92, 255, 0.9);
}
.logo-mark svg {
  width: 17px;
  height: 17px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.16);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-user:hover {
  background: var(--panel-strong);
}
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.lang-switch button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switch button.on {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* 移动端菜单按钮 */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  place-items: center;
}

/* ==========================================================
   首页
   ========================================================== */
.hero {
  padding: 64px 0 34px;
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #a78bfa, #60a5fa 45%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 26px;
  font-size: clamp(14px, 1.6vw, 17px);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stat b {
  font-size: 22px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff, #b9bdd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span {
  font-size: 12px;
  color: var(--muted);
}

/* 筛选栏 */
.toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(7, 7, 12, 0.92), rgba(7, 7, 12, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 22px;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.chip.on {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.searchbox {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
.searchbox input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.searchbox input:focus {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(255, 255, 255, 0.075);
}
.searchbox svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

/* 九宫格瀑布 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 40px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #101019;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
  transform: translateZ(0);
}
.tile:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(124, 92, 255, 0.25);
  z-index: 2;
}
.tile.big {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.tile img.cover,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s;
}
.tile:hover img.cover {
  transform: scale(1.06);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(4, 4, 8, 0.78) 100%);
  opacity: 0.9;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.tile-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.tile:hover .tile-title {
  opacity: 1;
  transform: translateY(0);
}
.tile-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.badge-icon {
  height: 26px;
  min-width: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.badge-icon.like {
  position: absolute;
  right: 10px;
  top: 10px;
}
.tile-likes {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 3;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 骨架 */
.skeleton {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.11) 38%, rgba(255, 255, 255, 0.05) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.empty svg {
  width: 54px;
  height: 54px;
  opacity: 0.35;
  margin: 0 auto 14px;
}

/* 分页 / 加载更多 */
.load-more-wrap {
  text-align: center;
  padding: 6px 0 70px;
}

/* ==========================================================
   弹窗
   ========================================================== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 3, 7, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-mask.show {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #16151f, #0c0c14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, 0.12);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s var(--ease);
}
.modal-mask.show .modal {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 付费升级弹窗 */
.vip-pop {
  text-align: center;
  padding-top: 2px;
}
.vip-pop-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 210, 120, 0.22), rgba(255, 122, 61, 0.16));
  border: 1px solid rgba(255, 176, 32, 0.4);
  box-shadow: 0 0 40px -12px rgba(255, 176, 32, 0.7);
}
.vip-pop h3 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.vip-pop p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0 0 18px;
  line-height: 1.7;
}
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}
.plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
}
.plan:hover {
  border-color: rgba(255, 176, 32, 0.4);
  background: rgba(255, 176, 32, 0.06);
}
.plan.on {
  border-color: rgba(255, 176, 32, 0.75);
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.14), rgba(255, 122, 61, 0.07));
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.3) inset;
}
.plan-main {
  flex: 1;
  min-width: 0;
}
.plan-name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.plan-price {
  font-weight: 800;
  font-size: 19px;
  color: #ffd479;
  white-space: nowrap;
}
.plan-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* 支付方式 */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.pay-method {
  padding: 12px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s;
}
.pay-method.on {
  border-color: rgba(124, 92, 255, 0.65);
  background: rgba(124, 92, 255, 0.14);
  color: #fff;
}
.qr-wrap {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  margin-bottom: 14px;
}
.qr-wrap img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

/* USDT 支付面板 */
.usdt-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.usdt-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.usdt-amount b {
  font-size: 22px;
  letter-spacing: 0.4px;
  color: #6ef0c8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.usdt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.usdt-row span:last-child {
  color: var(--text);
}
.usdt-addr-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.usdt-addr {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #d9d2ff;
  word-break: break-all;
}
.usdt-addr-wrap .mini-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 媒体详情 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  background: rgba(3, 3, 7, 0.9);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}
.lb-bar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
}
.lb-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  min-height: 0;
  overflow: auto;
}
.lb-body img,
.lb-body video {
  max-width: min(100%, 1200px);
  max-height: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  object-fit: contain;
}
.lb-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

/* toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(24, 24, 34, 0.95);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.32s var(--ease);
  max-width: min(90vw, 460px);
}
.toast.ok {
  border-color: rgba(46, 230, 168, 0.4);
  color: #9df3d3;
}
.toast.err {
  border-color: rgba(255, 91, 110, 0.45);
  color: #ffb3bc;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

/* ==========================================================
   上传页
   ========================================================== */
.page-head {
  padding: 42px 0 10px;
}
.page-head h1 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.page-head p {
  color: var(--text-dim);
  margin: 0;
}

.upload-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 20px;
  padding: 22px 0 30px;
  align-items: start;
}

.dropzone {
  position: relative;
  border-radius: 20px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 34px 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  min-height: 240px;
  display: grid;
  place-items: center;
}
.dropzone:hover,
.dropzone.drag {
  border-color: rgba(124, 92, 255, 0.65);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(124, 92, 255, 0.03));
}
.dropzone-inner {
  display: grid;
  place-items: center;
  gap: 12px;
  pointer-events: none;
}
.dz-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(0, 212, 255, 0.14));
  border: 1px solid rgba(124, 92, 255, 0.4);
}
.dz-icon svg {
  width: 28px;
  height: 28px;
}
.dz-title {
  font-weight: 700;
  font-size: 16px;
}
.dz-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.preview {
  display: none;
  width: 100%;
}
.preview.show {
  display: block;
}
.preview-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
}
.preview-media img,
.preview-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050508;
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.progress {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 12px;
  display: none;
}
.progress.show {
  display: block;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #7c5cff, #00d4ff);
  transition: width 0.25s;
}

.side-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.side-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  gap: 10px;
}
.side-row b {
  color: var(--text);
}
.quota-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.quota-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
  border-radius: 99px;
}
.vip-tip {
  padding: 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.12), rgba(255, 122, 61, 0.05));
  font-size: 12.5px;
  color: #ffd479;
  line-height: 1.7;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

/* ==========================================================
   VIP / 会员页
   ========================================================== */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 14px;
}
.plan-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  transition: all 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 30px 60px -30px rgba(124, 92, 255, 0.6);
}
.plan-card.hot {
  border-color: rgba(255, 176, 32, 0.5);
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.1), rgba(255, 255, 255, 0.02));
}
.plan-card .badge-abs {
  position: absolute;
  top: -10px;
  right: 18px;
}
.pc-name {
  font-size: 17px;
  font-weight: 800;
}
.pc-price {
  margin: 10px 0 2px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffd479;
}
.pc-price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.pc-desc {
  font-size: 12.5px;
  color: var(--muted);
  min-height: 38px;
}
.pc-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.pc-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pc-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c5cff;
  margin-top: 9px;
  flex: none;
}

/* 订单表 */
.order-list {
  display: grid;
  gap: 10px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  flex-wrap: wrap;
}
.order-item .on-no {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: var(--muted);
}
.order-item .on-main {
  flex: 1;
  min-width: 160px;
}
.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid;
}
.st-pending {
  color: #ffd479;
  border-color: rgba(255, 176, 32, 0.4);
  background: rgba(255, 176, 32, 0.1);
}
.st-paid {
  color: #7ff0c9;
  border-color: rgba(46, 230, 168, 0.4);
  background: rgba(46, 230, 168, 0.1);
}
.st-cancelled,
.st-refunded {
  color: #a7abbd;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================
   登录页
   ========================================================== */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.auth-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.tabs button.on {
  background: rgba(124, 92, 255, 0.28);
  color: #fff;
}

/* ==========================================================
   页脚
   ========================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================
   后台
   ========================================================== */
.adm-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
/* 遮罩始终脱离网格流，避免占用主内容所在的第二列 */
.adm-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.adm-mask.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.adm-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: rgba(10, 10, 17, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
  overflow-y: auto;
}
.adm-side .logo {
  padding: 6px 10px 18px;
  font-size: 16px;
}
.adm-nav {
  display: grid;
  gap: 3px;
}
.adm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s;
  cursor: pointer;
}
.adm-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.adm-nav a.on {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.24), rgba(124, 92, 255, 0.06));
  color: #fff;
  box-shadow: inset 2px 0 0 #7c5cff;
}
.adm-nav a svg {
  width: 17px;
  height: 17px;
  opacity: 0.75;
  flex: none;
}
.adm-nav a.on svg {
  opacity: 1;
}
.adm-side-foot {
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.adm-main {
  min-width: 0;
  padding: 22px 26px 60px;
}
.adm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.adm-top h1 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
}
.adm-top .sub {
  color: var(--muted);
  font-size: 12.5px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  position: relative;
  overflow: hidden;
}
.stat-card span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.stat-card b {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-card i {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
}
.panel-body {
  padding: 16px 18px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding-top: 10px;
}
.chart .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart .bar > i {
  width: 100%;
  max-width: 42px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #22d3ee, #7c5cff);
  min-height: 3px;
  transition: height 0.6s var(--ease);
}
.chart .bar > span {
  font-size: 10.5px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}
table.data th {
  text-align: left;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}
table.data td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}
table.data tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
table.data .thumb {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: #111;
}
.cell-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.mini-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.mini-btn.ok {
  color: #7ff0c9;
  border-color: rgba(46, 230, 168, 0.35);
}
.mini-btn.warn {
  color: #ffd479;
  border-color: rgba(255, 176, 32, 0.35);
}
.mini-btn.danger {
  color: #ffb3bc;
  border-color: rgba(255, 91, 110, 0.35);
}

.adm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.adm-tabs .chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.settings-grid .full {
  grid-column: 1 / -1;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  flex: none;
}
.switch.on {
  background: linear-gradient(90deg, #7c5cff, #00d4ff);
  border-color: transparent;
}
.switch > i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s var(--ease);
}
.switch.on > i {
  transform: translateX(20px);
}

/* 后台移动端顶栏 */
.adm-mobilebar {
  display: none;
}

/* ==========================================================
   采集任务（首页 + 上传页 + 后台）
   ========================================================== */
.task-section {
  padding: 34px 0 8px;
}
.task-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.task-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.task-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.task-card {
  display: block;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  transition: all 0.25s var(--ease);
}
.task-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 24px 44px -26px rgba(124, 92, 255, 0.65);
}
.tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.tc-idx {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}
.tc-state {
  color: #6ef0c8;
  font-weight: 600;
}
.task-card.done .tc-state {
  color: #ffd479;
}
.task-card h3 {
  margin: 10px 0 6px;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}
.tc-desc {
  margin: 0 0 14px;
  min-height: 36px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-bar,
.tp-line {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tc-bar i,
.tp-line i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
  transition: width 0.4s var(--ease);
}
.tc-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.tc-meta b {
  font-size: 15px;
  color: #fff;
}

/* 上传页任务选择 */
.task-picker {
  margin-bottom: 18px;
  padding: 18px 20px;
}
.tp-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tp-head h3 {
  margin: 0;
  font-size: 15px;
}
.tp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.tp-item {
  font: inherit;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tp-item:hover {
  border-color: rgba(124, 92, 255, 0.45);
}
.tp-item.on {
  border-color: rgba(124, 92, 255, 0.85);
  background: rgba(124, 92, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}
.tp-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.task-admin-rows {
  display: grid;
  gap: 14px;
}
.tar-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* ==========================================================
   VIP 套餐卡（仿参考图三卡式）
   ========================================================== */
.vip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 18px 16px 18px;
  text-align: center;
  color: #12244c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #f6faff 0%, #ddeaff 100%);
  box-shadow: 0 26px 52px -28px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.28s var(--ease);
  overflow: hidden;
}
.vip-card.t2 {
  background: linear-gradient(180deg, #eef6ff 0%, #cbe2ff 100%);
}
.vip-card.t3 {
  color: #4a2f0a;
  background: linear-gradient(180deg, #fff9ea 0%, #f2ddb3 100%);
}
.vip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.vc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #6b3d00;
  background: linear-gradient(180deg, #ffe6a8, #ffc043);
  box-shadow: 0 4px 10px -4px rgba(180, 110, 0, 0.7);
}
.vc-crown {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  margin: 2px auto 2px;
}
.vc-crown svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.vc-tier {
  font-size: 31px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #3d86ff 0%, #0b36a8 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.85));
}
.vip-card.t3 .vc-tier {
  background: linear-gradient(180deg, #ffcf5c 0%, #9a5b04 75%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.7));
}
.vc-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}
.vc-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 10px 10px 11px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #3785f8 0%, #0a3fc0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 22px -14px rgba(10, 63, 192, 0.95);
}
.vip-card.t3 .vc-price {
  background: linear-gradient(180deg, #d79a1e 0%, #7d4a02 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 22px -14px rgba(125, 74, 2, 0.95);
}
.vc-price .cur {
  font-size: 18px;
  font-weight: 800;
  align-self: center;
}
.vc-price b {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff7dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, 'DIN Alternate', monospace;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.vc-price .unit {
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  opacity: 0.9;
  align-self: flex-end;
  padding-bottom: 4px;
  white-space: nowrap;
}
.vc-feats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.vc-feat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vc-feat i {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(18, 36, 76, 0.08);
  color: #1650bf;
}
.vip-card.t3 .vc-feat i {
  background: rgba(74, 47, 10, 0.1);
  color: #a26205;
}
.vc-feat i svg {
  width: 15px;
  height: 15px;
}
.vc-feat div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vc-feat span {
  font-size: 10.5px;
  opacity: 0.7;
}
.vc-feat b {
  font-size: 13.5px;
  line-height: 1.25;
}
.vc-buy {
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(100deg, #3785f8, #0a36a8);
  box-shadow: 0 12px 22px -14px rgba(10, 54, 168, 0.95);
  transition: filter 0.2s;
}
.vc-buy:hover {
  filter: brightness(1.08);
}
.vip-card.t3 .vc-buy {
  background: linear-gradient(100deg, #e6ad3c, #9a5b04);
  box-shadow: 0 12px 22px -14px rgba(125, 74, 2, 0.95);
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tile.big {
    grid-column: span 2;
    grid-row: span 2;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .container,
  .nav-inner {
    padding: 0 18px;
  }
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: grid;
  }
  .upload-wrap {
    grid-template-columns: 1fr;
  }
  .plan-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adm-layout {
    grid-template-columns: 1fr;
  }
  .adm-side {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease);
    box-shadow: 30px 0 60px -30px #000;
  }
  .adm-side.open {
    transform: none;
  }
  .adm-mobilebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 9, 16, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .adm-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .adm-mask.show {
    opacity: 1;
    pointer-events: auto;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }
  body {
    font-size: 14px;
  }
  .container,
  .nav-inner {
    padding: 0 14px;
  }
  .logo {
    font-size: 16px;
    gap: 8px;
  }
  .logo-mark {
    width: 28px;
    height: 28px;
  }
  .nav-right {
    gap: 6px;
  }
  .nav-inner {
    gap: 10px;
  }
  .pv-upload-btn {
    display: none !important;
  }
  .lang-switch {
    padding: 2px;
    gap: 0;
  }
  .lang-switch button {
    padding: 0 7px;
    height: 24px;
    font-size: 11px;
  }
  .nav-burger {
    width: 36px;
    height: 36px;
  }
  .nav-user-name,
  .nav-user .avatar {
    display: none;
  }
  .nav-user {
    padding: 4px;
  }
  .nav-user .avatar {
    display: grid;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tile.big {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1.15;
  }
  .hero {
    padding: 34px 0 20px;
  }
  .hero-actions .btn {
    flex: 1;
  }
  .toolbar {
    padding: 8px 0;
  }
  .searchbox {
    max-width: none;
    order: 3;
    flex-basis: 100%;
  }
  .modal {
    padding: 22px 18px;
    max-height: 90vh;
    border-radius: 20px;
  }
  .pay-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .pc-price {
    font-size: 26px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card b {
    font-size: 20px;
  }
  .adm-main {
    padding: 16px 14px 50px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .dropzone {
    min-height: 200px;
    padding: 26px 16px;
  }
  .lb-info span:first-child {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .plan-cards {
    grid-template-columns: 1fr;
  }
  .plan-list {
    max-height: 46vh;
    overflow: auto;
  }
  .task-grid {
    gap: 10px;
  }
  .task-card {
    padding: 14px 14px 12px;
  }
  .task-card h3 {
    font-size: 14px;
    margin-top: 8px;
  }
  .task-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tc-desc {
    -webkit-line-clamp: 1;
    min-height: 0;
    margin-bottom: 10px;
  }
  .tp-list {
    grid-template-columns: 1fr;
  }
  .vip-card {
    padding: 16px 16px 16px;
  }
  .vc-price b {
    font-size: 34px;
  }
}

/* 移动端菜单（全屏抽屉） */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(6, 6, 11, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 74px 22px 30px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-menu.show {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================================
   后台窄屏优化（任务表 / 状态标签 / 表头按钮）
   ========================================================== */
.panel { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.status-pill { white-space: nowrap; }
.cell-actions { flex-wrap: nowrap; }
@media (max-width: 760px) {
  table.data { min-width: 620px; }
  .adm-top { align-items: flex-start; gap: 10px; }
  .adm-top h1 { font-size: 19px; }
  .adm-top .sub { display: none; }
  .panel-body { padding: 12px 12px; }
}

/* ================= 代理中心 ================= */
.tag-green {
  color: #7dffc4;
  background: rgba(46, 230, 168, 0.12);
  border-color: rgba(46, 230, 168, 0.35);
}
.ag-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.2), rgba(0, 212, 255, 0.14));
  border: 1px solid var(--border-strong);
}
.ag-hero-label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ag-link {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
  color: #cfe9ff;
  margin-top: 6px;
}
.ag-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-hero-stats > div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.ag-hero-stats b { font-size: 17px; color: var(--text); font-weight: 800; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.ag-row:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .ag-hero { grid-template-columns: 1fr; padding: 20px; }
  .ag-grid { grid-template-columns: 1fr; }
}

/* 后台侧栏：4 语言按钮紧凑排列 */
.adm-side .lang-switch {
  height: auto;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
}
.adm-side .lang-switch button {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 7px;
  flex: 1 1 auto;
  white-space: nowrap;
}
/* 顶部标题区按钮不压缩、不裁切 */
.adm-top > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.adm-top .btn, .adm-top .mini-btn { flex: 0 0 auto; white-space: nowrap; }
/* 顶部导航 4 语言按钮 */
@media (max-width: 640px) {
  .nav .lang-switch { height: auto; flex-wrap: wrap; border-radius: 10px; }
  .nav .lang-switch button { height: 24px; font-size: 11px; padding: 0 7px; }
}

/* 后台侧栏语言按钮 2×2 排列 */
.adm-side .lang-switch button { flex: 1 1 calc(50% - 6px); }

/* 后台侧栏语言按钮：5 个 → 每行 3 个 */
.adm-side .lang-switch button { flex: 1 1 calc(33.33% - 6px); padding: 0 6px; }
/* 顶部导航 5 个语言按钮更紧凑 */
.nav .lang-switch button { padding: 0 9px; font-size: 12px; }
@media (max-width: 1180px) {
  .nav .lang-switch { height: auto; flex-wrap: wrap; max-width: 132px; border-radius: 12px; }
  .nav .lang-switch button { height: 24px; font-size: 11px; padding: 0 8px; }
}
