:root {
  --bg: #0c0614;
  --text: #f4f0ff;
  --muted: #a89bc0;
  --accent: #f0c14b;
  --cta-a: #8b5cf6;
  --cta-b: #ec4899;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --input-bg: rgba(8, 4, 16, 0.72);
  --ok: #4ade80;
  --danger: #fb7185;
  --radius: 18px;
  --font: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

/* 氛围背景：参考 video2mp4 的暗紫光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 640px at 15% 0%, rgba(139, 92, 246, 0.62), transparent 58%),
    radial-gradient(900px 560px at 90% 10%, rgba(236, 72, 153, 0.38), transparent 52%),
    radial-gradient(800px 520px at 50% 100%, rgba(99, 102, 241, 0.28), transparent 55%),
    linear-gradient(180deg, #1a0d30 0%, #0f071c 42%, #0a0512 100%);
}

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

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 8px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.brand-mark svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 28px 0 8px;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(240, 193, 75, 0.25);
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* 输入条 */
.composer {
  margin: 34px auto 0;
  max-width: 720px;
  padding: 14px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.8s 0.08s ease both;
}

.composer-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 10px 0;
}

.field input::placeholder { color: #6f6288; }

.btn-go {
  flex-shrink: 0;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  min-height: 52px;
  background: linear-gradient(120deg, var(--cta-a), var(--cta-b));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.28);
  transition: transform 0.12s ease, filter 0.15s ease, opacity 0.15s ease;
}

.btn-go:hover:not(:disabled) { filter: brightness(1.06); }
.btn-go:active:not(:disabled) { transform: scale(0.98); }
.btn-go:disabled { opacity: 0.45; cursor: not-allowed; }

.fineprint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #7b6f96;
}

.status {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }
.status.muted { color: var(--muted); }

/* 结果区 */
#cards {
  display: none;
  margin: 28px auto 0;
  max-width: 720px;
  flex-direction: column;
  gap: 14px;
}

#cards.show { display: flex; }

.card {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rise 0.45s ease both;
}

.cover-wrap {
  width: 100%;
  height: 170px;
  background: #160b24;
  overflow: hidden;
}

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

.cover-wrap .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6f6288;
}

.card-body { padding: 18px; }

.card-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  word-break: break-word;
}

.card-meta {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-word;
}

.q-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.q-list {
  display: grid;
  gap: 8px;
}

.q-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.q-row .name {
  font-weight: 650;
  font-size: 0.95rem;
}

.q-row .hint {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.q-row button {
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  background: linear-gradient(120deg, var(--cta-a), var(--cta-b));
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.q-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pro 专属档位（免费用户锁定） */
.q-row.locked .name {
  color: var(--muted);
}

.pro-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: middle;
  color: #fff;
  background: linear-gradient(120deg, var(--cta-a), var(--cta-b));
}

.q-row.locked button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.45);
  color: var(--muted);
}

/* 广告位（异步加载，不阻塞） */
.ad-slot {
  min-height: 60px;
  max-width: 100%;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot iframe {
  max-width: 100%;
}

/* 下方内容区（首屏之外） */
.section {
  margin: 72px auto 0;
  max-width: 820px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.section-head p {
  margin: 10px auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.step {
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.feature {
  padding: 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

a.site-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a.site-card:hover {
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.site-card .site-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

.site-card .site-icon svg { display: block; }

.site-card .site-abbr {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-card .site-text { flex: 1; min-width: 0; }

.site-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.site-card .site-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-card .site-arrow {
  color: #c9bddf;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bottom-cta {
  margin: 64px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 36px 22px;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(139, 92, 246, 0.25), transparent 70%),
    rgba(255, 255, 255, 0.04);
}

.bottom-cta h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.bottom-cta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.bottom-cta .btn-go {
  margin-top: 20px;
}

footer {
  margin: 48px auto 0;
  text-align: center;
  color: #6a5d85;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .site-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
  .composer-row { flex-direction: column; }
  .btn-go { width: 100%; justify-content: center; min-height: 50px; }
  .hero { padding-top: 12px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .section { margin-top: 56px; }
}

.hero .crumbs {
  margin: 0 0 16px;
  color: #7d709a;
  font-size: 0.88rem;
}
.hero .crumbs a:hover { color: var(--text); }
.seo-article {
  margin: 56px auto 0;
  max-width: 720px;
  text-align: left;
}
.seo-article h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.seo-article h2:first-child { margin-top: 0; }
.seo-article p, .seo-article li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.seo-article ul, .seo-article ol { padding-left: 1.2em; }
.seo-article li + li { margin-top: 8px; }
.seo-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: #ddd6fe;
  word-break: break-all;
}
.seo-article a { color: var(--link, #c4b5fd); }
.other-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.other-tools a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 0.88rem;
  color: var(--text);
}
.other-tools a:hover { border-color: rgba(196,181,253,0.45); }

.faq {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
