:root {
  --bg: #f0f9f8; --card: #fff; --text: #0f1c2e; --muted: #64748b;
  --accent: #0f766e; --accent-dark: #115e59; --navy: #134e4a;
  --border: #d5e5e0; --radius: 14px;
  --shadow: 0 1px 3px rgba(15,28,46,0.05), 0 8px 24px rgba(15,118,110,0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
.header { background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.9rem; }
.header-nav { display: flex; gap: 24px; font-size: 0.9rem; }
.header-nav a { color: var(--muted); text-decoration: none; }
.header-nav a:hover { color: var(--accent); }
.header-nav a[hidden] { display: none !important; }
.hero { background: linear-gradient(135deg, #042f2e, #0f766e); color: #fff; padding: 80px 24px 120px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 5px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; font-weight: 800; }
.hero p { margin: 0 auto 32px; opacity: 0.9; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 13px 28px; background: #fff; color: var(--accent-dark); border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn-primary:hover { background: #f0fdf4; }
.btn-primary.small { padding: 8px 16px; font-size: 0.85rem; background: var(--accent); color: #fff; }
.btn-secondary { display: inline-block; padding: 13px 28px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.wrap { max-width: 720px; margin: -56px auto 0; padding: 0 20px 64px; position: relative; z-index: 2; }
.wrap.narrow { max-width: 480px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; margin-top: 14px; }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 1rem; margin-bottom: 10px; font-family: inherit; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,0.15); }
textarea { resize: vertical; }
button.calc { width: 100%; padding: 15px; background: var(--accent); color: #fff; border: none; border-radius: 9px; font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 10px; }
button.calc:hover:not(:disabled) { background: var(--accent-dark); }
button.calc:disabled { opacity: 0.5; cursor: not-allowed; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem; margin: 12px 0; cursor: pointer; }
.checkbox-label input { width: auto; margin: 0; }
.usage-card { padding: 20px; }
.usage-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.usage-header h2 { margin: 0; font-size: 1.1rem; }
.plan-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.plan-badge.free { background: #f1f5f9; color: #64748b; }
.plan-badge.pro { background: #dcfce7; color: #166534; }
.plan-badge.lite { background: #e0e7ff; color: #4338ca; }
.usage-bar-wrap { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.usage-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s; }
.usage-text { font-size: 0.85rem; color: var(--muted); margin: 0 0 14px; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.task-item { padding: 14px; background: #f8fafc; border-radius: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.task-info { flex: 1; min-width: 200px; }
.task-prompt { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.task-status { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.task-status.completed { color: #059669; }
.task-status.failed { color: #dc2626; }
.task-status.generating, .task-status.pending { color: #d97706; }
.task-item audio { width: 100%; max-width: 300px; }
.empty-state { text-align: center; color: var(--muted); padding: 32px 0; }
.error { margin-top: 14px; padding: 12px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #b91c1c; font-size: 0.9rem; }
.loading { display: flex; align-items: center; gap: 12px; padding: 0 2px; margin-top: 14px; font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(15,118,110,0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; color: var(--muted); border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.page-title { font-size: 1.8rem; margin: 0 0 28px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.pricing-card.featured { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(15,118,110,0.15); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.pricing-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 0 0 24px; }
.features li { padding: 6px 0; font-size: 0.9rem; color: var(--text); }
.features li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.pricing-card .btn-secondary { color: var(--accent); border-color: var(--accent); }
.pricing-card .btn-primary { background: var(--accent); color: #fff; }
.footer { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 24px 20px 48px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
@media (max-width: 560px) { .wrap { padding: 0 14px 48px; } .card { padding: 20px; } .pricing-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 1.7rem; } }
.wrap.no-hero {
  margin-top: 40px;
}
.user-card { padding: 16px 20px; font-size: 0.9rem; }
.user-card p { margin: 4px 0; color: var(--muted); }
.user-card strong { color: var(--text); }

/* ---------- 语言下拉框收紧 ---------- */
.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 22px;
  white-space: nowrap;
}
.header-nav a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}
.header-nav a:hover { color: var(--accent); }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 0;
  max-width: 130px;
  height: 32px;
  line-height: 1;
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 11px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 26px 0 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus { outline: none; border-color: var(--accent); }

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-nav {
    gap: 14px;
    font-size: 0.85rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 10px;
  }
  .lang-select {
    font-size: 0.8rem;
    height: 28px;
    padding: 0 22px 0 8px;
    max-width: 110px;
  }
}


/* ============================================================
   Homepage — 独立音乐站视觉
   ============================================================ */

body.home { background: #f7faf9; }

/* ---------- 宽容器 ---------- */
.wrap-wide {
  max-width: 1100px;
  margin: -64px auto 0;
  padding: 0 24px 80px;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  .wrap-wide { padding: 0 16px 56px; }
}

/* ---------- Hero（大版） ---------- */
.hero-lg {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 150px;
  background:
    radial-gradient(circle at 15% 20%, rgba(45,212,191,0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(59,130,246,0.18) 0%, transparent 50%),
    linear-gradient(135deg, #042f2e 0%, #0f766e 55%, #115e59 100%);
  color: #fff;
  text-align: center;
}
.hero-lg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px, 52px 52px;
  background-position: 0 0, 18px 18px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow-a {
  width: 340px; height: 340px;
  background: #2dd4bf;
  top: -80px; left: -60px;
}
.hero-glow-b {
  width: 420px; height: 420px;
  background: #3b82f6;
  bottom: -140px; right: -100px;
  opacity: 0.35;
}
.hero-lg .hero-inner {
  position: relative; z-index: 2;
  max-width: 780px; margin: 0 auto;
}
.hero-lg h1 {
  font-size: 3rem;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-lg p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-lg .hero-cta { justify-content: center; }
@media (max-width: 700px) {
  .hero-lg { padding: 72px 20px 110px; }
  .hero-lg h1 { font-size: 2rem; }
  .hero-lg p { font-size: 1rem; }
}

/* ---------- 通用 section ---------- */
.section { margin: 72px 0; }
.section-title {
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-subtitle {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 1rem;
}

/* ---------- Demo 卡片 ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,118,110,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,118,110,0.14);
}
.demo-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-cover-a {
  background: linear-gradient(135deg, #134e4a, #2dd4bf);
}
.demo-cover-b {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.demo-emoji { font-size: 3rem; }
.demo-body { padding: 18px 20px 22px; }
.demo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: #d1fae5;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.demo-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.demo-body audio { width: 100%; }
@media (max-width: 700px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* ---------- Use cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(15,118,110,0.05);
}
.usecase-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.usecase-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.usecase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* ---------- 底部 CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, #042f2e, #0f766e);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  font-weight: 700;
}
.cta-band p {
  margin: 0 0 26px;
  opacity: 0.9;
}
@media (max-width: 700px) {
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 1.4rem; }
}


/* ============================================================
   Homepage Dark — 深色音乐播放器风格
   作用域：body.home-dark
   ============================================================ */

body.home-dark {
  background: #0a0a0f;
  color: #f0f0f5;
}
body.home-dark .header-dark {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.home-dark .header-dark .logo,
body.home-dark .header-dark .header-nav a {
  color: #f0f0f5;
}
body.home-dark .header-dark .header-nav a:hover { color: #a855f7; }
body.home-dark .header-dark .lang-select {
  color: #f0f0f5;
  border-color: rgba(255,255,255,0.12);
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
body.home-dark .header-dark .lang-select option { color: #0a0a0f; background: #fff; }
body.home-dark .header-dark .logo-mark {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* ---------- HERO ---------- */
.hero-dark {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 120px;
  background: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
}
.hero-dark-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-dark-glow-a {
  width: 460px; height: 460px;
  background: #a855f7;
  top: -120px; left: -80px;
}
.hero-dark-glow-b {
  width: 520px; height: 520px;
  background: #ec4899;
  bottom: -180px; right: -120px;
  opacity: 0.28;
}
.hero-dark-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-dark-left h1 {
  font-size: 3.4rem;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #c9b5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-dark-left p {
  font-size: 1.1rem;
  color: #a0a0b0;
  margin: 0 0 32px;
  max-width: 480px;
  line-height: 1.65;
}
.hero-badge-dark {
  display: inline-block;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.35);
  color: #c9b5ff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

/* 输入框 + 按钮 */
.hero-input-row {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.hero-input-row input {
  flex: 1;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f0f0f5;
  font-size: 1rem;
  font-family: inherit;
  margin: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-input-row input::placeholder { color: #6a6a7a; }
.hero-input-row input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}
.btn-accent {
  display: inline-block;
  padding: 15px 28px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(168,85,247,0.28);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(168,85,247,0.4);
}
.btn-accent:active { transform: scale(0.98); }

/* 预览卡 */
.hero-dark-right { display: flex; justify-content: center; }
.preview-card {
  width: 100%;
  max-width: 380px;
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8a99;
  font-weight: 700;
  margin-bottom: 14px;
}
.preview-cover {
  height: 170px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.4s;
}
.preview-cover-pop { background: linear-gradient(135deg, #a855f7, #ec4899); }
.preview-cover-jazz { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.preview-cover-emoji { font-size: 3.4rem; }
.preview-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9b5ff;
  background: rgba(168,85,247,0.15);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.preview-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.preview-card audio { width: 100%; }

/* ---------- 宽容器 ---------- */
.wrap-wide {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
@media (max-width: 900px) {
  .hero-dark-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-dark { padding: 72px 20px 80px; }
  .hero-dark-left h1 { font-size: 2.2rem; }
  .hero-input-row { flex-direction: column; }
  .btn-accent { width: 100%; text-align: center; }
  .wrap-wide { padding: 0 16px 56px; }
}

/* ---------- section ---------- */
.section-dark { margin: 80px 0; }
.section-title-dark {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-subtitle-dark {
  color: #8a8a99;
  margin: 0 0 32px;
  font-size: 1rem;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 26px 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.9rem; margin-bottom: 14px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: #8a8a99;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Demo wall ---------- */
.demo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.demo-wall-card {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.demo-wall-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-3px);
}
.demo-wall-cover {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.demo-cover-jazz { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.demo-cover-pop  { background: linear-gradient(135deg, #a855f7, #ec4899); }
.demo-cover-lofi { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.demo-cover-epic { background: linear-gradient(135deg, #7c2d12, #f59e0b); }
.demo-wall-body { padding: 14px 16px 18px; }
.demo-wall-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9b5ff;
  background: rgba(168,85,247,0.15);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.demo-wall-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.demo-wall-body audio { width: 100%; height: 34px; }
@media (max-width: 900px) {
  .demo-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .demo-wall { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Use cases ---------- */
.usecase-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase-card-dark {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 26px 22px;
}
.usecase-icon-dark { font-size: 1.8rem; margin-bottom: 14px; }
.usecase-card-dark h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.usecase-card-dark p {
  margin: 0;
  color: #8a8a99;
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .usecase-grid-dark { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-dark {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px 22px;
}
.step-dark-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.step-dark-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #c0c0cc;
}
@media (max-width: 900px) {
  .steps-dark { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-q-dark {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 26px 0 6px;
}
.faq-a-dark {
  color: #8a8a99;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

/* ---------- Bottom CTA ---------- */
.cta-band-dark {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  padding: 72px 24px;
  text-align: center;
  color: #fff;
}
.cta-band-dark-inner { max-width: 620px; margin: 0 auto; }
.cta-band-dark h2 {
  font-size: 1.9rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-band-dark p {
  margin: 0 0 28px;
  opacity: 0.95;
  font-size: 1.05rem;
}
.cta-band-dark .btn-accent {
  background: #fff;
  color: #a855f7;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-band-dark .btn-accent:hover {
  background: #f5f5fa;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* ---------- Footer dark ---------- */
.footer-dark {
  background: #000;
  color: #6a6a7a;
  border-top: 1px solid rgba(255,255,255,0.06);
}


/* ============================================================
   首页 section 标题居中
   ============================================================ */
.section-title-center,
.section-subtitle-center {
  text-align: center;
}
.section-title-center { margin-left: auto; margin-right: auto; }
.section-subtitle-center {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

/* ============================================================
   预览卡波形 + 手动切换
   ============================================================ */
.preview-card {
  position: relative;
  overflow: hidden;
}

/* 流动渐变背景（A+C 方案的 C 部分） */
.preview-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(168,85,247,0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(236,72,153,0.30), transparent 55%);
  animation: previewFlow 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes previewFlow {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-6%, 4%) rotate(8deg); }
}
.preview-card > * { position: relative; z-index: 1; }

/* 波形 */
.preview-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 28px;
  margin-bottom: 14px;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.preview-wave.playing { opacity: 1; }
.preview-wave-bar {
  display: block;
  width: 2px;
  height: 6px;
  background: linear-gradient(180deg, #c9b5ff, #ec4899);
  border-radius: 2px;
  transform-origin: center;
  animation: waveIdle 1.4s ease-in-out infinite;
  animation-play-state: paused;
}
.preview-wave.playing .preview-wave-bar {
  animation-name: wavePlay;
  animation-play-state: running;
}
@keyframes waveIdle {
  0%, 100% { height: 4px; opacity: 0.4; }
  50%      { height: 6px; opacity: 0.6; }
}
@keyframes wavePlay {
  0%, 100% { height: 5px; }
  50%      { height: 22px; }
}

/* 手动切换 */
.preview-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.preview-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #c0c0cc;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.preview-arrow:hover {
  border-color: #a855f7;
  background: rgba(168,85,247,0.12);
  color: #fff;
}
.preview-dots {
  display: flex;
  gap: 8px;
}
.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.preview-dot.active {
  background: #a855f7;
  transform: scale(1.25);
}


/* ============================================================
   AI 歌词工具
   ============================================================ */
.lyrics-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
}
.lyrics-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lyrics-tool-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: #f0fdf4;
}
.lyrics-tool-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lyrics-hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.lyrics-hint-error {
  color: #dc2626;
}


/* ============================================================
   输入框错误状态（歌词生成前的校验）
   ============================================================ */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15) !important;
  animation: inputShake 0.35s ease;
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}


/* ============================================================
   全站深色（page-dark 作用域）
   ============================================================ */
body.page-dark {
  background: #0a0a0f;
  color: #f0f0f5;
}
body.page-dark .header-dark {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.page-dark .header-dark .logo,
body.page-dark .header-dark .header-nav a { color: #f0f0f5; }
body.page-dark .header-dark .header-nav a:hover { color: #a855f7; }
body.page-dark .header-dark .lang-select {
  color: #f0f0f5;
  border-color: rgba(255,255,255,0.12);
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
body.page-dark .header-dark .lang-select option { color: #0a0a0f; background: #fff; }
body.page-dark .header-dark .logo-mark {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* 卡片 */
body.page-dark .card,
body.page-dark .pricing-card,
body.page-dark .user-card,
body.page-dark .usage-card {
  background: #16161f;
  border-color: rgba(255,255,255,0.07);
  color: #f0f0f5;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body.page-dark .pricing-card.featured {
  border-color: #a855f7;
  box-shadow: 0 8px 32px rgba(168,85,247,0.25);
}

/* 标题、文本 */
body.page-dark h1,
body.page-dark h2,
body.page-dark h3,
body.page-dark .page-title { color: #f0f0f5; }
body.page-dark p,
body.page-dark .usage-text,
body.page-dark .user-card p { color: #a0a0b0; }
body.page-dark strong { color: #f0f0f5; }

/* 输入 */
body.page-dark label { color: #d0d0dc; }
body.page-dark input,
body.page-dark textarea,
body.page-dark select {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #f0f0f5;
}
body.page-dark input::placeholder,
body.page-dark textarea::placeholder { color: #6a6a7a; }
/* 原生下拉弹出层：继承浅色文字会落在系统默认白底上，需显式配色 */
body.page-dark select option,
body.home-dark select option {
  background: #16161f;
  color: #f0f0f5;
}
body.page-dark input:focus,
body.page-dark textarea:focus,
body.page-dark select:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}

/* 按钮 */
body.page-dark button.calc {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168,85,247,0.28);
}
body.page-dark button.calc:hover:not(:disabled) {
  background: linear-gradient(135deg, #9333ea, #db2777);
}
body.page-dark .btn-primary {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
}
body.page-dark .btn-primary.small {
  background: #a855f7;
  color: #fff;
}
body.page-dark .btn-secondary {
  background: transparent;
  color: #f0f0f5;
  border-color: rgba(255,255,255,0.2);
}
body.page-dark .btn-secondary:hover {
  background: rgba(168,85,247,0.12);
  border-color: #a855f7;
}
body.page-dark .lyrics-tool-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #c9b5ff;
}
body.page-dark .lyrics-tool-btn:hover:not(:disabled) {
  border-color: #a855f7;
  background: rgba(168,85,247,0.12);
}

/* 任务列表 */
body.page-dark .task-item {
  background: rgba(255,255,255,0.03);
}
body.page-dark .task-prompt { color: #f0f0f5; }
body.page-dark .task-status { color: #8a8a99; }
body.page-dark .task-status.completed { color: #4ade80; }
body.page-dark .task-status.failed { color: #f87171; }
body.page-dark .task-status.generating,
body.page-dark .task-status.pending { color: #fbbf24; }

/* 用量条 */
body.page-dark .usage-bar-wrap { background: rgba(255,255,255,0.06); }
body.page-dark .usage-bar {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

/* 计划标签 */
body.page-dark .plan-badge.free {
  background: rgba(255,255,255,0.06);
  color: #a0a0b0;
}
body.page-dark .plan-badge.pro {
  background: rgba(168,85,247,0.18);
  color: #c9b5ff;
}
body.page-dark .plan-badge.lite {
  background: rgba(99,102,241,0.20);
  color: #a5b4fc;
}

/* auth tabs */
body.page-dark .auth-tabs { background: rgba(255,255,255,0.04); }
body.page-dark .auth-tab { color: #8a8a99; }
body.page-dark .auth-tab.active {
  background: #16161f;
  color: #f0f0f5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 错误提示 */
body.page-dark .error {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.3);
  color: #fca5a5;
}

/* FAQ / 特性卡片背景 */
body.page-dark .features li { color: #c0c0cc; }
body.page-dark .features li::before { color: #a855f7; }

/* 定价卡片内部 */
body.page-dark .price { color: #f0f0f5; }
body.page-dark .price span { color: #8a8a99; }
body.page-dark .popular-badge {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* footer 深色 */
body.page-dark .footer {
  background: #000;
  color: #6a6a7a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
body.page-dark .footer a {
  color: #c9b5ff;
  text-decoration: none;
}
body.page-dark .footer a:hover { color: #a855f7; text-decoration: underline; }
.footer-contact {
  margin-top: 10px !important;
  font-size: 0.8rem;
}

/* 联系客服区块 */
.support-block {
  margin: 48px 0 24px;
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.2);
}
.support-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.support-block p {
  margin: 0;
  font-size: 0.92rem;
}
.support-block a {
  color: #a855f7;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.support-block a:hover { text-decoration: underline; }


/* ============================================================
   Dashboard 重排：紧凑用量卡 + 左右布局 + tab
   ============================================================ */

/* 用量卡紧凑版 */
.usage-card-compact {
  padding: 18px 22px;
  margin-bottom: 22px;
}
.usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.usage-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.usage-big {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f0f5;
}
.usage-big-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8a8a99;
  margin-left: 2px;
}
.usage-sub {
  font-size: 0.8rem;
  color: #8a8a99;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.usage-fraction {
  font-size: 0.9rem;
  color: #a0a0b0;
  font-weight: 600;
}
.usage-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pro-status {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 600;
}

/* 左右布局 */
.dash-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}
.dash-grid > .card {
  display: flex;
  flex-direction: column;
}
@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* 创作卡 */
.create-card h2 { margin-bottom: 16px; }

.create-card {
  display: flex;
  flex-direction: column;
}
.create-card .calc {
  margin-top: auto;
}

/* 歌曲卡 */
.songs-card {
  display: flex;
  flex-direction: column;
}
.songs-card .task-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 620px; /* 列表自身限高滚动；卡片高度仍跟随左栏等高拉伸，保证两张卡底边对齐 */
}
.songs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.songs-header h2 { margin: 0; }
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 3px;
  border-radius: 9px;
}
.tab {
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #8a8a99;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: #c0c0cc; }
.tab.active {
  background: rgba(168,85,247,0.18);
  color: #c9b5ff;
}
.task-list {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}
.retry-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.12);
  color: #c9b5ff;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.retry-btn:hover { background: rgba(168,85,247,0.22); }

/* 底部小字 */
.dash-footer-line {
  text-align: center;
  margin: 32px 0 0;
  font-size: 0.82rem;
  color: #6a6a7a;
}
.dash-footer-line strong { color: #a0a0b0; }


/* ============================================================
   Dashboard 微调：用量卡顶部布局 + 页面加宽 + 下拉框重影修复
   ============================================================ */

/* 页面加宽（只作用于 dashboard / pricing，不影响首页） */
body.page-dark .wrap {
  max-width: 1120px;
}
body.page-dark .wrap.narrow {
  max-width: 480px;
}

/* 用量卡顶部：左余额 + 右用户/Pro/徽章 */
.usage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.usage-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.user-email-top {
  font-size: 0.85rem;
  color: #a0a0b0;
  font-weight: 500;
}
.usage-divider {
  color: #4a4a5a;
  font-size: 0.85rem;
}
.pro-status-inline {
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 600;
}

/* ============================================================
   语言下拉框重影修复（深色 + 浅色通用）
   ============================================================ */
.lang-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 11px !important;
  padding-right: 26px !important;
  text-indent: 0;
}
.lang-select::-ms-expand { display: none; }
/* 深色主题下的箭头颜色 */
body.page-dark .lang-select,
body.home-dark .lang-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}
/* 浅色主题下的箭头颜色 */
body:not(.page-dark):not(.home-dark) .lang-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}


/* ============================================================
   Dashboard：创作卡 vs 歌曲卡 视觉区分 + 联系区块强化
   ============================================================ */

/* 左侧创作卡：稍亮，紫色调边框，主操作感 */
body.page-dark .create-card {
  background: linear-gradient(180deg, #1a1a26 0%, #16161f 100%);
  border: 1px solid rgba(168,85,247,0.20);
  box-shadow: 0 4px 28px rgba(168,85,247,0.10);
}

/* 右侧歌曲卡：更暗，中性边框，结果展示感 */
body.page-dark .songs-card {
  background: #0f0f16;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 歌曲卡里的空状态 */
body.page-dark .songs-card .empty-state {
  color: #6a6a7a;
}

/* 深色主题下加载指示：对齐品牌紫色（默认 teal 属于浅色主题配色） */
body.page-dark .create-card .loading { color: #c9b5ff; }
body.page-dark .create-card .spinner {
  border-color: rgba(168,85,247,0.25);
  border-top-color: #c9b5ff;
}

/* 联系区块强化 */
body.page-dark .support-block {
  margin: 48px 0 24px;
  padding: 32px 24px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(236,72,153,0.08));
  border: 1px solid rgba(168,85,247,0.28);
}
body.page-dark .support-block h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f0f5;
}
body.page-dark .support-block p {
  margin: 0;
  font-size: 0.95rem;
  color: #c0c0cc;
}
body.page-dark .support-block a {
  color: #c9b5ff;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
body.page-dark .support-block a:hover {
  color: #a855f7;
  text-decoration: underline;
}


/* ============================================================
   Task 详情 / 复用（弱化样式）
   ============================================================ */
.task-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.82rem;
}
.task-text-link {
  color: #8a8a99;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.task-text-link:hover { color: #c9b5ff; }
.task-text-link-accent {
  color: #a855f7;
}
.task-text-link-accent:hover { color: #ec4899; }

.task-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: #a0a0b0;
}
.task-detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: flex-start;
}
.task-detail-row > span {
  flex-shrink: 0;
  width: 76px;
  color: #6a6a7a;
  font-weight: 600;
}
.task-detail-row > div {
  flex: 1;
  word-break: break-word;
  white-space: pre-wrap;
}
.task-detail-lyrics {
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}
.task-detail .muted { color: #6a6a7a; font-style: italic; }

/* task-item 布局微调 */
.task-item {
  flex-wrap: wrap;
}
.task-item .task-info { flex: 1 1 200px; }
.task-item .task-links { flex-basis: 100%; }


/* ============================================================
   Enterprise page
   ============================================================ */
.ent-hero {
  text-align: center;
  margin: 40px 0 48px;
}
.ent-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #fff 0%, #c9b5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ent-hero p {
  color: #a0a0b0;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}
.ent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .ent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .ent-grid { grid-template-columns: 1fr; }
  .ent-hero h1 { font-size: 1.6rem; }
}
.ent-card {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.ent-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-2px);
}
.ent-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.ent-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
}
.ent-card p {
  margin: 0;
  color: #8a8a99;
  font-size: 0.9rem;
  line-height: 1.6;
}
.ent-form-section {
  max-width: 560px;
  margin: 0 auto 48px;
}
.ent-form-section h2 {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 24px;
}
.ent-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #d0d0dc;
  font-weight: 600;
}
.ent-form input,
.ent-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f0f0f5;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.ent-form input:focus,
.ent-form textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}
.ent-form .calc {
  margin-top: 20px;
  width: 100%;
}
.ent-status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.ent-status-ok { color: #4ade80; }


/* ============================================================
   Header 布局修复（所有深色页面通用）
   ============================================================ */
.header .header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
}
.header .header-inner .logo {
  flex-shrink: 0;
}
.header .header-inner .header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
@media (max-width: 700px) {
  .header .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .header .header-inner .header-nav {
    gap: 14px;
    font-size: 0.85rem;
  }
}


.footer-enterprise {
  margin-top: 8px !important;
}
.footer-enterprise a {
  color: #c9b5ff;
  text-decoration: none;
  font-weight: 600;
}
.footer-enterprise a:hover {
  text-decoration: underline;
}


/* ============================================================
   Enterprise 页头部与正文间距 + 导航不拥挤
   ============================================================ */
.header.header-dark {
  background: rgba(10,10,15,0.92) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.header .header-inner .header-nav {
  gap: 18px !important;
}
.header .header-inner .header-nav a {
  font-size: 0.9rem;
  color: #a0a0b0;
  text-decoration: none;
  transition: color 0.15s;
}
.header .header-inner .header-nav a:hover { color: #a855f7; }

/* 企业页首屏留白 */
.ent-hero {
  margin: 64px 0 56px !important;
}


/* ============================================================
   公开分享页
   ============================================================ */
.share-wrap {
  max-width: 640px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.share-loading {
  text-align: center;
  padding: 80px 0;
}
.share-loading .spinner {
  margin: 0 auto;
}
.share-error {
  text-align: center;
  padding: 60px 20px;
}
.share-error p {
  color: #a0a0b0;
  margin-bottom: 24px;
}
.share-card {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.share-cover {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 22px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
}
.share-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.share-cover-scrim,
.share-cover-text { display: none; }
.share-cover.has-art .share-cover-scrim {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0) 72%);
}
.share-cover.has-art .share-cover-text {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
}
.share-cover.has-art .share-cover-emoji { display: none; }
.share-cover-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 8px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.share-cover-sub {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(242,242,250,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.share-cover-brand {
  margin-top: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,181,255,0.95);
}
.share-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #f0f0f5;
  letter-spacing: -0.01em;
}
.share-subtitle {
  color: #a0a0b0;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.share-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.share-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9b5ff;
  background: rgba(168,85,247,0.15);
  padding: 3px 10px;
  border-radius: 999px;
}
.share-tag-muted {
  color: #8a8a99;
  background: rgba(255,255,255,0.06);
}
.share-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.share-section h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8a99;
}
.share-section p {
  margin: 0;
  color: #d0d0dc;
  font-size: 0.95rem;
  line-height: 1.6;
}
.share-lyrics {
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #c0c0cc;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}
.share-footer {
  margin-top: 28px;
  text-align: center;
}
@media (max-width: 600px) {
  .share-card { padding: 20px; }
  .share-cover { font-size: 2.6rem; }
  .share-cover-title { font-size: 1.15rem; }
  .share-title { font-size: 1.2rem; }
}


/* ============================================================
   任务音频波形图
   ============================================================ */
.task-audio-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 100%;
  max-width: 100%;
}
.task-audio-wrap audio {
  width: 100%;
  max-width: 340px;
}
.task-waveform {
  width: 100%;
  max-width: 340px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  display: block;
}
@media (max-width: 700px) {
  .task-audio-wrap audio,
  .task-waveform {
    max-width: 100%;
  }
}


/* ============================================================
   邀请返利卡片
   ============================================================ */
.invite-card {
  background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(236,72,153,0.06)) !important;
  border: 1px solid rgba(168,85,247,0.28) !important;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.invite-header h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}
.invite-header p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #a0a0b0;
}
.invite-link-row {
  display: flex;
  gap: 10px;
}
.invite-link-row input {
  flex: 1;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #d0d0dc;
  font-size: 0.85rem;
  font-family: monospace;
}
.invite-copy-btn {
  padding: 11px 18px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s;
}
.invite-copy-btn:hover { transform: translateY(-1px); }
.invite-stats {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: #8a8a99;
}

/* ============================================================
   深色主题下的滚动条
   ============================================================ */
body.page-dark,
body.home-dark {
  color-scheme: dark;
}

/* Webkit 浏览器（Chrome / Edge / Safari） */
body.page-dark ::-webkit-scrollbar,
body.home-dark ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.page-dark ::-webkit-scrollbar-track,
body.home-dark ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

body.page-dark ::-webkit-scrollbar-thumb,
body.home-dark ::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.15s;
}

body.page-dark ::-webkit-scrollbar-thumb:hover,
body.home-dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
  background-clip: padding-box;
}

body.page-dark ::-webkit-scrollbar-corner,
body.home-dark ::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox 专用 */
body.page-dark,
body.home-dark {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) rgba(255, 255, 255, 0.03);
}

/* 歌曲列表内滚动区域的滚动条更细一点 */
body.page-dark .task-list::-webkit-scrollbar,
body.page-dark .songs-card::-webkit-scrollbar {
  width: 8px;
}
body.page-dark .task-list::-webkit-scrollbar-thumb,
body.page-dark .songs-card::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 6px;
}
body.page-dark .task-list::-webkit-scrollbar-thumb:hover,
body.page-dark .songs-card::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.55);
}

/* ============================================================
   定价卡片布局：3 列 × 2 行
   ============================================================ */
.pricing-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 8px auto 0;
  max-width: 1100px;
}
@media (max-width: 900px) {
  .pricing-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid-6 { grid-template-columns: 1fr; }
}

/* 卡片内布局 */
.pricing-grid-6 .pricing-card {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
.pricing-grid-6 .pricing-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.pricing-grid-6 .price {
  font-size: 2rem;
  margin: 0 0 4px;
  line-height: 1.1;
}
.pricing-grid-6 .price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a8a99;
}
.pricing-grid-6 .price-note {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4ade80;
  min-height: 1.2em;
}
.pricing-grid-6 .features {
  margin: 0 0 20px;
  padding: 0;
}
.pricing-grid-6 .features li {
  font-size: 0.88rem;
  padding: 5px 0;
  line-height: 1.5;
}
.pricing-grid-6 .pricing-card .btn-secondary,
.pricing-grid-6 .pricing-card .btn-primary {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  font-size: 0.92rem;
}

/* 加宽价格容器，防止 "/quarter" "/6 months" 换行 */
.pricing-grid-6 .price {
  white-space: nowrap;
}
.pricing-grid-6 .price span {
  white-space: nowrap;
}

/* ============================================================
   取消订阅提示
   ============================================================ */
.cancel-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px;
  font-weight: 500;
}
/* ============================================================
   管理订阅链接
   ============================================================ */
.manage-sub-link {
  font-size: 0.8rem;
  color: #c9b5ff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 10px;
  transition: color 0.15s;
}
.manage-sub-link:hover {
  color: #a855f7;
  text-decoration: underline;
}
.site-footer { margin-top: 64px !important; padding: 48px 24px 22px !important; background: #0b0d12 !important; border-top: 1px solid rgba(255,255,255,0.08) !important; color: #a6adbb !important; text-align: left !important; font-size: 0.88rem !important; line-height: 1.6; }
.site-footer-inner { max-width: 1160px; margin: 0 auto; }
.site-footer-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,1.15fr) minmax(220px,0.9fr); gap: 48px; }
.site-footer-column { min-width: 0; }
.site-footer-wordmark { display: inline-flex; align-items: baseline; color: #f8fafc !important; font-size: 1.42rem; font-weight: 850; line-height: 1.15; text-decoration: none; }
.site-footer-wordmark .tld { color: var(--accent, #3b82f6); }
.site-footer-site-name { margin: 18px 0 0 !important; color: #f8fafc; font-size: 0.96rem; font-weight: 700; }
.site-footer-heading { margin: 0 0 16px !important; color: #f8fafc; font-size: 0.95rem; font-weight: 650; }
.site-footer-description { max-width: 420px; margin: 8px 0 0 !important; color: #98a1af; }
.site-footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.site-footer-contact { margin: 0 !important; color: #b9c0cb; overflow-wrap: anywhere; }
.site-footer a { color: #b9c0cb !important; text-decoration: none; }
.site-footer a:hover { color: #fff !important; text-decoration: underline; }
.site-footer-bottom { margin-top: 38px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); color: #747d8a; font-size: 0.73rem; line-height: 1.5; }
.site-footer-bottom p { margin: 0; }
@media (max-width: 960px) { .site-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; } .site-footer-column:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer { padding: 36px 20px 20px !important; } .site-footer-grid { grid-template-columns: 1fr; gap: 28px; } .site-footer-column:first-child { grid-column: auto; } .site-footer-links { gap: 10px 14px; } .site-footer-bottom { margin-top: 28px; } }

/* ============================================================
   免费工具：AI 音乐提示词生成器（/prompt-generator.html）
   ============================================================ */
.pg-hero {
  text-align: center;
  padding: 56px 0 8px;
}
.pg-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9b5ff;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pg-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.pg-hero-sub {
  max-width: 680px;
  margin: 0 auto;
  color: #a0a0b0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.pg-tool {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 22px;
  align-items: start;
  margin: 44px 0 0;
}
.pg-panel {
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 26px 24px;
}
.pg-form label {
  font-size: 0.83rem;
  color: #d0d0dc;
  margin-top: 0;
  margin-bottom: 6px;
}
.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 16px;
  margin-top: 16px;
}
.pg-grid-full { grid-column: 1 / -1; }

.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pg-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #c0c0cc;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pg-chip:hover { border-color: rgba(168,85,247,0.5); }
.pg-chip.is-on {
  border-color: #a855f7;
  background: rgba(168,85,247,0.16);
  color: #fff;
}
.pg-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.pg-hint {
  font-size: 0.79rem;
  color: #7d7d8c;
  line-height: 1.6;
  margin: 12px 0 0;
}
.pg-warn { color: #fca5a5; }

.pg-result-panel { display: flex; flex-direction: column; }
.pg-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pg-result-head h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.pg-count {
  font-size: 0.75rem;
  color: #7d7d8c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pg-count.over { color: #fca5a5; font-weight: 700; }
.pg-output {
  flex: 1;
  min-height: 168px;
  margin: 0;
  padding: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f0f0f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pg-actions .btn-accent { padding: 12px 20px; font-size: 0.92rem; }
.pg-btn-ghost {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: #d0d0dc;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pg-btn-ghost:hover {
  border-color: #a855f7;
  background: rgba(168,85,247,0.12);
  color: #fff;
}

/* 预设卡 */
.pg-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.pg-preset {
  display: flex;
  flex-direction: column;
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 22px 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.pg-preset:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-2px); }
.pg-preset-emoji { font-size: 1.7rem; margin-bottom: 10px; }
.pg-preset h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.pg-preset-sample {
  font-size: 0.85rem;
  color: #8a8a99;
  margin: 0 0 16px;
  line-height: 1.55;
  font-style: italic;
}
.pg-preset-btn {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.1);
  color: #c9b5ff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pg-preset-btn:hover { background: rgba(168,85,247,0.22); color: #fff; }

/* 提示词要素 */
.pg-anatomy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

/* FAQ */
.pg-faq { max-width: 780px; margin: 8px auto 0; }
.pg-faq .faq-q-dark:first-child { margin-top: 0; }

@media (max-width: 960px) {
  .pg-tool { grid-template-columns: 1fr; }
  .pg-presets { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pg-anatomy { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pg-hero h1 { font-size: 2rem; }
}
@media (max-width: 620px) {
  .pg-grid { grid-template-columns: 1fr; }
  .pg-presets, .pg-anatomy { grid-template-columns: 1fr; }
  .pg-hero { padding-top: 40px; }
  .pg-hero h1 { font-size: 1.75rem; }
  .pg-panel { padding: 20px 16px; }
  .pg-actions .btn-accent, .pg-btn-ghost { width: 100%; text-align: center; }
}

/* 首页 hero 下方工具入口 */
.hero-quicklink {
  margin: 28px 0 0;
  font-size: 0.86rem;
  color: #8a8a99;
}
.hero-quicklink a {
  color: #c9b5ff;
  font-weight: 600;
  text-decoration: none;
}
.hero-quicklink a:hover { color: #fff; text-decoration: underline; }

/* 定价页 inline 入口 */
.pg-inline-link {
  margin: -16px 0 28px;
  font-size: 0.88rem;
  color: #8a8a99;
}
.pg-inline-link a {
  color: #c9b5ff;
  font-weight: 600;
  text-decoration: none;
}
.pg-inline-link a:hover { color: #fff; text-decoration: underline; }

/* 首页免费工具推广卡 */
.pg-promo {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,auto);
  align-items: center;
  gap: 32px;
  padding: 34px 32px;
  border-radius: 20px;
  border: 1px solid rgba(168,85,247,0.28);
  background:
    radial-gradient(circle at 12% 20%, rgba(168,85,247,0.18), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(236,72,153,0.14), transparent 55%),
    #16161f;
}
.pg-promo-copy h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.pg-promo-copy p {
  color: #a0a0b0;
  margin: 0;
  max-width: 620px;
  line-height: 1.7;
}
.pg-promo-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}
.pg-promo-list li {
  font-size: 0.9rem;
  color: #c0c0cc;
  padding-left: 22px;
  position: relative;
}
.pg-promo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #a855f7;
  font-weight: 800;
}
.pg-promo-cta { display: flex; justify-content: flex-end; }
@media (max-width: 820px) {
  .pg-promo { grid-template-columns: 1fr; gap: 22px; padding: 26px 20px; }
  .pg-promo-cta { justify-content: stretch; }
  .pg-promo-cta .btn-accent { width: 100%; text-align: center; }
}

/* 页头品牌 logo 图标 */
.logo-img { width: 30px; height: 30px; border-radius: 9px; display: block; flex: none; object-fit: cover; }


/* ============================================================
   歌曲封面（AI Cover Art）
   —— 列表缩略图 / 大图弹层 / 创建卡片画风选择
   ============================================================ */

/* --- 创建卡片：画风选择 --- */
.cover-style-select { margin-bottom: 4px; }
.field-hint {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8a8a99;
}

/* --- 列表缩略图 --- */
.cover-thumb {
  position: relative;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, #a855f7, #ec4899);
  padding: 0;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(168,85,247,0.8);
  box-shadow: 0 6px 18px rgba(168,85,247,0.28);
}
.cover-thumb-empty { cursor: default; opacity: 0.4; }
.cover-thumb-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 6px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.75);
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 大图弹层 --- */
body.modal-open { overflow: hidden; }
.cover-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,5,10,0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.cover-modal[hidden] { display: none; }
.cover-modal-inner { width: 100%; max-width: 440px; }

.cover-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.cover-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0) 72%);
}
.cover-poster-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
}
.cover-poster-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 8px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-poster-sub {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(242,242,250,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-poster-brand {
  margin-top: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,181,255,0.95);
}
.cover-modal-meta {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #8a8a99;
  text-align: center;
}
.cover-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cover-modal-actions .btn-primary.small,
.cover-modal-actions .btn-secondary.small {
  padding: 10px 20px;
  font-size: 0.88rem;
}
