/* ============================================================
   PDF智转 · Design System v2 "工程面板"
   dark-first · hairline borders · single signal-green accent
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/pdf/assets/sg-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/pdf/assets/sg-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #08090A;
  --panel: #0D0F12;
  --panel-2: #12151A;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --ink: #E7E9EC;
  --ink-2: #9CA3AC;
  --ink-3: #5F6771;
  --accent: #00E589;
  --accent-dim: rgba(0, 229, 137, .13);
  --accent-line: rgba(0, 229, 137, .45);
  --on-accent: #04120B;
  --danger: #FF5C5C;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 10px;
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 蓝图网格底纹 + 顶部绿色辉光，一层伪元素搞定 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 100%);
}
body::after {
  content: "";
  position: fixed; top: -140px; left: 50%; transform: translateX(-50%);
  width: 860px; height: 340px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,229,137,.09), transparent);
}

::selection { background: rgba(0, 229, 137, .30); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #262B31 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #262B31; border-radius: 8px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17.5px;
  letter-spacing: -.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 27px; height: 27px; }
.brand::after { content: "."; color: var(--accent); }   /* 品牌尾点 */

.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav nav > a { color: var(--ink-2); font-size: 14px; letter-spacing: .01em; position: relative; padding: 4px 0; }
.nav nav > a:hover { color: var(--ink); text-decoration: none; }
.nav nav > a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.lang-switch { display: inline-flex; border-left: 1px solid var(--line); padding-left: 14px; margin-left: 4px; gap: 2px; }
.lang-switch .lang-item {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--ink-3); padding: 3px 8px; border-radius: 5px;
  white-space: nowrap;
}
.lang-switch .lang-item:hover { color: var(--ink); text-decoration: none; }
.lang-switch .lang-item.active { color: var(--accent); background: var(--accent-dim); }

/* ---------------- Hero ---------------- */
.hero { padding: 84px 0 34px; text-align: left; max-width: 720px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 20px;
}
.hero h1 .grad { color: var(--accent); }               /* 主色实色，不再用渐变 */
.hero p.sub { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 0 26px; }

.trust { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); width: fit-content; }
.trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-2); text-transform: uppercase;
  padding: 12px 22px 0 0; margin-right: 22px; border: 0;
}
.trust span::before {
  content: ""; width: 6px; height: 6px; background: var(--accent);
  box-shadow: 0 0 8px rgba(0,229,137,.7);
}

/* ---------------- 卡片体系 ---------------- */
.card {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(13,15,18,.55) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(255, 255, 255, .22); }

.tool-card {
  padding: 0;                                    /* 内部走分区线 */
  overflow: hidden;
}
.tool-card > div:not([hidden]) { padding: 30px 32px 28px; }
.tool-card { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 30px 60px -30px rgba(0,0,0,.8); }

/* 工具卡四角的刻度记号 */
.tool-card::before, .tool-card::after {
  content: "+"; position: absolute;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-3);
  line-height: 1; pointer-events: none;
}
.tool-card::before { top: 8px; left: 12px; }
.tool-card::after  { bottom: 6px; right: 12px; }
#tool { position: relative; }

/* ---------------- 拖拽上传区 ---------------- */
.dropzone {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 46px 20px 42px; text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent-line);
  background: rgba(0, 229, 137, .04);
}
.dz-icon { width: 40px; height: 40px; opacity: .95; }
.dropzone h3 { margin: 14px 0 6px; font-size: 16.5px; font-weight: 600; font-family: var(--font-display); }
.dropzone p { margin: 0; color: var(--ink-3); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .05em; }
.dropzone .btn-primary { margin-top: 20px; pointer-events: none; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: 7px; padding: 11px 22px;
  font-size: 14.5px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: filter .12s, transform .12s, opacity .15s;
  text-decoration: none !important;
}
.btn-primary:hover { filter: brightness(1.12) saturate(1.05); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }
.btn-primary:disabled { opacity: .38; cursor: not-allowed; transform: none; filter: grayscale(.4); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 10px 18px;
  font-size: 14px; cursor: pointer; font-family: var(--font-body);
  transition: border-color .15s, background .15s;
  text-decoration: none !important;
}
.btn-outline:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.035); text-decoration: none; }

/* 文件选择后 */
.advanced { margin-top: 16px; color: var(--ink-2); font-size: 13.5px; }
.advanced summary {
  cursor: pointer; user-select: none; color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
}
.advanced summary:hover { color: var(--ink-2); }
.advanced .row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px; align-items: center; }
.advanced label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.advanced select {
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 10px; font-size: 13.5px; font-family: inherit;
}
.advanced input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

.ready-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel-2); font-size: 13.5px; max-width: 100%;
}
.file-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; font-weight: 600; }
.file-chip .meta { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; font-family: var(--font-mono); letter-spacing: .03em; }
.file-chip button.remove { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 14px; padding: 0 2px; }
.file-chip button.remove:hover { color: var(--danger); }

/* ---------------- 上传进度 ---------------- */
.progress-line { margin: 8px 0 2px; }
.bar {
  height: 8px; border-radius: 3px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, #171B1F 0 9px, #101317 9px 12px);
  border: 1px solid var(--line);
}
.bar > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #19FFA5);
  transition: width .25s ease;
  box-shadow: 0 0 12px rgba(0,229,137,.45);
}
.pct { font-size: 12px; color: var(--ink-2); margin-top: 10px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------------- 解析阶段（终端日志风） ---------------- */
.stepper { list-style: none; display: flex; justify-content: space-between; padding: 4px 6px; margin: 6px 0 14px; position: relative; }
.stepper li {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.stepper .dot {
  width: 30px; height: 30px; border-radius: 6px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  transition: all .2s;
}
.stepper li.active { color: var(--ink); }
.stepper li.active .dot { border-color: var(--accent-line); color: var(--accent); animation: pulse 1.6s infinite; }
.stepper li.donep { color: var(--accent); }
.stepper li.donep .dot { border-color: var(--accent-line); background: var(--accent-dim); color: var(--accent); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(0,229,137,.12); } }

.stat-line { color: var(--ink-2); font-size: 13.5px; min-height: 22px; font-family: var(--font-mono); letter-spacing: .02em; }
.stat-line::before { content: "> "; color: var(--accent); font-weight: 700; }
.spin {
  display: inline-block; width: 12px; height: 12px;
  border: 1.5px solid var(--line-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: rot .8s linear infinite;
  vertical-align: -2px; margin-right: 7px;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------- 完成区 ---------------- */
.done-head { display: flex; align-items: baseline; gap: 12px; }
.done-head .tick { font-size: 22px; color: var(--accent); }
.done-head h3 { margin: 0; font-size: 21px; font-family: var(--font-display); letter-spacing: -.01em; }
.done-meta { color: var(--ink-3); font-size: 12px; margin: 8px 0 20px; font-family: var(--font-mono); letter-spacing: .06em; }
.export-row { display: flex; flex-wrap: wrap; gap: 11px; }

/* ---------------- 错误卡 ---------------- */
.error-box { text-align: center; padding: 14px 0 6px; }
.error-box .face { font-family: var(--font-mono); font-size: 15px; color: var(--danger); letter-spacing: .3em; }
.error-box pre.msg {
  white-space: normal; word-break: break-word;
  background: rgba(255, 92, 92, .07);
  border: 1px solid rgba(255, 92, 92, .28);
  color: #FFA3A3; padding: 14px 18px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65;
}

/* ---------------- 预览 ---------------- */
.preview-tabs { display: flex; gap: 4px; margin: 24px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.preview-tabs button {
  border: 1px solid transparent; background: transparent; color: var(--ink-3);
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-family: var(--font-mono); letter-spacing: .05em;
}
.preview-tabs button:hover { color: var(--ink-2); }
.preview-tabs button.on { color: var(--accent); background: var(--accent-dim); border-color: var(--accent-line); }

#preview-src {
  width: 100%; height: 420px; resize: vertical;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  border-radius: 8px; border: 1px solid var(--line);
  padding: 16px; background: #0A0C0E; color: #C8CED6;
}

/* ---------------- 正文排版（预览 & 内容页） ---------------- */
.prose { font-size: 15px; color: #CBD1D8; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.35; }
.prose h2 { font-size: 23px; margin-top: 2em; }
.prose pre {
  background: #0A0C0E; border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 12.5px;
}
.prose code { font-family: var(--font-mono); font-size: .88em; background: rgba(255,255,255,.07); padding: .14em .4em; border-radius: 4px; }
.prose pre code { background: transparent; padding: 0; }
.prose blockquote { border-left: 2px solid var(--accent-line); margin: 1.1em 0; padding: 2px 0 2px 16px; color: var(--ink-2); }
.prose table { border-collapse: collapse; margin: 1.2em 0; max-width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 13px; font-size: 13.5px; }
.prose th { background: rgba(255,255,255,.05); color: var(--ink); font-weight: 600; }
.prose img { max-width: 100%; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* ---------------- 内容页标题 ---------------- */
.page-title { padding: 64px 0 10px; }
.page-title h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.5vw, 40px); margin: 0 0 10px; letter-spacing: -.02em;
}
.page-title h1::after { content: "_"; color: var(--accent); }
.content-section { padding: 6px 0 56px; }

.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 20px; margin: 10px 0; transition: border-color .15s;
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 26px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 0;
  font-family: var(--font-mono); color: var(--accent); font-size: 15px;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: 8px; }

/* ---------------- 特性网格 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; counter-reset: feat; }
.feature-grid article { padding: 22px 22px 20px; position: relative; counter-increment: feat; }
.feature-grid article:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.feature-grid article:nth-child(n):hover { border-color: rgba(255,255,255,.28); }
.feature-grid article::before {
  content: "0" counter(feat);
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: .1em;
}
.feature-grid h3 { margin: 12px 0 7px; font-size: 15.5px; font-family: var(--font-display); }
.feature-grid p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.66; }
.feature-grid .ic-svg {
  width: 24px; height: 24px; stroke: var(--accent); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------- 步骤列表 ---------------- */
.steps-list { counter-reset: st; list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.steps-list li { padding: 20px 22px; position: relative; }
.steps-list li::before {
  counter-increment: st; content: "STEP_" counter(st);
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; color: var(--accent); margin-bottom: 10px;
}
.steps-list strong { color: var(--ink); font-family: var(--font-display); }

.section-h { text-align: center; margin: 64px 0 8px; font-family: var(--font-display); letter-spacing: -.01em; }
.section-h::after { content: "//"; color: var(--accent); font-family: var(--font-mono); font-size: .8em; margin-left: 8px; vertical-align: middle; }
main .section-h + p { text-align: center; color: var(--ink-2); margin-top: 4px; }

/* ---------------- 广告位 ---------------- */
.ad-slot { display: block; margin: 30px auto; text-align: center; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: #14181C; color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 11px 20px; border-radius: 8px;
  font-size: 13.5px; font-family: var(--font-mono);
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; max-width: 88vw;
  box-shadow: 0 18px 46px -14px rgba(0,0,0,.75);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255,92,92,.5); color: #FFB3B3; }

/* ---------------- 页脚 ---------------- */
footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0 36px; color: var(--ink-3); font-size: 13px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site h4 {
  color: var(--ink-3); font-size: 11px; margin: 0 0 12px;
  letter-spacing: .18em; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--accent); text-decoration: none; }
footer.site .fine { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; }
.sys-status { display: inline-flex; align-items: center; gap: 8px; }
.sys-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 9px rgba(0,229,137,.8);
  animation: blinkdot 2.4s infinite;
}
@keyframes blinkdot { 50% { opacity: .45; } }

.hidden, [hidden] { display: none !important; }

/* 404 页专用的旧类兜底 */
.nf h1 { font-family: var(--font-display); }
.nf h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }

@media (max-width: 680px) {
  .hero { padding-top: 56px; }
  .brand { white-space: nowrap; font-size: 16px; }
  .brand img { width: 23px; height: 23px; }
  .nav .wrap { gap: 10px; justify-content: space-between; }
  .nav nav { gap: 10px; margin-left: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav > a { white-space: nowrap; font-size: 13px; }
  .lang-switch { border-left: 1px solid var(--line); padding-left: 8px; gap: 0; }
  .lang-switch .lang-item { font-size: 10.5px; padding: 3px 5px; }
  .tool-card > div:not([hidden]) { padding: 22px 18px 20px; }
  .stepper li { font-size: 9px; letter-spacing: .08em; }
  .trust span { padding-right: 14px; margin-right: 14px; letter-spacing: .1em; }
  footer.site .fine { flex-direction: column; }
}

/* ---------------- 工具集：选项行 / 队列 / 结果列表 / 门户网格 ---------------- */
.opt-row {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); margin-right: 22px;
}
.opt-row > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.opt-row select, .opt-row input[type="text"] {
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 10px; font-size: 13.5px; font-family: inherit;
}
.opt-row input[type="text"] { min-width: 210px; }
.opt-hint { color: var(--ink-3); font-size: 12.5px; margin: 6px 0 0; }
.opt-hint.small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }

.queue-list { margin-top: 14px; }
.queue-list[hidden] { display: none !important; }
.queue-title { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 8px; }
.queue-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 7px;
  padding: 8px 12px; margin-bottom: 6px; background: var(--panel-2); font-size: 13px;
}
.queue-item .q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; color: var(--ink); }
.queue-item .meta { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }
.queue-item button {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer; line-height: 1;
}
.queue-item button:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent); }
.queue-item button:disabled { opacity: .35; cursor: not-allowed; }

.result-list .result-head { font-size: 11px; letter-spacing: .16em; color: var(--ink-3); margin-bottom: 10px; }
.result-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 8px; background: var(--panel-2);
}
.result-item .r-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.result-item .meta { color: var(--ink-3); font-size: 11.5px; font-family: var(--font-mono); white-space: nowrap; }
#resultNote { color: var(--accent); font-size: 12.5px; margin: 4px 0 0; min-height: 18px; font-family: var(--font-mono); }

/* 门户首页 */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 20px; }
.tile {
  display: block; position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(13,15,18,.55) 100%);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; color: var(--ink);
  transition: border-color .16s ease, transform .16s ease;
}
a.tile:hover { text-decoration: none; border-color: var(--accent-line); transform: translateY(-2px); }
.tile svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 12px 0 5px; font-size: 15.5px; font-family: var(--font-display); }
.tile p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.tile .tag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  color: var(--accent); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 2px 8px;
}
.tile.soon { opacity: .48; cursor: default; }
.tile.soon .tag { color: var(--ink-3); border-color: var(--line-strong); }

/* 文本域 / 密码输入（html与加密工具） */
.opt-area {
  width: 100%; min-height: 130px; resize: vertical;
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 10px;
}
.opt-area:focus { outline: none; border-color: var(--accent-line); }
.opt-row input[type="password"], .opt-row input[type="text"] {
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 10px; font-size: 13.5px; font-family: inherit; min-width: 170px;
}
.opt-row label input[type="checkbox"] { accent-color: var(--accent); margin-right: 4px; }
