:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --text: #f7f2e8;
  --muted: #bdb7aa;
  --line: rgba(255, 255, 255, 0.18);
  --line-bright: rgba(255, 255, 255, 0.5);
  --card-background-webkit: rgba(13, 13, 15, 0.64);
  --fc-background-webkit: rgba(244, 185, 66, 0.55);
  --amber: #f4b942;
  --coral: #ff6b5f;
  --mint: #69d2a7;
  --sky: #7fc7ff;
  --ink: #171412;
  --radius: 8px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

[hidden] { display: none !important; }
.admin-shell { max-width: 1180px; margin: 32px auto; padding: 0 24px 80px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.admin-heading h1 { font-size: 28px; }
.admin-shell h1 { font-family: var(--font-body); font-size: 28px; line-height: 1.3; margin: 0 0 20px; max-width: none; }
.admin-page .site-header { display: flex; justify-content: space-between; }
.admin-shell h2 { font-size: 22px; }
.admin-shell button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: #263c31; color: var(--text); cursor: pointer; }
.admin-shell button:disabled, .download-button:disabled { opacity: .5; cursor: not-allowed; }
.admin-shell label { display: grid; gap: 8px; margin: 12px 0; }
.admin-shell select { min-width: 150px; }
.admin-shell input:focus-visible, .admin-shell button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.admin-login { max-width: 440px; margin: 60px auto; }
.admin-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.admin-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0; }
.admin-inline label { flex: 1; min-width: 180px; margin: 0; }
.admin-inline button { min-height: 48px; }
.admin-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.admin-results article { padding: 16px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.admin-results button, .admin-results small { display: block; margin-top: 12px; }
.admin-review-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; }
.admin-draft-list { display: flex; flex-direction: column; gap: 8px; }
.admin-draft-list button { text-align: left; overflow-wrap: anywhere; }
.admin-file-list { max-height: 320px; overflow-y: auto; }
.admin-shell .admin-check { display: flex; align-items: start; gap: 10px; overflow-wrap: anywhere; }
.admin-check input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; }
.admin-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.admin-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 400px; overflow-y: auto; padding: 16px; background: #171917; }
.admin-shell details { padding: 16px 0; }
.admin-shell summary { cursor: pointer; }
#draftVersion, #draftFiles, .compliance-list dd, .detail-copy h1 { overflow-wrap: anywhere; }
#adminStatus { padding: 14px 0; color: var(--amber); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.real-download { color-scheme: light; width: min(560px,calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 0; border-radius: 8px; padding: 28px; color: #252521; background: #fbfbf9; }
.real-download::backdrop { background: #000a; backdrop-filter: blur(5px); }
.real-download h2 { font-size: 22px; }
.real-download p { line-height: 1.7; overflow-wrap: anywhere; }
.real-download a { margin-top: 12px; }
.real-download a[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
@media (max-width: 700px) {
  .admin-shell { padding-inline: 16px; }
  .admin-review-layout, .admin-results, .admin-columns { grid-template-columns: 1fr; }
  .admin-draft-list { max-height: 200px; overflow-y: auto; }
  .admin-heading { flex-wrap: wrap; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(244, 185, 66, 0.15), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(105, 210, 167, 0.14), transparent 26rem),
    linear-gradient(135deg, #0d0d0f 0%, #17120f 50%, #101514 100%);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.motion-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.mesh {
  position: absolute;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.26;
  animation: floatMesh 16s ease-in-out infinite;
}

.mesh-a {
  left: -10vw;
  top: 14vh;
  background: var(--coral);
}

.mesh-b {
  right: -10vw;
  top: 18vh;
  background: var(--mint);
  animation-delay: -6s;
}

.mesh-c {
  left: 36vw;
  bottom: -16vw;
  background: var(--amber);
  animation-delay: -10s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.header-action {
  border: 1px solid var(--line);
  background: rgba(13, 13, 15, 0.64);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #1d130a;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.top-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
}

.top-nav a {
  min-width: 108px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.header-action {
  justify-self: end;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--text);
  font-weight: 800;
}

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

.entry-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  gap: 38px;
  padding: 42px 0 72px;
}

.entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 50px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 4.7vw, 4.2rem);
}

.hero-text,
.page-hero p,
.gate-card p,
.post-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  font-size: 1.12rem;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.hero-market-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  background: var(--text);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(244, 185, 66, 0.22);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.hero-stats strong {
  color: var(--text);
}

.entry-preview {
  position: relative;
  min-height: 430px;
  perspective: 1200px;
}

.mini-float {
  position: absolute;
  width: min(280px, 70vw);
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(12, 12, 14, 0.68);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  animation: cardDrift 8s ease-in-out infinite;
}

.mini-float span,
.card-content .tag,
.topic-row span,
.post-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.16);
  color: #ffd77a;
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-float strong {
  display: block;
  margin-top: 18px;
  font-size: 1.18rem;
}

.mini-float small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-float.one {
  left: 0;
  top: 12%;
  rotate: -6deg;
}

.mini-float.two {
  right: 0;
  top: 36%;
  rotate: 7deg;
  animation-delay: -2.5s;
}

.mini-float.three {
  left: 14%;
  bottom: 4%;
  rotate: -3deg;
  animation-delay: -5s;
}

.market-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(13, 13, 15, 0.66);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.3);
}

.market-panel h2 {
  max-width: 470px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1;
}

.market-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-list article,
.creator-steps article {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.market-list span,
.creator-steps span {
  color: var(--mint);
  font-weight: 950;
}

.market-list strong,
.creator-steps strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.04rem;
}

.market-list p,
.creator-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.entry-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gate-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(13, 13, 15, 0.68);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.gate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 18px rgba(244, 185, 66, 0.36), 20px 20px 50px rgba(0, 0, 0, 0.5);
}

.gate-card span {
  color: var(--mint);
  font-weight: 950;
}

.gate-card h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-hero {
  padding: 30px 0 20px;
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: end;
}

.page-hero p {
  max-width: 720px;
}

.hero-market-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 185, 66, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(13, 13, 15, 0.72);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.34);
}

.hero-market-card span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-market-card strong {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1;
}

.hero-market-card p {
  margin: 12px 0 18px;
  font-size: 0.92rem;
}

.hero-market-card a {
  min-height: 44px;
  padding-inline: 18px;
  background: var(--amber);
  color: var(--ink);
}

.entry-ai-intro {
  text-align: center;
}

.model-strip.entry-ai-intro {
  margin: 40px 0;
  padding: 40px 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
  box-shadow: none;
  border-block: 1px solid rgba(255,255,255,.15);
}
.entry-ai-intro h2 { font-size: 28px; margin: 12px 0; }
.entry-ai-intro > p { color: inherit; opacity: .75; }
.entry-ai-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 30px 0; text-align: left; }
.entry-ai-steps article { min-width: 0; }
.entry-ai-steps article > span { color: #f4b942; font-size: 13px; }
.entry-ai-steps h3 { font-size: 18px; margin: 10px 0; }
.entry-ai-steps p { opacity: .7; line-height: 1.7; }
.entry-models { margin-top: 32px; }
.entry-models > p { font-size: 13px; opacity: .65; }
.entry-models > p span { margin-left: 12px; }
.entry-models .model-row { gap: 20px 32px; }
.entry-models .model-row span { font-size: 17px; }

.skill-search-trigger { display: flex; align-items: center; gap: 14px; min-width: 0; width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.06); color: inherit; padding: 16px; text-align: left; cursor: pointer; font: inherit; }
.skill-search-trigger > span:nth-child(2) { flex: 1; }
.search-lens { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; flex: 0 0 16px; position: relative; margin-right: 3px; }
.search-lens::after { content: ""; position: absolute; width: 7px; height: 2px; background: currentColor; transform: rotate(45deg); right: -5px; bottom: -3px; }
.skill-assistant-dialog { width: min(880px, calc(100% - 40px)); height: min(760px, calc(100dvh - 64px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #dcdcd8; border-radius: 8px; background: #fbfbf9; color: #252521; box-shadow: 0 24px 100px #0006; overflow: hidden; }
.skill-assistant-dialog { color-scheme: light; }
.skill-assistant-dialog[open] { display: flex; flex-direction: column; }
.skill-assistant-dialog::backdrop { background: #080c0bb3; backdrop-filter: blur(7px); }
.finder-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 28px; border-bottom: 1px solid #e5e5e0; }
.finder-header h2 { margin: 0 0 5px; font-size: 20px; line-height: 1.4; }
.finder-header span { font-size: 12px; color: #75756e; }
.finder-icon, .finder-send { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 0; background: #eceee9; color: #252521; border-radius: 50%; cursor: pointer; font-size: 26px; }
.finder-modes { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 28px 0; }
.finder-modes button { padding: 8px 14px; border: 0; border-radius: 6px; background: transparent; color: #66685e; cursor: pointer; font: inherit; font-size: 14px; }
.finder-modes button[aria-pressed="true"] { background: #e7ede5; color: #254d3d; font-weight: 700; }
.finder-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; overflow-wrap: anywhere; }
.finder-welcome { padding: 22px 0 30px; }
.finder-monogram { display: grid; place-items: center; width: 40px; height: 40px; background: #f4b942; border-radius: 8px; font-weight: 800; }
.finder-welcome h3 { margin: 20px 0 10px; font-size: 26px; }
.finder-welcome p { color: #75756e; }
.finder-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.finder-prompts button { border: 1px solid #d6dcd2; background: #fff; color: #3f5148; padding: 10px 12px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 14px; }
.finder-user { width: fit-content; max-width: 85%; margin: 18px 0 18px auto; background: #eaf0e6; border-radius: 8px; padding: 12px 16px; white-space: pre-wrap; }
.finder-reply { margin: 20px 0 30px; line-height: 1.7; }
.finder-results { display: grid; gap: 10px; margin-top: 14px; }
.finder-result { display: block; border: 1px solid #dcded7; border-radius: 8px; padding: 16px; color: inherit; background: #fff; text-decoration: none; }
.finder-result:hover { border-color: #6c917e; }
.finder-result > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.finder-result strong { font-size: 16px; overflow-wrap: anywhere; }
.finder-result > div > span { color: #3a6b51; font-size: 12px; }
.finder-result p { margin: 8px 0; font-size: 14px; color: #60635a; }
.finder-result small { display: block; color: #72756e; font-size: 12px; }
.finder-detail { display: block; margin-top: 8px; font-size: 13px; color: #355e4b; }
.finder-composer { flex-shrink: 0; padding: 12px 28px 24px; border-top: 1px solid #e5e5e0; }
.finder-input-label { display: block; font-size: 12px; margin-bottom: 8px; color: #72756e; }
.finder-composer > div { display: flex; align-items: center; gap: 10px; border: 1px solid #d7dcd2; background: #fff; border-radius: 8px; padding: 8px; }
.finder-composer input { min-width: 0; flex: 1; width: 100%; border: 0; background: transparent; color: #252521; padding: 8px; font: inherit; font-size: 16px; }
.finder-send { background: #253f33; color: #fff; }
.skill-search-trigger:focus-visible, .skill-assistant-dialog :focus-visible { outline: 2px solid #82ac91; outline-offset: 3px; }
@media (max-width: 900px) { .skill-search-trigger { grid-column: 1 / -1; } }
@media (max-width: 620px) {
  .entry-ai-steps { grid-template-columns: 1fr; gap: 12px; }
  .entry-ai-intro h2 { font-size: 24px; }
  .skill-assistant-dialog { width: calc(100% - 12px); height: calc(100dvh - 12px); }
  .finder-header { padding: 16px; }
  .finder-header h2 { font-size: 17px; }
  .finder-modes { padding: 12px 16px 0; }
  .finder-thread { padding: 16px; }
  .finder-composer { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
}

.model-strip {
  margin: 10px 0 18px;
  padding: 28px;
  border-radius: 15px;
  background: #f7f2e8;
  color: var(--ink);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.26);
}

.model-strip > p {
  margin: 0 0 22px;
  color: rgba(23, 20, 18, 0.62);
  font-size: 1rem;
  text-align: center;
}

.model-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 44px;
  align-items: center;
  justify-content: center;
}

.model-row span {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  font-weight: 950;
  white-space: nowrap;
}

.model-row b {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  color: #050505;
  font-size: 1.2rem;
  line-height: 1;
}

.api-advice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.api-advice-grid article {
  min-height: 154px;
  padding: 16px;
  border: 1px solid rgba(23, 20, 18, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.api-advice-grid span {
  color: #f06b2e;
  font-size: 0.76rem;
  font-weight: 950;
}

.api-advice-grid strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  line-height: 1.25;
}

.api-advice-grid p {
  margin: 0;
  color: rgba(23, 20, 18, 0.66);
  font-size: 0.88rem;
  line-height: 1.58;
}

.ai-assistant-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: center;
  margin: 0 0 18px;
}

.assistant-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(13, 13, 15, 0.72);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.28);
}

.assistant-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  line-height: 1;
}

.assistant-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.assistant-api-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.assistant-api-stack span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.ai-console {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(244, 185, 66, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(99, 38, 7, 0.72), rgba(244, 185, 66, 0.18) 34%, rgba(105, 210, 167, 0.14)),
    #f7f2e8;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.38);
}

.ai-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 24px;
  padding: 26px 10px;
  background: rgba(247, 242, 232, 0.9);
  color: rgba(23, 20, 18, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
}

.rail-dot {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid #f06b2e;
  border-radius: 50%;
  color: #f06b2e;
  font-size: 0;
}

.rail-dot::after {
  content: "";
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f06b2e;
}

.ai-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 18px 18px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(23, 20, 18, 0.12);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.96);
  color: var(--ink);
}

.ai-window header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(23, 20, 18, 0.08);
}

.ai-window header strong {
  font-size: 1.05rem;
}

.ai-window header span {
  color: rgba(23, 20, 18, 0.54);
  font-size: 0.86rem;
}

.ai-thread {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 56px min(9vw, 92px) 28px;
  overflow: hidden;
}

.ai-system-card {
  width: min(620px, 100%);
  padding: 18px 22px;
  border: 1px solid rgba(23, 20, 18, 0.12);
  border-radius: 15px;
  background: #e8e1d8;
}

.ai-system-card strong {
  display: block;
  margin-bottom: 10px;
  color: rgba(23, 20, 18, 0.72);
}

.ai-system-card p,
.ai-message-row p,
.ai-user-bubble {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.ai-user-bubble {
  justify-self: end;
  max-width: 360px;
  padding: 12px 18px;
  border-radius: 15px;
  background: #f3efe8;
}

.ai-message-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ai-avatar {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid #f06b2e;
  border-radius: 50%;
  background: rgba(240, 107, 46, 0.12);
}

.ai-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  width: min(620px, 100%);
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(23, 20, 18, 0.12);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.98);
  color: var(--ink);
  text-align: left;
}

.ai-suggestion span,
.ai-suggestion strong {
  grid-column: 1;
}

.ai-suggestion span {
  color: rgba(23, 20, 18, 0.68);
  font-size: 0.88rem;
}

.ai-suggestion strong {
  font-weight: 850;
}

.ai-suggestion i {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(240, 107, 46, 0.28);
  border-radius: 50%;
  color: #9b4b23;
  font-style: normal;
}

.ai-input-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin: 0 70px 18px;
  padding: 8px;
  border: 1px solid rgba(23, 20, 18, 0.12);
  border-radius: 999px;
  background: #fffdf8;
}

.ai-input-bar input {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.ai-input-bar input:focus {
  box-shadow: none;
}

.ai-input-bar button {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(23, 20, 18, 0.6);
  cursor: pointer;
}

.ai-input-bar button[type="submit"] {
  background: var(--ink);
  color: #fffdf8;
  font-weight: 950;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.market-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: default;
}

.market-tabs button.active {
  background: var(--amber);
  border-color: transparent;
  color: var(--ink);
  font-weight: 900;
}

.category-strip {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.category-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.category-chip.active,
.category-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--text);
  color: var(--ink);
}

.content-shell {
  padding: 0 0 50px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin: 18px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.section-head > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
}

.section-head.compact {
  margin-top: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar label,
.composer label {
  display: grid;
  gap: 8px;
}

.toolbar span,
.composer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.6;
}

select option {
  color: #171412;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(244, 185, 66, 0.72);
  box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.1);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hao-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  aspect-ratio: 1 / 0.7;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line-bright);
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  will-change: transform;
  animation: slideTop 0.72s ease both;
  animation-delay: var(--delay, 0ms);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.hao-card .card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--visual-a), white 12%), transparent 28%),
    radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--visual-b), white 10%), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.18)),
    #121212;
  transition:
    transform 0.3s,
    opacity 0.25s ease-in;
  will-change: transform;
}

.hao-card .card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
}

.hao-card .card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 180ms ease;
}

.pattern-nodes .card-visual::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    linear-gradient(35deg, transparent 45%, rgba(255, 255, 255, 0.18) 46% 47%, transparent 48%),
    linear-gradient(125deg, transparent 48%, rgba(255, 255, 255, 0.14) 49% 50%, transparent 51%);
  background-size: 34px 34px, 72px 72px, 88px 88px;
  opacity: 0.42;
}

.pattern-waves .card-visual::before {
  background-image:
    radial-gradient(ellipse at center, transparent 42%, rgba(255, 255, 255, 0.22) 43% 45%, transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 90px 32px, 22px 100%;
  opacity: 0.44;
}

.pattern-market .card-visual::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(155deg, transparent 46%, rgba(255, 255, 255, 0.28) 47% 49%, transparent 50%);
  background-size: 42px 42px, 42px 42px, 120px 70px;
  opacity: 0.42;
}

.pattern-route .card-visual::before {
  background-image:
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px),
    radial-gradient(circle at 54% 36%, rgba(255, 255, 255, 0.58) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    linear-gradient(25deg, transparent 45%, rgba(255, 255, 255, 0.24) 46% 48%, transparent 49%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 120px 70px;
  opacity: 0.5;
}

.pattern-calendar .card-visual::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 0 3px, transparent 4px);
  background-size: 56px 46px, 56px 46px, 56px 46px;
  opacity: 0.42;
}

.pattern-rings .card-visual::before {
  background-image:
    repeating-radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px 24px),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.34), transparent 22%);
  background-size: 100% 100%, 100% 100%;
  opacity: 0.48;
}

.pattern-radar .card-visual::before {
  background-image:
    repeating-conic-gradient(from 20deg at 50% 50%, rgba(255, 255, 255, 0.24) 0deg 5deg, transparent 6deg 32deg),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px 26px);
  background-size: 100% 100%, 100% 100%;
  opacity: 0.48;
}

.pattern-bars .card-visual::before {
  background-image:
    linear-gradient(to top, rgba(255, 255, 255, 0.26) 0 42%, transparent 43%),
    linear-gradient(to top, transparent 0 25%, rgba(255, 255, 255, 0.2) 26% 70%, transparent 71%),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 100%, 54px 100%, 100% 28px;
  opacity: 0.52;
}

.pattern-windows .card-visual::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.36), transparent 10%);
  background-size: 72px 54px, 72px 54px, 100% 100%;
  opacity: 0.44;
}

.pattern-nodes .card-visual {
  background:
    radial-gradient(circle at 18% 18%, #f4b942, transparent 22%),
    radial-gradient(circle at 76% 72%, #ff6b5f, transparent 28%),
    linear-gradient(135deg, #222018, #111314 72%);
}

.pattern-waves .card-visual {
  background:
    radial-gradient(circle at 22% 24%, #ff6b5f, transparent 24%),
    radial-gradient(circle at 70% 64%, #f58bd1, transparent 30%),
    linear-gradient(160deg, #201217, #111015 70%);
}

.pattern-market .card-visual {
  background:
    radial-gradient(circle at 72% 20%, #f4b942, transparent 24%),
    radial-gradient(circle at 24% 74%, #69d2a7, transparent 34%),
    linear-gradient(155deg, #10211a, #121312 72%);
}

.pattern-route .card-visual {
  background:
    radial-gradient(circle at 18% 74%, #7fc7ff, transparent 24%),
    radial-gradient(circle at 75% 25%, #8d7cff, transparent 30%),
    linear-gradient(145deg, #101824, #151221 70%);
}

.pattern-calendar .card-visual {
  background:
    radial-gradient(circle at 26% 18%, #d6f06f, transparent 22%),
    radial-gradient(circle at 76% 76%, #69d2a7, transparent 30%),
    linear-gradient(150deg, #182214, #101816 70%);
}

.pattern-rings .card-visual {
  background:
    radial-gradient(circle at 26% 32%, #f58bd1, transparent 24%),
    radial-gradient(circle at 74% 68%, #7fc7ff, transparent 30%),
    linear-gradient(150deg, #21121f, #10151a 72%);
}

.pattern-radar .card-visual {
  background:
    radial-gradient(circle at 50% 48%, #8fe3ff, transparent 24%),
    radial-gradient(circle at 74% 24%, #69d2a7, transparent 26%),
    linear-gradient(150deg, #0d2024, #111615 72%);
}

.pattern-bars .card-visual {
  background:
    radial-gradient(circle at 22% 72%, #f59e4c, transparent 28%),
    radial-gradient(circle at 78% 22%, #ff6b5f, transparent 24%),
    linear-gradient(150deg, #22160f, #17110f 72%);
}

.pattern-windows .card-visual {
  background:
    radial-gradient(circle at 24% 24%, #83d49c, transparent 24%),
    radial-gradient(circle at 78% 58%, #7fc7ff, transparent 30%),
    linear-gradient(150deg, #101f18, #10161d 72%);
}

.visual-title {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
}

.visual-name {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.visual-name strong {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 1.35vw, 1.32rem);
  line-height: 1.08;
}

.visual-name small {
  color: rgba(255, 255, 255, 0.76);
}

.hao-card:hover,
.hao-card:focus,
.hao-card:focus-within {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px) scale(1.015);
  filter: saturate(1.08);
  box-shadow:
    0 0 18px rgba(244, 185, 66, 0.28),
    24px 28px 58px rgba(0, 0, 0, 0.56);
  z-index: 4;
}

.hao-card.is-pressed {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-2px) scale(0.992);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.08),
    14px 16px 34px rgba(0, 0, 0, 0.58);
}

.hao-card:hover .card-visual,
.hao-card:focus .card-visual,
.hao-card:focus-within .card-visual {
  transform: translateZ(18px) scale(1.045);
}

.hao-card:hover .card-visual::after,
.hao-card:focus .card-visual::after,
.hao-card:focus-within .card-visual::after {
  opacity: 1;
}

.hao-card:hover .visual-name,
.hao-card:focus .visual-name,
.hao-card:focus-within .visual-name {
  opacity: 0;
  transform: translateY(-8px);
}

.hao-card .card-content {
  opacity: 0;
  width: 90%;
  height: 84%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  border-radius: 1.8vw;
  background-color: var(--card-background-webkit);
  text-align: center;
  transform: translateY(150px);
  transition:
    opacity 0.5s,
    transform 0.5s !important;
  backdrop-filter: blur(18px);
  z-index: 2;
  will-change: opacity, transform;
}

.hao-card:hover .card-content,
.hao-card:focus .card-content,
.hao-card:focus-within .card-content {
  box-shadow: 0 0 15px var(--fc-background-webkit);
  transform: translateY(0) translateZ(48px);
  opacity: 1 !important;
}

.hao-card:focus-visible {
  outline: 2px solid rgba(244, 185, 66, 0.85);
  outline-offset: 4px;
}

.card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 92%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.card-content h3 {
  width: 90%;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.32vw, 1.2rem);
  line-height: 1.05;
}

.card-content p {
  width: 90%;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-audience {
  max-width: 90%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
}

.card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 90%;
  color: var(--muted);
  font-size: 0.78rem;
}

.save-button {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
}

.save-button.active {
  background: var(--amber);
  color: var(--ink);
}

.detail-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 0 16px rgba(244, 185, 66, 0.22);
}

.detail-button {
  pointer-events: none;
}

.download-button:hover,
.download-button:focus-visible {
  background: var(--text);
  color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pager button,
.pager span {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.pager span {
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--ink);
  font-weight: 900;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.detail-shell {
  width: min(1240px, calc(100% - 32px));
  padding: 24px 0 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 24px;
  align-items: stretch;
  min-height: 440px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 185, 66, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(13, 13, 15, 0.72);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.34);
}

.detail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.back-link {
  width: fit-content;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.source-chip {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.source-chip span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.source-chip strong {
  color: var(--text);
  font-size: 0.82rem;
}

.detail-copy h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.detail-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.detail-cover {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.42);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 18px;
  margin-top: 18px;
}

.detail-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(16, 16, 18, 0.72);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.28);
}

.detail-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1;
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.detail-download {
  min-height: 46px;
  width: 100%;
}

.detail-tags {
  margin-top: 18px;
}

.detail-story {
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  align-items: center;
  overflow: hidden;
}

.detail-lead {
  margin-bottom: 0;
}

.detail-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.detail-author > span {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: var(--ink);
  font-weight: 950;
}

.detail-author strong,
.detail-author small {
  display: block;
}

.detail-author small {
  margin-top: 4px;
  color: var(--muted);
}

.detail-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-meta-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.detail-preview-card {
  min-height: 390px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--visual-a), white 12%), transparent 30%),
    radial-gradient(circle at 76% 72%, color-mix(in srgb, var(--visual-b), white 10%), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    #121212;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.42);
  transform: rotate(1.2deg);
}

.preview-stage {
  position: relative;
  min-height: 100%;
  padding: 22px;
}

.preview-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.22;
}

.preview-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  opacity: 0.78;
}

.preview-orbit.one {
  width: 220px;
  height: 220px;
  right: -58px;
  top: 34px;
}

.preview-orbit.two {
  width: 170px;
  height: 170px;
  left: -40px;
  bottom: 36px;
}

.preview-card-main,
.preview-card-mini {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background: rgba(13, 13, 15, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.35);
}

.preview-card-main {
  display: grid;
  min-width: 0;
  gap: 12px;
  max-width: 310px;
  min-height: 210px;
  margin: 44px auto 0;
  padding: 22px;
}

.preview-card-main span,
.preview-card-mini span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preview-card-main strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.preview-card-main small,
.preview-card-mini strong {
  color: var(--muted);
}

.preview-card-mini {
  width: min(230px, 76%);
  margin: 18px 0 0 auto;
  padding: 16px;
}

.preview-card-mini strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.detail-article {
  display: grid;
  gap: 18px;
}

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.detail-section {
  scroll-margin-top: 110px;
}

.readme-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 185, 66, 0.28);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.08);
}

.readme-note strong {
  color: var(--text);
}

.readme-note span {
  color: var(--muted);
  line-height: 1.65;
}

.prompt-list {
  display: grid;
  gap: 10px;
}

.prompt-list p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left-color: rgba(244, 185, 66, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.bullet-list,
.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.step-list li::marker {
  color: var(--amber);
  font-weight: 900;
}

.preview-tiles,
.split-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-tiles article {
  min-height: 156px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 185, 66, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.06);
}

.preview-tiles span {
  color: var(--mint);
  font-weight: 950;
}

.preview-tiles strong {
  display: block;
  margin: 18px 0 8px;
}

.preview-tiles p {
  margin: 0;
  font-size: 0.9rem;
}

.split-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-card {
  padding: 24px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-radius: 15px;
  background:
    radial-gradient(circle at 20% 16%, rgba(244, 185, 66, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(16, 16, 18, 0.78);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.34);
}

.install-card h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1;
}

.install-card p {
  color: var(--muted);
  line-height: 1.65;
}

.access-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 12px 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
}

.access-badge.is-free {
  border-color: rgba(105, 210, 167, 0.5);
  background: rgba(105, 210, 167, 0.13);
  color: var(--mint);
}

.access-badge.is-locked {
  border-color: rgba(244, 185, 66, 0.5);
  background: rgba(244, 185, 66, 0.13);
  color: var(--amber);
}

.copy-button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.detail-nav {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.detail-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-nav a:hover,
.detail-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.source-card {
  margin-top: 0;
}

.compliance-section {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 14, 0.7);
}

.compliance-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.compliance-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compliance-list dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.compliance-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.license-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.modal-open {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.download-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 14%, rgba(244, 185, 66, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
    rgba(13, 13, 15, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.download-dialog h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.download-dialog p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.download-summary,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.download-summary span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.modal-actions .download-button,
.modal-actions .copy-button {
  width: auto;
  min-width: 150px;
  margin-top: 0;
}

.modal-note {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.related-section {
  margin-top: 26px;
}

.related-section .section-head a {
  color: var(--muted);
  font-weight: 850;
}

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

.related-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 185, 66, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(16, 16, 18, 0.68);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.36);
}

.related-card span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 950;
}

.related-card strong {
  display: block;
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.related-card small {
  color: var(--muted);
}

.creator-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 60px;
}

.composer,
.post-card {
  border: 1px solid var(--line);
  border-top-color: var(--line-bright);
  border-left-color: var(--line-bright);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(16, 16, 18, 0.72);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.composer {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.composer h2 {
  margin-bottom: 0;
  font-size: 1.6rem;
}

.composer-head {
  display: grid;
  gap: 6px;
}

.composer-head span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.composer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.composer-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.community-main,
.post-list {
  display: grid;
  gap: 12px;
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-card {
  padding: 18px;
}

.post-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.post-card h3 {
  margin: 0;
}

.post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 52px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
}

@keyframes floatMesh {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vw, -3vh, 0) scale(1.1);
  }
}

@keyframes cardDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
  50% {
    transform: translate3d(0, -18px, 40px) rotateX(4deg);
  }
}

@keyframes slideTop {
  0% {
    opacity: 0;
    transform: translate(10%, 50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}

@media (max-width: 1050px) {
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
  }

  .top-nav a {
    flex: 1 0 auto;
  }

  .entry-hero,
  .entry-gates,
  .market-panel,
  .market-list,
  .page-hero-split,
  .api-advice-grid,
  .ai-assistant-section,
  .detail-hero,
  .detail-grid,
  .detail-layout,
  .preview-tiles,
  .split-panels,
  .related-grid,
  .creator-steps,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .entry-preview {
    min-height: 360px;
  }

  .api-advice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-console {
    min-height: 500px;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer {
    position: static;
  }

  .detail-aside {
    position: static;
  }

  .detail-preview-card {
    transform: none;
  }
}

@media (max-width: 620px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    gap: 10px;
    padding-top: 10px;
  }

  .header-action {
    padding: 10px 12px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 5rem);
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 12vw, 4.4rem);
  }

  .entry-preview {
    min-height: 320px;
  }

  .mini-float {
    width: 225px;
    min-height: 122px;
    padding: 14px;
  }

  .toolbar,
  .skill-grid,
  .api-advice-grid,
  .composer-row {
    grid-template-columns: 1fr;
  }

  .model-strip {
    padding: 22px 16px;
  }

  .model-row {
    gap: 16px 22px;
    justify-content: flex-start;
  }

  .model-row span {
    width: calc(50% - 11px);
    font-size: 0.98rem;
  }

  .ai-console {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .ai-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: center;
    gap: 8px;
    padding: 12px;
  }

  .rail-dot {
    width: 30px;
    border-width: 4px;
  }

  .ai-window {
    margin: 0 12px 12px;
  }

  .ai-window header {
    min-height: 54px;
    padding: 0 14px;
  }

  .ai-thread {
    gap: 16px;
    padding: 24px 14px 20px;
  }

  .ai-input-bar {
    margin: 0 12px 12px;
  }

  .entry-actions a {
    flex: 1 1 180px;
  }

  .market-panel,
  .hero-market-card,
  .detail-hero,
  .detail-panel,
  .install-card,
  .detail-nav,
  .related-card,
  .composer,
  .post-card {
    border-radius: 12px;
  }

  .detail-hero {
    min-height: auto;
    padding: 18px;
  }

  .detail-cover,
  .detail-preview-card {
    min-height: 280px;
  }

  .detail-copy h1 {
    font-size: 2rem;
  }

  .composer button {
    width: 100%;
  }

  .card-content {
    border-radius: 15px;
  }
}

@media (hover: none) {
  .hao-card .visual-name {
    opacity: 0;
  }

  .hao-card .card-content {
    box-shadow: 0 0 15px var(--fc-background-webkit);
    transform: translateY(0);
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hao-card:hover,
  .hao-card:focus,
  .hao-card:focus-within,
  .hao-card.is-pressed,
  .hao-card:hover .card-visual,
  .hao-card:focus .card-visual,
  .hao-card:focus-within .card-visual,
  .hao-card:hover .card-content,
  .hao-card:focus .card-content,
  .hao-card:focus-within .card-content {
    transform: none !important;
  }
}
