/* ============================================================
   AllOfTools 模板补充样式（Blade 化所需）
   ============================================================ */

.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.lang-switch a {
  padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 700;
  color: var(--muted); border: 1px solid var(--line);
}
.lang-switch a.active, .lang-switch a:hover { background: var(--grad); color: #fff; border-color: transparent; }

.lang-dropdown { position: relative; margin-left: 4px; }
.lang-dropdown .dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s;
}
.lang-dropdown .dd-btn:hover { border-color: var(--brand); }
.lang-dropdown .dd-caret { color: var(--muted); }
.lang-dropdown .dd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 160px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; display: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.lang-dropdown .dd-menu.open { display: block; }
.lang-dropdown .dd-menu li {
  list-style: none; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  color: var(--ink-2); font-size: 13.5px; transition: background .15s, color .15s;
}
.lang-dropdown .dd-menu li:hover { background: var(--brand-soft); color: var(--brand); }
.lang-dropdown .dd-menu li.selected { color: #fff; background: var(--grad); }

.plugin-tagline { margin: 10px 0 0; color: #c7d2fe; font-size: 15px; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.filter-bar .chips, .filter-bar .sort-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.cat-sidebar { position: sticky; top: 84px; }
.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.side-block h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.side-block ul { list-style: none; margin: 0; padding: 0; }
.side-block li { margin-bottom: 3px; }
.side-block a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.side-block a:hover { background: var(--brand-soft); color: var(--brand); }
.side-block a.active { background: var(--grad); color: #fff; font-weight: 600; }
.cat-main { min-width: 0; }

.seo-block { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.seo-block h3 { margin: 0 0 10px; font-size: 18px; }
.seo-block p { color: var(--muted); margin: 0 0 14px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a {
  min-width: 38px; padding: 8px 12px; text-align: center; border: 1px solid var(--line);
  border-radius: 9px; color: var(--ink-2); font-size: 14px; background: var(--surface);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination a.active { background: var(--grad); color: #fff; border-color: transparent; }

.empty { text-align: center; padding: 70px 0; color: var(--muted); font-size: 15px; }
.notfound { text-align: center; padding: 110px 0; }
.notfound h1 { font-size: 84px; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h2 { margin: 8px 0; }
.notfound p { color: var(--muted); margin: 0 0 22px; }

.crumb.container { padding-top: 14px; }
.search-pill form { display: flex; flex: 1; margin: 0; min-width: 0; }
.search-pill input { min-width: 0; }
.layout.full { display: block; }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .lang-switch { display: none; }
}

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f7;

  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #0ea5e9;
  --brand-soft: #eef2ff;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0ea5e9 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 55%, #ecfeff 100%);

  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -14px rgba(79, 70, 229, .28);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 60px -24px rgba(79, 70, 229, .35);

  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.link-more { flex: none; font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(99, 91, 255, .6); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(99, 91, 255, .75); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #e0e7ff; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
}
.badge-ai { background: var(--grad); color: #fff; }
.badge-free { background: #ecfdf5; color: #059669; }
.badge-pro { background: #fef3c7; color: #b45309; }
.badge-hot { background: #fee2e2; color: #dc2626; }
.badge-official { background: var(--brand-soft); color: var(--brand); }
.badge-new { background: #ecfeff; color: #0891b2; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px;
  box-shadow: 0 6px 16px -6px rgba(99, 91, 255, .7);
}
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .12em; margin-top: -3px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 7px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .15s ease;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; width: 230px; color: var(--muted);
}
.search-pill input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 12% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(520px 300px at 88% -20%, rgba(14, 165, 233, .16), transparent 60%),
    radial-gradient(420px 260px at 50% 110%, rgba(79, 70, 229, .10), transparent 60%);
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow);
}
.hero-badge b { color: var(--brand); }
.hero h1 {
  margin: 22px auto 14px; max-width: 780px;
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; font-weight: 900; letter-spacing: -.03em;
}
.hero .sub { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.hero-search {
  margin: 30px auto 0; max-width: 620px; position: relative;
}
.hero-search .box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-lg);
}
.hero-search input { flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; }
.hot-keys { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; }
.hot-keys b { color: var(--muted); font-weight: 600; }

/* ---------- Stats strip ---------- */
.stats-strip {
  margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 20px; text-align: center; box-shadow: var(--shadow);
}
.stat-card .num { font-size: 28px; font-weight: 900; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dbe3ff; }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.cat-card .name { font-weight: 700; font-size: 15px; }
.cat-card .meta { font-size: 12.5px; color: var(--muted); }
.cat-card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-card .tags span { font-size: 11.5px; color: var(--muted); background: var(--bg); padding: 1px 7px; border-radius: 6px; }

/* ---------- Tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-top { display: flex; align-items: flex-start; gap: 12px; }
.tool-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; flex: none; }
.tool-top .t-name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.tool-top .t-sub { font-size: 12px; color: var(--muted); }
.tool-desc { font-size: 13px; color: var(--muted); min-height: 40px; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px dashed var(--line); padding-top: 10px; }
.tool-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.tool-stats span { display: inline-flex; align-items: center; gap: 4px; }
.tool-cta { font-size: 13px; font-weight: 700; color: var(--brand); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px; width: fit-content; }
.tabs button {
  border: 0; background: transparent; padding: 8px 18px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s ease;
}
.tabs button.active { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(99, 91, 255, .6); }

/* ---------- Banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg); padding: 44px 48px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 90% 10%, rgba(255, 255, 255, .22), transparent 60%),
              radial-gradient(360px 220px at 8% 100%, rgba(14, 165, 233, .35), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h3 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.cta-banner p { margin: 0; opacity: .82; max-width: 560px; }
.cta-banner .btn { background: #fff; color: #4f46e5; }
.cta-banner .btn:hover { transform: translateY(-1px); }

/* ---------- Workflow cards ---------- */
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wf-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.wf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wf-steps { display: flex; align-items: center; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.wf-step { font-size: 12px; background: var(--brand-soft); color: var(--brand); padding: 3px 9px; border-radius: 7px; font-weight: 600; }
.wf-arrow { color: #c7d2fe; font-weight: 700; }
.wf-card h4 { margin: 0 0 6px; font-size: 16px; }
.wf-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.wf-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 20px 0 4px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: #cbd5e1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 34px 0 26px; }
.page-hero h1 { margin: 10px 0 8px; font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; }
.page-hero .desc { color: var(--muted); max-width: 720px; }
.page-hero .meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.page-hero .meta-row b { color: var(--ink); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.filter-bar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.filter-bar .f-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Layout: content + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.panel h4 { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li a { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.panel li a:hover { background: var(--brand-soft); color: var(--brand); }
.panel li a em { font-style: normal; color: var(--muted); font-size: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin: 34px 0 10px; }
.pager button, .pager span {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; color: var(--ink-2); display: grid; place-items: center;
}
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager button:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Plugin detail ---------- */
.plugin-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.plugin-logo { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-size: 36px; flex: none; box-shadow: var(--shadow-lg); }
.plugin-head h1 { margin: 4px 0 6px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.plugin-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.plugin-meta a { color: var(--brand); font-weight: 600; }
.rating-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 16px; }
.rating-line b { font-size: 20px; }
.rating-line .cnt { color: var(--muted); font-size: 13px; }

.social-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0; }
.social-stat {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow);
}
.social-stat .num { font-size: 21px; font-weight: 900; }
.social-stat .lbl { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; }

.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }

/* ---------- Embedded tool (use entry) ---------- */
.tool-lab {
  background: linear-gradient(160deg, #f8f7ff 0%, #f2f9ff 100%);
  border: 1px solid #e4e7ff; border-radius: var(--radius-lg); padding: 28px;
}
.tool-lab .row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.field { flex: 1; min-width: 180px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field textarea, .field input, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; background: var(--surface); outline: 0; transition: border-color .15s ease;
}
.field textarea:focus, .field input:focus, .field select:focus { border-color: var(--brand); }
.gen-result {
  margin-top: 18px; border: 1px dashed #c7d2fe; border-radius: var(--radius); background: var(--surface);
  min-height: 220px; display: grid; place-items: center; color: var(--muted); position: relative; overflow: hidden;
}
.gen-result .placeholder { text-align: center; padding: 20px; }
.gen-result .ph-art { font-size: 52px; margin-bottom: 8px; }
.gen-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.85); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-output { width: 100%; height: 100%; display: none; }
.gen-output img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gen-output .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(15,23,42,.75)); color: #fff; font-size: 13px; padding: 26px 14px 10px; }
.demo-note { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Schema-driven plugin runner ---------- */
.lab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lab-head b { font-size: 16px; }
.quota-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eef2ff, #e8f5ff);
  border: 1px solid #dfe7ff; border-radius: 12px; padding: 10px 16px; margin-bottom: 18px;
  font-size: 13px; color: var(--ink-2);
}
.quota-bar b { color: var(--ink); }
.quota-bar .q-item { display: inline-flex; align-items: center; gap: 4px; }
.quota-bar .btn { margin-left: auto; }
.schema-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.schema-form .field .req { color: #dc2626; margin-left: 2px; }
.schema-form .chk-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.schema-result {
  margin-top: 18px; border: 1px dashed #c7d2fe; border-radius: var(--radius); background: var(--surface);
  min-height: 120px; padding: 16px; color: var(--muted); position: relative;
}
.schema-result .placeholder { text-align: center; padding: 18px; }
.schema-out { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-table th, .result-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.result-table th { width: 200px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.result-table td { color: var(--ink); word-break: break-word; }
.json-pre {
  background: #0f172a; color: #a5f3fc; border-radius: 8px; padding: 12px; font-size: 12.5px;
  overflow-x: auto; line-height: 1.55; white-space: pre;
}
.err-box {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px;
  padding: 14px 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ---------- Tabs content ---------- */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.prose { font-size: 14.5px; color: var(--ink-2); }
.prose h3 { font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.prose p { margin: 8px 0; }
.prose ul { padding-left: 18px; margin: 8px 0; }
.prose li { margin: 5px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.feature { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; }
.feature .ic { font-size: 18px; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12.5px; color: var(--muted); }

.guide-step { display: flex; gap: 14px; margin: 14px 0; align-items: flex-start; }
.guide-num { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.guide-step b { display: block; font-size: 14.5px; }
.guide-step p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }

.faq-item { border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); margin: 10px 0; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--brand); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .body { padding: 0 16px 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- Reviews ---------- */
.rate-summary { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; margin-bottom: 20px; }
.rate-big { text-align: center; }
.rate-big .n { font-size: 46px; font-weight: 900; line-height: 1; }
.rate-big .sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.rate-bars { display: flex; flex-direction: column; gap: 6px; }
.rate-bar { display: grid; grid-template-columns: 40px 1fr 36px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.rate-bar .track { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.rate-bar .fill { height: 100%; background: var(--grad); border-radius: 99px; }

.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.comment .body { flex: 1; }
.comment .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment .head b { font-size: 14px; }
.comment .head .time { font-size: 12px; color: var(--muted); }
.comment .head .v-badge { font-size: 11px; background: var(--brand-soft); color: var(--brand); padding: 1px 7px; border-radius: 99px; font-weight: 600; }
.comment .txt { font-size: 14px; color: var(--ink-2); margin: 6px 0; }
.comment .ops { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.comment .ops button { background: none; border: 0; color: inherit; font-size: inherit; padding: 0; }
.comment .ops button:hover { color: var(--brand); }

.review-form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; margin-top: 20px; box-shadow: var(--shadow); }
.review-form h4 { margin: 0 0 12px; font-size: 15px; }
.review-form .row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.review-form input, .review-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; width: 100%; outline: 0;
}
.review-form input:focus, .review-form textarea:focus { border-color: var(--brand); }
.rate-pick { display: flex; gap: 4px; font-size: 22px; cursor: pointer; user-select: none; }
.rate-pick span { color: #cbd5e1; transition: color .1s ease; }
.rate-pick span.on { color: #f59e0b; }

/* ---------- SKU list (plugin aggregation) ---------- */
.sku-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sku-card {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface);
  padding: 14px; transition: all .15s ease;
}
.sku-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.sku-card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.sku-card b { display: block; font-size: 14px; }
.sku-card span { font-size: 12.5px; color: var(--muted); }
.sku-card .go { margin-left: auto; color: var(--brand); font-weight: 700; font-size: 13px; }

/* ---------- User profile ---------- */
.profile-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; color: #fff; font-size: 38px; font-weight: 800; flex: none; box-shadow: var(--shadow-lg); }
.profile-head h1 { margin: 4px 0 2px; font-size: 26px; font-weight: 900; }
.profile-head .handle { color: var(--muted); font-size: 14px; }
.profile-head .bio { color: var(--ink-2); font-size: 14.5px; margin: 8px 0; max-width: 620px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 26px; margin-top: 14px; }
.profile-stats .ps b { font-size: 19px; font-weight: 800; display: block; }
.profile-stats .ps span { font-size: 12.5px; color: var(--muted); }

.widget-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.widget-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.widget-card .w-top { display: flex; align-items: center; gap: 10px; }
.widget-card .w-status { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #059669; background: #ecfdf5; padding: 2px 8px; border-radius: 99px; }
.widget-card .w-desc { font-size: 13px; color: var(--muted); min-height: 38px; }
.widget-card .w-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 9px; font-size: 12px; color: var(--muted); }
.widget-card .w-stats { display: flex; gap: 12px; }

/* ---------- SEO content block ---------- */
.seo-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; margin-top: 34px; box-shadow: var(--shadow); }
.seo-block h2 { font-size: 20px; margin: 0 0 10px; }
.seo-block p { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1020; color: #94a3b8; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 13.5px; margin: 14px 0 0; max-width: 300px; }
.footer-col h5 { color: #e2e8f0; font-size: 14px; margin: 0 0 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .15); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-10 { gap: 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .bold { font-weight: 700; }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .social-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .search-pill { display: none; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .burger { display: block; }
  .header-actions { gap: 6px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .wf-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cat-grid, .tool-grid, .sku-grid, .feature-grid { grid-template-columns: 1fr; }
  .social-stats { grid-template-columns: repeat(2, 1fr); }
  .rate-summary { grid-template-columns: 1fr; }
  .cta-banner { padding: 30px 24px; }
  .section { padding: 44px 0; }
}

.btn.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-primary.active { background: var(--brand); color: #fff; border-color: transparent; }
.main-nav a { white-space: nowrap; }
@media (max-width: 1280px) {
  .search-pill { display: none; }
  .main-nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 1160px) {
  .header-inner { gap: 14px; }
  .lang-switch { display: none; }
  .brand small { display: none; }
  .header-actions .btn { padding: 7px 10px; font-size: 13px; }
}
.icon {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }
