:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5b6678;
  --soft: #e5e9f0;
  --line: #d9e0ea;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #047857;
  --amber: #b45309;
  --rose: #be123c;
  --shadow: 0 18px 48px -32px rgba(15, 23, 42, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 224, 234, .86);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}
.mark {
  width: 36px;
  height: 34px;
  flex: 0 0 36px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: transparent url("/favicon.svg?v=20260706-dot") center / contain no-repeat;
  box-shadow: none;
  transform: translateY(1px);
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.nav-cta {
  color: #fff;
  background: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-cta:hover { color: #fff; background: var(--blue); }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 72px;
}
.hero {
  display: block;
  padding: 28px 0 20px;
}
.hero-title { margin: 14px 0 0; }
/* 站主用灵感库字效 prompt 生成的手绘描线体标题图；已做透明通道，直接融于任意背景 */
.hero-wordmark {
  display: block;
  width: min(560px, 92%);
  height: auto;
  margin-left: -6px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
h1 {
  margin: 16px 0 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}
.lead {
  margin: 18px 0 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 18px;
}
.hero-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 18px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  min-height: 84px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}
.stat strong { display: block; font-size: 26px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.toolbar {
  margin: 28px 0 22px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.search {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip { white-space: nowrap; flex-shrink: 0; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
}
.chip:hover { border-color: var(--blue); }

.prompt-grid {
  display: block;
  columns: 1;
  column-gap: 18px;
}
@media (min-width: 720px) { .prompt-grid { columns: 2; } }
@media (min-width: 1060px) { .prompt-grid { columns: 3; } }

.grid-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (min-width: 720px) { .grid-featured { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid-featured { grid-template-columns: repeat(3, 1fr); } }
.grid-featured .card { margin: 0; width: auto; display: flex; flex-direction: column; }
.grid-featured .card-img img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.grid-featured .cat-font-design .card-img img {
  object-fit: contain;
  background: #000;
}

.card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card-img { background: #eef2f7; }
.card-body { padding: 14px 15px 16px; }
.card h2, .card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.pill {
  border: 1px solid var(--soft);
  background: #f8fafc;
  border-radius: 999px;
  padding: 3px 8px;
}
.excerpt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.crumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: start;
}
.media-box {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.content-box {
  min-width: 0;
}
.answer {
  margin: 18px 0 22px;
  border-left: 4px solid var(--green);
  background: #f0fdf4;
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  color: #064e3b;
  font-weight: 700;
}
.section {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 18px;
}
.section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}
.review-section {
  margin-top: 20px;
}
.review-copy {
  margin: 0;
  color: #1f2937;
  font-weight: 650;
}
.prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.prompt-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.prompt-tab.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}
.prompt-panel + .prompt-panel { margin-top: 18px; }
.has-js .prompt-panel:not(.is-active) { display: none; }
.prompt-section + .prompt-section { margin-top: 16px; }
.structured-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.prompt-box-note {
  margin-bottom: 12px;
  font-weight: 650;
}
pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #172033;
}
.copy-payload { display: none; }
.copy-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
button.copy {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
button.copy:hover { color: var(--blue); border-color: var(--blue); }
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.param-table th, .param-table td {
  text-align: left;
  border-bottom: 1px solid var(--soft);
  padding: 9px 0;
  vertical-align: top;
}
.param-table th { width: 120px; color: var(--muted); font-weight: 750; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #1d4ed8 72%, #0f766e);
}
.cta p { margin: 0; color: rgba(255,255,255,.78); }
.cta a {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 10px 14px;
  font-weight: 850;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.related a {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.related span {
  display: block;
  padding: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}
.faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.faq-item h2 { font-size: 17px; margin: 0 0 8px; }
.faq-item p { color: var(--muted); margin: 0; font-size: 14px; }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 28px 22px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 860px) {
  .hero, .detail { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .media-box { position: static; }
  .related, .faq, .stat-grid { grid-template-columns: 1fr; }
  .cta { align-items: stretch; flex-direction: column; }
  .navlinks { gap: 10px; font-size: 13px; }
}

@media (max-width: 560px) {
  .nav { padding: 0 16px; }
  .navlinks a:not(.nav-cta) { display: none; }
  .shell { padding: 30px 16px 54px; }
  .lead { font-size: 16px; }
}
