/* ==========================================================================
   智链互传 ZLHC · 主题样式（蓝白渐变 / 干净整洁）
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-2: #38bdf8;
  --primary-deep: #1d4ed8;
  --ink: #0f2033;
  --ink-2: #2c4563;
  --muted: #6c8199;
  --line: #e4edf9;
  --line-soft: #eef4fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 78, 0.04), 0 2px 8px rgba(16, 42, 78, 0.03);
  --shadow: 0 12px 34px rgba(31, 82, 160, 0.08), 0 2px 8px rgba(31, 82, 160, 0.04);
  --shadow-lift: 0 18px 44px rgba(31, 82, 160, 0.13), 0 4px 12px rgba(31, 82, 160, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 8% -8%, #e9f4ff 0%, rgba(233, 244, 255, 0) 62%),
    radial-gradient(760px 420px at 94% 2%, #e6f8ff 0%, rgba(230, 248, 255, 0) 58%),
    linear-gradient(180deg, var(--bg-top, #f6fbff) 0%, #eef6ff 42%, var(--bg-bottom, #dcebfd) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* 背景装饰 */
.bg-deco { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-a { width: 460px; height: 460px; left: -140px; top: -160px; background: #c7e3ff; }
.blob-b { width: 420px; height: 420px; right: -120px; top: -80px; background: #d8f0ff; }
.blob-c { width: 520px; height: 520px; left: 42%; bottom: -320px; background: #dbe9ff; opacity: 0.45; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 160, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
}

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(219, 232, 248, 0.9);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2563eb 0%, #3b8ef0 48%, #38bdf8 100%);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.brand-mark svg { width: 21px; height: 21px; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16.5px; letter-spacing: 0.02em; color: #12253c; }
.brand-text em { font-style: normal; font-size: 10.5px; letter-spacing: 0.16em; color: #8ba2bd; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: 6px; }
.nav-link {
  position: relative;
  font-size: 14px;
  color: #46607f;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link.is-active { color: var(--primary); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.header-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #5b7c9e;
  background: rgba(236, 246, 255, 0.9);
  border: 1px solid #dcecfb;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.header-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

/* ---------------- 主体 ---------------- */
.site-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 22px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.hero.center {
  grid-template-columns: minmax(0, 520px) minmax(0, 288px);
  justify-content: center;
  align-items: start;
}
.hero.center .side-notes { height: auto; }

/* ---------------- 卡片 ---------------- */
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(226, 238, 251, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 22px;
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 68%);
  pointer-events: none;
}

.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 15px;
  list-style: none;
  border-bottom: 1px solid var(--line-soft);
  counter-reset: step;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #90a4bd;
  white-space: nowrap;
}
.step i {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: #93a9c3;
  background: #f0f5fc;
  border: 1px solid #e3edf9;
  transition: all 0.2s ease;
}
.step.is-active { color: var(--primary); font-weight: 600; }
.step.is-active i {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}
.step.is-done i {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #34d399, #22c55e);
}
.step:not(:last-child)::after {
  content: "";
  width: 34px;
  height: 1px;
  margin-left: 3px;
  background: linear-gradient(90deg, #e3edf9, #eef5fd);
}

.panel-state { animation: fade-up 0.28s ease both; }
.panel-state[hidden] { display: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 拖拽区 ---------------- */
.dropzone {
  border: 1.5px dashed #cfe1f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f4faff);
  padding: 34px 20px 32px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: #9fc6f4;
  background: linear-gradient(180deg, #fdfeff, #f1f8ff);
}
.dropzone.is-drag {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f5faff, #eaf4ff);
  box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.07);
  transform: translateY(-1px);
}

.dz-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: radial-gradient(circle at 50% 30%, #fff, #eaf4ff);
  border: 1px solid #dceafb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.dz-icon svg { width: 22px; height: 22px; }

.dz-title { margin: 0 0 7px; font-size: 15px; color: #2b4462; font-weight: 500; }
.dz-sub { margin: 0 0 16px; font-size: 12.5px; color: #8ba2bd; line-height: 1.7; }
.dz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #3b8ef0 55%, #38bdf8 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.26);
}
.btn-primary:hover { box-shadow: 0 9px 22px rgba(37, 99, 235, 0.32); transform: translateY(-1px); }

.btn-ghost {
  color: #3a557a;
  background: #fff;
  border: 1px solid #dbe7f6;
  box-shadow: 0 1px 2px rgba(16, 42, 78, 0.03);
}
.btn-ghost:hover { color: var(--primary); border-color: #b9d5f5; background: #f8fbff; }

.btn-block { width: 100%; margin-top: 4px; height: 44px; font-size: 14.5px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-mini {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
  color: var(--primary);
  background: #eef5ff;
  border: 1px solid #dcebfb;
}
.btn-mini:hover { background: #e4f0ff; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: #7e93ae;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:hover { color: #ef4444; }

/* ---------------- 已选文件 ---------------- */
.files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.files-head strong { font-size: 14px; color: #223c5b; }
.files-head .muted { margin-left: 8px; font-size: 12.5px; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list.compact { max-height: 226px; overflow: auto; margin-top: 4px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px dashed #edf3fb;
}
.file-item:last-child { border-bottom: 0; }

.file-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f1f7ff;
  color: #5b8fd6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid #e6f0fc;
}
.file-icon.k-img { color: #7c3aed; background: #f6f1ff; border-color: #ece1ff; }
.file-icon.k-video { color: #db2777; background: #fff1f7; border-color: #ffe0ee; }
.file-icon.k-audio { color: #0d9488; background: #effcf9; border-color: #d7f5ef; }
.file-icon.k-doc { color: #2563eb; background: #eff6ff; border-color: #dfeafd; }
.file-icon.k-sheet { color: #16a34a; background: #f0fdf4; border-color: #dcf7e4; }
.file-icon.k-slide { color: #ea580c; background: #fff7ed; border-color: #ffead2; }
.file-icon.k-zip { color: #b45309; background: #fffbeb; border-color: #fdf0c9; }
.file-icon.k-code { color: #475569; background: #f4f7fb; border-color: #e8eef7; }

.file-main { min-width: 0; flex: 1; }
.file-name {
  display: block;
  font-size: 13px;
  color: #27405f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta { display: flex; gap: 8px; font-size: 11.5px; color: #93a7bf; margin-top: 2px; }
.file-meta .ok { color: #16a34a; }
.file-meta .warn { color: #d97706; }
.file-del {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #b7c7d9;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.file-del:hover { background: #fff1f2; color: #ef4444; }

.file-progress {
  flex: 0 0 74px;
  height: 4px;
  border-radius: 4px;
  background: #eef4fc;
  overflow: hidden;
}
.file-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.2s linear;
}

.panel-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}
.panel-actions.center { justify-content: center; }
.panel-tip { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: #849ab5; }
.panel-tip a { color: var(--primary); text-decoration: none; font-weight: 500; }
.panel-tip a:hover { text-decoration: underline; }

/* ---------------- 收件码 ---------------- */
.state-label { margin: 2px 0 14px; text-align: center; font-size: 13px; color: #7b90ab; }

.code-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-align: center;
  color: #14345c;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  background: linear-gradient(120deg, #18406f, #2563eb 60%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.state-hint { margin: 8px 0 4px; text-align: center; font-size: 12.5px; color: #8ba2bd; }
.state-hint b { color: #5d7897; font-weight: 600; }

.qr-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 16px;
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fcff, #f3f9ff);
  border: 1px solid #e8f1fc;
}
.qr-box {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: inset 0 0 0 1px #eaf2fc;
  display: grid;
  place-items: center;
}
.qr-box img, .qr-box canvas { width: 98px; height: 98px; display: block; image-rendering: pixelated; }
.qr-side { flex: 1; min-width: 0; }

.link-row { display: flex; gap: 6px; align-items: center; }
.link-row input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  color: #4a6584;
  background: #fff;
  border: 1px solid #e2edfa;
  border-radius: 8px;
  font-family: inherit;
}
.link-row input:focus { outline: none; border-color: #a9cbf3; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }

.wait-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  font-size: 13px;
  color: #5c7a9c;
  background: #f6fbff;
  border: 1px dashed #dcebfa;
  border-radius: 12px;
}
.spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid #d6e6f8;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.relay-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffdf5;
  border: 1px solid #f7ecc9;
  font-size: 12.5px;
  color: #8a6d2f;
  text-align: center;
}
.relay-hint p { margin: 0 0 10px; line-height: 1.7; }

/* ---------------- 进度 ---------------- */
.progress-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.progress-title { font-size: 13.5px; font-weight: 600; color: #22405f; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-nums { text-align: right; flex: 0 0 auto; }
.progress-nums strong { font-size: 19px; color: var(--primary); font-variant-numeric: tabular-nums; }
.progress-nums .muted { display: block; font-size: 11.5px; }

.progress {
  height: 8px;
  margin: 10px 0 4px;
  border-radius: 999px;
  background: #e9f1fb;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(16, 42, 78, 0.04);
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.18s linear;
  position: relative;
  overflow: hidden;
}
.progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  animation: sheen 1.4s linear infinite;
}
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line-soft);
}
.stat em { display: block; font-style: normal; font-size: 11.5px; color: #93a7bf; margin-bottom: 3px; }
.stat b { font-size: 13.5px; color: #2a4767; font-variant-numeric: tabular-nums; }

/* ---------------- 完成 ---------------- */
.done-icon {
  width: 52px; height: 52px;
  margin: 12px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #22c55e, #34d399);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.26);
}
.done-icon svg { width: 26px; height: 26px; }
.done-title { margin: 0 0 6px; text-align: center; font-size: 19px; color: #17324f; }
.done-title + .muted { text-align: center; display: block; }

/* ---------------- 特性卡片 ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}
.feature {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 238, 251, 0.95);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: #d7e7fa;
}
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(140deg, #eef6ff, #e2f2ff);
  border: 1px solid #e0edfc;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { margin: 13px 0 7px; font-size: 15.5px; color: #1e3a5c; letter-spacing: 0.01em; }
.feature p { margin: 0; font-size: 13px; line-height: 1.8; color: #6f849d; }

/* ---------------- 接收页 ---------------- */
.code-field { margin: 0 0 16px; }
.code-input {
  width: 100%;
  height: 62px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #16375e;
  background: linear-gradient(180deg, #fbfdff, #f4faff);
  border: 1.5px solid #dbe8f8;
  border-radius: 14px;
  font-family: inherit;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.code-input::placeholder { color: #c3d3e6; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-indent: 0; }
.code-input:focus {
  outline: none;
  border-color: #a8cbf4;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  background: #fff;
}

.recv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.recv-head strong { display: block; font-size: 14.5px; color: #1f3b5c; }
.recv-head .muted { font-size: 12.5px; }
.pill {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #dcebfb;
  border-radius: 999px;
  padding: 5px 11px;
}

.note-text {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #5a7797;
  background: #f7fbff;
  border: 1px dashed #e0eefb;
  border-radius: 10px;
  line-height: 1.7;
}

.relay-badge {
  display: inline-block;
  margin: 2px auto 12px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #a16207;
  background: #fffbeb;
  border: 1px solid #fdf0c9;
  border-radius: 999px;
}

.side-notes {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 238, 251, 0.9);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
}
.side-notes h3 { margin: 0 0 10px; font-size: 14px; color: #21405f; }
.side-notes ul { margin: 0; padding-left: 16px; }
.side-notes li { font-size: 12.5px; line-height: 1.85; color: #6f849d; margin-bottom: 6px; }

/* ---------------- 文档页 ---------------- */
.doc { max-width: 800px; margin: 0 auto; padding: 8px 0 20px; }
.doc h1 { font-size: 28px; margin: 0 0 12px; color: #12283f; letter-spacing: 0.01em; }
.doc-lead { font-size: 14.5px; line-height: 1.9; color: #5d7897; margin: 0 0 22px; }
.doc h2 {
  position: relative;
  font-size: 17px;
  color: #1b3653;
  margin: 30px 0 10px;
  padding-left: 12px;
}
.doc h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.doc-list { margin: 0; padding-left: 22px; }
.doc-list li { font-size: 13.5px; line-height: 2; color: #47617f; }
.doc code {
  font-size: 12.5px;
  background: #eef5ff;
  color: #2563eb;
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid #e7f0fb;
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: #24405f;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋ "; color: var(--primary); font-weight: 700; }
.faq details[open] summary::before { content: "－ "; }
.faq p { margin: 8px 0 2px; font-size: 13px; line-height: 1.85; color: #62798f; }
.doc-foot { margin-top: 26px; text-align: center; }
.error-code {
  font-size: 78px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #2563eb, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(216, 231, 248, 0.8);
  background: rgba(255, 255, 255, 0.42);
}
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.footer-line {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: #7f94ad;
  line-height: 1.9;
}
.footer-line a { color: #6d84a0; text-decoration: none; }
.footer-line a:hover { color: var(--primary); }
.footer-line .sep { margin: 0 8px; color: #c2d2e4; }

/* ---------------- 提示 ---------------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #21384f;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e5effb;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(24, 62, 110, 0.14);
  animation: toast-in 0.22s ease both;
}
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.toast.err::before { background: #ef4444; }
.toast.warn::before { background: #f59e0b; }
.toast.leaving { animation: toast-out 0.2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------------- 通用 ---------------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center-text { text-align: center; }
[hidden] { display: none !important; }

::selection { background: rgba(37, 99, 235, 0.16); }

*:focus-visible { outline: 2px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .hero, .hero.center { grid-template-columns: minmax(0, 1fr); }
  .hero.center { max-width: 560px; margin: 0 auto; }
  .side-notes { order: 3; }
  .header-badge { display: none; }
}

@media (max-width: 720px) {
  .site-main { padding: 22px 14px 40px; }
  .header-inner { padding: 0 14px; height: 60px; gap: 16px; }
  .nav { gap: 16px; margin-left: auto; }
  .nav-link { font-size: 13px; }
  .brand-text strong { font-size: 15px; }
  .brand-text em { display: none; }
  .panel { padding: 16px 16px 18px; border-radius: 16px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature { padding: 16px; }
  .code-value { font-size: 32px; }
  .qr-wrap { flex-direction: column; align-items: stretch; }
  .qr-box { margin: 0 auto; }
  .steps { gap: 6px; }
  .step span { display: none; }
  .step.is-active span { display: inline; }
  .step:not(:last-child)::after { width: 22px; }
  .stat-row { gap: 4px; }
  .doc h1 { font-size: 23px; }
  .code-input { height: 56px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- 赞赏码（首页右栏） ---------------- */
.hero.has-donate {
  grid-template-columns: minmax(316px, 410px) minmax(0, 1fr) 182px;
  gap: 24px;
}

.donate {
  align-self: start;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 238, 251, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.donate-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #21405f;
  letter-spacing: 0.02em;
}

.donate-shot {
  display: block;
  width: 100%;
  padding: 7px;
  line-height: 0;
  background: #fff;
  border: 1px solid #e9f1fb;
  border-radius: 12px;
}

.donate-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.donate-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: #6f849d;
}

.donate-hint { font-size: 10.5px; color: #a9bccf; letter-spacing: 0.02em; }

/* ---------------- 页脚收录入口 ---------------- */
.footer-seo {
  margin: 9px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #a6b8cb;
}
.footer-seo-label { color: #bccadb; }
.footer-seo a { color: #a2b4c8; text-decoration: none; transition: color 0.16s ease; }
.footer-seo a:hover { color: var(--primary); }

/* 文档段落（后台自定义的使用说明正文） */
.doc-p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.95; color: #47617f; }

/* ---------------- 首页站点简介（SEO 正文） ---------------- */
.site-intro {
  width: 100%;
  margin: 18px auto 0;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.05);
  text-align: left;
}
.site-intro h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3d5878;
}
.site-intro p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: #6f849d;
}
@media (max-width: 520px) {
  .site-intro { margin-top: 16px; padding: 15px 16px; border-radius: 14px; }
  .site-intro p { font-size: 12px; line-height: 1.9; }
}

/* ---------------- 赞赏码响应式 ---------------- */
@media (max-width: 1060px) {
  .hero.has-donate {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .hero.has-donate .donate {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 14px 16px;
    text-align: left;
  }
  .hero.has-donate .donate-title { display: none; }
  .hero.has-donate .donate-shot { width: 104px; flex: 0 0 104px; padding: 6px; }
  .hero.has-donate .donate-hint { display: none; }
  .hero.has-donate .donate-text { flex: 1; font-size: 12.5px; }
}

/* 自定义 Logo：去掉渐变底色，直接显示图片 */
.brand-mark.has-img {
  background: #fff;
  border: 1px solid #e3eefb;
  box-shadow: 0 4px 12px rgba(30, 78, 140, 0.12);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 窄屏页头：站点名变长时给导航留出呼吸空间 */
@media (max-width: 560px) {
  .header-inner { gap: 8px; padding: 0 12px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-text strong { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav { gap: 10px; margin-left: auto; flex: 0 0 auto; }
  .nav-link { font-size: 12.5px; }
  .nav-link[href="/help"] { display: none; }
  .header-right { gap: 6px; flex: 0 0 auto; }
  .user-guest { gap: 4px; }
  .user-login, .user-reg { padding: 6px 9px; font-size: 12px; }
  .brand-text strong {
    font-size: 14px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .nav { gap: 9px; }
  .nav-link { font-size: 12px; }
  .brand-text strong { max-width: 104px; font-size: 13.5px; }
}

/* ==========================================================================
   用户中心 · 登录注册 · 客服
   ========================================================================== */

/* ---------------- 头部用户区 ---------------- */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-right .header-badge { margin-left: 0; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2edfa;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: #23405f;
  max-width: 168px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.user-chip:hover { border-color: #bcd8f6; transform: translateY(-1px); }
.user-chip b {
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dot {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #3b82f6, #38bdf8);
}

.user-guest { display: inline-flex; align-items: center; gap: 6px; }
.user-login, .user-reg {
  font-size: 12.5px;
  text-decoration: none;
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
}
.user-login { color: #3d5b7c; border: 1px solid #e2edfa; background: #fff; }
.user-login:hover { border-color: #bcd8f6; color: var(--primary); }
.user-reg { color: #fff; background: linear-gradient(140deg, var(--primary), #3b8ef0); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24); }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 300px);
  gap: 30px;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 250px);
  padding: 34px 0 24px;
}

.auth-card {
  background: #fff;
  border: 1px solid #e6f0fb;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 30px 24px;
}

.auth-tabs { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }
.auth-tab {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  color: #a8b6c7;
  text-decoration: none;
  padding-bottom: 10px;
  transition: color 0.18s ease;
}
.auth-tab.is-on { color: #17324f; }
.auth-tab.is-on::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.auth-alert {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #b4462f;
  background: #fef3ef;
  border: 1px solid #fadfd5;
}

.auth-form { display: grid; gap: 4px; }

.auth-field { position: relative; display: block; }
.auth-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e6eef8;
  background: transparent;
  padding: 15px 2px;
  font-size: 14.5px;
  color: #16304c;
  outline: none;
  transition: border-color 0.18s ease;
}
.auth-field input::placeholder { color: #9aa9bb; }
.auth-field input:focus { border-bottom-color: var(--primary); }
.auth-field-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-field-cap { display: flex; align-items: center; gap: 12px; }
.auth-field-cap input { flex: 1; }
.auth-cap {
  width: 124px; height: 46px;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 124px;
  border: 1px solid #dbe9f7;
  background: #eef8f1;
}

.auth-submit {
  margin-top: 26px;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  justify-content: center;
}

.auth-cap-label {
  margin: 16px 0 -6px;
  font-size: 12px;
  color: #90a3b8;
}
.auth-hint {
  margin: -4px 0 6px;
  font-size: 12px;
  color: #1f7a4d;
  background: #eefaf2;
  border: 1px solid #d4f0dd;
  border-radius: 8px;
  padding: 6px 10px;
}

.auth-extra {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #7c90a7;
  text-align: center;
}
.auth-extra a { color: var(--primary); text-decoration: none; }
.auth-extra a:hover { text-decoration: underline; }

.auth-side {
  background: linear-gradient(160deg, #f4faff 0%, #eaf4ff 100%);
  border: 1px solid #e2eefb;
  border-radius: 20px;
  padding: 22px 22px 20px;
}
.auth-side h3 { margin: 0 0 14px; font-size: 14px; color: #2c4c6e; letter-spacing: 0.02em; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.auth-side li { display: grid; gap: 3px; }
.auth-side li b { font-size: 13px; color: #1d3d5f; font-weight: 600; }
.auth-side li span { font-size: 12px; line-height: 1.7; color: #7791ab; }
.auth-side-note { margin: 16px 0 0; font-size: 12px; color: #8ba0b6; line-height: 1.7; }

/* ---------------- 个人中心 ---------------- */
.me-page {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px 0 12px;
}

.me-side { position: sticky; top: 86px; display: grid; gap: 14px; }

.me-card {
  background: #fff;
  border: 1px solid #e6f0fb;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 18px;
  text-align: center;
}
.me-avatar {
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #3b82f6, #38bdf8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}
.me-name { margin: 0 0 6px; font-size: 17px; color: #12253c; }
.me-sub { margin: 0 0 8px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.me-uid {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #2c5c9c;
  background: #eef5fd;
  border-radius: 6px;
  padding: 2px 7px;
}
.me-since { margin: 0 0 14px; }
.me-card-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.me-logout { color: #94a6b8; font-size: 12.5px; text-decoration: none; }
.me-logout:hover { color: #d05a3f; }

.me-tabs {
  background: #fff;
  border: 1px solid #e6f0fb;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.me-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #47607d;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.me-tab:hover { background: #f4f9ff; color: var(--primary); }
.me-tab.is-on { background: #eef5ff; color: var(--primary); font-weight: 600; }
.me-tab-dot {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #3b82f6, #38bdf8);
}

/* 第一行「会员充值」：没开通时给点分量，避免用户忽略 */
.me-tab.is-hot { color: var(--primary); font-weight: 600; background: #f6faff; }
.me-tab-tag {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  color: #b45309;
  background: #fff7e6;
  border: 1px solid #fde3b0;
}
.me-tab-lock {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #a8b8c9;
  background: #f3f7fc;
  border: 1px solid #e7eff9;
}

/* 会员门槛提示条 */
.me-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff8ec, #fffdf7);
  border: 1px solid #fbe3b8;
  color: #8a5a10;
  box-shadow: var(--shadow-sm);
}
.me-lock-main b { display: block; font-size: 13.5px; color: #a15c07; margin-bottom: 3px; }
.me-lock-main p { margin: 0; font-size: 12.5px; line-height: 1.65; color: #9a7534; }
.me-lock-extra { margin-top: 4px !important; }
.me-lock-extra a { color: #b45309; text-decoration: underline; }
.me-lock .btn { flex: none; }

/* 只读预览：内容还在，但点不动、输入不了 */
.me-body { display: grid; gap: 14px; min-width: 0; }
.me-body.is-locked { opacity: 0.6; filter: saturate(0.55); pointer-events: none; user-select: none; }
.me-body.is-locked a, .me-body.is-locked button, .me-body.is-locked input,
.me-body.is-locked textarea, .me-body.is-locked select { cursor: not-allowed; }

.me-main { min-width: 0; display: grid; gap: 14px; }

.flash, .me-welcome {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.7;
  background: #eefaf2;
  border: 1px solid #d4f0dd;
  color: #247a4d;
}
.flash.is-err { background: #fef4f1; border-color: #f9ded5; color: #b4462f; }
.me-welcome { display: grid; gap: 3px; background: #eff6ff; border-color: #dbeafe; color: #22558f; }
.me-welcome span { font-size: 12.5px; color: #4b7099; }

.me-block {
  background: #fff;
  border: 1px solid #e6f0fb;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 22px;
}
.me-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.me-block-head h2 { margin: 0 0 4px; font-size: 16px; color: #16304c; }
.me-block-head p { margin: 0; }
.me-stats { display: flex; gap: 8px; }
.me-stats span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f6faff;
  border: 1px solid #e8f1fb;
  font-size: 11px;
  color: #7a90a8;
}
.me-stats b { font-size: 15px; color: #23496f; }

.me-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 26px 4px;
  color: #6f849d;
  font-size: 13px;
}
.me-empty p { margin: 0; }

.code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid #eaf2fc;
  background: #fbfdff;
}
.code-item-main { min-width: 0; display: grid; gap: 5px; }
.code-item-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.code-num { font-size: 19px; letter-spacing: 0.14em; color: #17395c; }
.code-meta { margin: 0; }
.code-note { margin: 0; font-size: 12px; color: #7b8fa6; }
.code-state {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.code-state.is-active { color: #1f7a4d; background: #eefaf2; border-color: #d6f0de; }
.code-state.is-used { color: #2c5c9c; background: #eef5fd; border-color: #d9e8f9; }
.code-state.is-expired { color: #7b8fa6; background: #f4f7fb; border-color: #e6edf6; }
.code-state.is-revoked { color: #b4462f; background: #fef4f1; border-color: #f9ded5; }
.code-item-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.link-btn.is-danger { color: #c0503a; }
.link-btn.is-danger:hover { color: #a53c28; }

/* 邀请 */
.invite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.invite-card {
  border: 1px solid #eaf2fc;
  border-radius: 14px;
  padding: 15px 16px;
  background: #fbfdff;
}
.invite-label { margin: 0 0 9px; font-size: 12.5px; color: #6d8299; letter-spacing: 0.02em; }
.invite-link { display: flex; gap: 8px; }
.invite-link input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dfeaf7;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: #2a4a6b;
  background: #fff;
}
.invite-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px dashed #cfe2f7;
  border-radius: 10px;
  background: #f4faff;
  font-size: 12.5px;
  color: #4a6b8a;
}
.invite-code-label { color: #7d93aa; }
.invite-code b { font-size: 14px; letter-spacing: 0.08em; color: #1f5d9e; }
.invite-code .link-btn { margin-left: auto; }
.invite-qr {
  width: 132px; height: 132px;
  margin: 14px auto 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8f1fb;
}
.invite-text {
  width: 100%;
  border: 1px solid #dfeaf7;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #33506f;
  background: #fff;
  resize: vertical;
}
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.invite-list { margin-top: 18px; }
.invite-list h3 { margin: 0 0 10px; font-size: 13px; color: #34536f; }
.invite-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.invite-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #2c4563; }
.invite-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; color: #fff;
  background: linear-gradient(140deg, #7ba9e0, #9dc7ef);
}
.invite-list li .muted { margin-left: auto; }

/* 账号设置 */
.me-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 20px; }
.me-kv div { background: #fbfdff; border: 1px solid #eaf2fc; border-radius: 12px; padding: 11px 13px; }
.me-kv dt { font-size: 11.5px; color: #8ba0b6; margin-bottom: 4px; }
.me-kv dd { margin: 0; font-size: 13.5px; color: #264667; }

.me-form { display: grid; gap: 14px; max-width: 520px; }
.me-form .field { display: grid; gap: 6px; }
.me-form .field > span { font-size: 12.5px; color: #5b7793; }
.me-form .field input {
  border: 1px solid #dfeaf7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #1d3a58;
  background: #fff;
  outline: none;
}
.me-form .field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.me-form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------- 客服 ---------------- */
.support-page { padding: 26px 0 12px; }
.support-page-head { margin-bottom: 16px; }
.support-page-head h1 { margin: 0 0 6px; font-size: 22px; color: #12253c; }
.support-page-head p { margin: 0; font-size: 13px; }

.svc-panel {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.svc-contact, .svc-chat {
  background: #fff;
  border: 1px solid #e6f0fb;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}
.svc-contact-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.svc-contact-head h2 { margin: 0; font-size: 15px; color: #16304c; }
.svc-time { font-size: 11.5px; color: #8ba0b6; }
.svc-intro { margin: 10px 0 14px; font-size: 12.5px; line-height: 1.9; color: #6f849d; }
.svc-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-ways li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #2c4563; flex-wrap: wrap; }
.svc-way-label {
  flex: 0 0 52px;
  font-size: 11.5px;
  color: #8ba0b6;
}
.svc-ways .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #1d3d5f; }
.svc-ways a { text-decoration: none; }
.svc-ways a:hover { text-decoration: underline; }
.svc-qr-row { align-items: flex-start; }
.svc-qr {
  width: 116px; height: 116px;
  border-radius: 10px;
  border: 1px solid #e8f1fb;
  padding: 6px;
  background: #fff;
}
.svc-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }

.svc-chat { display: grid; gap: 12px; }
.svc-chat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: #23405f; font-weight: 600; }
.svc-chat-head .muted { font-weight: 400; }
.svc-log {
  max-height: 380px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 4px 2px;
}
.svc-msg { display: grid; gap: 4px; justify-items: start; max-width: 86%; }
.svc-msg.is-admin { justify-items: end; margin-left: auto; }
.svc-msg-who { font-size: 11px; color: #93a6ba; }
.svc-bubble {
  font-size: 13px;
  line-height: 1.75;
  color: #2a4560;
  background: #f4f9ff;
  border: 1px solid #e7f0fb;
  border-radius: 12px;
  padding: 9px 12px;
  word-break: break-word;
}
.svc-msg.is-admin .svc-bubble {
  background: linear-gradient(140deg, #2f76e0, #3b8ef0);
  border-color: transparent;
  color: #fff;
}
.svc-msg-time { font-size: 10.5px; color: #a4b4c6; }
.svc-empty { padding: 20px 2px; font-size: 13px; color: #7b8fa6; line-height: 1.8; }
.svc-empty p { margin: 0 0 8px; }
.svc-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-form { display: grid; gap: 8px; }
.svc-form textarea {
  width: 100%;
  border: 1px solid #dfeaf7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.75;
  color: #21405f;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.svc-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.svc-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .auth-wrap { grid-template-columns: minmax(0, 420px); min-height: 0; padding: 24px 0 8px; }
  .auth-side { display: none; }
  .me-page { grid-template-columns: minmax(0, 1fr); }
  .me-side { position: static; }
  .me-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    text-align: left;
    padding: 14px 16px;
  }
  .me-avatar { margin: 0; width: 48px; height: 48px; font-size: 19px; grid-row: span 3; }
  .me-name { font-size: 15px; margin: 0 0 3px; grid-column: 2; }
  .me-sub { margin: 0 0 3px; justify-content: flex-start; grid-column: 2; }
  .me-since { margin: 0; grid-column: 2; }
  .me-card-actions { grid-column: 1 / -1; margin: 10px 0 0; justify-content: flex-start; }
  .me-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .me-tab { white-space: nowrap; }
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .header-right .header-badge { display: none; }
  .user-chip b { display: none; }
  .user-chip { padding: 4px; }
  .user-guest .user-login { padding: 6px 10px; }
  .user-reg { padding: 6px 11px; }
}

@media (max-width: 520px) {
  .auth-wrap { padding: 20px 0 6px; }
  .auth-card { padding: 22px 18px 20px; border-radius: 16px; }
  .auth-tab { font-size: 18px; }
  .me-page { padding: 16px 0 8px; gap: 14px; }
  .me-block { padding: 16px 15px 18px; border-radius: 16px; }
  .me-card { flex-wrap: wrap; }
  .me-card-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .code-item { padding: 12px; }
  .code-num { font-size: 17px; }
  .code-item-actions { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .svc-contact, .svc-chat { padding: 15px 14px; border-radius: 16px; }
  .svc-msg { max-width: 94%; }
  .invite-qr { width: 118px; height: 118px; }
}

/* ================================================================== */
/* 会员充值                                                            */
/* ================================================================== */

.me-vip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  vertical-align: middle;
}

.me-vip-line {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.me-vip-line.is-link { color: var(--primary); text-decoration: none; display: inline-block; }
.me-vip-line.is-link:hover { text-decoration: underline; }

.vip-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff, #fff);
  margin-bottom: 18px;
}
.vip-status.is-on {
  border-color: #fcd9a4;
  background: linear-gradient(135deg, #fff9ed, #fffdf8);
}
.vip-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-deep);
  background: #e8f1ff;
}
.vip-status.is-on .vip-tag { color: #b45309; background: #fdecc8; }
.vip-until { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.vip-warn { font-size: 12px; color: #b45309; background: #fff4e0; padding: 6px 10px; border-radius: 10px; }

.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 8px;
}
.vip-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.vip-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.vip-plan input { position: absolute; opacity: 0; pointer-events: none; }
.vip-plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.vip-plan.is-hot { border-color: #fcd9a4; }
.vip-plan-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.vip-plan-price { font-size: 24px; font-weight: 700; color: var(--primary-deep); line-height: 1.2; }
.vip-plan-meta { font-size: 12px; color: var(--muted); }
.vip-plan-intro { font-size: 12px; color: var(--muted); line-height: 1.6; }
.vip-plan-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.vip-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.vip-channels-label { font-size: 13px; color: var(--muted); }
.vip-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}
.vip-channel input { accent-color: var(--primary); }
.vip-channel:has(input:checked) { border-color: var(--primary); color: var(--primary-deep); background: #f2f7ff; }
/* 通道开着但没上传收款码：灰掉，点了也没用，别让人下完单发现没码可扫 */
.vip-channel.is-off { opacity: .55; cursor: not-allowed; background: #f8fafc; border-style: dashed; }
.vip-channel.is-off input { accent-color: #94a3b8; }

.vip-submit { margin: 18px 0 0; min-width: 160px; }
.vip-submit[disabled] { opacity: 0.65; cursor: default; }
.vip-renew-tip {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #7a4b12;
  background: #fff8ec;
  border: 1px solid #ffe3b8;
  border-radius: 10px;
}
.vip-renew-tip b { color: #b45309; }
.vip-renew-tip.is-wait { margin: 12px 0 0; color: #6b7280; background: #f8fafc; border-color: #e5edf6; }
.vip-sub-title { margin: 26px 0 10px; font-size: 15px; color: var(--ink); }

.pay-box {
  border: 1.5px solid #c7dcff;
  border-radius: 16px;
  background: linear-gradient(160deg, #f6faff, #fff);
  padding: 16px;
  margin: 0 0 20px;
}
.pay-box-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; }
.pay-box-head h3 { margin: 0 0 4px; font-size: 14px; color: var(--ink); word-break: break-all; }
.pay-amount { text-align: right; }
.pay-amount em { display: block; font-size: 12px; font-style: normal; color: var(--muted); }
.pay-amount b { font-size: 26px; color: #e11d48; line-height: 1.2; }
.pay-body { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.pay-qr img { width: 188px; height: 188px; border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.pay-qr-empty {
  width: 188px; height: 188px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px;
  border: 1px dashed #c7d7ec; border-radius: 12px; color: var(--muted); font-size: 13px;
}
.pay-tips { flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.pay-tips p { margin: 0 0 8px; line-height: 1.7; }
.pay-claim { margin: 12px 0 10px; }
.pay-waiting {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4e0;
  color: #b45309;
  font-size: 13px;
}

/* 订单状态徽标 */
.order-state {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  background: #eef4fc;
  color: var(--muted);
}
.order-state.is-wait { background: #eef4fc; color: #3b6ea5; }
.order-state.is-check { background: #fff4e0; color: #b45309; }
.order-state.is-paid { background: #e7f8ee; color: #0f7b46; }
.order-state.is-closed { background: #f1f3f6; color: #7a8798; }
.order-state.is-refund { background: #fdeaea; color: #b3261e; }

/* 前台表格 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th,
.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.data-table th { font-weight: 600; color: var(--muted); font-size: 12px; background: #f8fbff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #f9fcff; }

@media (max-width: 720px) {
  .vip-plans { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .vip-plan-price { font-size: 21px; }
  .pay-body { gap: 12px; }
  .pay-qr img, .pay-qr-empty { width: 150px; height: 150px; }
  .pay-amount b { font-size: 22px; }
}

.vip-form { margin: 0; }

/* 个人中心主区：防止表格等内容把整页撑宽（移动端横向溢出） */
.me-main > * { min-width: 0; }
.me-block { min-width: 0; }
.table-wrap { max-width: 100%; }

@media (max-width: 560px) {
  .vip-plans { grid-template-columns: minmax(0, 1fr); }
  .vip-plan { padding: 14px 12px; }
  .data-table th, .data-table td { white-space: normal; padding: 8px 10px; font-size: 12px; }
  .vip-status { padding: 12px; }
  .pay-box { padding: 13px; }
  .pay-amount { text-align: left; }
}

/* =========================================================
   影视模块（会员专属）
   深色片库风格，独立于站点浅色主题，避免海报被浅底冲淡
   ========================================================= */
.vw-page{
  --vw-bg:#0b1220;
  --vw-bg2:#111c30;
  --vw-card:#16233a;
  --vw-line:rgba(148,163,184,.16);
  --vw-text:#e2e8f0;
  --vw-sub:#94a3b8;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(900px 380px at 92% 0%, rgba(14,165,233,.18), transparent 55%),
    var(--vw-bg);
  border:1px solid var(--vw-line);
  border-radius:18px;
  padding:18px 18px 22px;
  color:var(--vw-text);
  box-shadow:0 24px 60px -30px rgba(2,6,23,.75);
}
.vw-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.vw-brand{margin:0 0 2px;font-size:11px;letter-spacing:1px;color:var(--vw-sub);text-transform:uppercase}
.vw-clock{font-size:12px;color:var(--vw-sub);font-variant-numeric:tabular-nums;white-space:nowrap}
.vw-title{margin:0;font-size:18px;font-weight:800;letter-spacing:.5px;display:flex;align-items:center;gap:8px}
.vw-title-dot{width:8px;height:8px;border-radius:50%;background:#38bdf8;box-shadow:0 0 12px #38bdf8}
.vw-sub{margin:4px 0 0;font-size:12px;color:var(--vw-sub)}
.vw-head-side{display:flex;align-items:center;gap:10px}
.vw-lines{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--vw-sub)}
.vw-lines select{
  background:var(--vw-card);color:var(--vw-text);border:1px solid var(--vw-line);
  border-radius:8px;padding:4px 8px;font-size:12px;outline:none
}
.vw-badge{font-size:11px;padding:4px 9px;border-radius:999px;border:1px solid var(--vw-line);color:var(--vw-sub)}
.vw-badge.is-on{color:#86efac;border-color:rgba(34,197,94,.4);background:rgba(34,197,94,.1)}
.vw-notice{margin:8px 0 0;font-size:12px;color:#fbbf24;background:rgba(245,158,11,.09);border:1px solid rgba(245,158,11,.2);border-radius:10px;padding:8px 10px}

/* 分类 pills */
.vw-nav{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 10px;align-items:center}
.vw-pill{
  display:inline-flex;align-items:center;gap:4px;padding:7px 14px;border-radius:999px;
  font-size:13px;color:#cbd5e1;text-decoration:none;background:rgba(148,163,184,.08);
  border:1px solid transparent;transition:.16s;cursor:pointer;white-space:nowrap
}
.vw-pill:hover{background:rgba(148,163,184,.16);color:#fff}
.vw-pill.is-on{background:linear-gradient(140deg,rgba(37,99,235,.9),rgba(56,189,248,.85));color:#fff;font-weight:600;box-shadow:0 8px 20px -10px rgba(56,189,248,.9)}
.vw-pill-more{position:relative}
.vw-more{
  position:absolute;top:120%;left:0;z-index:9;display:none;flex-direction:column;gap:2px;
  min-width:132px;padding:6px;border-radius:12px;background:#0f1a2c;border:1px solid var(--vw-line);
  box-shadow:0 20px 40px -20px rgba(0,0,0,.9)
}
.vw-pill-more:hover .vw-more,.vw-pill-more:focus .vw-more{display:flex}
.vw-more a{color:#cbd5e1;text-decoration:none;font-size:12.5px;padding:6px 10px;border-radius:8px}
.vw-more a:hover{background:rgba(148,163,184,.16);color:#fff}

/* 快捷按钮 */
.vw-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.vw-tool{
  display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:12px;
  background:var(--vw-card);border:1px solid var(--vw-line);color:var(--vw-text);
  font-size:13px;cursor:pointer;transition:.16s
}
.vw-tool:hover{border-color:rgba(56,189,248,.55);transform:translateY(-1px)}
.vw-tool i{font-style:normal;font-size:14px;opacity:.85}
.vw-search{display:none;align-items:center;gap:8px;margin-left:auto}
.vw-search input{
  width:230px;padding:9px 12px;border-radius:12px;border:1px solid var(--vw-line);
  background:var(--vw-bg2);color:var(--vw-text);font-size:13px;outline:none
}
.vw-search input:focus{border-color:rgba(56,189,248,.6)}

/* 历史 / 收藏面板 */
.vw-panel{background:var(--vw-bg2);border:1px solid var(--vw-line);border-radius:14px;padding:12px;margin-bottom:14px}
.vw-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px}
.vw-mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.vw-mini{position:relative;display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--vw-text)}
.vw-mini img,.vw-mini .vw-poster-ph{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:10px;background:#1e293b;display:grid;place-items:center;font-size:13px;color:#94a3b8}
.vw-mini b{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vw-mini-del{position:absolute;top:4px;right:4px;width:18px;height:18px;border-radius:50%;background:rgba(15,23,42,.85);color:#e2e8f0;font-style:normal;display:grid;place-items:center;font-size:12px;cursor:pointer}

/* 海报墙 */
.vw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:14px}
.vw-card{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--vw-text);transition:.18s}
.vw-card:hover{transform:translateY(-3px)}
.vw-poster{position:relative;display:block;aspect-ratio:2/3;border-radius:12px;overflow:hidden;background:linear-gradient(160deg,#1e293b,#0f172a)}
.vw-poster img{width:100%;height:100%;object-fit:cover;display:block}
.vw-poster-ph{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;color:#475569;font-weight:700}
.vw-remark{
  position:absolute;left:0;right:0;bottom:0;padding:14px 8px 6px;font-style:normal;font-size:11px;
  color:#e2e8f0;background:linear-gradient(transparent,rgba(2,6,23,.9));white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.vw-star{
  position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;font-style:normal;font-size:13px;color:#cbd5e1;
  background:rgba(2,6,23,.55);opacity:0;transition:.16s;cursor:pointer
}
.vw-card:hover .vw-star{opacity:1}
.vw-star.is-on{opacity:1;color:#fbbf24}
.vw-name{font-size:13px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.vw-meta{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--vw-sub);min-height:14px}
.vw-score{color:#fbbf24;font-weight:700}
.vw-meta em{font-style:normal;opacity:.8}
.vw-result{margin:0 0 12px;font-size:12px;color:var(--vw-sub)}
.vw-filter-tip{margin:0 0 12px;font-size:12px;color:#fbbf24;background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.2);border-radius:10px;padding:8px 10px}
.vw-broken{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:22px;background:rgba(2,6,23,.9);z-index:3}
.vw-broken b{font-size:16px;color:#fff}
.vw-broken p{margin:0;font-size:12.5px;color:#cbd5f5;max-width:420px;line-height:1.6}
.vw-broken-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:4px}
.vw-broken-acts a,.vw-broken-acts button{font-size:12.5px;padding:7px 12px;border-radius:9px;border:1px solid rgba(148,163,184,.35);background:rgba(148,163,184,.12);color:#e2e8f0;cursor:pointer;text-decoration:none}
.vw-broken-acts a:hover,.vw-broken-acts button:hover{background:rgba(148,163,184,.22)}
.vw-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px;font-size:13px;color:var(--vw-sub)}
.vw-pager a{color:#93c5fd;text-decoration:none;padding:6px 12px;border-radius:8px;background:rgba(59,130,246,.12)}
.vw-pager a:hover{background:rgba(59,130,246,.24)}
.vw-empty{margin:26px 0;padding:26px;border-radius:14px;background:var(--vw-bg2);border:1px dashed var(--vw-line);text-align:center;color:var(--vw-sub);font-size:13px}
.vw-empty b{display:block;color:var(--vw-text);font-size:15px;margin-bottom:6px}
.vw-lock{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;padding:12px 14px;border-radius:12px;background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.24);font-size:13px;color:#fde68a}
.vw-lock b{color:#fbbf24}
.vw-lock p{margin:4px 0 0;color:#d6c9a8;font-size:12px}

/* 播放页 */
.vw-page-play{padding-top:14px}
.vw-play-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.vw-back{color:#93c5fd;text-decoration:none;font-size:13px;white-space:nowrap}
.vw-play-title{margin:0;font-size:16px;font-weight:700;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vw-star-btn{
  background:rgba(148,163,184,.12);border:1px solid var(--vw-line);color:#cbd5e1;
  padding:6px 12px;border-radius:999px;font-size:12px;cursor:pointer
}
.vw-star-btn.is-on{color:#fbbf24;border-color:rgba(251,191,36,.4);background:rgba(251,191,36,.1)}
.vw-watch{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.vw-player-wrap{position:relative;border-radius:14px;overflow:hidden;background:#000;aspect-ratio:16/9;border:1px solid var(--vw-line)}
.vw-player{width:100%;height:100%;display:block;background:#000}
.vw-player-lock{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:20px;background:radial-gradient(circle at 50% 40%,rgba(37,99,235,.22),rgba(2,6,23,.94))}
.vw-player-lock b{font-size:16px}
.vw-player-lock p{margin:0;font-size:12.5px;color:var(--vw-sub)}
.vw-play-tip{margin:8px 0 0;font-size:12px;color:#fbbf24}
.vw-info{display:flex;gap:12px;background:var(--vw-bg2);border:1px solid var(--vw-line);border-radius:14px;padding:12px}
.vw-info-poster{width:92px;flex:none}
.vw-info-poster img{width:100%;border-radius:10px;aspect-ratio:2/3;object-fit:cover}
.vw-info-main{min-width:0}
.vw-info-main h2{margin:0 0 6px;font-size:15px;display:flex;align-items:baseline;gap:8px}
.vw-info-meta{margin:0 0 8px;font-size:12px;color:var(--vw-sub)}
.vw-info-row{margin:2px 0;font-size:12px;color:#cbd5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vw-info-row em{font-style:normal;color:var(--vw-sub);margin-right:6px}
.vw-info-desc{margin:8px 0 0;font-size:12px;line-height:1.6;color:#aebccb;max-height:96px;overflow:auto}
.vw-eps{margin-top:16px;background:var(--vw-bg2);border:1px solid var(--vw-line);border-radius:14px;padding:12px 14px}
.vw-eps-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.vw-eps-label{font-size:12px;color:var(--vw-sub);margin-right:6px}
.vw-src-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.vw-eps-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px;max-height:300px;overflow:auto}
.vw-ep{
  padding:8px 6px;border-radius:9px;background:rgba(148,163,184,.1);color:#cbd5e1;
  text-decoration:none;font-size:12px;text-align:center;border:1px solid transparent;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.vw-ep:hover{background:rgba(148,163,184,.2);color:#fff}
.vw-ep.is-on{background:rgba(37,99,235,.85);color:#fff;border-color:rgba(56,189,248,.5)}

@media (max-width: 820px){
  .vw-page{padding:14px;border-radius:14px}
  .vw-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
  .vw-watch{grid-template-columns:1fr}
  .vw-info-poster{width:76px}
  .vw-search{display:flex;width:100%;margin:0}
  .vw-search input{flex:1;width:auto}
  .vw-tool span{display:none}
  .vw-tool{padding:9px 12px}
}
@media (min-width: 821px){
  .vw-search{display:flex}
}

/* 个人中心 · 影视入口 */
.me-tab-tag.is-video { background: rgba(56,189,248,.14); color: #0ea5e9; }
.me-video-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(56,189,248,.08));
  border: 1px solid rgba(56,189,248,.22);
}
.me-video-main b { font-size: 15px; }
.me-video-main p { margin: 6px 0 0; font-size: 12.5px; color: #5b7a99; }
.me-video-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-video-recent h3 { margin: 4px 0 10px; font-size: 13px; color: #5b7a99; font-weight: 600; }
.me-video-recent .vw-mini b { color: #16324f; font-size: 12px; }
.me-video-recent .vw-mini .vw-poster-ph { background: #eef5fd; color: #7b95b0; }
