.tool-header {
  border-bottom:1px solid var(--line);
  padding:12px 0;
  position:sticky;
  top:0;
  z-index:60;
  background:color-mix(in srgb,var(--bg) 28%,transparent);
  backdrop-filter:blur(10px)
}
.tool-header .wrap {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.tool-brand {
  font-weight:800;
  font-size:24px;
  letter-spacing:-.6px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap
}
.tool-header-actions {
  display:flex;
  align-items:center;
  gap:15px;
  font-size:13px
}
.tool-layout {
  max-width:940px;
  margin:0 auto;
  padding:50px 28px 70px
}
.breadcrumb {
  font-size:12px;
  color:var(--muted);
  margin-bottom:25px
}
.tool-heading {
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:26px
}
.tool-heading h1 {
  font-size:30px;
  line-height:1.4;
  margin:0 0 5px
}
.tool-heading p {
  font-size:13px;
  margin:0
}
.local-badge {
  font-size:11px;
  background:var(--accent-soft);
  border-radius:30px;
  padding:3px 12px;
  display:inline-block;
  margin-bottom:20px
}
.tool-workspace {
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--surface);
  box-shadow:var(--shadow);
  padding:30px
}
.field {
  margin-bottom:20px
}
.field label,.output-label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:9px
}
.field textarea {
  display:block;
  width:100%;
  min-height:170px;
  resize:vertical;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:14px;
  line-height:1.7
}
.field input {
  width:100%
}
.field small {
  color:var(--muted);
  display:block;
  font-size:12px;
  margin-top:6px
}
.inline-field {
  display:flex;
  gap:10px
}
.inline-field input {
  flex:1
}
.inline-field button {
  white-space:nowrap
}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px
}
.result-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px
}
.result-head label {
  margin:0
}
.result-head button {
  padding:4px 12px;
  font-size:12px
}
#result {
  background:var(--bg);
  min-height:160px
}
#tool-status {
  font-size:13px;
  min-height:24px;
  overflow-wrap:anywhere
}
#tool-status[data-error=true] {
  color:#b34935
}
.tool-note {
  margin-top:28px;
  padding:20px 24px;
  background:var(--soft);
  border-radius:18px;
  font-size:12px
}
.tool-note p {
  margin:8px 0 0
}
.tool-nav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:30px
}
.tool-nav a {
  font-size:12px;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  transition:background .2s,border-color .2s
}
.tool-nav a[aria-current=page] {
  background:var(--accent-soft);
  border-color:var(--accent)
}
.time-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.time-fields select {
  width:100%
}
.field select {
  width:100%
}
.tool-footer {
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin-top:30px
}
@media(max-width:640px) {
  .tool-layout {
    padding:30px 18px 45px
  }
  .tool-header {
    padding:12px 0
  }
  .tool-brand {
    font-size:16px;
    gap:8px
  }
  .tool-header-actions {
    font-size:12px;
    gap:10px
  }
  .tool-heading {
    align-items:start;
    gap:12px
  }
  .tool-heading h1 {
    font-size:24px
  }
  .tool-workspace {
    padding:20px 16px;
    border-radius:18px
  }
  .time-fields {
    grid-template-columns:minmax(0,1fr);
    gap:0
  }
  .actions {
    gap:8px
  }
  .actions button {
    font-size:13px;
    padding:8px 12px
  }
  .inline-field button {
    padding:8px 10px
  }
  .field textarea,.field input,.field select {
    font-size:16px
  }
}

.tool-heading > div { min-width:0; }
.tool-heading .icon.has-image-icon { width:64px; height:64px; background:none; box-shadow:none; border-radius:0; }
.asset-icon { display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:640px) { .tool-heading .icon.has-image-icon { width:52px; height:52px; } }

/* 与首页复用品牌路径、柔和底色和图标体系。 */
body { background:radial-gradient(ellipse at 0 500px,#e2efff88,transparent 800px),radial-gradient(ellipse at 100% 1000px,#eeeaff80,transparent 900px),var(--bg); }
:root[data-theme=dark] body { background:radial-gradient(ellipse at 0 500px,#1c355b55,transparent 800px),radial-gradient(ellipse at 100% 1000px,#2e295255,transparent 900px),var(--bg); }
.tool-brand-mark { width:40px; height:40px; display:inline-flex; flex-shrink:0; }
.tool-brand-mark svg { width:100%; height:100%; }
.tool-header-actions { flex-shrink:0; }
.tool-header-actions [data-theme-toggle] { width:40px; height:40px; padding:0; display:grid; place-items:center; border-radius:50%; }
.tool-nav-icon { width:26px; height:26px; flex-shrink:0; display:grid; place-items:center; }
.tool-nav-icon svg { width:24px; height:24px; }
.tool-nav a:hover { background:var(--accent-soft); border-color:var(--accent); }
@media(max-width:780px) { .tool-nav { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) {
  .tool-header .wrap { gap:10px; }
  .tool-brand-mark { width:30px; height:30px; }
  .tool-header-actions [data-theme-toggle] { width:36px; height:36px; }
  .tool-nav a { padding:8px; font-size:11px; gap:6px; }
}
