/* ==========================================================================
   roroto · 页面与工具组件
   ========================================================================== */

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--dim);
  margin: 0 0 18px; flex-wrap: wrap;
  font-family: var(--mono);
  letter-spacing: .01em;
}
.crumb a { color: var(--muted); transition: color .15s; }
.crumb a:hover { color: var(--cyan-2); }
.crumb i { font-style: normal; opacity: .45; }
.crumb span { color: var(--text); }

/* ---------- 页面头（工具页 / 分类页） ---------- */
.tp-hero {
  position: relative;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 10px 0 26px;
}
.tp-ico {
  width: 58px; height: 58px;
  flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--cyan-2);
  background:
    linear-gradient(160deg, rgba(46, 168, 218, .26), rgba(46, 168, 218, .06));
  border: 1px solid rgba(111, 212, 247, .3);
  box-shadow: 0 18px 40px -24px rgba(46, 168, 218, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.ph[data-cat="image"] .tp-ico, .tp-hero[data-cat="image"] .tp-ico {
  color: var(--gold);
  background: linear-gradient(160deg, rgba(246, 196, 69, .24), rgba(246, 196, 69, .05));
  border-color: rgba(246, 196, 69, .3);
  box-shadow: 0 18px 40px -24px rgba(246, 196, 69, .8), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.ph[data-cat="dev"] .tp-ico, .tp-hero[data-cat="dev"] .tp-ico {
  color: var(--violet);
  background: linear-gradient(160deg, rgba(157, 139, 245, .24), rgba(157, 139, 245, .05));
  border-color: rgba(157, 139, 245, .3);
  box-shadow: 0 18px 40px -24px rgba(157, 139, 245, .8), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.tp-hero h1 {
  margin: 2px 0 8px;
  font-size: clamp(22px, 3.4vw, 31px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.03em;
}
.tp-hero .tp-ds { margin: 0; font-size: 14px; color: var(--muted); max-width: 66ch; }
.tp-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.ok { color: #7fe3c0; background: rgba(53, 211, 154, .08); border-color: rgba(53, 211, 154, .22); }

/* ---------- 工具页两栏布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 26px;
  align-items: start;
  padding-bottom: 40px;
}
.main-col { min-width: 0; }
.aside { position: relative; }
.side-sticky {
  position: sticky;
  top: calc(var(--hd) + 20px);
  display: flex; flex-direction: column; gap: 14px;
}

/* ---------- 工作区（window 风格容器） ---------- */
.wb {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  box-shadow: 0 40px 80px -50px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.wb::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 212, 247, .65), rgba(246, 196, 69, .4), transparent);
  opacity: .8;
}
.wb-bar {
  display: flex; align-items: center; gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}
.wb-dots { display: flex; gap: 5px; flex: none; }
.wb-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(148, 177, 255, .2); }
.wb-dots i:nth-child(1) { background: rgba(255, 125, 125, .55); }
.wb-dots i:nth-child(2) { background: rgba(246, 196, 69, .55); }
.wb-dots i:nth-child(3) { background: rgba(53, 211, 154, .5); }
.wb-t {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.wb-lock {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: #7fe3c0;
}
.wb-lock svg { opacity: .9; }
.wb .panel, .wb > .panel { border: 0; background: none; border-radius: 0; padding: 18px; }
@media (max-width: 640px) { .wb .panel { padding: 14px 13px; } .wb-bar { height: 38px; } }

/* ---------- 面板（通用） ---------- */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}

/* ---------- 拖放区 ---------- */
.dz {
  position: relative;
  padding: 36px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1.5px dashed rgba(148, 177, 255, .33);
  background:
    radial-gradient(520px 200px at 50% 0%, rgba(46, 168, 218, .09), transparent 72%),
    rgba(255, 255, 255, .012);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
  overflow: hidden;
}
.dz:hover {
  border-color: rgba(111, 212, 247, .55);
  background:
    radial-gradient(520px 220px at 50% 0%, rgba(46, 168, 218, .16), transparent 72%),
    rgba(255, 255, 255, .02);
  box-shadow: 0 0 0 4px rgba(46, 168, 218, .07);
}
.dz.over {
  border-style: solid;
  border-color: var(--cyan-2);
  background: radial-gradient(520px 240px at 50% 0%, rgba(46, 168, 218, .24), transparent 72%);
  box-shadow: 0 0 0 5px rgba(46, 168, 218, .12), 0 0 60px -20px rgba(46, 168, 218, .6) inset;
}
.dz-ico {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--cyan-2);
  background: linear-gradient(160deg, rgba(46, 168, 218, .2), rgba(46, 168, 218, .04));
  border: 1px solid rgba(111, 212, 247, .24);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.dz:hover .dz-ico { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(46, 168, 218, 1); }
.dz-t { margin: 0 0 5px; font-size: 15px; font-weight: 550; color: var(--text); }
.dz-s { margin: 0; font-size: 12.3px; color: var(--dim); }
.dz input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- 文件列表 ---------- */
.fl { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.fi {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  animation: fiIn .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes fiIn { from { opacity: 0; transform: translateY(-4px); } }
.fi-nm { flex: 1; min-width: 0; font-size: 13.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-sz { flex: none; font-family: var(--mono); font-size: 11.2px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fi-ord {
  flex: none; width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--cyan-2);
  background: rgba(46, 168, 218, .14);
}
.fi-btn {
  flex: none; width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--dim);
  transition: .15s;
}
.fi-btn:hover { color: var(--danger); background: rgba(255, 125, 125, .12); }

/* ---------- 选项 ---------- */
.opts { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.row-lb { font-size: 12.8px; font-weight: 500; color: var(--muted); }
.row-hint { font-size: 11.5px; color: var(--dim); line-height: 1.6; }
.inp, .sel {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  color: var(--text);
  background: rgba(3, 7, 14, .55);
  border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: 14px;
}
.inp:hover, .sel:hover { border-color: var(--line-3); }
.inp:focus, .sel:focus {
  outline: none;
  border-color: rgba(111, 212, 247, .6);
  box-shadow: 0 0 0 3px rgba(46, 168, 218, .14);
  background: rgba(3, 7, 14, .8);
}
.inp::placeholder { color: var(--dim); }
.sel {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2361708b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  font-size: 12.8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  transition: .16s;
}
.seg button:hover { color: var(--text); border-color: var(--line-2); }
.seg button.on {
  color: #04121c;
  font-weight: 600;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 8px 20px -12px rgba(46, 168, 218, .9);
}
input[type="range"] { width: 100%; accent-color: var(--cyan); height: 24px; }
input[type="color"] {
  width: 44px; height: 34px; padding: 2px;
  border-radius: 8px; border: 1px solid var(--line-2);
  background: rgba(3, 7, 14, .5);
}

/* ---------- 操作区 ---------- */
.act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.act .btn-p { flex: 0 1 auto; min-width: 190px; }

/* ---------- 进度 ---------- */
.pg { margin-top: 18px; }
.pg-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pg-fill {
  height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan) 45%, var(--blue));
  box-shadow: 0 0 14px rgba(46, 168, 218, .8);
  transition: width .28s cubic-bezier(.2, .8, .2, 1);
  position: relative;
  overflow: hidden;
}
.pg-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pg-tx { margin-top: 8px; font-size: 12px; color: var(--dim); font-family: var(--mono); }

/* ---------- 结果 ---------- */
.res { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.res-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 550; color: var(--cyan-2);
}
.res-hd svg { flex: none; }
.res-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid rgba(111, 212, 247, .26);
  background: linear-gradient(180deg, rgba(46, 168, 218, .1), rgba(46, 168, 218, .02));
  animation: fiIn .3s cubic-bezier(.2, .8, .2, 1);
}
.res-nm { flex: 1; min-width: 0; font-size: 13.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-dl {
  flex: none;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #04121c;
  background: var(--grad);
  transition: .16s;
}
.res-dl:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(46, 168, 218, 1); }

/* ---------- 提示条 ---------- */
.nt {
  display: flex; gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  line-height: 1.65;
  margin-top: 16px;
}
.nt svg { flex: none; margin-top: 2px; }
.nt-w { background: rgba(245, 181, 68, .09); border: 1px solid rgba(245, 181, 68, .24); color: #f2cf95; }
.nt-i { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); }

/* ---------- 预览 ---------- */
.prev {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: #05080f;
  max-height: 70vh;
}
.prev canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.prev-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .025);
  position: sticky; top: 0; z-index: 2;
  backdrop-filter: blur(10px);
}
.prev-bar button {
  height: 30px; padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.prev-bar button:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.prev-bar button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- 缩略图 ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; margin-top: 16px; }
.thumb {
  position: relative;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #05080f;
  cursor: grab;
  transition: .16s;
}
.thumb:hover { border-color: var(--line-2); transform: translateY(-1px); }
.thumb.drag { opacity: .35; }
.thumb.over { border-color: var(--cyan-2); box-shadow: 0 0 0 2px rgba(46, 168, 218, .3); }
.thumb canvas { width: 100%; height: auto; display: block; border-radius: 5px; pointer-events: none; }
.thumb-no { padding-top: 4px; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.thumb-ops { position: absolute; top: 3px; right: 3px; display: flex; gap: 2px; opacity: 0; transition: .15s; }
.thumb:hover .thumb-ops { opacity: 1; }
.thumb-ops button {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px; line-height: 1;
  color: var(--muted);
  background: rgba(5, 8, 15, .88);
  border: 1px solid var(--line-2);
}
.thumb-ops button:hover { color: var(--text); background: #16233a; }

/* ---------- 文本域 / 开发工具 ---------- */
.ta {
  width: 100%;
  min-height: 210px;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(3, 7, 14, .6);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.7;
  resize: vertical;
  tab-size: 2;
  transition: border-color .15s, box-shadow .15s;
}
.ta:focus { outline: none; border-color: rgba(111, 212, 247, .55); box-shadow: 0 0 0 3px rgba(46, 168, 218, .12); }
.ta-sm { min-height: 110px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 12.3px; color: var(--muted); }
.two-hd button {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 7px;
  color: var(--cyan-2);
  background: rgba(46, 168, 218, .12);
  border: 1px solid rgba(46, 168, 218, .2);
}
.two-hd button:hover { background: rgba(46, 168, 218, .2); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.8px; color: var(--muted); cursor: pointer; user-select: none; }
.chk input { width: 16px; height: 16px; accent-color: var(--cyan); cursor: pointer; }
.chks { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { font-family: var(--mono); font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.stat b { color: var(--text); font-weight: 600; }
.err-box {
  margin-top: 12px; padding: 12px 14px;
  border-radius: 11px;
  font-size: 12.8px;
  white-space: pre-wrap; word-break: break-word;
  background: rgba(255, 125, 125, .09);
  border: 1px solid rgba(255, 125, 125, .3);
  color: #ffc0c0;
}
.ok-box {
  margin-top: 12px; padding: 12px 14px;
  border-radius: 11px;
  font-size: 12.8px;
  background: rgba(53, 211, 154, .08);
  border: 1px solid rgba(53, 211, 154, .28);
  color: #8ef0c4;
}

/* ---------- 签名板 / OCR ---------- */
.sign-pad {
  display: block; width: 100%; height: 200px;
  border-radius: 12px;
  border: 1px dashed var(--line-3);
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.ocr-out {
  max-height: 420px; overflow: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 14, .55);
  font-size: 13.3px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- 正文 ---------- */
.doc {
  max-width: 760px;
  padding: 30px 0 6px;
  color: var(--muted);
  font-size: 14.4px;
  line-height: 1.92;
}
.doc h2 {
  position: relative;
  margin: 34px 0 12px;
  padding-left: 13px;
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -.015em;
  color: var(--text);
}
.doc h2::before {
  content: "";
  position: absolute; left: 0; top: .45em; bottom: .42em;
  width: 3px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(46, 168, 218, .6);
}
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 4px; list-style: none; counter-reset: docli; }
.doc li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.doc ul li::before {
  content: "";
  position: absolute; left: 8px; top: .74em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: rgba(111, 212, 247, .6);
  box-shadow: 0 0 10px rgba(46, 168, 218, .5);
  transform: rotate(45deg);
}
.doc ol li { counter-increment: docli; }
.doc ol li::before {
  content: counter(docli);
  position: absolute; left: 0; top: .12em;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan-2);
  background: rgba(46, 168, 218, .13);
  border: 1px solid rgba(46, 168, 218, .22);
}
.doc strong { color: var(--text); font-weight: 600; }
.doc code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 1.5px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  color: #c9dcf2;
}
.doc a { color: var(--cyan-2); border-bottom: 1px solid rgba(111, 212, 247, .3); }
.doc a:hover { border-color: var(--cyan-2); }

/* ---------- FAQ ---------- */
.faq { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  transition: border-color .18s, background .18s;
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: rgba(46, 168, 218, .3); background: rgba(46, 168, 218, .045); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
  font-size: 13.8px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
  color: var(--dim);
  transition: .2s;
}
.faq details[open] summary::after { content: "−"; color: var(--cyan-2); }
.faq .faq-a { padding: 0 16px 15px; font-size: 13.2px; line-height: 1.85; color: var(--muted); }

/* ---------- 侧栏卡片 ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  padding: 16px;
}
.card-hd {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card-hd svg { flex: none; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: st; }
.steps li { position: relative; padding-left: 30px; font-size: 12.8px; line-height: 1.7; color: var(--muted); counter-increment: st; }
.steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: 0;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan-2);
  background: rgba(46, 168, 218, .13);
  border: 1px solid rgba(46, 168, 218, .24);
}
.steps li::after {
  content: "";
  position: absolute; left: 10px; top: 24px; bottom: -9px;
  width: 1px;
  background: linear-gradient(180deg, rgba(46, 168, 218, .3), transparent);
}
.steps li:last-child::after { display: none; }
.guard { display: flex; flex-direction: column; gap: 9px; }
.guard-i { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.guard-i svg { flex: none; margin-top: 2px; color: #7fe3c0; }
.guard-i b { color: var(--text); font-weight: 600; }

/* ---------- 相关工具 ---------- */
.rel { padding: 8px 0 40px; }
.rel-hd {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 12px;
}
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.rel-i {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: .16s;
}
.rel-i:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .045); transform: translateY(-1px); }
.rel-i .ri {
  flex: none; width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--cyan-2);
  background: rgba(46, 168, 218, .12);
}
.rel-i b { font-size: 13px; font-weight: 550; }
.rel-i > span:last-child > span { display: block; margin-top: 1px; font-size: 11.2px; color: var(--dim); }

.aside .rel-grid { grid-template-columns: 1fr; gap: 7px; }
.aside .rel { padding: 0; }
.aside .rel-i { padding: 10px 11px; }

/* ---------- 分类页 ---------- */
.cat-sec { margin-bottom: 34px; }
.cat-hd { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.cat-hd h2 { margin: 0; font-size: 16px; font-weight: 650; }
.cat-hd span { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.cat-hd a { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cat-hd a:hover { color: var(--cyan-2); }
.new-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); flex: none; }
.hero-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; position: relative; }

/* ---------- 404 ---------- */
.nf { padding: clamp(50px, 10vw, 100px) 20px 40px; text-align: center; }
.nf h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(64px, 15vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf p { margin: 14px auto 26px; max-width: 420px; color: var(--muted); font-size: 14.5px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 8px; }
  .side-sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side-sticky > .rel-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .tp-hero { gap: 13px; padding-bottom: 20px; }
  .tp-ico { width: 48px; height: 48px; border-radius: 13px; }
  .tp-ico svg { width: 22px; height: 22px; }
  .tp-hero h1 { font-size: 21px; }
  .tp-hero .tp-ds { font-size: 13px; }
  .doc { font-size: 14px; padding-top: 24px; }
  .doc h2 { font-size: 16.5px; margin-top: 28px; }
  .two { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .side-sticky { grid-template-columns: 1fr; }
  /* iOS 输入框字号 <16px 会触发页面自动放大 */
  .inp, .sel, .ta { font-size: 16px; }
  /* iOS 输入框字号 <16px 会触发页面自动放大 */
  .inp, .sel, .ta { font-size: 16px; }
  .dz { padding: 32px 16px; }
  .dz-ico { width: 48px; height: 48px; margin-bottom: 11px; }
  .dz-t { font-size: 14px; }
}

/* 工具页移动端：底部固定操作条 */
@media (max-width: 760px) {
  body[data-tool] { padding-bottom: 0; }
  body[data-tool] .act {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    background: rgba(5, 8, 15, .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -20px 40px -30px #000;
  }
  body[data-tool] .act .btn { flex: 1; height: 46px; }
  body[data-tool] .act .btn-g { flex: 0 0 auto; }
  body[data-tool] .ft { padding-bottom: 92px; }
  body[data-tool] .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wb .panel { padding-bottom: 8px; }
}
