:root {
  --bg: #f4f7f5;
  --bg-deep: #0b1f1c;
  --surface: rgba(255, 255, 255, 0.82);
  --ink: #12201d;
  --muted: #5b6f69;
  --line: rgba(15, 55, 48, 0.12);
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --coral: #e85d4c;
  --sand: #d8c3a5;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 31, 28, 0.12);
  --font: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "DM Sans", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(232, 93, 76, 0.16), transparent 50%),
    linear-gradient(180deg, #eef5f2 0%, var(--bg) 40%, #e8efeb 100%);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
/* author 的 display 会盖掉 UA 的 [hidden]，必须显式收回 */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 245, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, var(--teal-2), var(--teal) 55%, #0b4f4a),
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,.25));
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 8px 8px;
  background: #f8fafc;
  clip-path: polygon(0 100%, 28% 20%, 52% 70%, 72% 35%, 100% 100%);
  opacity: 0.95;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  flex: 1;
}

.nav-item { position: relative; }
.nav-trigger,
.nav-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-trigger:hover,
.nav-link:hover,
.nav-item:hover .nav-trigger {
  background: rgba(15, 118, 110, 0.08);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(720px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .18s ease;
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mega-head h3 { margin: 0 0 4px; font-size: 1rem; }
.mega-head p { margin: 0 0 12px; color: var(--muted); font-size: 0.88rem; }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.mega-grid a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.mega-grid a:hover { background: #f0faf7; color: var(--teal); }
.mega-grid em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--coral);
  background: rgba(232, 93, 76, 0.1);
  padding: 2px 6px;
  border-radius: 999px;
  height: fit-content;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}

.lang-switch { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  line-height: 1.2;
}

.lang-btn:hover,
.lang-switch.open .lang-btn {
  border-color: var(--teal);
  color: var(--teal);
  background: #fff;
}

.lang-caret { font-size: 0.7rem; opacity: 0.7; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 168px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 80;
}

.lang-menu[hidden] { display: none !important; }

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.lang-menu a:hover { background: #f0faf7; color: var(--teal); }
.lang-menu a.is-active { font-weight: 700; color: var(--teal); background: rgba(15, 118, 110, 0.08); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: .15s ease;
}

.btn-header {
  padding: 8px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.btn-cutout {
  min-width: auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,.7);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-coral {
  background: linear-gradient(135deg, #f07162, var(--coral));
  color: #fff;
}

.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.hero h1 .brand-hero {
  display: block;
  background: linear-gradient(90deg, var(--teal), #0b4f4a 40%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 36em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(15,118,110,.9), rgba(11,31,28,.95)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60V0h60' fill='none' stroke='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #fff;
  padding: 28px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,76,.45), transparent 70%);
}

.hero-visual-inner { position: relative; z-index: 1; }
.hero-visual h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.hero-visual p { margin: 0 0 20px; opacity: .85; line-height: 1.6; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compare-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  min-height: 140px;
}

.compare-item span {
  display: inline-block;
  font-size: 0.75rem;
  opacity: .75;
  margin-bottom: 10px;
}

.fake-photo {
  height: 90px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #f4d4b8, #e8a987 40%, #7bb8b0);
}

.fake-photo.cutout {
  background:
    linear-gradient(180deg, transparent 0 18%, #f4d4b8 18% 82%, transparent 82%),
    linear-gradient(90deg, transparent 12%, #e8a987 12% 88%, transparent 88%);
  background-color: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

/* Sections */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 6px;
}
.section-head p { margin: 0; color: var(--muted); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: .18s ease;
  backdrop-filter: blur(8px);
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 34px rgba(11, 31, 28, 0.1);
}

.tool-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  color: var(--coral);
  background: rgba(232, 93, 76, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.tool-card .go {
  margin-top: 14px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
}

.cat-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.cat-card {
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.cat-card:nth-child(1) { background: linear-gradient(145deg, #0f766e, #115e59); }
.cat-card:nth-child(2) { background: linear-gradient(145deg, #ea580c, #c2410c); }
.cat-card:nth-child(3) { background: linear-gradient(145deg, #2563eb, #1d4ed8); }

.cat-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.4rem; }
.cat-card p { margin: 0; opacity: .88; line-height: 1.5; }
.cat-card span { display: inline-block; margin-top: 16px; font-weight: 600; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.step b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15,118,110,.12);
  color: var(--teal);
  margin-bottom: 10px;
}

.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

.cta-band {
  margin: 20px 0 40px;
  border-radius: 28px;
  padding: 36px;
  background:
    radial-gradient(500px 200px at 80% 20%, rgba(232,93,76,.25), transparent),
    linear-gradient(120deg, #0b1f1c, #134e4a);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-band h2 { font-family: var(--display); margin: 0 0 8px; font-size: 2rem; }
.cta-band p { margin: 0; opacity: .85; }

/* Tool workspace */
.tool-hero {
  padding: 28px 0 10px;
}
.tool-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 8px;
}
.tool-hero p { margin: 0; color: var(--muted); max-width: 46em; line-height: 1.6; }

.tool-guide {
  padding: 8px 0 48px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.04), transparent 120px),
    transparent;
}

.tool-guide-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px 40px;
  align-items: start;
}

.tool-guide h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.tool-guide h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
}

.tool-guide-detail {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 48em;
}

.tool-guide-list {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  line-height: 1.7;
}

.tool-guide-list li { margin-bottom: 6px; }

.tool-guide-side {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
}

.tool-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-guide-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.95rem;
}

.tool-guide-steps .n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .tool-guide-grid { grid-template-columns: 1fr; }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .bc-sep { opacity: .45; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.seo-article { padding-bottom: 48px; }
.seo-article .seo-lead { color: var(--muted); max-width: 720px; }
.seo-body { max-width: 720px; line-height: 1.7; }
.seo-body p { margin: 0 0 14px; }
.seo-article h2 { margin: 36px 0 14px; font-size: 1.25rem; }
.html-sitemap h2 a { color: inherit; text-decoration: none; }
.html-sitemap h2 a:hover { color: var(--teal); }
.sitemap-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
}
.sitemap-list a {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.95rem;
}
.sitemap-list a:hover { text-decoration: underline; }

.tool-faq { padding: 8px 0 36px; }
.seo-faq { max-width: 720px; display: grid; gap: 8px; }
.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  padding: 12px 16px;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding: 18px 0 40px;
}

.panel {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }

.dropzone {
  border: 1.5px dashed rgba(15, 118, 110, 0.35);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  background: rgba(15, 118, 110, 0.04);
  cursor: pointer;
  transition: .15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}
.dropzone strong { display: block; margin-bottom: 6px; }
.dropzone span { color: var(--muted); font-size: 0.85rem; }

.preview-stage {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-box {
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, #ecefe9 25%, transparent 25%),
    linear-gradient(-45deg, #ecefe9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ecefe9 75%),
    linear-gradient(-45deg, transparent 75%, #ecefe9 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-box img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
}

.preview-box .placeholder {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.preview-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11,31,28,.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.result-text {
  white-space: pre-wrap;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-height: 220px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.status-bar {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}
.status-bar.error { color: var(--danger); }
.status-bar.ok { color: var(--ok); }

.mask-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.mask-wrap canvas {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
}

.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.wm-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-color {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.wm-color.active { box-shadow: 0 0 0 2px var(--teal); }

.bg-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bg-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.bg-swatch.active { box-shadow: 0 0 0 2px var(--teal); }

.notice {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(217, 119, 6, 0.1);
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.notice.info {
  background: rgba(15, 118, 110, 0.1);
  color: #115e59;
}

/* Category page */
.page-hero { padding: 36px 0 10px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: 2.2rem;
  margin: 0 0 8px;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,.86);
  padding: 48px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 22px;
}
.footer-brand p { color: rgba(255,255,255,.65); line-height: 1.6; font-size: 0.9rem; }
.footer-col h4 { margin: 0 0 12px; font-size: 0.95rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.site-footer .brand-text small { color: rgba(255,255,255,.55); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}
.demo-badge {
  color: #fbbf24;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  line-height: 1.75;
  margin: 20px 0 40px;
}
.prose h1 { font-family: var(--display); margin-top: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .workspace,
  .preview-stage,
  .footer-grid,
  .cat-banner,
  .steps { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-main {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    margin: 0;
  }
  .nav-main.open { display: flex; }
  .mega-panel {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    display: none;
    max-height: 240px;
  }
  .nav-item.open .mega-panel { display: block; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .tool-grid { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-cutout { display: none; }
  .lang-menu { right: 0; left: auto; }
}

/* Admin finance */
.admin-wrap { padding: 36px 16px 72px; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}
.admin-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-tabs a.is-active,
.admin-tabs a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.admin-stat {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.admin-stat strong {
  font-size: 1.45rem;
  color: var(--teal);
}
.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-filter .chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
}
.admin-filter .chip.is-on {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  font-weight: 600;
}
.admin-filter .text-input { max-width: 280px; }
.admin-table-wrap { padding: 0; overflow: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.admin-table thead th {
  border-top: 0;
  background: rgba(15, 118, 110, 0.06);
  font-weight: 600;
}
.admin-table .muted,
.admin-table td.muted {
  color: var(--muted);
  text-align: center;
}
.admin-table code { font-size: 0.8rem; word-break: break-all; }
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
}
.admin-badge.status-paid { background: rgba(16, 185, 129, 0.15); color: #047857; }
.admin-badge.status-pending { background: rgba(245, 158, 11, 0.18); color: #b45309; }
.admin-badge.status-failed,
.admin-badge.status-closed { background: rgba(232, 93, 76, 0.12); color: var(--coral); }

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.admin-user-actions form { margin: 0; }

.field-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.code-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  background: #0f172a0a;
  resize: vertical;
  min-height: 140px;
}
