/* ============ JS 加密工具网页版 · 紫色主题（与官方文档站统一） ============ */
:root {
  --brand: #6c5dea;
  --brand-2: #9a8cff;
  --brand-dark: #5844c4;
  --brand-soft: #efedff;
  --brand-softer: #f6f5ff;
  --ink: #23222f;
  --ink-2: #4d4c5c;
  --ink-3: #8a8998;
  --line: #e8e7f2;
  --bg: #f6f6fb;
  --ok: #2bb673;
  --ok-bg: #e9f8f1;
  --warn: #d98a1f;
  --warn-bg: #fdf4e3;
  --error: #e05252;
  --error-bg: #fdecec;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(64, 52, 140, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
code {
  font-family: Consolas, "Courier New", monospace;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .92em;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand b { font-size: 17px; }
/* 顶栏右侧交流群按钮：主题渐变胶囊 + 呼吸光圈 / 光泽扫过 / 图标摇摆 */
.nav-qq-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .5px;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 14px rgba(108, 93, 234, .35), 0 0 0 0 rgba(108, 93, 234, .45);
  animation: navqq-pulse 2.6s ease-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* 光泽扫过层 */
.nav-qq-btn::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.nav-qq-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(108, 93, 234, .48), 0 0 0 4px rgba(108, 93, 234, .14);
  color: #fff;
  animation-play-state: paused;
}
.nav-qq-btn:hover::after { left: 130%; }
.nav-qq-btn:active { transform: translateY(0) scale(.98); }
.nav-qq-btn .qq-ico { width: 17px; height: 17px; flex: none; }
.nav-qq-btn:hover .qq-ico { animation: navqq-wiggle .55s ease-in-out; }
/* 常态呼吸光圈（向外扩散淡出） */
@keyframes navqq-pulse {
  0%   { box-shadow: 0 4px 14px rgba(108, 93, 234, .35), 0 0 0 0 rgba(108, 93, 234, .45); }
  70%  { box-shadow: 0 4px 14px rgba(108, 93, 234, .35), 0 0 0 9px rgba(108, 93, 234, 0); }
  100% { box-shadow: 0 4px 14px rgba(108, 93, 234, .35), 0 0 0 0 rgba(108, 93, 234, 0); }
}
/* hover 时企鹅轻摇摆 */
@keyframes navqq-wiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-14deg); }
  50%      { transform: rotate(11deg); }
  75%      { transform: rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-qq-btn, .nav-qq-btn::after, .nav-qq-btn .qq-ico { animation: none !important; transition: none; }
}

/* 顶栏站内菜单（首页 / 免费加密，两页共用） */
.nav-side { display: flex; align-items: center; gap: 12px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: all .2s;
}
.nav-menu a:hover { color: var(--brand); background: var(--brand-softer); }
.nav-menu a.nav-cta {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(108, 93, 234, .3);
}
.nav-menu a.nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(108, 93, 234, .42); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #5844c4 0%, #6c5dea 52%, #8a79f2 100%);
  color: #fff;
  padding: 58px 0 66px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero::before {
  content: ""; position: absolute; left: -80px; bottom: -160px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero h1 { font-size: 34px; letter-spacing: 1px; position: relative; }
.hero p { margin-top: 12px; font-size: 16px; opacity: .92; position: relative; }
.badges { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 6px 15px; border-radius: 999px; font-size: 13.5px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #7ef0bd; }

/* ---------- 面板 ---------- */
.tool { margin-top: -32px; padding-bottom: 30px; position: relative; z-index: 2; }
.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.panel h2 {
  font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 14px; font-weight: 700;
}

/* ---------- 预设卡片 ---------- */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.preset-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px 15px;
  cursor: pointer;
  background: #fff;
  transition: .2s;
  display: flex; flex-direction: column;
}
.preset-card:hover { border-color: #c8c1f7; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(108, 93, 234, .12); }
.preset-card.active {
  border-color: var(--brand);
  background: var(--brand-softer);
  box-shadow: 0 10px 26px rgba(108, 93, 234, .18);
}
.preset-card.active::after {
  content: "✓";
  position: absolute; right: 10px; bottom: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.preset-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.preset-ic {
  flex: none;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12.5px; font-weight: 800; letter-spacing: .5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.preset-ic.danger { background: var(--error-bg); color: var(--error); }
.preset-name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.preset-desc {
  font-size: 13px; line-height: 1.65; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden;
}
.preset-desc strong { color: var(--brand-dark); }
.preset-meta {
  margin-top: auto; padding-top: 12px; padding-right: 22px;
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.tag {
  flex: none; white-space: nowrap;
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  margin-left: auto;
}
.tag-rec { background: var(--brand); color: #fff; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- 自定义配置面板 ---------- */
.custom-panel {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.custom-panel[hidden] { display: none; }
.cp-tip {
  font-size: 13px; color: var(--ink-2);
  background: var(--brand-softer); border: 1px solid #e3dffb;
  border-radius: 10px; padding: 11px 14px; margin-bottom: 16px;
}
.cp-tip strong { color: var(--error); }
.cp-tip b { color: var(--error); }
.cp-grid {
  /* 大屏 2 列 masonry：分组按高度紧密落位，不等高卡片互不留空块（小屏退 1 列） */
  display: block;
  column-count: 2;
  column-gap: 14px;
}
/* 组内自适应：子项够宽即两个一行，不够宽自动独占一行；窄屏经媒体查询全部独占 */
.cp-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 17px;
  background: #fdfdff;
  break-inside: avoid;          /* masonry 中卡片整体不跨列 */
  margin-bottom: 14px;
  display: flex; flex-wrap: wrap; align-content: flex-start;
  gap: 11px 18px;
}
.cp-group > * { flex: 1 1 230px; min-width: 0; }
/* 占满整行的元素：标题 / 说明 / 芯片组 / 日期组 / 子面板 / 缩进子项 / 长文本与多行输入 */
.cp-group > h4,
.cp-group > .cp-note,
.cp-group > .cp-chips,
.cp-group > .cp-dates,
.cp-group > .vmp-opts,
.cp-group > .cp-sub,
.cp-group > .cp-row:has(textarea),
.cp-group > .cp-row:has(input[type="text"]) { flex: 0 0 100%; }
.cp-group h4 {
  font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.cp-hot {
  font-size: 11px; font-weight: 600; color: var(--error);
  background: var(--error-bg); border-radius: 999px; padding: 2px 8px;
}
.cp-row {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink-2);
}
.cp-row select,
.cp-row input[type="text"],
.cp-row input[type="number"],
.cp-row input[type="date"],
.cp-row textarea {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--ink); background: #fff; outline: none;
}
.cp-row select:focus,
.cp-row input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108, 93, 234, .12);
}
.cp-check {
  display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 7px;
  font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.cp-check input[type="checkbox"] {
  width: 15px; height: 15px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--brand); cursor: pointer;
}
.cp-check input:disabled + * { opacity: .55; }
.cp-col { display: flex; flex-direction: column; gap: 11px; }
.cp-sub { padding-left: 26px; color: var(--ink-3); font-size: 12.5px; }
.cp-range { display: block; }
.cp-range .rval {
  float: right;
  color: var(--brand-dark); font-weight: 700; font-size: 13px;
}
.cp-range input[type="range"] {
  width: 100%; margin-top: 4px;
  accent-color: var(--brand); cursor: pointer;
}
.cu-mini {
  width: 64px !important; padding: 5px 8px !important;
  border: 1px solid var(--line); border-radius: 7px;
  font-size: 13px; outline: none;
}
.cp-note { font-size: 12px; color: var(--ink-3); }
.cp-note.danger { color: var(--error); }

/* ---------- 版权与运行锁定面板 ---------- */
.guard-panel {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.gp-title {
  font-size: 15px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.gp-opt {
  font-size: 12px; font-weight: 500; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 10px;
}
.cp-row textarea {
  resize: vertical; min-height: 64px; line-height: 1.55;
  font-family: inherit;
}
.gp-wide { grid-column: 1 / -1; }
.cp-chips {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.cp-chips .cp-check { white-space: nowrap; }
.cp-dates {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
/* VMP 加固配置子面板：未启用 VMP 时整体禁用（不可勾选）；
   列数自适应容器宽度——说明与芯片组占满整行，到期 / 域名锁 / 主机锁按宽度并排 */
.vmp-opts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 14px;
  border-top: 1px dashed var(--line); padding-top: 12px;
}
.vmp-opts > .cp-note, .vmp-opts > .cp-chips { grid-column: 1 / -1; }
.vmp-opts-off { opacity: .45; pointer-events: none; }
.vmp-expire-row { max-width: none; }

/* ---------- 上传区 ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  border: 2px dashed #c9c3f2;
  border-radius: 12px;
  background: var(--brand-softer);
  padding: 40px 20px;
  cursor: pointer;
  text-align: center;
  transition: .2s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone.disabled { pointer-events: none; opacity: .6; }
.dropzone svg { width: 42px; height: 42px; color: var(--brand); }
.dz-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.dz-sub { font-size: 13px; color: var(--ink-3); }
.dz-sub b { color: var(--brand-dark); }

.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 13px; background: #fff;
}
.file-ic {
  flex: none;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: var(--brand-dark); background: var(--brand-soft);
  border-radius: 6px; padding: 3px 7px;
}
.file-name { flex: 1; font-size: 14px; word-break: break-all; }
.file-size { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.file-del {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: #f0eff7; color: var(--ink-3);
  font-size: 16px; line-height: 1; cursor: pointer; transition: .15s;
}
.file-del:hover { background: var(--error-bg); color: var(--error); }
.file-actions { margin-top: 12px; display: flex; justify-content: flex-end; }

.options { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.options summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.options label { display: block; margin: 12px 0 6px; font-size: 13px; color: var(--ink-2); }
.options input {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 13.5px; color: var(--ink); outline: none;
}
.options input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 93, 234, .12); }

/* ---------- 模式切换（上传文件 / 粘贴代码） ---------- */
.mode-switch {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #f1f0fa; border-radius: 10px; margin-bottom: 16px;
}
.mode-btn {
  border: none; background: transparent; color: var(--ink-2);
  font-size: 13.5px; font-weight: 700; padding: 8px 22px; border-radius: 8px;
  cursor: pointer; transition: .15s;
}
.mode-btn:not(.active):hover { color: var(--ink); }
.mode-btn.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(30, 27, 75, .1); }

/* ---------- 粘贴输入与前后对比 ---------- */
.code-box {
  width: 100%; box-sizing: border-box;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 12.5px; line-height: 1.55;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; color: var(--ink); background: #fbfbfe;
  outline: none; resize: vertical; tab-size: 2;
  /* 自动换行不横向滚动：保留换行符，超长串（混淆产物常为一整行）强制断行 */
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all;
  overflow-x: hidden; overflow-y: auto;
}
.code-box:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 93, 234, .12); }
.code-box:disabled { opacity: .6; cursor: not-allowed; }
.paste-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.paste-status { font-size: 13px; color: var(--ink-3); }
.paste-status.err { color: var(--error); }
.paste-status.ok { color: var(--ok); }
.paste-status.warn { color: var(--warn); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.cmp-box { display: flex; flex-direction: column; }
.cmp-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.cmp-size { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.cmp-box textarea { flex: 1; min-height: 220px; background: #fff; }
.paste-actions .pa-right { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 720px) { .cmp-grid { grid-template-columns: 1fr; } }

/* ---------- 按钮与提示 ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 15.5px; font-weight: 700;
  padding: 13px 34px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(108, 93, 234, .32);
  transition: .2s;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(108, 93, 234, .42); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-primary svg { width: 19px; height: 19px; }
/* 加密中：旋转圈 + 呼吸光晕（disabled 的透明度压不住 loading 态） */
.btn-primary.is-loading { opacity: 1; cursor: wait; animation: btn-breathe 1.8s ease-in-out infinite; }
.btn-primary .spin {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: btn-rotate .7s linear infinite;
}
.btn-ghost {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; padding: 7px 16px; border-radius: 8px; cursor: pointer; transition: .15s;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

.alert {
  display: none;
  margin-top: 16px; padding: 12px 16px;
  border-radius: 10px; font-size: 13.5px;
}
.alert.ok { background: var(--ok-bg); color: #1d8a58; border: 1px solid #bfe9d6; }
.alert.warn { background: var(--warn-bg); color: #9a6113; border: 1px solid #f0d8ae; }
.alert.error { background: var(--error-bg); color: #b73e3e; border: 1px solid #f3c4c4; }
.hint {
  margin-top: 14px; padding: 10px 14px; border-radius: 9px;
  font-size: 13px;
}
.hint.danger { display: none; background: var(--error-bg); color: #b73e3e; border: 1px solid #f3c4c4; }

/* ---------- 进度 ---------- */
.progress-wrap { margin-top: 20px; }
.progress-head { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.progress-head #progressText { flex: 1; min-width: 0; }
.progress-time { flex: none; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.progress-pct { flex: none; font-size: 13px; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.progress {
  height: 9px; border-radius: 99px; background: #eceaf8; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 99px;
  transition: width .25s ease;
  position: relative; overflow: hidden;
}
/* 流光扫过：加密进行时的滚动高光 */
.progress-bar::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,
    rgba(255, 255, 255, .34) 0 12px, transparent 12px 24px);
  animation: bar-slide 1s linear infinite;
}
/* 完成：进度条转绿定格 100%；取消：转灰定格当前位置（流光停） */
.progress-wrap.is-done .progress-bar { background: linear-gradient(90deg, #2fbf71, #5dd39e); }
.progress-wrap.is-done .progress-bar::after,
.progress-wrap.is-cancelled .progress-bar::after { animation: none; }
.progress-wrap.is-done .progress-pct { color: var(--ok); }
.progress-wrap.is-cancelled .progress-bar { background: #c9c7d6; }
.progress-wrap.is-cancelled .progress-pct { color: var(--ink-3); }
/* 大文件预估 / 排队提示：有内容才占位 */
.progress-note { margin-top: 9px; font-size: 12.5px; color: var(--warn); }
.progress-note:empty { display: none; }
.progress-note.queue { color: var(--brand-dark); }

/* ---------- 文件行状态徽章（状态直接挂文件列表行，ZIP 展开缩进子行） ---------- */
.task-status {
  flex: none; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
}
.st-pending { background: #f0eff7; color: var(--ink-3); }
.st-working { background: var(--brand-soft); color: var(--brand-dark); }
.st-ok { background: var(--ok-bg); color: var(--ok); }
.st-fail { background: var(--error-bg); color: var(--error); }
.st-cancelled { background: #eceaf2; color: var(--ink-3); }
.task-name { flex: 1; min-width: 110px; word-break: break-all; color: var(--ink-2); }
.task-meta { flex: none; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
/* 文件行内 meta（体积 / 耗时 / 失败原因）换行展示并允许折行，避免挤压文件名；
   扣掉 × 按钮宽度，让按钮与 meta 同行、保持最右 */
.file-row { flex-wrap: wrap; }
.file-row .task-meta { flex: 1 1 calc(100% - 35px); white-space: normal; word-break: break-all; }
.file-row .task-meta:empty { display: none; }
.file-row .st-fail ~ .task-meta { color: var(--error); }
/* ZIP 内逐文件进度：ZIP 行下的缩进子行（非 JS 文件原样保留不占行） */
.file-sub {
  margin: -4px 0 0 34px; max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfbfe;
}
.sub-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #f1f0f8;
  font-size: 12.5px;
  animation: row-in .3s ease both;
}
.sub-row:last-child { border-bottom: none; }
.sub-row .task-name { font-size: 12.5px; }
.sub-row .st-fail ~ .task-meta {
  flex: 1 1 100%; white-space: normal; word-break: break-all; color: var(--error);
}

/* ---------- 须知 ---------- */
.notes {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 30px; margin-bottom: 40px;
}
.notes h3 { font-size: 16px; margin-bottom: 12px; }
.notes ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.notes li {
  position: relative; padding-left: 20px;
  font-size: 13.5px; color: var(--ink-2);
}
.notes li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.notes strong { color: var(--ink); }

/* ---------- 常见问题 ---------- */
.faq {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 30px; margin-bottom: 40px;
}
.faq h2 { font-size: 18px; margin-bottom: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0 16px; background: #fdfdff;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 13px 22px 13px 0;
  font-size: 14px; font-weight: 600; color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.75;
  padding: 0 0 14px;
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  background:
    radial-gradient(900px 340px at 10% -70px, rgba(108, 93, 234, .30), transparent 62%),
    radial-gradient(720px 300px at 90% -50px, rgba(138, 121, 242, .20), transparent 62%),
    linear-gradient(180deg, #221f36 0%, #181624 100%);
  color: #b4bac6;
  padding-bottom: 24px;
}
.footer::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, #5844c4 0%, #6c5dea 45%, #8a79f2 100%);
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 46px;
  padding: 48px 0 36px;
}
.ft-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ft-logo img { width: 34px; height: 34px; border-radius: 9px; }
.ft-logo b { font-size: 17px; color: #fff; letter-spacing: .3px; }
.ft-desc {
  margin-top: 14px; max-width: 340px;
  font-size: 13.5px; line-height: 1.85; color: #9b9cae;
}
.ft-badges { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-badges span {
  font-size: 12px; color: #d0caf6;
  background: rgba(108, 93, 234, .16);
  border: 1px solid rgba(154, 140, 255, .30);
  padding: 4px 11px; border-radius: 999px;
}
.ft-col h3 {
  margin: 4px 0 14px;
  font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .5px;
}
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li {
  position: relative; padding-left: 15px;
  font-size: 13px; color: #a7a9ba; line-height: 2.1;
}
.ft-col li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #6c5dea, #8a79f2);
}
.ft-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 20px;
}
.ft-bottom p { font-size: 13px; color: #d6d8e2; }
.ft-note { font-size: 12.5px; color: #8b90a0; }

/* ---------- 产物下载区（本批结果可重复下载） ---------- */
.dl-area {
  display: none;
  margin-top: 12px; padding: 12px 14px;
  border: 1px dashed var(--brand-2); border-radius: 10px;
  background: var(--brand-softer);
  flex-wrap: wrap; align-items: center; gap: 8px;
  animation: alert-in .35s ease;
}
.dl-label { font-size: 13px; font-weight: 600; color: var(--brand-dark); margin-right: 2px; }
.dl-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dl-btn svg { width: 15px; height: 15px; flex: none; }
.dl-btn em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.dl-btn.dl-flash { animation: dl-flash .7s ease; }

/* ---------- 全局动效 ---------- */
@keyframes btn-rotate { to { transform: rotate(360deg); } }
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 10px 24px rgba(108, 93, 234, .32), 0 0 0 0 rgba(108, 93, 234, .4); }
  50%      { box-shadow: 0 10px 24px rgba(108, 93, 234, .32), 0 0 0 7px rgba(108, 93, 234, 0); }
}
@keyframes bar-slide { to { transform: translateX(24px); } }
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes row-flash {
  0% { background: var(--ok-bg); }
  100% { background: transparent; }
}
@keyframes dl-flash {
  0% { background: var(--ok-bg); border-color: var(--ok); }
  100% { background: #fff; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes alert-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes dz-pop { 0% { transform: scale(.985); } 60% { transform: scale(1.008); } 100% { transform: scale(1); } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(126, 240, 189, .7); } 60% { box-shadow: 0 0 0 5px rgba(126, 240, 189, 0); } }

/* 页面载入：Hero 与面板错落上浮 */
.hero h1, .hero p, .hero .badges { animation: fade-up .55s ease both; }
.hero p { animation-delay: .1s; }
.hero .badges { animation-delay: .2s; }
.tool > * { animation: fade-up .5s ease both; }
.tool > *:nth-child(2) { animation-delay: .07s; }
.tool > *:nth-child(3) { animation-delay: .14s; }
.tool > *:nth-child(4) { animation-delay: .21s; }
.tool > *:nth-child(5) { animation-delay: .28s; }

/* 徽标绿点呼吸 */
.badge i { animation: dot-pulse 2.2s ease-out infinite; }

/* 拖拽悬停：图标上浮 + 框体回弹 */
.dropzone svg { transition: transform .25s ease; }
.dropzone:hover svg, .dropzone.drag svg { transform: translateY(-4px) scale(1.07); }
.dropzone.drag { animation: dz-pop .3s ease; }

/* 提示条滑入 */
.alert { animation: alert-in .3s ease; }

/* 文件行 / 预设卡片细节动效 */
.file-row { animation: row-in .28s ease both; transition: border-color .15s, box-shadow .15s; }
.file-row:hover { border-color: #d5cff5; box-shadow: 0 4px 14px rgba(108, 93, 234, .08); }
.preset-card.active { animation: card-pop .25s ease; }
@keyframes card-pop { 0% { transform: scale(.98); } 100% { transform: scale(1); } }

/* 面板 hover 微浮 */
.panel { transition: box-shadow .25s ease; }
.panel:hover { box-shadow: 0 16px 40px rgba(64, 52, 140, .14); }

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 自适应 ---------- */
@media (max-width: 1150px) {
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .cp-grid { column-count: 1; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .nav { height: 56px; }
  .nav-side { gap: 7px; }
  .nav-menu { gap: 2px; }
  .nav-menu a { padding: 6px 9px; font-size: 13px; }
  .nav-qq-btn { padding: 7px 11px; }
  .nav-qq-btn .qq-txt { display: none; }
  .brand b { font-size: 14.5px; }
  .brand img { width: 26px; height: 26px; }
  .hero { padding: 42px 0 54px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14.5px; }
  .panel { padding: 22px 18px; }
  .preset-grid { grid-template-columns: 1fr; }
  .notes { padding: 20px 18px; }
  .faq { padding: 20px 18px; }
  .task-tag { display: none; }
  .task-meta { display: none; }
  .cp-group > * { flex: 0 0 100%; }
  .vmp-opts { grid-template-columns: 1fr; }
  .cp-dates { grid-template-columns: 1fr; }
  .btn-primary { width: 100%; justify-content: center; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; padding: 38px 0 30px; }
  .ft-desc { max-width: none; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
