/* 客户自助页 /customer/{卡密} —— 对齐参考系统（深色玻璃拟态） */
.cv-page, .cv-page * { box-sizing: border-box; }

.cv-page {
  background: #0b1020;   /* 老浏览器兜底（不支持渐变时至少是深色） */
  background:
    radial-gradient(880px 520px at 8% -4%, #409eff4d, #0000 62%),
    radial-gradient(760px 480px at 96% 100%, #7c5cff42, #0000 60%),
    linear-gradient(158deg, #070b16 0%, #121a33 48%, #070a15 100%);
  min-height: 100vh;
  padding: 16px 16px 36px;
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  position: relative;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 背景装饰 ---------------- */
.cv-bg { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.cv-grid {
  pointer-events: none;
  background-image: linear-gradient(#ffffff0d 1px, #0000 1px), linear-gradient(90deg, #ffffff0d 1px, #0000 1px);
  background-size: 48px 48px;
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, #0000 70%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, #0000 70%);
}
.cv-orb {
  filter: blur(90px); pointer-events: none; border-radius: 50%;
  animation: cv-drift 12s ease-in-out infinite alternate;
  position: absolute;
}
.cv-orb-a { opacity: .46; background: radial-gradient(circle, #2f7bff, #0000 70%); width: 380px; height: 380px; top: -120px; left: -80px; }
.cv-orb-b { opacity: .34; background: radial-gradient(circle, #7c5cff, #0000 70%); width: 420px; height: 420px; animation-delay: -5s; top: 120px; right: -140px; }
.cv-orb-c { opacity: .2; background: radial-gradient(circle, #00c8ff, #0000 70%); width: 300px; height: 300px; animation-duration: 15s; animation-delay: -8s; bottom: -120px; left: 40%; }
@keyframes cv-drift { 0% { transform: translate(0) scale(1); } to { transform: translate(26px, -20px) scale(1.06); } }

/* ---------------- 容器 ---------------- */
.cv-shell { width: 100%; min-width: 0; max-width: 620px; margin: 0 auto; position: relative; }

/* ---------------- 顶部标题 ---------------- */
/* 网站标题已挪进 VIP 卡（.vc-brand / .vc-title），顶栏整体删掉了。
   这里只保留 logo 方块的样式，尺寸按"卡片里的小图标"来（34 → 26）。 */
.cv-brand { align-items: center; gap: 9px; min-width: 0; display: flex; }
.cv-brand-mark {
  color: #fff; background: linear-gradient(135deg, #2a6ff0, #00b6ff);
  border-radius: 8px; flex: none; justify-content: center; align-items: center;
  width: 26px; height: 26px; display: flex; box-shadow: 0 5px 14px #0084ff59;
}
.cv-brand-text { flex-direction: column; min-width: 0; display: flex; }
.cv-brand-text b {
  color: #fff; letter-spacing: .6px; font-size: 16px; font-weight: 600; line-height: 1.3;
  text-shadow: 0 2px 10px #00000045;
}

.cv-panel {
  background: #fffffff7; border-radius: 16px; padding: 13px 18px 12px;
  box-shadow: 0 30px 70px -28px #0009;
  color: #16233c;
}
.cv-panel + .cv-panel, .cv-vipcard + .cv-panel { margin-top: 9px; }

.cv-primary-btn {
  letter-spacing: 2px;
  background: linear-gradient(135deg, #2a6ff0 0%, #1a9bff 55%, #00c2ff 100%);
  border: none; border-radius: 11px; width: 100%; height: 40px; margin-top: 10px;
  font-size: 14.5px; font-weight: 600; color: #fff; font-family: inherit; cursor: pointer;
  transition: transform .22s, box-shadow .22s, filter .22s;
  box-shadow: 0 10px 24px #1a7aff4d;
}
.cv-primary-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 30px #1a7aff66; }
.cv-primary-btn:disabled { color: #9aa3b2; box-shadow: none; background: #dfe4ec; cursor: not-allowed; }

/* ---------------- 卡密卡片（VIP 卡） ---------------- */
.cv-vipcard {
  background: linear-gradient(140deg, #17203f 0%, #24305e 46%, #3b2c63 100%);
  border: 1px solid #ffffff1f; border-radius: 16px; padding: 9px 14px 8px;
  position: relative; overflow: hidden;
  box-shadow: 0 22px 46px -22px #000000b8, inset 0 0 0 1px #f6d9a01a;
}
.vc-sheen {
  pointer-events: none;
  background: linear-gradient(100deg, #0000 38%, #ffffff21 47%, #0000 56%);
  animation: vc-sheen 7s ease-in-out infinite;
  position: absolute; inset: -60% -30%;
}
@keyframes vc-sheen { 0%, 62% { transform: translate(-42%); } to { transform: translate(42%); } }
.vc-ring { pointer-events: none; border: 1px solid #ffffff17; border-radius: 50%; position: absolute; }
.vc-ring-1 { width: 210px; height: 210px; top: -100px; right: -80px; }
.vc-ring-2 { border-color: #f6d9a024; width: 150px; height: 150px; top: -92px; right: 16px; }

.vc-top { justify-content: space-between; align-items: center; gap: 10px; display: flex; position: relative; }
/* 卡片里的网站标题（原来是顶上独立的横栏，现在合并到这一行） */
.vc-brand { align-items: center; gap: 8px; min-width: 0; display: flex; }
.vc-title {
  color: #fff; letter-spacing: .4px; font-size: 14px; font-weight: 600; line-height: 1.3;
  text-shadow: 0 2px 10px #00000045;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vc-state {
  color: #0f1a2e; background: linear-gradient(135deg, #f7dfa8, #e6b968);
  border-radius: 999px; flex: none; padding: 3px 10px; font-size: 11.5px;
  box-shadow: 0 3px 10px #e6b96852;
}
.vc-state.is-dead { color: #ffd9d9; box-shadow: none; background: #f56c6c3d; }
.vc-state.is-idle { color: #d8e6ff; box-shadow: none; background: #78a0ff3d; }

.vc-code {
  letter-spacing: 3.4px; font-variant-numeric: tabular-nums; color: #f6d9a0;
  text-shadow: 0 2px 18px #f6d9a047; -webkit-user-select: all; user-select: all;
  word-break: break-all; margin: 4px 0 0; font-size: 17.5px; font-weight: 600; position: relative;
  line-height: 1.22;
}

/* 统计区：用栅格，列宽可收缩 —— 永远按整行排，不会出现「2 + 1」那种难看的换行 */
.vc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  border-top: 1px solid #ffffff1a;
  margin-top: 7px; padding-top: 8px;
  position: relative;
}
.vc-stat { flex-direction: column; gap: 2px; min-width: 0; display: flex; }
/* 列间竖线 */
.vc-stat + .vc-stat { border-left: 1px solid #ffffff14; padding-left: 16px; }

/* 标签（到期时间 / 剩余转存次数 / 单次大小上限）—— 放大提亮，看得更清楚 */
.vc-stat span {
  letter-spacing: .5px; color: #ffffffb8; font-size: 12px; font-weight: 500; line-height: 1.45;
  text-shadow: 0 1px 2px #00000038;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vc-stat b { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; }
.vc-stat i { color: #f8dfa8; font-size: 11.5px; font-style: normal; line-height: 1.4; }

/* ---------------- 步骤 ---------------- */
.cv-steps { counter-reset: step; flex-direction: column; gap: 5px; margin: 0 0 9px; padding: 0; list-style: none; display: flex; }
.cv-steps li { color: #5b667c; padding-left: 26px; font-size: 12.5px; line-height: 1.5; position: relative; }
.cv-steps li:before {
  counter-increment: step; content: counter(step); color: #fff;
  background: linear-gradient(135deg, #2a6ff0, #00b6ff);
  border-radius: 50%; justify-content: center; align-items: center;
  width: 20px; height: 20px; font-size: 11px; font-weight: 600; display: flex;
  position: absolute; top: 0; left: 0;
}

.cv-result { border-radius: 10px; margin-top: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 1.65; }
.cv-result.ok { background: #f0f9eb; border: 1px solid #c2e7b0; color: #4e8a35; }
.cv-result.err { background: #fef0f0; border: 1px solid #fbc4c4; color: #c45656; }
.cv-result.warn { background: #fdf6ec; border: 1px solid #f5dab1; color: #b88230; }

/* ================= 转存记录（刷新后还在）—— 和「我的文件」同一套深色卡片 ================= */
.hs-card { margin-top: 10px; }

.hs-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; cursor: pointer; user-select: none; }
.hs-head.closed { margin-bottom: 0; }
.hs-title { color: #fff; font-size: 15px; font-weight: 600; }
.hs-count { color: #ffffff85; font-size: 12.5px; }

/* 整个列表的折叠按钮 */
.hs-toggle {
  margin-left: auto; flex: none;
  background: #ffffff14; border: 1px solid #ffffff2b; border-radius: 8px;
  padding: 5px 12px; font-size: 12.5px; color: #cbd6ea; font-family: inherit; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.hs-toggle:hover { background: #ffffff24; border-color: #ffffff47; color: #fff; }

.hs-refresh {
  flex: none;
  background: #ffffff14; border: 1px solid #ffffff2b; border-radius: 8px;
  padding: 5px 11px; font-size: 12.5px; color: #cbd6ea; font-family: inherit; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.hs-refresh:hover { background: #ffffff24; border-color: #ffffff47; color: #fff; }

.hs-list { display: flex; flex-direction: column; gap: 8px; }

.hs-item {
  border: 1px solid #ffffff1a; border-radius: 12px;
  background: #ffffff0a; overflow: hidden;
  transition: background .18s, border-color .18s;
}
.hs-item.open { background: #ffffff12; border-color: #ffffff30; }

.hs-row { display: flex; align-items: center; gap: 9px; padding: 10px 12px; cursor: pointer; user-select: none; }
.hs-row:hover { background: #ffffff0d; }
.hs-caret { color: #ffffff5c; font-size: 11px; flex: none; transition: transform .18s; }
.hs-item.open .hs-caret { transform: rotate(90deg); }

.hs-time { color: #dfe7f5; font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
.hs-tag {
  flex: none; font-size: 10.5px; padding: 2px 7px; border-radius: 6px;
  background: #2a6ff02e; color: #93bbff; border: 1px solid #2a6ff052;
}
.hs-tag.third { background: #7c5cff2e; color: #bda9ff; border-color: #7c5cff52; }
.hs-sum {
  color: #ffffff8a; font-size: 12px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 每条的「批量下载」 */
.hs-batch {
  margin-left: auto; flex: none;
  background: linear-gradient(135deg, #2a6ff0, #1a9bff); color: #fff; border: 0;
  border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px #1a7aff40; transition: filter .18s, opacity .18s;
}
.hs-batch:hover { filter: brightness(1.08); }
.hs-batch:disabled { opacity: .5; cursor: default; filter: none; }

/* ★ 每行的「展开 / 收起」
   ⚠️ 类名不能叫 .hs-toggle —— 那个已经被**标题栏**的折叠按钮用了（见上面 158 行），
      同名会互相覆盖，标题栏的按钮样式会被这里的规则改掉。所以这里用 .hs-exp。 */
.hs-exp {
  margin-left: auto; flex: none;
  background: #ffffff14; color: #cfd9ea;
  border: 1px solid #ffffff2b; border-radius: 8px;
  padding: 5px 11px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.hs-exp:hover { background: #ffffff24; color: #fff; border-color: #ffffff45; }
/* 有展开按钮时，「批量下载」就不用再自己顶到右边了 */
.hs-exp + .hs-batch { margin-left: 6px; }

.hs-files { border-top: 1px solid #ffffff14; padding: 5px 12px 9px; background: #0000001f; }
.hs-file {
  display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px;
  border-bottom: 1px solid #ffffff0f;
}
.hs-file:last-child { border-bottom: 0; }
.hs-fname {
  flex: 1; min-width: 0; color: #dfe7f5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-fsize { color: #ffffff6b; font-size: 11.5px; flex: none; font-variant-numeric: tabular-nums; }

.hs-dl {
  flex: none; padding: 4px 13px; border-radius: 7px; font-size: 12px; font-weight: 600;
  color: #fff; background: #ffffff1f; border: 1px solid #ffffff33;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: background .18s, border-color .18s;
}
.hs-dl:hover { background: #ffffff33; border-color: #ffffff52; }
.hs-dl.off { color: #ffffff4d; background: #ffffff0f; border-color: #ffffff1a; cursor: not-allowed; }
.hs-empty { color: #ffffff70; font-size: 12.5px; padding: 4px 0; }

/* 窄屏：批量下载按钮换行到标题下面 */
@media (max-width: 460px) {
  .hs-row { flex-wrap: wrap; }
  .hs-sum { flex: 1; }
  .hs-exp { margin-left: 0; margin-top: 2px; }
  .hs-exp + .hs-batch { margin-left: 6px; }
  .hs-batch { margin-left: 0; margin-top: 2px; }
  .hs-time { font-size: 12px; }
}

/* ---------------- 超过单次大小上限 ---------------- */
.cv-result.over { background: #fdf6ec; border: 1px solid #f0cf9a; color: #8a5a1c; }
.cv-result.over .over-head { font-size: 13.5px; font-weight: 600; color: #b88230; margin-bottom: 7px; }
.cv-result.over .over-rows { display: flex; flex-direction: column; gap: 3px; }
.cv-result.over .over-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-result.over .over-k { color: #a9855a; font-size: 12px; }
.cv-result.over .over-v { font-size: 13px; font-weight: 600; color: #7a5218; font-variant-numeric: tabular-nums; }
.cv-result.over .over-v.bad { color: #d9534f; }
.cv-result.over .over-hint {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e8cfa4;
  font-size: 12px; line-height: 1.6; color: #8a6a3c;
}

/* 分享失效 —— 百度原话，大字醒目 */
.cv-result.dead {
  background: linear-gradient(180deg, #fff5f5, #fef0f0);
  border: 2px solid #fbc4c4;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 6px 20px -8px #f56c6c5c;
}
.cv-result.dead .dead-icon {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: #f56c6c; color: #fff;
  font-size: 26px; font-weight: 700; line-height: 46px;
  box-shadow: 0 6px 16px -4px #f56c6c99;
}
.cv-result.dead .dead-text {
  color: #d9363e;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .5px;
  word-break: break-word;
}
.cv-result.dead .dead-hint {
  color: #b08283;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #f5c6c6;
}

.cv-pane-title { color: #16233c; border-bottom: 1px solid #eef1f6; margin: 0 0 11px; padding-bottom: 9px; font-size: 14px; font-weight: 600; }
.cv-files { padding-top: 22px; }

/* ---------------- 文件列表 ---------------- */
.file-row { border-top: 1px solid #eef1f6; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 2px; display: flex; }
.file-row:first-of-type { border-top: none; }
.file-mark {
  color: #fff; background: linear-gradient(135deg, #2a6ff0, #00b6ff);
  border-radius: 11px; flex: none; justify-content: center; align-items: center;
  width: 34px; height: 34px; display: flex; font-size: 16px;
}
.file-main { flex-direction: column; flex: 1 1 0; gap: 3px; min-width: 0; display: flex; }
.file-main b { color: #16233c; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; overflow: hidden; }
.file-main i { color: #97a1b3; font-size: 12px; font-style: normal; }
.file-get { flex: none; width: 104px; }
.file-list {
  background: #f6f8fc; border-left: 2px solid #d7e2f5; border-radius: 0 12px 12px 0;
  flex: 100%; margin: 8px 0 2px 11px; padding: 2px 12px 2px 67px;
}
.file-item { border-top: 1px solid #e8edf6; align-items: center; gap: 12px; padding: 9px 0; display: flex; }
.file-item:first-child { border-top: none; }
.file-item .file-main b { font-size: 13px; font-weight: 400; }
.file-head { border-radius: 12px; flex: 1 1 0; align-items: center; gap: 12px; min-width: 0; margin: -6px -10px; padding: 6px 10px; display: flex; }
.file-head.is-foldable { cursor: pointer; }
.file-head.is-foldable:hover { background: #f2f6fd; }
.file-caret {
  border-radius: 50%; flex: none; justify-content: center; align-items: center;
  width: 22px; height: 22px; font-size: 13px; transition: transform .2s; display: flex;
}
.file-caret.is-foldable { color: #2a6ff0; background: #e8f0fe; }
.file-caret.is-open { transform: rotate(180deg); }

/* 小按钮（下载） */
.btn-sm {
  flex: none; height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid #2a6ff0;
  background: #2a6ff0; color: #fff; font-size: 13px; font-family: inherit; cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.btn-sm:hover:not(:disabled) { background: #1f5fd8; border-color: #1f5fd8; }
.btn-sm:disabled { background: #f4f4f5; border-color: #e9e9eb; color: #a8abb2; cursor: not-allowed; }

/* ---------------- 卡密入口（gate） ---------------- */
.gate-title { letter-spacing: 1px; color: #101a2e; margin: 0; font-size: 20px; font-weight: 600; }
.gate-sub { color: #8d97ab; margin: 6px 0 16px; font-size: 12.5px; }
.gate-chips { flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; display: flex; }
.gate-chips li {
  color: #3f6ba8; background: #eef4fd; border-radius: 999px;
  align-items: center; gap: 5px; padding: 5px 10px; font-size: 12px; display: flex;
}
.gate-chips .ic { color: #2a9df0; font-size: 13px; }
.gate-tip { text-align: center; color: #a3abbb; margin: 14px 0 0; font-size: 12px; }

/* 输入框 */
.cv-input {
  width: 100%; background: #f7f9fd;
  /* ★ 以前是 border: 1px solid transparent —— 默认完全看不出边，只有 hover 才有
     一条 inset 阴影。现在默认就给一条看得见的边框，鼠标没进去也清楚。 */
  border: 1px solid #cbd7ea;
  border-radius: 11px;
  padding: 10px 13px; font-family: inherit; font-size: 14px; color: #16233c;
  outline: none; line-height: 1.55;
  box-shadow: inset 0 1px 2px #16233c0d;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.cv-input::placeholder { color: #8d99ae; }
.cv-input:hover { border-color: #9db2d4; background: #fff; }
.cv-input:focus {
  background: #fff; border-color: #2a6ff0;
  box-shadow: 0 0 0 4px #2a6ff01f;
}
textarea.cv-input { resize: vertical; line-height: 1.6; }
.cv-key-input {
  letter-spacing: 4px; text-transform: uppercase; font-size: 17px; font-weight: 600;
  height: 46px;
}

/* ================= 下载直链卡片（转存成功后） ================= */
.dl-card {
  background: linear-gradient(180deg, #1c2544 0%, #1a2238 100%);
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 20px 46px -22px #000000a6;
}

/* ★★ 顶部成功条 —— 绿色横幅
      ✅ 提取成功，共 30 个文件，总大小 1.27 GB  [⚡秒传加速]  耗时 9.4s · 等效 139 MB/s

   ★ 排版：这一行必须**排在同一行**、垂直居中对齐，不许一上一下。
     宽度账（卡片内容区约 600px，字号按下面这组）：
       勾 19 + 文案 ~256 + 徽标 ~79 + 数据 ~146 + 3 个 gap 21  ≈ 520px
     富余 ~80px，稳。字号再大一点（14/11.5/12.5）就是 606px，直接放不下 → 换行。 */
.dl-head {
  display: flex;
  align-items: center;      /* ★ 垂直居中对齐 */
  flex-wrap: nowrap;        /* ★ 不许换行 */
  gap: 7px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(100deg, #10b98130, #10b98114 62%, #10b98108);
  border: 1px solid #10b9815c;
  box-shadow: inset 0 1px 0 #ffffff12;
}
.dl-head .dl-check {
  flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #10b981; color: #04291b;
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.dl-head .dl-ok-text {
  flex: none;
  color: #d8fbe9; font-size: 12px; font-weight: 600;
  letter-spacing: 0; white-space: nowrap;
  line-height: 1.4;
}
.dl-head .dl-ok-text em { font-style: normal; color: #fff; font-weight: 700; }

/* ⚡ 秒传加速 徽标 */
.dl-head .dl-ok-badge {
  flex: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  color: #04291b;
  background: linear-gradient(135deg, #34d399, #10b981);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  line-height: 1.5;
  box-shadow: 0 2px 8px #10b9815c;
}

/* 耗时 · 等效速度 —— 靠右，同一行 */
.dl-head .dl-ok-stat {
  flex: none;
  margin-left: auto;
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.4;
}
.dl-head .dl-ok-stat:empty { display: none; }

/* 窄屏（< 520px）才允许换行，否则横向溢出 */
@media (max-width: 520px) {
  .dl-head { flex-wrap: wrap; gap: 6px; }
  .dl-head .dl-ok-text { flex: 1 1 100%; white-space: normal; }
  .dl-head .dl-ok-stat { margin-left: 0; }
}

/* 保留时长警告 —— 现在跟在说明文字后面**同一行内联**显示，不再单独占一行
   （绿色条里那个位置已经不用了，保留 .dl-keep 定义只为兼容老缓存页面） */
.dl-head .dl-keep { display: none; }
.dl-tip .dl-warn {
  display: inline-block;
  margin-top: 2px;
  color: #f2937f;
  font-weight: 500;
  letter-spacing: .2px;
}
.dl-tip .dl-warn:empty { display: none; }
.dl-head .dl-meta {
  margin-left: auto;
  color: #ffffff7a;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.dl-head .dl-meta em { font-style: normal; color: #ffffffb8; }
.dl-check {
  flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #2a6ff0, #00b6ff);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px #1a7aff5c;
}

.dl-body {
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 16px 18px 18px;
}

/* 原「📦 共 N 个文件 · X GB」那行 —— 已经删掉了（跟绿色成功条完全重复）。
   样式留着只为兼容浏览器里的老缓存页面。 */
.dl-sum { display: none; }
.dl-sum .dl-box {
  flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #3a4770, #2b3557);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.dl-sum b { color: #fff; font-size: 14.5px; font-weight: 600; }
.dl-sum b em { font-style: normal; color: #7fb0ff; }
.dl-sum .dl-size {
  margin-left: auto;
  color: #ffffff8f;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ============ ★★ 文件夹折叠列表（跟对手一样的排版） ============
     ▶ 📁 BEST ALBUM [Bonus Disc]        15 个文件 · 661.6 MB
     ▶ 📁 BEST ALBUM                     15 个文件 · 641.2 MB

   ★ 对手那种是**朴素列表**：不要圆角卡片框、不要边框，
     行与行只用一条很淡的分隔线，整块看着轻、像一段普通列表。
     之前我给每个文件夹套了圆角 + 边框 + 背景 + gap:6px，
     结果看着像一排按钮，又厚又重 —— 现在按对手的来。 */
.dl-folders {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
  border-top: 1px solid #ffffff12;
}

.dl-folders .fd {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff12;
  overflow: hidden;
}

.dl-folders .fd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.dl-folders .fd-row:hover { background: #ffffff0a; }
.dl-folders .fd.open .fd-row { background: #ffffff08; }

.dl-folders .fd-caret {
  flex: none; width: 10px;
  font-size: 9px; color: #ffffff66;
}
.dl-folders .fd-icon { flex: none; font-size: 13.5px; }

.dl-folders .fd-name {
  flex: 1; min-width: 0;
  color: #e6edfa; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.dl-folders .fd-meta {
  flex: none;
  color: #ffffff85; font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ★ 顶层文件（分享里就在根上的那些）—— 不打分组标题，直接平铺。
   客户看到「📁 根目录文件」会以为那是分享里的真实目录名，所以干脆不显示标题。 */
.dl-folders .fd-loose { border-bottom: 1px solid #ffffff12; }
.dl-folders .fd-loose .file-row { border-bottom: 1px solid #ffffff0d; padding-left: 4px; }
.dl-folders .fd-loose .file-row:last-child { border-bottom: 0; }

.dl-folders .fd-list {
  border-top: 1px solid #ffffff0f;
  padding: 2px 4px 6px 18px;
  background: transparent;
}
.dl-folders .fd-list .file-row { border-bottom: 1px solid #ffffff0d; }
.dl-folders .fd-list .file-row:last-child { border-bottom: 0; }

/* 说明文字 —— 改成对手那种小字灰色 */
/* 按钮下面那段说明
   ★ 体量要"轻"：客户已经看懂按钮了，这段只是补充。
     字号 12.5 → 11.5、行距 1.9 → 1.72、加粗 600 → 500（<b> 的浏览器默认是 700，
     这里显式覆盖成 500 才是"中等"，不然整段还是显得很重）。 */
.dl-tip {
  color: #ffffff6e;
  font-size: 11.5px;
  line-height: 1.72;
  margin: 12px 0 0;
  font-weight: 400;
}
.dl-tip em { font-style: normal; color: #ffffffb8; font-weight: 500; }
.dl-tip b { color: #f0bd72; font-weight: 500; }

/* ★ 两个按钮**等宽**平分一行（对手那三个也是等宽的） */
.dl-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dl-actions .dl-btn { flex: 1 1 0; min-width: 110px; }

/* ★「下载器」按钮里的小标签（跟对手那个「多文件推荐」一样） */
.dl-btn .dl-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
  color: #06301f;
  background: linear-gradient(135deg, #34d399, #10b981);
}

.dl-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid #ffffff24;
  background: #ffffff12;
  color: #ffffffcc;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .16s;
  white-space: nowrap;
}
.dl-btn:hover { background: #ffffff1f; color: #fff; }
.dl-btn:disabled { opacity: .5; cursor: not-allowed; }

.dl-btn.main {
  background: linear-gradient(135deg, #22a06b, #2ec27e);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px -6px #22a06bb8;
}
.dl-btn.main:hover { filter: brightness(1.08); }

.dl-list {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid #ffffff14;
}
.dl-list .file-row { border-top-color: #ffffff12; }
.dl-list .file-main b { color: #ffffffdd; }
.dl-list .file-main i { color: #ffffff7a; }
.dl-list .file-mark { background: linear-gradient(135deg, #2a6ff0, #00b6ff); }

/* 下载直链条目里的小按钮 */
.dl-list .btn-sm {
  background: #2a6ff0; border-color: #2a6ff0;
}
.dl-list .btn-sm:disabled { background: #ffffff14; border-color: #ffffff1a; color: #ffffff59; }

/* ---------------- 转存进度条（无文字版） ---------------- */
.pg {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f4f8ff;
  border: 1px solid #d6e4ff;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pg-track {
  flex: 1;
  height: 8px;
  background: #e2eaf8;
  border-radius: 99px;
  overflow: hidden;
}
.pg-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a6ff0, #1a9bff 60%, #00c2ff);
  transition: width .45s cubic-bezier(.22, .61, .36, 1);
  position: relative;
  overflow: hidden;
}
/* 进度条上跑一道高光，让它看起来在动 */
.pg-bar:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #0000 30%, #ffffff70 50%, #0000 70%);
  animation: pg-shine 1.4s linear infinite;
}
@keyframes pg-shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.pg-pct {
  flex: none;
  min-width: 42px;
  text-align: right;
  color: #2a6ff0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 完成：整条变绿 */
.pg.done { background: #f0f9eb; border-color: #c2e7b0; }
.pg.done .pg-pct { color: #22a06b; }
.pg.done .pg-bar { background: linear-gradient(90deg, #22a06b, #2ec27e); }
.pg.done .pg-bar:after { animation: none; }

/* 卡住了：变橙色，高光停下 */
.pg.stalled { background: #fdf6ec; border-color: #f5dab1; }
.pg.stalled .pg-pct { color: #e08a1e; }
.pg.stalled .pg-bar { background: linear-gradient(90deg, #e08a1e, #f0a83c); }
.pg.stalled .pg-bar:after { animation: none; }

/* ---------------- 卡密失效面板 ---------------- */
.cv-dead {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 22px;
}
.cv-dead .dead-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fdeeee; color: #e5484d;
  font-size: 26px; line-height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cv-dead .dead-title {
  letter-spacing: .3px; color: #101a2e;
  font-size: 17px; font-weight: 600; line-height: 1.5;
}
.cv-dead .dead-sub {
  color: #8d97ab; font-size: 13px; line-height: 1.7;
  margin: 7px 0 0; max-width: 340px;
}

/* 蓝色→现在是多色可选，具体颜色由 .c-xxx 决定（后台「提示设置」里选） */
.cv-dead .dead-btn {
  display: block;
  width: 100%;
  max-width: 380px;
  height: 48px;
  line-height: 48px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, filter .18s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff7a18 0%, #ff4d4f 100%);
  box-shadow: 0 10px 24px -8px #ff4d4fc4;
}
.cv-dead .dead-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
}
.cv-dead .dead-btn:active { transform: translateY(0); }

/* ---- 可选颜色（后台里选）---- */
.cv-dead .dead-btn.c-orange { background: linear-gradient(135deg, #ff7a18 0%, #ff4d4f 100%); box-shadow: 0 10px 24px -8px #ff4d4fc4; }
.cv-dead .dead-btn.c-red    { background: linear-gradient(135deg, #ff4d4f 0%, #d92b3a 100%); box-shadow: 0 10px 24px -8px #e5303ac4; }
.cv-dead .dead-btn.c-blue   { background: linear-gradient(135deg, #2a6ff0 0%, #1a9bff 55%, #00c2ff 100%); box-shadow: 0 10px 24px -8px #1a7affc4; }
.cv-dead .dead-btn.c-green  { background: linear-gradient(135deg, #22a06b 0%, #2ec27e 100%); box-shadow: 0 10px 24px -8px #22a06bc4; }
.cv-dead .dead-btn.c-purple { background: linear-gradient(135deg, #7c5cff 0%, #a855f7 100%); box-shadow: 0 10px 24px -8px #7c5cffc4; }
.cv-dead .dead-btn.c-gold   { background: linear-gradient(135deg, #e6b968 0%, #c9932f 100%); box-shadow: 0 10px 24px -8px #c9932fc4; }
.cv-dead .dead-btn.c-gray   { background: linear-gradient(135deg, #9aa6b8 0%, #77839a 100%); box-shadow: 0 10px 24px -8px #77839ac4; }

/* 第二个按钮离第一个近一点，看起来是一组 */
.cv-dead .dead-btn + .dead-btn { margin-top: 11px; }

/* 没配网址时：保留颜色但灰掉，一眼能看出「还没配好」 */
.cv-dead .dead-btn.off {
  filter: grayscale(.72) opacity(.55);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.cv-dead .dead-note {
  color: #8d97ab;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 380px;
  word-break: break-all;
}

/* 底部一行小字：卡密 / 到期时间 */
.cv-dead .dead-meta {
  color: #b3bccb;
  font-size: 11.5px;
  line-height: 1.7;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f6;
  width: 100%;
  max-width: 380px;
  font-variant-numeric: tabular-nums;
}
.cv-dead .dead-meta em { font-style: normal; color: #8d97ab; }

/* ---------------- 加载 ---------------- */
.cv-loading { text-align: center; padding: 90px 0; color: #ffffff9c; font-size: 13px; }
.cv-spinner {
  width: 26px; height: 26px; margin: 0 auto 14px; border-radius: 50%;
  border: 2px solid #ffffff26; border-top-color: #fff; animation: cv-spin .8s linear infinite;
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 620px) {
  .cv-panel { padding: 20px 18px; }
  .file-list { padding-right: 10px; }
  /* ★ 这里原来把 padding 加回了 20px、还把卡密码放大到 22px —— 卡片在手机上特别高。
     现在手机上也保持紧凑，只微调。 */
  .cv-vipcard { padding: 12px 15px 11px; }
  .vc-code { letter-spacing: 2.8px; font-size: 18px; }
}

/* 手机：到期时间占一整行（那个带「还剩 X 小时」最长），
   剩余转存次数 / 单次大小上限 在下面并排 —— 比挤成 2+1 好看得多 */
@media (max-width: 520px) {
  .cv-vipcard { padding: 12px 14px 11px; border-radius: 14px; }

  .vc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }
  .vc-stat:first-child {
    grid-column: 1 / -1;                 /* 占满整行 */
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff14;
  }
  .vc-stat:first-child + .vc-stat {      /* 第二项：去掉竖线（它上面那条已经是分隔） */
    border-left: none;
    padding-left: 0;
  }
  .vc-stat:last-child {                  /* 第三项：保留竖线，和第二项并排 */
    border-left: 1px solid #ffffff14;
    padding-left: 12px;
  }
  .vc-stat span { font-size: 11.5px; }
  .vc-stat b { font-size: 14.5px; }
}

/* 超窄屏（iPhone SE 之类） */
@media (max-width: 360px) {
  .vc-code { font-size: 16.5px; letter-spacing: 2px; }
  .vc-stat span { font-size: 11px; letter-spacing: .2px; }
  .vc-stat b { font-size: 13.5px; }
  .vc-stat i { font-size: 10.5px; }
  .vc-brand { letter-spacing: 1.4px; font-size: 9.5px; }
  .vc-state { padding: 3px 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-orb, .vc-sheen { animation: none; }
}

/* ---------------------------------------------------------------------------
   文件多时的「建议/强制用下载器」对话框
   触发逻辑见 assets/customer.js 的 downloadAll()：
     文件数 > dlForceAt → 强制（只给下载器）
     文件数 > dlHintAt  → 建议（仍可用浏览器）
   --------------------------------------------------------------------------- */
.dlask-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 9, 16, .74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: dlask-in .16s ease-out;
}
@keyframes dlask-in { from { opacity: 0 } to { opacity: 1 } }

.dlask-box {
  width: 100%;
  max-width: 460px;
  background: #131a26;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  color: #e6ebf5;
}
.dlask-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.dlask-p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.85;
  color: #a9b4c7;
}
.dlask-p b { color: #e6ebf5; }

.dlask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dlask-btn {
  flex: 1 1 0;
  min-width: 120px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #d7dfee;
  transition: background .15s, border-color .15s, transform .06s;
}
.dlask-btn:hover { background: rgba(255, 255, 255, .10); }
.dlask-btn:active { transform: translateY(1px); }
.dlask-btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #34d17f, #22a862);
  color: #06210f;
}
.dlask-btn.primary:hover { background: linear-gradient(180deg, #43dd8b, #28b96c); }
.dlask-btn.ghost { flex: 0 0 auto; min-width: 76px; color: #8a94a6; }

/* 弹窗里的「绿色小工具」说明块 —— 客户最怕又是个要装一堆东西的软件 */
.dlask-tip {
  margin: 0 0 18px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #b9e6cd;
  background: rgba(52, 209, 127, .10);
  border: 1px solid rgba(52, 209, 127, .28);
  border-radius: 9px;
}
.dlask-tip b { color: #e8fff2; }
.dlask-tip-sub { color: #7fbf9c; font-size: 11.5px; }
