/* ============================================================
   在线工具页 · 样式
   沿用 bplot.css 的设计变量（深空蓝 + 电光蓝 + 毛玻璃）
   仅作用于 .tool-* 命名空间，不影响首页
   ============================================================ */

/* ---------- 顶部 ---------- */
.tool-hero {
  position: relative;
  padding: 148px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(47, 123, 255, .28), transparent 62%),
    radial-gradient(760px 380px at 88% 8%, rgba(34, 211, 238, .20), transparent 60%),
    linear-gradient(168deg, #070C18 0%, #0C1526 46%, #111E33 100%);
}
/* 蓝图网格纹理 */
.tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .09) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.tool-hero .wrap { position: relative; z-index: 1; }
.tool-hero .eyebrow {
  color: #9FC4FF;
  border-color: rgba(120, 170, 255, .28);
  background: rgba(47, 123, 255, .12);
}
.tool-hero .eyebrow .dot { background: #22D3EE; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }
.tool-hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #fff;
}
.tool-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #6FB0FF 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tool-sub {
  max-width: 660px;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: #A9BCD6;
}
.tool-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 13.5px;
  color: #8FA6C4;
}
.tool-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.tool-hero-meta svg { width: 15px; height: 15px; color: #22D3EE; flex: none; }

/* ---------- 主体区 ---------- */
.tool-main {
  position: relative;
  margin-top: -34px;
  padding-bottom: 8px;
  z-index: 2;
}
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* 主卡片 */
.tool-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* 上传/入口区 */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 46px 24px;
  text-align: center;
  border: 2px dashed rgba(47, 123, 255, .34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.drop-zone:hover,
.drop-zone.is-over {
  border-color: var(--brand);
  background: rgba(47, 123, 255, .07);
  transform: translateY(-1px);
}
.drop-zone .dz-ico {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(47, 123, 255, .16), rgba(34, 211, 238, .14));
  color: var(--brand-deep);
}
.drop-zone .dz-ico svg { width: 30px; height: 30px; }
.drop-zone strong { font-size: 17px; color: var(--text); font-weight: 700; }
.drop-zone span { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.drop-zone .dz-tip {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 设置区 */
.tool-settings {
  margin: 22px 0 4px;
  padding: 18px 0 2px;
  border-top: 1px solid var(--line);
}
.set-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.set-row > label {
  flex: none;
  width: 76px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: all .16s;
}
.chip:hover { border-color: rgba(47, 123, 255, .42); color: var(--brand-deep); }
.chip.on {
  color: #fff;
  background: linear-gradient(135deg, #3D86FF, #1656D6);
  border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(47, 123, 255, .8);
}
.chip[disabled] { opacity: .55; cursor: not-allowed; }

.tool-go {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

/* 侧栏 */
.tool-side { display: grid; gap: 18px; }
.tool-aside-card {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tool-aside-card h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tool-aside-card dl { margin: 0; display: grid; gap: 11px; }
.tool-aside-card dt {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.tool-aside-card dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.tool-aside-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tool-aside-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.tool-aside-list li svg {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  color: var(--ok);
}
.tool-aside-cta {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #0C1526, #111E33);
  border: 1px solid rgba(120, 170, 255, .18);
  color: #C6D6EC;
}
.tool-aside-cta h4 { margin: 0 0 8px; font-size: 15px; color: #fff; }
.tool-aside-cta p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.7; color: #93A9C6; }
.tool-aside-cta .btn { width: 100%; }

/* ---------- 步骤 ---------- */
.tool-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.tool-steps li {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tool-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #3D86FF, #1656D6);
  box-shadow: 0 8px 18px -8px rgba(47, 123, 255, .9);
}
.tool-steps h3 { margin: 6px 0 8px; font-size: 16px; color: var(--text); }
.tool-steps p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* 相关工具 */
.tool-rel { position: relative; }
.tool-rel .card { cursor: default; }
.tool-rel .card.is-soon { opacity: .72; }
.badge-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  background: var(--paper-3);
  border-radius: 6px;
  vertical-align: middle;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-hero { padding: 124px 0 56px; }
  .tool-main { margin-top: -26px; }
  .tool-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tool-card { padding: 18px; }
  .drop-zone { padding: 34px 16px; }
  .set-row > label { width: 100%; }
  .tool-hero { padding: 112px 0 48px; }
}

/* ---------- 标题渐变（bplot.css 里 .grad 只作用于 .hero h1） ---------- */
.section-head h2 .grad {
  background: linear-gradient(120deg, #2F7BFF 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 卡片内按钮间距 */
.cards .card p + p { margin-top: 12px; }
.cards .card .btn { margin-top: 2px; }
