/* ============================================================
   SkillCube design system · v1
   版式骨架沿用原复刻站校准值（cream 底 / ink 字 / 物理悬浮卡）,
   识别色换装：薄荷绿 accent + 钴蓝辅助，与内容站视觉区分
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #f4f1e9;
  --bg-deep: #11110f;
  --fg: #121313;
  --card: #fbfaf6;
  --card-2: #f8f6ef;
  --muted: #ebe7de;
  --muted-fg: #666962;
  --accent: #a7f3dd;
  --accent-hover: #8feed3;
  --accent-deep: #5fdcb8;
  --accent-fg: #121313;
  --terra: #4f6df0;
  --strike: #df4b4b;
  --olive: #40551e;
  --olive-soft: #b9d67f;
  --border: rgba(18, 19, 19, 0.1);
  --border-strong: rgba(18, 19, 19, 0.24);
  --shadow-sm: 0 1px 2px rgba(17, 18, 18, 0.05);
  --shadow-card: 0 3px 10px rgba(17, 18, 18, 0.08);
  --shadow-lift: 0 14px 36px rgba(17, 19, 19, 0.16);
  --shadow-figure: 0 18px 50px rgba(17, 18, 18, 0.08);
  --shadow-cta: 0 10px 26px rgba(18, 19, 19, 0.22);
  --code-bg: #121313;
  --code-fg: #f4f1e9;
  --font-brand: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max-w: 1120px;
  --max-w-wide: 1500px;
  --header-h: 4rem;
}
.dark {
  --bg: #11110f;
  --fg: #f4f1e9;
  --card: #1b1c1a;
  --card-2: #171815;
  --muted: #242420;
  --muted-fg: rgba(244, 241, 233, 0.56);
  --accent: #a7f3dd;
  --accent-hover: #8feed3;
  --accent-fg: #121313;
  --border: rgba(244, 241, 233, 0.12);
  --border-strong: rgba(244, 241, 233, 0.28);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 3px 10px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 14px 36px rgba(0, 0, 0, 0.4);
  --shadow-figure: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-cta: 0 10px 26px rgba(0, 0, 0, 0.45);
  --code-bg: #0b0c0b;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 19, 19, 0.3); border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-fg); }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 1rem; }
.container-wide { max-width: var(--max-w-wide); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container, .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container, .container-wide { padding-inline: 2rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons ----------
   Marketing surfaces: pill. Product UI (buy panel): 12px. Documented rule. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 3rem; padding: 0 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: #121313; color: #ffffff; box-shadow: var(--shadow-cta); }
.btn-ink:hover { background: rgba(0, 0, 0, 0.85); }
.dark .btn-ink { background: #ffffff; color: #121313; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.dark .btn-ink:hover { background: rgba(255, 255, 255, 0.85); }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: var(--shadow-lift); }
.btn-outline { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.55); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); background: #ffffff; }
.dark .btn-outline { background: rgba(255, 255, 255, 0.06); }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { background: rgba(18, 19, 19, 0.06); }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-lg { height: 3rem; padding: 0 1.375rem; }
.btn-sm { height: 2.25rem; padding: 0 0.875rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-xl { height: 3rem; padding: 0 2rem; border-radius: 12px; box-shadow: var(--shadow-cta); }
.btn-xl:hover { transform: translateY(-2px); background: rgba(0, 0, 0, 0.85); }
.dark .btn-xl { background: #ffffff; color: #121313; }
.dark .btn-xl:hover { background: rgba(255, 255, 255, 0.85); }
.btn-soft { height: 3rem; border-radius: 12px; border: 1px solid var(--border-strong); background: #ffffff; font-size: 0.875rem; }
.btn-soft:hover { background: #121313; color: #ffffff; border-color: #121313; }
.dark .btn-soft { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.dark .btn-soft:hover { background: #ffffff; color: #121313; border-color: #ffffff; }

/* ---------- promo banner ---------- */
.promo-banner {
  position: sticky; top: 0; z-index: 60;
  background: #121313; color: #ffffff;
}
.dark .promo-banner { background: var(--accent); color: #121313; }
.promo-banner .container-wide {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem 1rem; flex-wrap: wrap;
  min-height: 2.75rem; padding-block: 0.5rem; padding-right: 2.75rem;
  font-size: 0.8125rem; line-height: 1.35;
}
@media (min-width: 640px) { .promo-banner .container-wide { font-size: 0.8438rem; } }
.promo-banner .promo-ic { color: var(--accent); }
.dark .promo-banner .promo-ic { color: #121313; }
.promo-banner a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.promo-close { position: absolute; right: 0.625rem; top: 50%; translate: 0 -50%; opacity: 0.6; display: inline-flex; padding: 0.375rem; }
.promo-close:hover { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: var(--promo-h, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: background-color 0.3s ease;
}
.site-header .container-wide {
  max-width: none;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 3.5rem; flex-wrap: wrap; padding-block: 0.5rem;
}
@media (min-width: 768px) { .site-header .container-wide { min-height: 4rem; padding-block: 0.75rem; } }
@media (min-width: 1280px) { .site-header .container-wide { flex-wrap: nowrap; min-height: 4rem; padding-block: 0; } }
.header-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; flex-shrink: 0; }
@media (min-width: 1024px) { .header-left { gap: 1.5rem; } }
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  min-height: 2.75rem; padding-inline: 0.5rem; margin-left: -0.5rem;
  border-radius: 12px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.025em;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.brand:hover { background: rgba(18, 19, 19, 0.06); }
.brand:active { transform: scale(0.98); }
.dark .brand:hover { background: rgba(255, 255, 255, 0.08); }
.brand img { width: 1.75rem; height: 1.75rem; border-radius: 9px; transition: transform 0.2s ease; }
@media (min-width: 768px) { .brand img { width: 2rem; height: 2rem; border-radius: 10px; } }
.brand:hover img { transform: scale(1.04); }
.dark .brand img.brand-logo { display: none; }
.brand img.brand-logo-dark { display: none; }
.dark .brand img.brand-logo-dark { display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 4px rgba(244, 241, 233, 0.07); }
.main-nav { display: none; align-items: center; gap: 1rem; font-size: 0.875rem; font-weight: 500; color: rgba(18, 19, 19, 0.56); }
@media (min-width: 768px) { .main-nav { display: flex; gap: 1rem; } }
@media (min-width: 1024px) { .main-nav { gap: 1.75rem; } }
.dark .main-nav { color: rgba(244, 241, 233, 0.58); }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 2.25rem; padding: 0 0.75rem; border-radius: 999px;
  color: inherit; font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--fg); background: rgba(18, 19, 19, 0.05); }
.dark .nav-link:hover { background: rgba(255, 255, 255, 0.07); }
.nav-item[data-open="true"] > .nav-link { color: var(--fg); background: rgba(18, 19, 19, 0.06); }
.dark .nav-item[data-open="true"] > .nav-link { background: rgba(255, 255, 255, 0.08); }
.nav-item { position: relative; }
.nav-link .chev { transition: rotate 0.2s ease; opacity: 0.7; }
.nav-item[data-open="true"] .chev { rotate: 180deg; }
.nav-item[data-open="true"] .nav-link { color: var(--fg); }
.mega {
  position: absolute; top: calc(100% + 0.625rem); left: -0.75rem; z-index: 40;
  min-width: 20rem; max-height: min(72vh, 34rem); overflow: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lift);
  padding: 0.625rem; display: none;
  animation: mega-in 0.16s ease;
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-item[data-open="true"] .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.125rem; min-width: 34rem; }
.mega-col-title { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(18, 19, 19, 0.4); padding: 0.5rem 0.625rem 0.375rem; grid-column: 1 / -1; }
.dark .mega-col-title { color: rgba(244, 241, 233, 0.45); }
.mega a.mega-item { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.5rem 0.625rem; border-radius: 12px; }
.mega a.mega-item:hover { background: rgba(18, 19, 19, 0.06); }
.dark .mega a.mega-item:hover { background: rgba(255, 255, 255, 0.07); }
.mega .mi-name { font-weight: 600; font-size: 0.875rem; letter-spacing: -0.01em; }
.mega .mi-desc { font-size: 0.75rem; color: var(--muted-fg); line-height: 1.35; }
.header-spacer { flex: 1; }
.header-search {
  display: none; align-items: center; gap: 0.5rem;
  height: 2.5rem; padding: 0 0.625rem 0 0.9375rem; width: 14.5rem;
  border: 1px solid rgba(18, 19, 19, 0.12); border-radius: 999px;
  background: rgba(255, 255, 255, 0.5); color: rgba(18, 19, 19, 0.45);
  font-size: 0.875rem; cursor: text; transition: border-color 0.15s ease, background-color 0.15s ease;
}
@media (min-width: 900px) { .header-search { display: inline-flex; } }
.header-search:hover { border-color: rgba(18, 19, 19, 0.3); background: #ffffff; }
.dark .header-search { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: rgba(244, 241, 233, 0.5); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 0.875rem; color: var(--fg); }
.header-search input::placeholder { color: inherit; }
.header-search svg { flex-shrink: 0; }
.header-signin { display: none; font-size: 0.875rem; font-weight: 500; color: rgba(18, 19, 19, 0.56); height: 2.25rem; padding: 0 0.75rem; border-radius: 999px; align-items: center; }
@media (min-width: 768px) { .header-signin { display: inline-flex; align-items: center; } }
.header-signin:hover { color: var(--fg); background: rgba(18, 19, 19, 0.06); }
.dark .header-signin { color: rgba(244, 241, 233, 0.58); }
.dark .header-signin:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.header-cta { height: 2.5rem; padding: 0 1.125rem; border-radius: 999px; font-size: 0.875rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; color: var(--fg); }
.icon-btn:hover { background: rgba(18, 19, 19, 0.06); }
.dark .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.menu-btn { display: inline-flex; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.mobile-drawer[data-open="true"] { display: block; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.45); }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(21rem, 88vw);
  background: var(--bg); border-left: 1px solid var(--border);
  padding: 1.25rem; overflow: auto; display: flex; flex-direction: column; gap: 0.25rem;
}
.mobile-drawer .md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.mobile-drawer a.md-link { display: block; padding: 0.625rem 0.5rem; border-radius: 12px; font-weight: 600; }
.mobile-drawer a.md-link:hover { background: rgba(18, 19, 19, 0.06); }
.dark .mobile-drawer a.md-link:hover { background: rgba(255, 255, 255, 0.07); }
.mobile-drawer .md-group { margin-top: 0.75rem; }
.mobile-drawer .md-group-title { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(18, 19, 19, 0.4); padding: 0.375rem 0.5rem; }
.dark .mobile-drawer .md-group-title { color: rgba(244, 241, 233, 0.45); }
.mobile-drawer .md-group a { display: block; padding: 0.4rem 0.5rem; border-radius: 10px; font-size: 0.9rem; }
.mobile-drawer .md-group a:hover { background: rgba(18, 19, 19, 0.06); }
.dark .mobile-drawer .md-group a:hover { background: rgba(255, 255, 255, 0.07); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; }
.hero-blob {
  position: absolute; left: 50%; top: 18%; z-index: 0; pointer-events: none;
  width: min(70vw, 820px); height: min(70vw, 820px); translate: -50% 0;
  border-radius: 999px; background: rgba(79, 109, 240, 0.1); filter: blur(110px);
}
.hero-inner {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding-top: 3rem; padding-bottom: 2.5rem;
}
@media (min-width: 640px) { .hero-inner { padding-block: 4rem; } }
@media (min-width: 1024px) { .hero-inner { min-height: calc(100dvh - 4rem - 2.75rem); padding-block: 4rem; } }
.hero-center { position: relative; z-index: 10; text-align: center; }
.hero-wordmark {
  margin-inline: auto; max-width: 12ch;
  font-size: clamp(2.4rem, 10.5vw, 3.25rem); font-weight: 600;
  line-height: 0.95; letter-spacing: -0.06em; text-wrap: balance;
}
@media (min-width: 640px) { .hero-wordmark { max-width: none; font-size: clamp(3rem, 7.5vw, 4.25rem); } }
@media (min-width: 1024px) { .hero-wordmark { font-size: clamp(2rem, 5vw, 5.25rem); line-height: 0.92; } }
.hero-ctas { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 0.625rem; flex-wrap: wrap; margin-top: 2rem; }
@media (min-width: 640px) { .hero-ctas { margin-top: 2.25rem; } }

/* works-with: overlapping circles */
.works-with { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.875rem; margin-top: 2rem; }
@media (min-width: 640px) { .works-with { margin-top: 2.75rem; } }
.works-with-label { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(18, 19, 19, 0.4); }
.dark .works-with-label { color: rgba(244, 241, 233, 0.45); }
.works-with-row { display: flex; align-items: center; padding-left: 0.625rem; }
.ww-badge {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-left: -0.625rem;
  border-radius: 999px; border: 1px solid rgba(18, 19, 19, 0.15); background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, z-index 0s;
}
.ww-badge:first-child { margin-left: 0; }
.ww-badge:hover { z-index: 10; transform: translateY(-2px); }
.dark .ww-badge { border-color: rgba(255, 255, 255, 0.25); background: #f4f1e9; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32); }
.ww-badge img { width: 1.25rem; height: 1.25rem; }

/* logo marquee */
.logo-marquee { position: relative; z-index: 5; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; width: 100vw; margin-left: calc(50% - 50vw); }
@media (min-width: 640px) { .logo-marquee { margin-top: 3rem; gap: 1rem; } }
.marquee-row { display: flex; overflow: hidden; user-select: none; }
.marquee-track { display: flex; gap: 0.75rem; flex-shrink: 0; align-items: stretch; animation: marquee-left 52s linear infinite; }
@media (min-width: 640px) { .marquee-track { gap: 1rem; } }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 0.75rem)); } }
.hero-skill-logo {
  width: 6rem; height: 6rem; border-radius: 22px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(18, 19, 19, 0.07); background: #ffffff;
  box-shadow: 0 2px 6px rgba(17, 18, 18, 0.05), 0 12px 32px -12px rgba(17, 18, 18, 0.12);
}
@media (min-width: 640px) { .hero-skill-logo { width: 7.25rem; height: 7.25rem; } }
.dark .hero-skill-logo { border-color: rgba(255, 255, 255, 0.1); background: #1d1e1c; }
.hero-skill-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
.section { padding-block: 3rem; }
@media (min-width: 640px) { .section { padding-block: 4rem; } }
.section-tight { padding-block: 2.25rem; }
@media (min-width: 640px) { .section-tight { padding-block: 3rem; } }
.section-band { background: var(--bg); padding-block: 5rem; }
@media (min-width: 640px) { .section-band { padding-block: 7rem; } }
.section-head { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2.25rem; }
.section-head.center { align-items: center; text-align: center; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(18, 19, 19, 0.42);
}
.dark .eyebrow { color: rgba(244, 241, 233, 0.45); }
.h2 { font-size: 2rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1.06; }
@media (min-width: 640px) { .h2 { font-size: 2.75rem; } }
.lede { color: rgba(18, 19, 19, 0.55); font-size: 1rem; line-height: 1.75; max-width: 58ch; }
@media (min-width: 640px) { .lede { font-size: 1.0625rem; } }
.dark .lede { color: rgba(244, 241, 233, 0.58); }
.section-head.center .lede { margin-inline: auto; }

/* split section head (original FAQ pattern) */
.split-head { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split-head { grid-template-columns: 0.65fr 1.35fr; gap: 4rem; } }

/* ---------- skill cards ---------- */
.skill-card { display: flex; flex-direction: column; position: relative; min-width: 0; }
.skill-card .card-media {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(18, 19, 19, 0.07); aspect-ratio: 16 / 10;
  background: #eceade; isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .skill-card .card-media { background: #232422; border-color: rgba(255, 255, 255, 0.12); }
.skill-card:hover .card-media { transform: translateY(-4px); border-color: rgba(18, 19, 19, 0.14); box-shadow: var(--shadow-lift); }
.dark .skill-card:hover .card-media { border-color: rgba(255, 255, 255, 0.2); }
.skill-card .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.skill-card .card-media img.current { opacity: 1; }
.card-scrim { position: absolute; inset-inline: 0; bottom: 0; height: 4rem; z-index: 3; background: linear-gradient(to top, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.card-badge-free, .card-badge-new {
  position: absolute; left: 0.625rem; top: 0.625rem; z-index: 4;
  display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5rem;
  border-radius: 999px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
}
.card-badge-free { border: 1px solid rgba(18, 19, 19, 0.15); background: var(--accent); color: #121313; box-shadow: 0 3px 10px rgba(17, 18, 18, 0.12); }
.card-badge-new { background: rgba(17, 18, 18, 0.72); color: #fff; backdrop-filter: blur(6px); }
.card-badge-free + .card-badge-new { left: 4rem; }
.card-chip-output {
  position: absolute; right: 0.625rem; top: 0.625rem; z-index: 4;
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 3px 10px rgba(17, 18, 18, 0.1);
  transition: opacity 0.2s ease;
}
.skill-card:hover .card-chip-output { opacity: 0; }
.dark .card-chip-output { background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.8); }
.card-chip-output svg { width: 0.875rem; height: 0.875rem; }
.card-stats {
  position: absolute; right: 0.75rem; bottom: 0.625rem; z-index: 4;
  display: inline-flex; align-items: center; gap: 0.625rem;
  color: #fff; font-size: 0.625rem; font-weight: 600; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.card-stats .stat { display: inline-flex; align-items: center; gap: 0.25rem; }
.card-stats svg { width: 0.75rem; height: 0.75rem; }
.card-price-pill {
  position: absolute; left: 0.75rem; bottom: 0.625rem; z-index: 4;
  color: #fff; font-size: 0.6875rem; font-weight: 700; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.card-dots { position: absolute; left: 0.75rem; bottom: 0.7rem; z-index: 4; display: none; gap: 0.25rem; }
.skill-card.multi .card-dots { display: flex; }
.card-dots i { width: 0.3rem; height: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.45); transition: background 0.2s ease; }
.card-dots i.on { background: #fff; }
.card-caption { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.375rem; height: 1.5rem; }
.card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.01em; color: rgba(18, 19, 19, 0.68); }
.dark .card-name { color: rgba(244, 241, 233, 0.68); }
.card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-side { margin-left: auto; display: inline-flex; align-items: center; flex-shrink: 0; }
.card-tools { display: inline-flex; align-items: center; }
.card-tools .t-ic {
  display: grid; place-items: center; width: 1rem; height: 1rem; margin-left: -0.25rem;
  border-radius: 999px; border: 1px solid rgba(18, 19, 19, 0.15); background: #f4f1e9;
}
.card-tools .t-ic:first-child { margin-left: 0; }
.dark .card-tools .t-ic { border-color: rgba(255, 255, 255, 0.15); background: #242420; }
.card-tools .t-ic img { width: 0.625rem; height: 0.625rem; }
.card-blurb {
  margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.4; color: rgba(18, 19, 19, 0.42);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.dark .card-blurb { color: rgba(244, 241, 233, 0.42); }

/* ---------- rails ---------- */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(14.5rem, 23vw, 16.5rem);
  gap: 1rem 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0.25rem 1rem;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-nav {
  position: absolute; top: 36%; z-index: 5; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lift);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.2s ease;
}
.rail:hover .rail-nav { opacity: 1; }
.rail-nav.prev { left: -0.75rem; } .rail-nav.next { right: -0.75rem; }
@media (max-width: 1023px) { .rail-nav { display: none; } }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rail-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.025em; }
.rail-more { font-weight: 500; font-size: 0.875rem; color: rgba(18, 19, 19, 0.56); display: inline-flex; align-items: center; gap: 0.3rem; transition: color 0.15s ease; }
.dark .rail-more { color: rgba(244, 241, 233, 0.56); }
.rail-more:hover { color: var(--fg); }
.rail-more svg { width: 0.875rem; height: 0.875rem; }

/* ---------- steps (hairline editorial) ---------- */
.steps-grid { display: grid; gap: 2rem 2rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { border-top: 1px solid rgba(18, 19, 19, 0.15); padding-top: 1.375rem; display: flex; flex-direction: column; gap: 0.625rem; position: relative; }
.dark .step-card { border-top-color: rgba(255, 255, 255, 0.15); }
.step-num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: rgba(18, 19, 19, 0.16); }
.dark .step-num { color: rgba(244, 241, 233, 0.18); }
.step-card h3 { font-size: 1.0625rem; letter-spacing: -0.02em; font-weight: 600; margin-top: 0.375rem; }
.step-card p { color: rgba(18, 19, 19, 0.55); font-size: 0.9375rem; line-height: 1.6; }
.dark .step-card p { color: rgba(244, 241, 233, 0.56); }

/* ---------- install card ---------- */
.install-card {
  background: var(--card); border: 1px solid rgba(18, 19, 19, 0.08);
  border-radius: 24px; padding: 1.75rem 1.375rem; display: flex; flex-direction: column; gap: 1.375rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .install-card { padding: 2rem 2rem; } }
.dark .install-card { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.12); }
.install-steps { display: grid; gap: 1rem; }
@media (min-width: 768px) { .install-steps { grid-template-columns: repeat(3, 1fr); } }
.install-step { display: flex; gap: 0.75rem; align-items: flex-start; }
.install-step .n {
  width: 1.625rem; height: 1.625rem; flex-shrink: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.75rem;
  display: grid; place-items: center;
}
.install-step .t { font-weight: 600; font-size: 0.9063rem; }
.install-step .d { color: var(--muted-fg); font-size: 0.8438rem; line-height: 1.5; margin-top: 0.125rem; }
.codebox {
  position: relative; background: var(--code-bg); color: var(--code-fg);
  border-radius: 14px; padding: 1rem 3.25rem 1rem 1.125rem;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; overflow-x: auto;
}
.dark .codebox { border: 1px solid rgba(255, 255, 255, 0.12); }
.codebox .copy-btn {
  position: absolute; right: 0.5rem; top: 0.5rem; width: 2rem; height: 2rem;
  border-radius: 10px; display: grid; place-items: center; color: rgba(244, 241, 233, 0.65);
}
.codebox .copy-btn:hover { background: rgba(244, 241, 233, 0.12); color: #fff; }
.codebox .copy-btn.ok { color: var(--accent-deep); }
.codebox code { white-space: pre; font-size: inherit; }

/* ---------- testimonials ---------- */
.tweets-wrap { display: flex; flex-direction: column; gap: 1rem; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.tweets-row { display: flex; gap: 1rem; overflow: hidden; }
.tweets-track { display: flex; gap: 1rem; flex-shrink: 0; animation: marquee-left 72s linear infinite; }
.tweets-row:hover .tweets-track { animation-play-state: paused; }
.tweet-card {
  width: 20.5rem; flex-shrink: 0; background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 20px; padding: 1.125rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.dark .tweet-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.tweet-head { display: flex; align-items: center; gap: 0.625rem; }
.tweet-avatar { width: 2.25rem; height: 2.25rem; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.tweet-name { font-weight: 600; font-size: 0.875rem; line-height: 1.2; }
.tweet-handle { font-size: 0.75rem; color: var(--muted-fg); }
.tweet-body { font-size: 0.8438rem; line-height: 1.55; color: rgba(18, 19, 19, 0.78); }
.dark .tweet-body { color: rgba(244, 241, 233, 0.75); }
.tweet-meta { display: flex; align-items: center; gap: 1rem; color: rgba(18, 19, 19, 0.42); font-size: 0.75rem; margin-top: auto; }
.dark .tweet-meta { color: rgba(244, 241, 233, 0.42); }
.tweet-meta .m { display: inline-flex; align-items: center; gap: 0.3rem; }
.tweet-meta svg { width: 0.8125rem; height: 0.8125rem; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  border-radius: 24px; padding: 1.25rem; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 640px) { .plan { padding: 1.5rem; } }
.dark .plan { background: rgba(255, 255, 255, 0.04); }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.plan.featured { border: 2px solid #121313; background: var(--card-2); }
.dark .plan.featured { border-color: rgba(244, 255, 113, 0.55); background: #171815; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; min-height: 1.5rem; }
.plan-sub { font-size: 0.875rem; color: rgba(18, 19, 19, 0.48); }
.dark .plan-sub { color: rgba(244, 241, 233, 0.52); }
.plan-flag {
  flex-shrink: 0; border-radius: 999px; padding: 0.25rem 0.75rem;
  font-size: 0.6875rem; font-weight: 600; line-height: 1.2;
  background: var(--accent); color: #121313;
}
.plan h3 { margin-top: 0.75rem; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.055em; line-height: 1.1; }
@media (min-width: 640px) { .plan h3 { margin-top: 1rem; font-size: 2rem; } }
.plan-price { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; }
@media (min-width: 640px) { .plan-price { margin-top: 1rem; } }
.plan-price .amount { font-weight: 600; letter-spacing: -0.065em; font-size: 2.6rem; line-height: 1; }
@media (min-width: 640px) { .plan-price .amount { font-size: 3rem; } }
.plan-price .per { padding-bottom: 0.375rem; font-size: 1rem; font-weight: 500; color: rgba(18, 19, 19, 0.48); }
.dark .plan-price .per { color: rgba(244, 241, 233, 0.52); }
.plan ul { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.25rem; }
.plan li { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9063rem; line-height: 1.45; }
.plan li svg { width: 1.0625rem; height: 1.0625rem; flex-shrink: 0; margin-top: 0.1rem; color: var(--olive); }
.dark .plan li svg { color: var(--olive-soft); }
.plan .btn { margin-top: 1.375rem; }
.plan .foot-note { font-size: 0.8125rem; color: var(--muted-fg); margin-top: 0.875rem; }
.plans-note { text-align: center; color: rgba(18, 19, 19, 0.52); font-size: 0.875rem; margin-top: 1.75rem; }
.dark .plans-note { color: rgba(244, 241, 233, 0.54); }
.plans-note a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(18, 19, 19, 0.3); text-underline-offset: 4px; }
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -3%; top: 55%; width: 106%; height: 0.375rem;
  border-radius: 999px; background: var(--strike); rotate: -1deg;
}
@media (min-width: 640px) { .strike::after { height: 0.5rem; } }
.hero-points { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.875rem; color: rgba(18, 19, 19, 0.55); }
.dark .hero-points { color: rgba(244, 241, 233, 0.58); }
.hero-points .pt { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-points svg { width: 1rem; height: 1rem; }

/* ---------- FAQ (original: split head + hairline rows + plus) ---------- */
.faq-list { border-top: 1px solid rgba(18, 19, 19, 0.15); }
.dark .faq-list { border-top-color: rgba(255, 255, 255, 0.15); }
.faq-list details { border-bottom: 1px solid rgba(18, 19, 19, 0.15); }
.dark .faq-list details { border-bottom-color: rgba(255, 255, 255, 0.15); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.375rem; font-weight: 600; font-size: 1rem; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .chev { flex-shrink: 0; color: var(--muted-fg); transition: rotate 0.2s ease; }
.faq-list summary .chev svg { width: 1.25rem; height: 1.25rem; }
.faq-list details[open] summary .chev { rotate: 45deg; }
.faq-a { padding-bottom: 1.5rem; padding-right: 2.5rem; color: rgba(18, 19, 19, 0.55); font-size: 0.9375rem; line-height: 1.75; max-width: 42rem; }
.dark .faq-a { color: rgba(244, 241, 233, 0.58); }
.faq-a a { text-decoration: underline; text-underline-offset: 3px; }
.faq.faq-plain { max-width: 46rem; margin-inline: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: #121313; color: #f4f1e9; border-radius: 28px;
  padding: 3.5rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.cta-band::before {
  content: ""; position: absolute; left: 50%; bottom: -55%; translate: -50% 0;
  width: min(80%, 900px); aspect-ratio: 1; border-radius: 999px;
  background: rgba(79, 109, 240, 0.22); filter: blur(110px); pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0; }
.cta-band p { color: rgba(244, 241, 233, 0.6); max-width: 46ch; }
.cta-band .btn-ink { background: #f4f1e9; color: #121313; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.cta-band .btn-ink:hover { background: #ffffff; }

/* ---------- catalog ---------- */
.catalog-toolbar { display: flex; flex-direction: column; gap: 1.125rem; margin-bottom: 1.75rem; }
.catalog-search {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(18, 19, 19, 0.1); border-radius: 999px;
  padding: 0 1.25rem; height: 3.25rem; max-width: 32rem; width: 100%;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.dark .catalog-search { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.catalog-search:focus-within { border-color: rgba(18, 19, 19, 0.35); box-shadow: 0 0 0 3px rgba(18, 19, 19, 0.08); }
.dark .catalog-search:focus-within { border-color: rgba(255, 255, 255, 0.35); }
.catalog-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.catalog-search input::placeholder { color: rgba(18, 19, 19, 0.42); }
.dark .catalog-search input::placeholder { color: rgba(244, 241, 233, 0.45); }
.catalog-search svg { color: rgba(18, 19, 19, 0.42); flex-shrink: 0; }
.dark .catalog-search svg { color: rgba(244, 241, 233, 0.45); }
.catalog-controls { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 2.25rem; padding: 0 0.875rem;
  border-radius: 999px; border: 1px solid rgba(18, 19, 19, 0.1); background: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem; font-weight: 500; color: var(--fg); white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.dark .chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.chip:hover { border-color: rgba(18, 19, 19, 0.28); }
.dark .chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"], .chip.active { background: #121313; color: #f4f1e9; border-color: #121313; font-weight: 600; }
.dark .chip[aria-pressed="true"], .dark .chip.active { background: #f4f1e9; color: #121313; border-color: #f4f1e9; }
.chip .cnt { font-size: 0.6875rem; opacity: 0.55; font-weight: 600; }
.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.result-count { color: var(--muted-fg); font-size: 0.875rem; font-weight: 500; margin-left: auto; font-variant-numeric: tabular-nums; }
.grid-cards { display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }
.show-more-wrap { display: flex; justify-content: center; padding-top: 2.5rem; }
.empty-state { text-align: center; color: var(--muted-fg); padding: 4rem 1rem; display: none; }
.empty-state.show { display: block; }

/* category page hero */
.cat-hero { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.breadcrumbs { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: rgba(18, 19, 19, 0.45); margin-bottom: 1rem; flex-wrap: wrap; }
.dark .breadcrumbs { color: rgba(244, 241, 233, 0.45); }
.breadcrumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs .sep { opacity: 0.45; }
.cat-hero h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; max-width: 24ch; }
.cat-hero .lede { margin-top: 0.875rem; max-width: 62ch; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
.stat-tile { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 16px; padding: 0.75rem 1.125rem; min-width: 8rem; }
.dark .stat-tile { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.stat-tile .v { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; }
.stat-tile .k { font-size: 0.75rem; color: var(--muted-fg); font-weight: 500; margin-top: 0.125rem; }

/* ---------- skill detail ---------- */
.detail-top { padding-top: 2rem; }
.detail-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; } }
.detail-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.detail-title-row { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.detail-title { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0; overflow-wrap: anywhere; }
.detail-desc { color: rgba(18, 19, 19, 0.58); font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }
.dark .detail-desc { color: rgba(244, 241, 233, 0.6); }
.detail-meta-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 1.75rem; padding: 0 0.625rem;
  border-radius: 999px; background: rgba(18, 19, 19, 0.07); color: rgba(18, 19, 19, 0.6);
  font-size: 0.75rem; font-weight: 500; transition: background-color 0.15s ease, color 0.15s ease;
}
.dark .meta-pill { background: rgba(255, 255, 255, 0.09); color: rgba(244, 241, 233, 0.62); }
a.meta-pill:hover { background: rgba(18, 19, 19, 0.12); color: var(--fg); }
.dark a.meta-pill:hover { background: rgba(255, 255, 255, 0.16); color: var(--fg); }
.meta-pill svg { width: 0.8125rem; height: 0.8125rem; }
.badge-free, .badge-new {
  display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5rem;
  border-radius: 999px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
}
.badge-free { border: 1px solid rgba(18, 19, 19, 0.15); background: var(--accent); color: #121313; box-shadow: 0 3px 10px rgba(17, 18, 18, 0.12); }
.badge-new { background: rgba(17, 18, 18, 0.75); color: #fff; }

/* gallery: stacked figures */
.gallery-scroll { display: flex; flex-direction: column; gap: 1rem; }
.gallery-main {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(18, 19, 19, 0.1); box-shadow: var(--shadow-figure);
  background: #eceade;
}
.dark .gallery-main { background: #232422; border-color: rgba(255, 255, 255, 0.12); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.gallery-main img.current { opacity: 1; }
.gallery-main .badge-free, .gallery-main .badge-new { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; }
.gallery-thumbs button {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(18, 19, 19, 0.1);
  aspect-ratio: 16 / 10; background: #eceade; padding: 0; transition: border-color 0.15s ease, opacity 0.15s ease; opacity: 0.75;
}
.dark .gallery-thumbs button { background: #232422; border-color: rgba(255, 255, 255, 0.12); }
.gallery-thumbs button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border: 2px solid var(--fg); opacity: 1; }

/* buy panel */
.buy-panel {
  position: sticky; top: calc(4.5rem + 1rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.buy-card { background: var(--card); border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 24px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-sm); }
.dark .buy-card { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.12); }
.buy-price-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.buy-price { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.buy-price-note { font-size: 0.8125rem; line-height: 1.5; color: var(--muted-fg); }
.subscribe-card {
  display: flex; align-items: center; gap: 0.875rem; width: 100%; text-align: left;
  border: 1px solid rgba(18, 19, 19, 0.1); border-radius: 16px; background: var(--accent); color: #121313;
  padding: 1rem; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.subscribe-card:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: var(--shadow-lift); }
.subscribe-card img { width: 2.5rem; height: 2.5rem; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.subscribe-card .sc-t { font-size: 0.875rem; font-weight: 600; line-height: 1.25; }
.subscribe-card .sc-d { font-size: 0.75rem; line-height: 1.35; color: rgba(18, 19, 19, 0.58); margin-top: 0.125rem; }
.agent-strip { display: flex; align-items: center; padding-left: 0.375rem; }
.agent-strip .a-ic {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-left: -0.625rem;
  border-radius: 999px; border: 1px solid rgba(18, 19, 19, 0.15); background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-sm); padding: 0.4rem; transition: transform 0.2s ease;
}
.agent-strip .a-ic:first-child { margin-left: 0; }
.agent-strip .a-ic:hover { transform: translateY(-2px); z-index: 5; position: relative; }
.dark .agent-strip .a-ic { border-color: rgba(255, 255, 255, 0.25); background: #f4f1e9; }
.agent-strip .a-ic img { width: 100%; height: 100%; object-fit: contain; }
.agent-strip .more { margin-left: 0.5rem; font-size: 0.75rem; color: var(--muted-fg); font-weight: 500; }

/* detail info sections */
.detail-section { padding-block: 2rem; }
.offer-card {
  border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 24px; background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem 1.375rem;
}
@media (min-width: 640px) { .offer-card { padding: 2rem; } }
.dark .offer-card { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.12); }
.offer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1.15fr 1fr 1fr; gap: 2.5rem; } .offer-grid > * + * { border-left: 1px solid rgba(18, 19, 19, 0.08); padding-left: 2.5rem; margin-left: -2.5rem; } }
.dark .offer-grid > * + * { border-left-color: rgba(255, 255, 255, 0.1); }
.offer-grid h2, .eyebrow-h { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(18, 19, 19, 0.42); }
.dark .offer-grid h2 { color: rgba(244, 241, 233, 0.45); }
.info-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.info-list li { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: rgba(18, 19, 19, 0.72); }
.dark .info-list li { color: rgba(244, 241, 233, 0.74); }
.info-list li svg { width: 0.9375rem; height: 0.9375rem; flex-shrink: 0; margin-top: 0.1rem; color: var(--olive); }
.dark .info-list li svg { color: var(--olive-soft); }
.about-text { color: rgba(18, 19, 19, 0.62); font-size: 0.9375rem; line-height: 1.7; display: flex; flex-direction: column; gap: 0.875rem; max-width: 70ch; }
.dark .about-text { color: rgba(244, 241, 233, 0.62); }
.updated-line { font-size: 0.75rem; color: rgba(18, 19, 19, 0.38); margin-top: 1.25rem; }
.dark .updated-line { color: rgba(244, 241, 233, 0.42); }

.review-card { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 18px; padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dark .review-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.review-stars { display: inline-flex; gap: 0.125rem; color: #e8a33d; }
.review-stars svg { width: 0.875rem; height: 0.875rem; }
.cat-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- agent pages ---------- */
.agent-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.agent-avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 20px; border: 1px solid rgba(18, 19, 19, 0.1);
  background: rgba(255, 255, 255, 0.6); display: grid; place-items: center; padding: 0.875rem; box-shadow: var(--shadow-sm);
}
.dark .agent-avatar { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.agent-avatar img { width: 100%; height: 100%; object-fit: contain; }
.other-agents { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.oa-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 2.25rem; padding: 0 0.75rem 0 0.4rem;
  border: 1px solid rgba(18, 19, 19, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem; font-weight: 500; transition: border-color 0.15s ease, transform 0.15s ease;
}
.dark .oa-chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.oa-chip img { width: 1.125rem; height: 1.125rem; }
.oa-chip:hover { border-color: rgba(18, 19, 19, 0.32); transform: translateY(-1px); }
.dark .oa-chip:hover { border-color: rgba(255, 255, 255, 0.32); }

/* ---------- learn / blog article ---------- */
.page-head { padding-top: 2.5rem; padding-bottom: 1rem; display: flex; flex-direction: column; gap: 0.875rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; max-width: 26ch; }
.article-layout { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 16rem; } }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 1.125rem; font-size: 0.9375rem; line-height: 1.75; }
.prose h2 { font-size: 1.625rem; letter-spacing: -0.04em; line-height: 1.1; margin-top: 2rem; scroll-margin-top: 6rem; }
.prose h3 { font-size: 1.125rem; letter-spacing: -0.02em; margin-top: 1.5rem; }
.prose p, .prose li { color: rgba(18, 19, 19, 0.78); }
.dark .prose p, .dark .prose li { color: rgba(244, 241, 233, 0.76); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(18, 19, 19, 0.3); }
.prose a:hover { text-decoration-color: var(--fg); }
.prose ul { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.1rem; list-style: disc; }
.prose ol { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.3rem; list-style: decimal; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.prose th, .prose td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid rgba(18, 19, 19, 0.12); vertical-align: top; }
.dark .prose th, .dark .prose td { border-bottom-color: rgba(255, 255, 255, 0.12); }
.prose th { font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: 0.84em; background: rgba(18, 19, 19, 0.06); border-radius: 6px; padding: 0.1rem 0.35rem; }
.dark .prose code { background: rgba(255, 255, 255, 0.09); }
.prose pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; overflow: auto; }
.toc { position: sticky; top: calc(4rem + 1.5rem); display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; }
.toc-title { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(18, 19, 19, 0.42); margin-bottom: 0.5rem; }
.dark .toc-title { color: rgba(244, 241, 233, 0.45); }
.toc a { color: rgba(18, 19, 19, 0.52); padding: 0.25rem 0; display: block; }
.dark .toc a { color: rgba(244, 241, 233, 0.52); }
.toc a:hover, .toc a.current { color: var(--fg); }
.card-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-list { grid-template-columns: 1fr 1fr; } }
.nav-card {
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 20px;
  padding: 1.25rem 1.375rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.dark .nav-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.nav-card:hover { border-color: rgba(18, 19, 19, 0.22); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.dark .nav-card:hover { border-color: rgba(255, 255, 255, 0.24); }
.nav-card .nc-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; }
.nav-card .nc-desc { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.5; }
.nav-card .nc-tag { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(18, 19, 19, 0.4); }
.dark .nav-card .nc-tag { color: rgba(244, 241, 233, 0.45); }

/* ---------- ai-videos / galleries ---------- */
.example-grid { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .example-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .example-grid { grid-template-columns: repeat(3, 1fr); } }
.example-card { display: flex; flex-direction: column; gap: 0.625rem; }
.example-card .ex-media {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(18, 19, 19, 0.08);
  aspect-ratio: 16 / 9; background: #101010; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.example-card:hover .ex-media { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.dark .example-card .ex-media { border-color: rgba(255, 255, 255, 0.1); }
.example-card .ex-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.example-card .ex-title { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.015em; }
.prompt-box {
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 16px;
  padding: 0.875rem 1rem; font-size: 0.8125rem; line-height: 1.55; color: rgba(18, 19, 19, 0.6);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.dark .prompt-box { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: rgba(244, 241, 233, 0.6); }
.prompt-box .p-label { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(18, 19, 19, 0.4); }
.dark .prompt-box .p-label { color: rgba(244, 241, 233, 0.45); }
.prompt-box .p-text { max-height: 6.5em; overflow: hidden; }
.prompt-box.expanded .p-text { max-height: none; }
.prompt-box .p-toggle { align-self: flex-start; font-size: 0.75rem; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- landing pages ---------- */
.tool-hero { padding-block: 3.5rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; position: relative; overflow: clip; }
.tool-hero::before {
  content: ""; position: absolute; left: 50%; top: -10%; translate: -50% 0; z-index: 0; pointer-events: none;
  width: min(70vw, 700px); aspect-ratio: 1; border-radius: 999px;
  background: rgba(79, 109, 240, 0.09); filter: blur(110px);
}
.tool-hero > * { position: relative; z-index: 1; }
.tool-hero h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; max-width: 18ch; }
.tool-hero .lede { max-width: 52ch; }
.feature-band { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 19, 19, 0.08); border-radius: 24px; padding: 2rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-band { grid-template-columns: 1fr 1fr; align-items: center; } }
.dark .feature-band { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.check-list { display: flex; flex-direction: column; gap: 0.625rem; }
.check-list li { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; color: rgba(18, 19, 19, 0.72); }
.dark .check-list li { color: rgba(244, 241, 233, 0.72); }
.check-list li svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--olive); width: 1.0625rem; height: 1.0625rem; }
.dark .check-list li svg { color: var(--olive-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(18, 19, 19, 0.1); margin-top: 5rem; }
.dark .site-footer { border-top-color: rgba(255, 255, 255, 0.1); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; padding-block: 3rem 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 0.875rem; max-width: 22rem; }
.footer-brand p { color: var(--muted-fg); font-size: 0.9063rem; line-height: 1.6; }
.footer-col-title { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(18, 19, 19, 0.42); margin-bottom: 0.875rem; }
.dark .footer-col-title { color: rgba(244, 241, 233, 0.45); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.9063rem; color: rgba(18, 19, 19, 0.62); transition: color 0.15s ease; }
.dark .footer-col a { color: rgba(244, 241, 233, 0.62); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid rgba(18, 19, 19, 0.1); padding-block: 1.375rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8125rem; color: rgba(18, 19, 19, 0.48);
}
.dark .footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); color: rgba(244, 241, 233, 0.48); }
.footer-bottom .fb-right { display: flex; align-items: center; gap: 0.625rem; }
.footer-bottom select {
  height: 2.125rem; border-radius: 999px; border: 1px solid rgba(18, 19, 19, 0.12);
  background: transparent; padding: 0 0.75rem; font-size: 0.8125rem; font-weight: 500; color: var(--fg);
  transition: border-color 0.15s ease;
}
.footer-bottom select:hover { border-color: rgba(18, 19, 19, 0.35); }
.dark .footer-bottom select { border-color: rgba(255, 255, 255, 0.15); }
.dark .footer-bottom select:hover { border-color: rgba(255, 255, 255, 0.35); }

/* ---------- misc ---------- */
.back-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lift);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-2px); }
.divider { border: 0; border-top: 1px solid rgba(18, 19, 19, 0.1); margin-block: 0; }
.note-box {
  background: rgba(244, 255, 113, 0.35); border: 1px solid rgba(215, 245, 98, 0.6);
  border-radius: 16px; padding: 0.875rem 1rem; font-size: 0.875rem; line-height: 1.55;
}
.dark .note-box { background: rgba(244, 255, 113, 0.08); border-color: rgba(244, 255, 113, 0.2); }
.auth-panel { width: 100%; max-width: 26rem; text-align: left; }
.auth-input { width: 100%; height: 2.75rem; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 0.875rem; background: rgba(255, 255, 255, 0.7); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.auth-input:focus { border-color: #121313; box-shadow: 0 0 0 3px rgba(18, 19, 19, 0.08); }
.dark .auth-input { background: rgba(255, 255, 255, 0.06); }

/* placeholders for failed media */
.media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 600; letter-spacing: -0.02em; color: rgba(18, 19, 19, 0.5);
  font-size: clamp(0.875rem, 2vw, 1.25rem); text-align: center; padding: 1rem;
}

/* ---------- detail extras (v2.1 functional completeness) ---------- */
.stat-tips { display: inline-flex; align-items: center; gap: 0.375rem; }
.stat-tip {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  border: 1px solid rgba(18, 19, 19, 0.12); background: rgba(255, 255, 255, 0.55);
  color: rgba(18, 19, 19, 0.55); cursor: help; transition: color 0.15s ease, border-color 0.15s ease;
}
.stat-tip:hover { color: var(--fg); border-color: rgba(18, 19, 19, 0.35); }
.dark .stat-tip { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: rgba(244, 241, 233, 0.6); }
.stat-tip svg { width: 0.875rem; height: 0.875rem; }
.api-key-badge {
  display: inline-flex; align-items: center; gap: 0.3125rem; height: 1.75rem; padding: 0 0.625rem;
  border-radius: 999px; border: 1px solid rgba(232, 163, 61, 0.35); background: #fff4dc; color: #8a5a00;
  font-size: 0.75rem; font-weight: 600;
}
.dark .api-key-badge { background: rgba(232, 163, 61, 0.12); color: #e8c07d; }
.api-key-badge svg { width: 0.8125rem; height: 0.8125rem; }
.help-anchor {
  display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.75rem;
  font-size: 0.75rem; color: rgba(18, 19, 19, 0.45);
  text-decoration: underline dotted; text-underline-offset: 4px;
}
.help-anchor:hover { color: var(--fg); }
.dark .help-anchor { color: rgba(244, 241, 233, 0.45); }
.help-anchor svg { width: 0.875rem; height: 0.875rem; }
.collect-actions { display: inline-flex; align-items: center; gap: 0.375rem; }
.collect-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3125rem;
  height: 2.5rem; min-width: 2.5rem; padding: 0 0.625rem; border-radius: 999px;
  border: 1px solid rgba(18, 19, 19, 0.12); background: rgba(255, 255, 255, 0.6);
  color: rgba(18, 19, 19, 0.55); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.collect-btn:hover { color: var(--fg); border-color: rgba(18, 19, 19, 0.35); transform: translateY(-1px); }
.collect-btn:active { transform: scale(0.96); }
.collect-btn[aria-pressed="true"] { color: #df4b4b; border-color: rgba(223, 75, 75, 0.4); background: rgba(223, 75, 75, 0.08); }
.collect-btn.save[aria-pressed="true"] { color: #8a5a00; border-color: rgba(232, 163, 61, 0.45); background: rgba(232, 163, 61, 0.1); }
.dark .collect-btn { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: rgba(244, 241, 233, 0.6); }
.dark .collect-btn:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.35); }
.collect-btn svg { width: 1rem; height: 1rem; }
.ww-rows { display: flex; flex-direction: column; gap: 0.875rem; }
.ww-row { display: flex; flex-direction: column; gap: 0.5rem; }
.ww-row-label { font-size: 0.75rem; color: var(--muted-fg); display: inline-flex; align-items: center; gap: 0.3125rem; }
.ww-row-label svg { width: 0.8125rem; height: 0.8125rem; }
.ww-guide-links { display: flex; flex-direction: column; gap: 0.375rem; }
.ww-guide-links a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: rgba(18, 19, 19, 0.72); }
.dark .ww-guide-links a { color: rgba(244, 241, 233, 0.72); }
.ww-guide-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ww-guide-links .g-ic { width: 1.25rem; height: 1.25rem; border-radius: 6px; border: 1px solid rgba(18, 19, 19, 0.12); background: #fff; display: grid; place-items: center; padding: 2px; }
.dark .ww-guide-links .g-ic { background: #242420; border-color: rgba(255, 255, 255, 0.12); }
.ww-guide-links .g-ic img { width: 100%; height: 100%; object-fit: contain; }
.provider-pill {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 1.75rem; padding: 0 0.625rem 0 0.375rem;
  border-radius: 999px; border: 1px solid rgba(18, 19, 19, 0.12); background: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem; font-weight: 600; color: rgba(18, 19, 19, 0.72);
}
.dark .provider-pill { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: rgba(244, 241, 233, 0.72); }
.provider-pill .p-ic { width: 1.125rem; height: 1.125rem; border-radius: 999px; background: #fff; border: 1px solid rgba(18, 19, 19, 0.1); display: grid; place-items: center; padding: 2px; }
.dark .provider-pill .p-ic { background: #f4f1e9; }
.provider-pill .p-ic img { width: 100%; height: 100%; object-fit: contain; }
.you-say-wrap { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.you-say {
  position: relative; max-width: 85%; border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(18, 19, 19, 0.08); background: #f1f1ef;
  padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.6; color: rgba(18, 19, 19, 0.78);
}
.dark .you-say { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: rgba(244, 241, 233, 0.78); }
.you-say .ys-label { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(18, 19, 19, 0.4); margin-bottom: 0.25rem; }
.dark .you-say .ys-label { color: rgba(244, 241, 233, 0.45); }
.guide-dl { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 0.875rem; }
.guide-dl .gd-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; font-size: 0.8125rem; line-height: 1.5; }
.guide-dl dt { color: var(--muted-fg); font-weight: 600; }
.guide-dl dd { margin: 0; color: rgba(18, 19, 19, 0.72); }
.dark .guide-dl dd { color: rgba(244, 241, 233, 0.72); }
.guide-toggle {
  margin-top: 1.25rem; height: 2.25rem; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgba(18, 19, 19, 0.12); background: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.375rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dark .guide-toggle { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.guide-toggle:hover { border-color: rgba(18, 19, 19, 0.35); }
.dark .guide-toggle:hover { border-color: rgba(255, 255, 255, 0.35); }
.guide-toggle svg { width: 0.875rem; height: 0.875rem; transition: rotate 0.2s ease; }
.guide-toggle[aria-expanded="true"] svg { rotate: 180deg; }
.guide-hidden[hidden] { display: none; }
.card-actions {
  position: absolute; right: 0.625rem; bottom: 2.5rem; z-index: 5;
  display: flex; flex-direction: column; gap: 0.375rem;
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.skill-card:hover .card-actions, .skill-card:focus-within .card-actions { opacity: 1; transform: none; }
@media (hover: none) { .card-actions { display: none; } }
.card-act {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(17, 18, 18, 0.55); color: #fff;
  backdrop-filter: blur(6px); transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.card-act:hover { background: rgba(17, 18, 18, 0.75); transform: scale(1.06); }
.card-act:active { transform: scale(0.94); }
.card-act[aria-pressed="true"] { color: #df4b4b; }
.card-act.save[aria-pressed="true"] { color: var(--accent); }
.card-act svg { width: 0.875rem; height: 0.875rem; }
.chip { height: 2.375rem; }
.catalog-search { height: 3.5rem; }
.empty-actions { display: flex; justify-content: center; gap: 0.625rem; margin-top: 1.25rem; }
.result-intent { font-size: 0.8125rem; color: var(--muted-fg); margin-bottom: 1.25rem; display: none; }
.result-intent.show { display: block; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .tweets-track { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   SkillCube additions — 测评层组件（薄荷绿/钴蓝识别色）
   ============================================================ */
.hero-h1 {
  margin-inline: auto; max-width: 22ch;
  font-size: clamp(2.4rem, 6.5vw, 4.1rem); font-weight: 600;
  line-height: 1.05; letter-spacing: -0.05em; text-wrap: balance;
}
.hero-sub { color: rgba(18, 19, 19, 0.55); font-size: 1.0625rem; line-height: 1.75; max-width: 54ch; margin: 1.5rem auto 0; }
.dark .hero-sub { color: rgba(244, 241, 233, 0.58); }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
@media (min-width: 1024px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: var(--bg); padding: 1.875rem 1rem 1.625rem; text-align: center; display: flex; flex-direction: column; gap: 0.375rem; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-lab { font-size: 0.8125rem; color: var(--muted-fg); }

.cube-tile { position: absolute; inset: 0; display: grid; place-items: center; background: var(--tint, #eceade); }
.cube-tile span { font-family: var(--font-display); font-weight: 600; font-size: 3rem; letter-spacing: -0.05em; color: rgba(18, 19, 19, 0.42); }
.dark .cube-tile span { color: rgba(18, 19, 19, 0.5); }
.cube-badge {
  position: absolute; top: 0.625rem; z-index: 4;
  display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5625rem;
  border-radius: 999px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.78); color: #121313; backdrop-filter: blur(8px);
  box-shadow: 0 3px 10px rgba(17, 18, 18, 0.1);
}
.cube-badge.lic { top: auto; bottom: 0.625rem; }
.cube-badge.lic.warn { background: #ffe3b3; box-shadow: none; }
.cube-badge.lic.ok { background: #dff5e6; box-shadow: none; }
.cube-meta { margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted-fg); display: flex; gap: 0.5rem; flex-wrap: wrap; }

.mx-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
table.mx { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.mx th, .mx td { border-bottom: 1px solid var(--border); padding: 0.6rem 0.75rem; text-align: center; white-space: nowrap; }
.mx tr:last-child td { border-bottom: 0; }
.mx thead th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); font-weight: 600; }
.mx td:first-child, .mx th:first-child { text-align: left; font-weight: 500; }
.mx .tbd { color: var(--muted-fg); }
.mx .ok { color: var(--olive); font-weight: 600; }
.mx .bad { color: var(--strike); font-weight: 600; }
.mx .part { color: #b7791f; font-weight: 600; }
.mx-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted-fg); margin-top: 1rem; }

.pill-note {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2rem; padding: 0 0.875rem;
  border-radius: 999px; border: 1px solid var(--border-strong); font-size: 0.8125rem; font-weight: 500;
}

/* ---------- studio product badges / demo ---------- */
.cube-badge.qa { left: auto; right: 0.625rem; background: #dff5e6; box-shadow: none; color: #1e6b3a; }
.cube-price {
  position: absolute; left: 0.625rem; bottom: 0.625rem; z-index: 4;
  display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.625rem;
  border-radius: 999px; background: #121313; color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.cube-price.free { background: var(--accent); color: #121313; }
.demo-frame-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.demo-frame { display: block; width: 100%; aspect-ratio: 9 / 12; border: 0; background: #fff; }
@media (min-width: 768px) { .demo-frame { aspect-ratio: 16 / 11; } }
.demo-pre {
  margin: 0; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; color: var(--fg); max-height: 32rem; overflow: auto;
}

/* ---------- path tree（主线技能树） ---------- */
.chapter { margin-bottom: 3.25rem; }
.ch-head { display: flex; align-items: flex-start; gap: 1.125rem; border-top: 2px solid var(--fg); padding-top: 1.25rem; margin-bottom: 1.75rem; }
.ch-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: rgba(18, 19, 19, 0.18); }
.dark .ch-num { color: rgba(244, 241, 233, 0.2); }
.ch-title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; }
.ch-sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-fg); }
.ch-nodes { list-style: none; margin: 0; padding: 0 0 0 2.25rem; border-left: 2px solid var(--border-strong); display: flex; flex-direction: column; gap: 0.875rem; }
@media (min-width: 768px) { .ch-nodes li:nth-child(even) { margin-left: 2.75rem; } }
.node-card { position: relative; display: flex; align-items: center; gap: 0.875rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 0.9375rem 1.125rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.node-card::before { content: ""; position: absolute; left: calc(-2.25rem - 8px); top: 50%; translate: 0 -50%; width: 14px; height: 14px; border-radius: 999px; background: var(--bg); border: 2px solid var(--border-strong); }
.node-card:hover { transform: translateX(4px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
li.done > .node-card { border-color: var(--accent-deep); background: var(--card-2); }
li.done > .node-card::before { background: var(--accent-deep); border-color: var(--accent-deep); }
.node-idx { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
li.done .node-idx { background: var(--accent-deep); }
.node-body { display: flex; flex-direction: column; gap: 0.1875rem; min-width: 0; }
.node-title { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.node-meta { font-size: 0.75rem; color: var(--muted-fg); }
.node-tag { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted-fg); }
.node-go { margin-left: auto; flex-shrink: 0; width: 1.125rem; height: 1.125rem; color: var(--muted-fg); }
.node-card:hover .node-go { color: var(--fg); }
.prevnext { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---------- path node popover（悬停出 Skill 预览） ---------- */
.ch-nodes li { position: relative; }
.node-skill-tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; color: #1e6b3a; border: 1px solid rgba(30, 107, 58, 0.45); border-radius: 999px; padding: 0.1875rem 0.5625rem; }
.dark .node-skill-tag { color: var(--accent-deep); border-color: rgba(95, 220, 184, 0.5); }
.node-pop {
  position: absolute; left: calc(100% + 0.875rem); top: 50%; translate: 0 -50%;
  width: 20.5rem; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: var(--shadow-lift); padding: 0.875rem;
  display: none; z-index: 30; cursor: default;
}
.ch-nodes li:hover .node-pop, .ch-nodes li:focus-within .node-pop { display: block; }
@media (max-width: 1099px), (hover: none) { .node-pop { display: none !important; } }
.pop-head { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); margin-bottom: 0.625rem; }
.mini-skill { display: flex; gap: 0.75rem; align-items: center; padding: 0.5rem; border-radius: 10px; transition: background 0.15s ease; }
.mini-skill:hover { background: var(--muted); }
.mini-thumb { width: 5.5rem; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); display: block; position: relative; background: var(--muted); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-tile { position: absolute; inset: 0; display: grid; place-items: center; background: var(--tint); font-weight: 700; color: rgba(18, 19, 19, 0.45); }
.mini-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.mini-info strong { font-size: 0.875rem; letter-spacing: -0.01em; }
.mini-info em { font-style: normal; font-size: 0.75rem; color: var(--muted-fg); }
.pop-more { display: inline-block; margin-top: 0.625rem; font-size: 0.8125rem; color: var(--muted-fg); }
.pop-more:hover { color: var(--fg); }

/* ---------- 大卡 skill 面板（≥340px）与收录详情 ---------- */
.node-pop { width: clamp(24rem, 30vw, 27rem); max-height: 72vh; overflow-y: auto; }
.ch-nodes li:nth-child(even) .node-pop { left: auto; right: calc(100% + 0.875rem); }
.pop-card { display: flex; gap: 0.875rem; padding: 0.625rem; border-radius: 12px; align-items: center; transition: background 0.15s ease; }
.pop-card:hover { background: var(--muted); }
.pop-thumb { width: 9.5rem; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); position: relative; display: block; background: var(--muted); }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-body { display: flex; flex-direction: column; gap: 0.3125rem; min-width: 0; }
.pop-body strong { font-size: 0.9375rem; letter-spacing: -0.01em; }
.pop-body em { font-style: normal; font-size: 0.75rem; color: var(--muted-fg); }
.pop-desc { font-size: 0.75rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-ev { font-family: var(--font-mono); font-size: 0.6875rem; color: #1e6b3a; line-height: 1.5; }
.dark .pop-ev { color: var(--accent-deep); }
.pop-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 900px) { .pop-grid { grid-template-columns: 1fr 1fr; } }
.skill-hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 21 / 9; box-shadow: var(--shadow-card); }
.skill-hero .cube-tile span { font-size: 7rem; }

/* ---------- 新手学AI ---------- */
.nb-stage { margin-top: 3rem; }
.nb-stage-head { display: flex; align-items: baseline; gap: .875rem; border-bottom: 1px solid var(--border); padding-bottom: .875rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.nb-stage-num { font-size: .75rem; font-weight: 700; color: var(--muted-fg); letter-spacing: .12em; }
.nb-stage-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.nb-stage-tag { font-size: .875rem; color: var(--muted-fg); margin-top: .25rem; }
.nb-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .nb-grid { grid-template-columns: 1fr 1fr; } }
.nb-card { display: flex; flex-direction: column; gap: .625rem; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 18px; padding: 1.125rem 1.25rem; background: rgba(255, 255, 255, .5); transition: transform .2s ease, box-shadow .2s ease; }
/* shortcut: 手机宽度过窄时 16:9 装不下三步药丸，放开比例；接入真实移动端设计稿时再定断点 */
@media (max-width: 699px) { .nb-card { aspect-ratio: auto; } }
.dark .nb-card { background: rgba(255, 255, 255, .04); }
.nb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.nb-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nb-idx { font-size: .6875rem; font-weight: 700; color: var(--muted-fg); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.nb-badge { font-size: .6875rem; font-weight: 600; color: var(--muted-fg); border: 1px solid var(--border-strong); border-radius: 999px; padding: .125rem .625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.nb-flow { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .375rem; font-size: .75rem; }
.nb-flow .fs { display: inline-flex; align-items: center; gap: .3125rem; border-radius: 999px; padding: .25rem .625rem .25rem .3125rem; background: var(--muted); color: rgba(18, 19, 19, .72); max-width: 100%; }
.dark .nb-flow .fs { background: rgba(255, 255, 255, .07); color: rgba(244, 241, 233, .72); }
.nb-flow .fs i { font-style: normal; font-weight: 700; font-size: .625rem; width: 1.0625rem; height: 1.0625rem; border-radius: 999px; display: grid; place-items: center; background: rgba(18, 19, 19, .14); }
.dark .nb-flow .fs i { background: rgba(255, 255, 255, .14); }
.nb-flow .fa { color: var(--muted-fg); font-weight: 600; }
.nb-flow .fs.pay { background: var(--accent); color: #121313; font-weight: 600; }
.nb-flow .fs.pay i { background: rgba(18, 19, 19, .18); }

/* ---------- 极简商品详情页（Skillry 风格高转化） ---------- */
.prod-split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 960px) {
  .prod-split-hero {
    grid-template-columns: 1.05fr 1.15fr;
    gap: 3rem;
  }
}
.prod-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.prod-summary .h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
}
.prod-summary .lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted-fg);
  margin: 0;
}

/* 3 步傻瓜流程看板 */
.prod-steps-flow {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.125rem;
}
.prod-step-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.prod-step-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--fg);
  flex-shrink: 0;
}
.prod-step-row.pay .prod-step-badge {
  background: var(--accent);
  color: #121313;
}
.prod-step-row strong {
  font-weight: 600;
  color: var(--fg);
  min-width: 4rem;
  flex-shrink: 0;
}
.prod-step-row span {
  color: var(--muted-fg);
  line-height: 1.4;
}

/* 结账转化框 */
.prod-buy-box {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.prod-buy-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.prod-price-main {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.prod-price-sub {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.prod-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.prod-buy-footer {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  text-align: center;
}
.prod-buy-footer a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 右侧视觉展厅卡片 */
.prod-gallery-card {
  position: sticky;
  top: 5rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-figure);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prod-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.prod-gallery-dots {
  display: flex;
  gap: 0.35rem;
}
.prod-gallery-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--border-strong);
}
.prod-gallery-body {
  max-height: 520px;
  overflow-y: auto;
  position: relative;
  background: var(--card);
}
.prod-gallery-body .demo-frame {
  width: 100%;
  min-height: 480px;
  border: none;
  display: block;
}
.prod-gallery-body .demo-pre {
  margin: 0;
  padding: 1.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.prod-gallery-footer {
  padding: 0.625rem 1rem;
  background: var(--card-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #1e6b3a;
}
.dark .prod-gallery-footer {
  color: var(--accent-deep);
}

/* 信任边界网格：适合谁 / 不适合谁 / 交付物 */
.prod-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 3.5rem 0;
}
@media (min-width: 860px) {
  .prod-trust-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.trust-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}
.trust-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.trust-col-title svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.trust-col.good .trust-col-title { color: #1e6b3a; }
.dark .trust-col.good .trust-col-title { color: var(--accent-deep); }
.trust-col.not .trust-col-title { color: var(--muted-fg); }
.trust-col.what .trust-col-title { color: var(--fg); }
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.trust-list li {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted-fg);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.trust-list li span {
  flex: 1;
}

/* 极简安装区与源码折叠抽屉 */
.prod-install-section {
  margin: 3.5rem 0;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--card-2);
}
.prod-install-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.prod-install-desc {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}
.code-drawer {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.code-drawer summary {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: var(--muted-fg);
  transition: color 0.15s ease, background 0.15s ease;
}
.code-drawer summary:hover {
  color: var(--fg);
  background: var(--muted);
}
.code-drawer[open] summary {
  border-bottom: 1px solid var(--border);
}
.code-drawer .codebox {
  margin: 0;
  border: none;
  border-radius: 0;
  max-height: 460px;
}

/* 主线卡片内部主从分级（一级主卡 + 二级伴随推荐） */
.nb-card {
  aspect-ratio: auto;
  min-height: 12.5rem;
}
.nb-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.nb-secondary-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.625rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
  font-size: 0.75rem;
}
.nb-sec-label {
  color: var(--muted-fg);
  font-size: 0.6875rem;
  font-weight: 600;
}
.nb-sec-chip {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--muted);
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.6875rem;
  transition: all 0.15s ease;
}
.nb-sec-chip:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- 首页：1:1 对齐高保真主线仪表盘布局 ---------- */
.path-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 1rem;
}
@media (min-width: 1080px) {
  .path-hero-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
  }
}

/* 顶部三特性指标徽章条 */
.path-features-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2.5rem;
}
@media (min-width: 680px) {
  .path-features-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
.path-feat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.25rem;
}
.path-feat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--fg);
}
.path-feat-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.path-feat-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
}
.path-feat-text span {
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

/* 纵向时间轴与章节容器 */
.path-timeline-system {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 2rem;
}
.path-axis-line {
  position: absolute;
  left: 0.9375rem;
  top: 1.25rem;
  bottom: 2.5rem;
  width: 2px;
  background: var(--border-strong);
  z-index: 1;
}

/* 单个章节模块 */
.path-ch-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 章节横条（未激活/折叠） */
.path-ch-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.path-ch-header:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.path-ch-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.path-ch-badge {
  position: absolute;
  left: -2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-fg);
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
  z-index: 2;
  border: 3px solid var(--bg);
  box-sizing: content-box;
}
.path-ch-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.path-ch-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}
.path-ch-desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin: 0;
}
.path-ch-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.path-ch-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted-fg);
}
.path-ch-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--muted-fg);
  transition: all 0.2s ease;
}

/* 激活章节高亮状态 */
.path-ch-block.active .path-ch-header {
  border: 1.5px solid var(--accent-deep);
  box-shadow: 0 4px 24px rgba(95, 220, 184, 0.25), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.path-ch-block.active .path-ch-badge {
  background: var(--accent-deep);
  color: #121313;
}
.path-ch-block.active .path-ch-pill {
  background: rgba(167, 243, 221, 0.25);
  border-color: var(--accent);
  color: #1e6b3a;
  font-weight: 600;
}
.dark .path-ch-block.active .path-ch-pill {
  color: var(--accent-deep);
}
.path-ch-block.active .path-ch-arrow {
  background: #121313;
  color: #ffffff;
  border-color: #121313;
}
.dark .path-ch-block.active .path-ch-arrow {
  background: var(--accent);
  color: #121313;
  border-color: var(--accent);
}

/* 关卡子卡片 4 列网格（突破左侧时间线，卡片面积增大） */
.path-subgrid {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.125rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}
@media (min-width: 600px) {
  .path-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .path-subgrid {
    grid-template-columns: repeat(4, 1fr);
    margin-left: -2.85rem; /* 允许卡片突破左侧的线，覆盖时间轴 */
  }
}
.path-ch-block.active .path-subgrid {
  display: grid;
}

/* 单个关卡卡片（面积增大，如红框大小） */
.path-subcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 250px;
  box-sizing: border-box;
}
.path-subcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--border-strong);
}
.path-subcard-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
}
.path-subcard-icon svg {
  width: 24px;
  height: 24px;
}
.path-subcard-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.path-subcard-desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}
.path-subcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
}
.path-subcard-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.path-subcard-arrow {
  color: var(--fg);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: transform 0.15s ease;
}
.path-subcard:hover .path-subcard-arrow {
  transform: translateX(3px);
}

/* 右侧挂载侧边栏容器 */
.path-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1080px) {
  .path-sidebar-column {
    position: sticky;
    top: 5rem;
  }
}

/* 侧边栏卡片 1：本阶段热门 Skills */
.aside-skills-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.aside-skills-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
}
.aside-skills-head svg {
  color: #e8a33d;
}
.aside-skills-sub {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.aside-skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.aside-skill-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.6rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.aside-skill-row:hover {
  background: var(--muted);
}
.aside-skill-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.aside-skill-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.aside-skill-info strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
}
.aside-skill-info span {
  font-size: 0.75rem;
  color: var(--muted-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aside-skill-arrow {
  color: var(--muted-fg);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.aside-skills-more-btn {
  display: block;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.15s ease;
}
.aside-skills-more-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* 侧边栏卡片 2：开通会员解锁全部路径 */
.aside-vip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.aside-vip-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.aside-vip-illus {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
  flex-shrink: 0;
  color: #ffffff;
}
.aside-vip-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.aside-vip-list {
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aside-vip-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}
.aside-vip-list li svg {
  color: #1e6b3a;
  flex-shrink: 0;
}
.dark .aside-vip-list li svg {
  color: var(--accent-deep);
}
.aside-vip-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #121313;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.dark .aside-vip-btn {
  background: var(--accent);
  color: #121313;
}
.aside-vip-btn:hover {
  opacity: 0.9;
}

/* ---------- 新手学AI：多米诺骨牌式卡片小按钮导航 ---------- */
.nav-item-newbie {
  position: relative;
}

.nav-link-newbie {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link-newbie .chev {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.65;
}

.nav-item-newbie:hover .nav-link-newbie .chev,
.nav-item-newbie[data-active="true"] .nav-link-newbie .chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* 激活/悬停时「新手学AI」保持扁平干净无阴影 */
.nav-item-newbie:hover > .nav-link-newbie,
.nav-item-newbie[data-active="true"] > .nav-link-newbie {
  background: rgba(18, 19, 19, 0.06) !important;
  color: var(--fg) !important;
  box-shadow: none !important;
}

.dark .nav-item-newbie:hover > .nav-link-newbie,
.dark .nav-item-newbie[data-active="true"] > .nav-link-newbie {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--fg) !important;
  box-shadow: none !important;
}

/* 导航下拉容器：轻盈居中，贴合小按钮尺寸 */
.domino-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 11.5rem;
  width: max-content;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  padding-top: 6px;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s ease;
}

/* 悬停过桥层，避免快速向下滑动时失焦 */
.domino-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 20px;
}

/* 悬停/激活态 */
.nav-item-newbie:hover .domino-dropdown,
.nav-item-newbie:focus-within .domino-dropdown,
.nav-item-newbie[data-active="true"] .domino-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 多米诺卡片小按钮纵向列表 */
.domino-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  perspective: 800px;
}

/* 卡片样式小按钮：高饱和水彩笔色彩、无边框、无阴影、只有标题 */
.domino-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-height: 2.25rem;
  border-radius: 14px;
  border: none !important;
  outline: none;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transform-origin: top center;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;

  /* 初始多米诺待展开状态 */
  opacity: 0;
  transform: perspective(600px) rotateX(-22deg) translateY(-8px) scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease,
              background 0.18s ease;
}

/* 多米诺骨牌由上至下像骨牌倾倒展开动效 */
@keyframes domino-fall-in {
  0% {
    opacity: 0;
    transform: perspective(600px) rotateX(-22deg) translateY(-8px) scale(0.96);
  }
  70% {
    opacity: 0.95;
    transform: perspective(600px) rotateX(3deg) translateY(1px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg) translateY(0) scale(1);
  }
}

/* 级联阶梯式展开延时 */
.nav-item-newbie:hover .domino-btn,
.nav-item-newbie:focus-within .domino-btn,
.nav-item-newbie[data-active="true"] .domino-btn {
  animation: domino-fall-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.domino-btn:nth-child(1) { animation-delay: 0.02s; }
.domino-btn:nth-child(2) { animation-delay: 0.06s; }
.domino-btn:nth-child(3) { animation-delay: 0.10s; }
.domino-btn:nth-child(4) { animation-delay: 0.14s; }

.domino-btn:hover {
  transform: perspective(600px) rotateX(0deg) translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22) !important;
}

/* ---------- 精致设计系统配色（与 ink/cream/accent 保持和谐） ---------- */

/* 1. 钴蓝静深（部署网站一条龙） */
.domino-btn:nth-child(1),
.domino-btn-card:nth-child(1) {
  background: #dbeafe;
  color: #1e40af !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 3px rgba(0,0,0,0.18) !important;
}
.domino-btn:nth-child(1):hover,
.domino-btn-card:nth-child(1):hover {
  background: #bfdbfe;
  color: #1e3a8a !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 4px 12px rgba(30,58,95,0.30) !important;
}
.dark .domino-btn:nth-child(1),
.dark .domino-btn-card:nth-child(1) {
  background: #1e3a5f;
  color: #bdd9f8 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.dark .domino-btn:nth-child(1):hover,
.dark .domino-btn-card:nth-child(1):hover {
  background: #1f3e65;
  color: #d4e9ff !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 14px rgba(0,0,0,0.35) !important;
}

/* 2. 深玫瑰沉红（自媒体创作一条龙） */
.domino-btn:nth-child(2),
.domino-btn-card:nth-child(2) {
  background: #fce7f3;
  color: #9d174d !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 3px rgba(0,0,0,0.18) !important;
}
.domino-btn:nth-child(2):hover,
.domino-btn-card:nth-child(2):hover {
  background: #fbcfe8;
  color: #831843 !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 4px 12px rgba(107,26,46,0.30) !important;
}
.dark .domino-btn:nth-child(2),
.dark .domino-btn-card:nth-child(2) {
  background: #5c1626;
  color: #f8c4d2 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.dark .domino-btn:nth-child(2):hover,
.dark .domino-btn-card:nth-child(2):hover {
  background: #6b1a2e;
  color: #ffd6e3 !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 14px rgba(0,0,0,0.35) !important;
}

/* 3. 琥珀暖褐（职场提效一条龙） */
.domino-btn:nth-child(3),
.domino-btn-card:nth-child(3) {
  background: #fef3c7;
  color: #92400e !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 3px rgba(0,0,0,0.18) !important;
}
.domino-btn:nth-child(3):hover,
.domino-btn-card:nth-child(3):hover {
  background: #fde68a;
  color: #78350f !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 4px 12px rgba(92,51,16,0.30) !important;
}
.dark .domino-btn:nth-child(3),
.dark .domino-btn-card:nth-child(3) {
  background: #4e2b0d;
  color: #f5d5aa !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.dark .domino-btn:nth-child(3):hover,
.dark .domino-btn-card:nth-child(3):hover {
  background: #5c3310;
  color: #ffe5c4 !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 14px rgba(0,0,0,0.35) !important;
}

/* 4. 翡翠墨绿（商业变现一条龙）—— 呼应 accent 薄荷系，但更沉稳 */
.domino-btn:nth-child(4),
.domino-btn-card:nth-child(4) {
  background: #d1fae5;
  color: #065f46 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 3px rgba(0,0,0,0.18) !important;
}
.domino-btn:nth-child(4):hover,
.domino-btn-card:nth-child(4):hover {
  background: #a7f3d0;
  color: #064e3b !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 4px 12px rgba(14,61,47,0.30) !important;
}
.dark .domino-btn:nth-child(4),
.dark .domino-btn-card:nth-child(4) {
  background: #0a3226;
  color: #a7f3dd !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.dark .domino-btn:nth-child(4):hover,
.dark .domino-btn-card:nth-child(4):hover {
  background: #0e3d2f;
  color: #c4fae9 !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 14px rgba(0,0,0,0.35) !important;
}

/* ---------- 页面内的卡片小按钮排布 ---------- */
.pipeline-btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.domino-btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-height: 2.875rem;
  border-radius: 14px;
  border: none !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease,
              background 0.18s ease;
}

.domino-btn-card:hover {
  transform: translateY(-2px) scale(1.02);
  filter: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.20) !important;
}

/* ---------- 一条龙方案详情落地页（统一配色） ---------- */
.pipeline-hero {
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(18, 19, 19, 0.03), transparent 65%);
}

.dark .pipeline-hero {
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 65%);
}

.pipeline-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

.pipeline-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.pipeline-breadcrumb a:hover {
  color: var(--fg);
}

.pipeline-master-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px -8px rgba(18, 19, 19, 0.07),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  border: none;
}

.dark .pipeline-master-box {
  background: rgba(26, 29, 35, 0.75);
  box-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.pmb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pmb-label {
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pmb-badge {
  font-size: 0.6875rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(18, 19, 19, 0.06);
  color: var(--fg);
  font-weight: 600;
}

.dark .pmb-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
}

.pipeline-steps-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
  margin-block: 2.5rem;
}

.pipeline-step-item {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
}

.psi-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.psi-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.psi-desc {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.45;
}

.pipeline-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.psk-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.psk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.psk-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.psk-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.psk-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  background: rgba(18, 19, 19, 0.05);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.dark .psk-role {
  color: var(--muted-fg);
  background: rgba(255, 255, 255, 0.08);
}

.psk-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

.psk-action-box {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(18, 19, 19, 0.03);
  font-size: 0.8125rem;
}

.dark .psk-action-box {
  background: rgba(255, 255, 255, 0.04);
}

.psk-action-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--muted-fg);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.psk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* 移动端菜单抽屉适配 */
.md-newbie-group {
  margin-top: 0.25rem;
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.md-sublink {
  font-size: 0.875rem;
  color: var(--muted-fg);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.md-sublink:hover {
  color: var(--fg);
  background: rgba(18, 19, 19, 0.05);
}

.dark .md-sublink:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   Agent Skills 市集 (Marketplace)
   ========================================================================== */
.market-section {
  padding: 2.25rem 0 6rem;
}

.market-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.market-header-left {
  flex: 1;
  min-width: 280px;
}

.market-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.market-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  background: rgba(18, 19, 19, 0.06);
  color: rgba(18, 19, 19, 0.65);
  font-size: 0.8125rem;
  font-weight: 500;
}

.dark .market-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 233, 0.7);
}

.market-subtitle {
  color: rgba(18, 19, 19, 0.55);
  font-size: 0.875rem;
  margin-top: 0.45rem;
  line-height: 1.5;
}

.dark .market-subtitle {
  color: rgba(244, 241, 233, 0.55);
}

/* Tabs */
.market-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(18, 19, 19, 0.04);
  border-radius: 9999px;
  padding: 0.25rem;
  border: 1px solid rgba(18, 19, 19, 0.06);
}

.dark .market-tabs {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.market-tab {
  border: 0;
  background: transparent;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: rgba(18, 19, 19, 0.62);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .market-tab {
  color: rgba(244, 241, 233, 0.65);
}

.market-tab:hover {
  color: var(--fg);
}

.market-tab.active {
  background: #121313;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.dark .market-tab.active {
  background: #f4f1e9;
  color: #121313;
}

/* Layout */
.market-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: start;
  transition: grid-template-columns 0.3s ease;
}

.market-layout.sidebar-collapsed {
  grid-template-columns: 0px 1fr;
  gap: 0;
}

.market-layout.sidebar-collapsed .market-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-15px);
  width: 0;
  overflow: hidden;
  padding: 0;
}

/* Sidebar */
.market-sidebar {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  padding-right: 0.75rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.market-sidebar::-webkit-scrollbar {
  width: 4px;
}

.market-sidebar::-webkit-scrollbar-thumb {
  background: rgba(18, 19, 19, 0.15);
  border-radius: 4px;
}

.dark .market-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sidebar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.sidebar-toggle-btn {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  border: 1px solid rgba(18, 19, 19, 0.1);
  background: transparent;
  color: rgba(18, 19, 19, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dark .sidebar-toggle-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(244, 241, 233, 0.65);
}

.sidebar-toggle-btn:hover {
  background: rgba(18, 19, 19, 0.05);
  color: var(--fg);
}

.dark .sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.market-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(18, 19, 19, 0.04);
  border: 1px solid rgba(18, 19, 19, 0.08);
  margin-bottom: 1.25rem;
}

.dark .market-search-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.market-search-box svg {
  color: rgba(18, 19, 19, 0.45);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.dark .market-search-box svg {
  color: rgba(244, 241, 233, 0.45);
}

.market-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.8125rem;
  color: var(--fg);
}

.market-search-box input::placeholder {
  color: rgba(18, 19, 19, 0.4);
}

.dark .market-search-box input::placeholder {
  color: rgba(244, 241, 233, 0.4);
}

/* Filter groups */
.filter-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(18, 19, 19, 0.06);
}

.dark .filter-group {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(18, 19, 19, 0.4);
  margin-bottom: 0.5rem;
}

.dark .filter-group-title {
  color: rgba(244, 241, 233, 0.4);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.filter-item {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  gap: 0.45rem;
}

.filter-item:hover {
  background: rgba(18, 19, 19, 0.04);
}

.dark .filter-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(18, 19, 19, 0.25);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dark .filter-item input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-item input[type="checkbox"]:checked {
  background: #121313;
  border-color: #121313;
}

.dark .filter-item input[type="checkbox"]:checked {
  background: #f4f1e9;
  border-color: #f4f1e9;
}

.filter-item input[type="checkbox"]:checked::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -1.5px;
}

.dark .filter-item input[type="checkbox"]:checked::after {
  border-color: #121313;
}

.filter-item-icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: rgba(18, 19, 19, 0.45);
  flex-shrink: 0;
}

.dark .filter-item-icon {
  color: rgba(244, 241, 233, 0.45);
}

.filter-item-icon svg {
  width: 13px;
  height: 13px;
}

.filter-label {
  font-size: 0.8125rem;
  color: rgba(18, 19, 19, 0.78);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .filter-label {
  color: rgba(244, 241, 233, 0.8);
}

.filter-count {
  font-size: 0.6875rem;
  color: rgba(18, 19, 19, 0.35);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: auto;
}

.dark .filter-count {
  color: rgba(244, 241, 233, 0.35);
}

/* Main Market Area */
.market-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.market-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.75rem;
}

.market-filtered-count {
  font-size: 0.8125rem;
  color: rgba(18, 19, 19, 0.5);
  font-weight: 500;
}

.dark .market-filtered-count {
  color: rgba(244, 241, 233, 0.5);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.125rem;
}

@media (max-width: 1280px) {
  .market-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
  .market-layout {
    grid-template-columns: 1fr;
  }
  .market-sidebar {
    position: static;
    max-height: none;
  }
}

.market-layout.sidebar-collapsed .market-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Market Cards */
.market-card .card-media {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 19, 19, 0.08);
  background: #f3f4f6;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dark .market-card .card-media {
  background: #202120;
  border-color: rgba(255, 255, 255, 0.1);
}

.market-card:hover .card-media {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  border-color: rgba(18, 19, 19, 0.16);
}

.dark .market-card:hover .card-media {
  border-color: rgba(255, 255, 255, 0.22);
}

.market-card .card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Card Visual Canvases */
.card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  user-select: none;
}

.dark .card-visual {
  background: linear-gradient(135deg, #272826 0%, #1e1f1d 100%);
}

/* Visual Web */
.visual-web {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
}

.dark .visual-web {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem;
}

.dark .mock-browser-bar {
  background: rgba(0, 0, 0, 0.4);
}

.mock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mock-dot.d1 { background: #ef4444; }
.mock-dot.d2 { background: #eab308; }
.mock-dot.d3 { background: #22c55e; }

.mock-url {
  font-size: 0.5625rem;
  color: #64748b;
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-web-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mock-hero-bar {
  height: 8px;
  width: 65%;
  border-radius: 4px;
  background: var(--tint, #3b82f6);
  opacity: 0.85;
}

.mock-sub-bar {
  height: 5px;
  width: 45%;
  border-radius: 3px;
  background: rgba(100, 116, 139, 0.4);
}

.mock-btn-bar {
  height: 12px;
  width: 32px;
  border-radius: 999px;
  background: var(--tint, #3b82f6);
  margin-top: 2px;
}

.mock-wire-grid {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.mock-wire-box {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dark .mock-wire-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Visual Video */
.visual-video {
  background: radial-gradient(circle at center, #2e1065 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mock-video-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.4rem;
}

.mock-video-title {
  color: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-video-track {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.mock-video-bar {
  width: 45%;
  height: 100%;
  background: #ec4899;
}

/* Visual Slide */
.visual-slide {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.dark .visual-slide {
  background: linear-gradient(135deg, #451a03 0%, #1c1917 100%);
}

.mock-slide-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.35rem;
}

.dark .mock-slide-head {
  color: #fde68a;
}

.mock-slide-badge {
  background: rgba(120, 53, 15, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.mock-slide-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #78350f;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.dark .mock-slide-title {
  color: #fef3c7;
}

.mock-slide-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.mock-slide-bullets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-slide-bullets span {
  width: 50px;
  height: 4px;
  border-radius: 2px;
  background: rgba(120, 53, 15, 0.3);
}

.dark .mock-slide-bullets span {
  background: rgba(254, 243, 199, 0.3);
}

.mock-slide-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.mock-slide-chart span {
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: #d97706;
}

/* Visual Image */
.visual-image {
  background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
  position: relative;
}

.dark .visual-image {
  background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 100%);
}

.mock-art-circle {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  top: 15%;
  left: 15%;
  opacity: 0.8;
}

.mock-art-square {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f472b6, #db2777);
  bottom: 20%;
  right: 20%;
  transform: rotate(15deg);
  opacity: 0.7;
}

.mock-art-accent {
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: #fbbf24;
  top: 30%;
  right: 30%;
  opacity: 0.9;
}

.mock-art-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #581c87;
}

.dark .mock-art-tag {
  color: #fae8ff;
}

/* Visual Code */
.visual-code {
  background: #18181b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #e4e4e7;
}

.mock-code-head {
  font-size: 0.5625rem;
  color: #a1a1aa;
  border-bottom: 1px solid #27272a;
  padding-bottom: 0.25rem;
  margin-bottom: 0.4rem;
}

.mock-code-content {
  font-size: 0.625rem;
  line-height: 1.5;
}

.tok-k {
  color: #c084fc;
  font-weight: 600;
}

.tok-s {
  color: #86efac;
}

.tok-f {
  color: #60a5fa;
}

.tok-c {
  color: #71717a;
  font-style: italic;
}

/* Visual Doc */
.visual-doc {
  background: #fdfbf7;
}

.dark .visual-doc {
  background: #262624;
}

.mock-doc-sheet {
  background: #fff;
  height: 100%;
  border-radius: 6px;
  padding: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dark .mock-doc-sheet {
  background: #1c1c1a;
  border-color: rgba(255, 255, 255, 0.06);
}

.mock-doc-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-doc-rule {
  height: 1px;
  background: rgba(18, 19, 19, 0.08);
  margin-bottom: 0.2rem;
}

.dark .mock-doc-rule {
  background: rgba(255, 255, 255, 0.08);
}

.mock-doc-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(18, 19, 19, 0.12);
}

.dark .mock-doc-line {
  background: rgba(255, 255, 255, 0.15);
}

.mock-doc-line.l1 { width: 85%; }
.mock-doc-line.l2 { width: 65%; }
.mock-doc-line.l3 { width: 92%; }

/* Badges on Card */
.card-badge-free {
  position: absolute;
  left: 0.625rem;
  top: 0.625rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 1.45rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #ffd000;
  color: #121313;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-badge-studio {
  position: absolute;
  left: 0.625rem;
  top: 0.625rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 1.45rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #121313;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dark .card-badge-studio {
  background: #f4f1e9;
  color: #121313;
}

/* ---------- 谷歌登录与用户认证系统 (参考 pet-royal-portrait 现代极简风格) ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signin-btn {
  background: var(--ink, #121313);
  color: #FAF7F2;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all .18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.signin-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.dark .signin-btn {
  background: #F4F1E9;
  color: #121313;
}

.signin-btn .g-icon {
  flex-shrink: 0;
}

/* 登录后用户头像与下拉菜单 (完全对齐 pet-royal-portrait) */
.nav-user {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ava-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--card);
  transition: border-color .15s, transform .15s;
}

.ava-btn:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}

.ava-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ava-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 130;
  width: 250px;
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ava-menu.open {
  display: block;
  animation: authDropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authDropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ava-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--border);
}

.ava-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--border);
}

.ava-info {
  flex: 1;
  min-width: 0;
}

.ava-info .n {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ava-info .e {
  display: block;
  font-size: 0.68rem;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ava-tier {
  flex: none;
  font-size: 0.65rem;
  font-weight: 600;
  background: #ffd000;
  color: #121313;
  border-radius: 50px;
  padding: 3px 8px;
  white-space: nowrap;
}

.ava-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.84rem;
  text-decoration: none;
  transition: background .15s, color .15s;
  font-family: inherit;
}

.ava-item svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ava-item:hover {
  background: rgba(18, 19, 19, 0.06);
}

.dark .ava-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ava-split {
  height: 1px;
  background: var(--border);
  margin: 6px 10px;
}

.ava-item.out {
  color: #e53e3e;
}

.ava-item.out svg {
  color: #e53e3e;
}

.ava-item.out:hover {
  background: rgba(229, 62, 62, 0.08);
  color: #e53e3e;
}

/* Mobile drawer auth */
.md-auth {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.md-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.md-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.md-user-name {
  font-weight: 700;
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-user-email {
  font-size: 0.75rem;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-user-progress {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

.md-user-progress strong {
  color: var(--fg);
}

/* 统一登录弹窗 (仿 Raphael / pet-royal-portrait 现代极简设计) */
.modal-back.login-modal-back {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: authFadeIn 0.18s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.login-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  animation: authCardScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardScale {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: rgba(18, 19, 19, 0.06);
  color: var(--fg);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.dark .modal-close {
  background: rgba(255, 255, 255, 0.08);
}

.modal-close:hover {
  background: rgba(18, 19, 19, 0.12);
}

.auth-modal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: rgba(18, 19, 19, 0.05);
  margin-bottom: 0.85rem;
}

.dark .auth-modal-logo {
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.auth-modal-subtitle {
  font-size: 0.84rem;
  color: var(--muted-fg);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* 仿 pet-royal-portrait 纯原生 Google 登录按钮 */
.btn-google-native {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 42px;
  border-radius: 21px;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  margin: 0 auto;
  font-family: inherit;
}

.btn-google-native:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 4px 1px rgba(60, 64, 67, 0.16);
  border-color: #c6c9cc;
}

.google-icon-wrap {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.15rem auto;
  max-width: 320px;
  color: var(--muted-fg);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.btn-demo-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(18, 19, 19, 0.03);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  color: var(--fg);
  margin: 0 auto;
}

.dark .btn-demo-login {
  background: rgba(255, 255, 255, 0.06);
}

.btn-demo-login:hover {
  background: rgba(18, 19, 19, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.auth-hint {
  font-size: 0.6875rem;
  color: var(--muted-fg);
  margin-top: 1.25rem;
  margin-bottom: 0;
}





