/* ============================================================
   AI 音乐生成系统 - 前台样式（蓝白主题，响应式）
   ============================================================ */
:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5eaf5;
  --bg: #f5f9ff;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(37, 99, 235, .10);
  --shadow-lg: 0 20px 50px rgba(30, 64, 175, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--blue-800); }
.brand-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--blue-600); }
.site-nav .nav-admin {
  color: var(--blue-600);
  border: 1px solid var(--blue-400);
  padding: 7px 16px; border-radius: 999px;
  transition: .2s;
}
.site-nav .nav-admin:hover { background: var(--blue-600); color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--blue-800); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 38%, #0ea5e9 72%, #22d3ee 100%);
  color: #fff;
  padding: 92px 0 110px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg i {
  position: absolute; display: block; border-radius: 50%;
  background: rgba(255,255,255,.10); animation: float 9s ease-in-out infinite;
}
.hero-bg i:nth-child(1) { width: 320px; height: 320px; top: -120px; right: -60px; }
.hero-bg i:nth-child(2) { width: 180px; height: 180px; bottom: -70px; left: 8%; animation-delay: 2s; }
.hero-bg i:nth-child(3) { width: 90px; height: 90px; top: 26%; left: 44%; animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-tag {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  font-size: 14px; margin-bottom: 20px; letter-spacing: 1px;
}
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.25; letter-spacing: 1px; }
.hero-desc { max-width: 620px; margin: 18px auto 0; color: rgba(255,255,255,.9); font-size: 17px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-float {
  position: absolute; z-index: 0; pointer-events: none;
  color: rgba(255,255,255,.22); font-size: 44px; user-select: none;
  animation: float 7s ease-in-out infinite;
}
.hero-float-1 { left: 5%; top: 13%; transform: rotate(-12deg); }
.hero-float-2 { right: 6%; top: 22%; animation-delay: 1.6s; font-size: 58px; }
.hero-float-3 { right: 12%; bottom: 11%; animation-delay: 3s; font-size: 34px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; transition: .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,.42); color: #fff; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-outline {
  background: #fff; color: var(--blue-600);
  border: 1px solid var(--blue-400);
}
.btn-outline:hover { background: var(--blue-50, #eff6ff); border-color: var(--blue-600); }
.btn-lg { padding: 14px 42px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger-outline { background: #fff; color: #dc2626; border: 1px solid #fca5a5; }
.btn-ghost-dark {
  background: #eef2ff; color: var(--blue-700); border: 1px solid var(--blue-400);
}
.btn-ghost-dark:hover { background: var(--blue-600); color: #fff; }
.btn-block { width: 100%; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0 10px; scroll-margin-top: 78px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--blue-900); }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- 生成表单 ---------- */
.gen-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 38px; margin-bottom: 40px;
}
.gen-notice {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; font-size: 14px;
}
.gen-form { display: flex; flex-direction: column; gap: 22px; }
.gen-tabs {
  display: flex; gap: 8px; margin-bottom: 28px; padding: 6px;
  background: #eaf1ff; border-radius: 14px;
}
.gen-tabs button {
  flex: 1; border: 0; background: transparent; padding: 11px 10px;
  border-radius: 10px; font-weight: 600; font-size: 15px; color: #64748b;
  cursor: pointer; transition: .2s;
}
.gen-tabs button.active {
  background: #fff; color: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37,99,235,.18);
}
.form-row { display: flex; gap: 22px; }
.form-group { flex: 1; min-width: 0; }
.form-group-wide { flex: 1.5; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: #374151; margin-bottom: 8px; }
.form-group label em { color: #ef4444; font-style: normal; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fbfdff; color: var(--ink);
  transition: .2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.16);
  background: #fff;
}
textarea { resize: vertical; }

/* 选项 chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fbfdff; color: #4b5563;
  font-size: 14px; font-weight: 500; transition: .18s; user-select: none;
}
.chip input:checked + span {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(37,99,235,.3);
}
.chip input:disabled + span { opacity: .5; cursor: not-allowed; }

.gen-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.gen-tip { color: var(--muted); font-size: 13px; }
.gen-btn-loading { display: none; }
.gen-btn.is-loading .gen-btn-text { display: none; }
.gen-btn.is-loading .gen-btn-loading { display: inline; }
.song-instrumental {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; color: #374151; cursor: pointer;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff;
}
.song-instrumental input { width: 18px; height: 18px; accent-color: var(--blue-600); cursor: pointer; }

/* ---------- 会员信息条 ---------- */
.member-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe; border-radius: 14px;
  padding: 12px 18px; margin-bottom: 22px; font-size: 14px; color: #334155;
}
.member-bar-icon {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; font-weight: 700;
}
.member-bar-link { font-size: 13px; white-space: nowrap; }
.member-bar a { font-weight: 600; }
.points-inline { color: var(--blue-600); }
.nav-active { color: var(--blue-600) !important; font-weight: 700; }

/* ---------- 会员中心 ---------- */
.member-main { min-height: 60vh; }
.auth-card {
  max-width: 460px; margin: 0 auto 50px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 34px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-actions { margin-top: 22px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.member-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 24px; }
.points-card {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, #0ea5e9);
  color: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-lg);
}
.points-label { font-size: 14px; opacity: .85; }
.points-num { font-size: 46px; font-weight: 800; line-height: 1.2; margin: 4px 0 12px; }
.points-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.points-card .btn-primary { background: #fff; color: var(--blue-700); box-shadow: none; }
.points-card .btn-outline { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.points-hint { margin-top: 14px; font-size: 13px; opacity: .92; }
.member-quick { display: grid; gap: 12px; }
.member-quick a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  color: var(--ink); transition: .2s;
}
.member-quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.member-quick .m-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.member-quick b { display: block; font-size: 15px; }
.member-quick em { display: block; font-size: 12px; color: var(--muted); font-style: normal; }
.member-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-bottom: 50px; }
.card.member-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.member-card .card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.member-card .card-title h2 { font-size: 17px; color: var(--blue-900); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.member-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.member-table th, .member-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.member-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.num-green { color: #16a34a; font-weight: 700; }
.num-red { color: #dc2626; font-weight: 700; }
.log-detail { max-width: 220px; color: var(--muted); }
.empty-tip { color: var(--muted); padding: 18px 0; text-align: center; }
.member-history-mini { list-style: none; }
.member-history-mini li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.member-history-mini b { flex: 1; min-width: 120px; }
.member-history-mini em { font-size: 12px; color: var(--muted); font-style: normal; }
.mini-play { font-size: 12px; color: #0e7490; }

/* ---------- 创作历史 ---------- */
.history-filter { margin-bottom: 20px; }
.history-list { display: grid; gap: 16px; margin-bottom: 40px; }
.history-item {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px;
}
.history-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.history-head b { font-size: 17px; color: var(--blue-900); flex: 1; min-width: 140px; }
.history-head em { font-size: 12px; color: var(--muted); font-style: normal; }
.history-meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.history-audio { margin-top: 12px; }
.history-audio audio { width: 100%; }
.history-desc { margin-top: 10px; font-size: 13px; color: var(--muted); }
.history-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.page-current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px;
  background: var(--blue-600); color: #fff; font-weight: 700;
}

/* ---------- 积分充值 ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 18px; }
.pkg-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 22px; text-align: center; transition: .2s;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pkg-name { font-size: 15px; color: var(--muted); }
.pkg-points { font-size: 34px; font-weight: 800; color: var(--blue-800); margin: 8px 0 2px; }
.pkg-points span { font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg-price { font-size: 18px; color: #dc2626; margin-bottom: 16px; }
.pkg-tip { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 40px; }

/* ---------- 支付页 ---------- */
.pay-card {
  max-width: 520px; margin: 0 auto 50px; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow); padding: 30px 28px; text-align: center;
}
.pay-info { margin-bottom: 18px; }
.pay-pkg { font-size: 15px; color: var(--muted); }
.pay-amount { font-size: 38px; font-weight: 800; color: var(--blue-800); }
.pay-amount span { font-size: 20px; }
.pay-points { font-size: 14px; color: #16a34a; margin-top: 4px; }
.pay-qr-wrap { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 18px; }
.pay-qr { width: 260px; height: 260px; border-radius: 10px; }
.pay-qr-tip { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pay-status { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pay-status .spinner { width: 18px; height: 18px; margin: 0; border-width: 2px; }
.pay-ok { color: #16a34a; font-weight: 700; }
.pay-err { color: #dc2626; font-weight: 700; }
.pay-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 0 0 22px; }
.pay-methods-label { width: 100%; text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.pay-method {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; background: #fff; font-size: 14px;
}
.pay-method input { margin: 0; }
.pay-method:has(input:checked) { border-color: var(--blue-600); background: #eff6ff; color: var(--blue-800); font-weight: 600; }

/* 生成中状态 */
.song-status { text-align: center; padding: 40px 0; color: var(--muted); }
.song-status p { margin-top: 4px; }
.spinner {
  width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%;
  border: 4px solid #dbeafe; border-top-color: var(--blue-600);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 结果区 ---------- */
.result-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 34px; margin-bottom: 40px;
}
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 20px; }
.result-title-wrap { display: flex; gap: 14px; align-items: flex-start; }
.result-icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; font-size: 22px;
}
.result-title-wrap h3 { font-size: 22px; color: var(--blue-900); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.badge { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-cyan { background: #cffafe; color: #0e7490; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-rose { background: #ffe4e6; color: #be123c; }
.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-indigo { background: #e0e7ff; color: #4338ca; }

.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-body { display: grid; grid-template-columns: 1.35fr .85fr; gap: 26px; margin-top: 22px; }
.lyrics-panel h4, .notes-panel h4 { font-size: 15px; color: var(--blue-800); margin-bottom: 12px; }
.lyrics-panel h4::before, .notes-panel h4::before { content: "♪ "; color: var(--cyan-500); }
.lyrics-text {
  font-family: inherit; font-size: 15px; line-height: 1.9; color: #374151;
  background: #f7faff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; white-space: pre-wrap; word-break: break-word; max-height: 560px; overflow: auto;
}
.notes-text {
  font-family: inherit; font-size: 14px; line-height: 1.8; color: #4b5563;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 14px;
  padding: 16px 18px; white-space: pre-wrap; word-break: break-word;
}
.result-saved { margin-top: 14px; color: #16a34a; font-size: 14px; }

/* ---------- 音乐库 ---------- */
.lib-toolbar { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.lib-search { flex: 1; min-width: 220px; }
.lib-toolbar select { width: auto; min-width: 140px; }
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.music-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .22s; display: flex; flex-direction: column;
}
.music-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.music-cover {
  position: relative; height: 138px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); font-size: 52px; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}
.music-cover .cover-note { text-shadow: 0 6px 18px rgba(0,0,0,.2); animation: float 5s ease-in-out infinite; }
.music-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255,255,255,.28), transparent 45%);
}
.music-cover .play-overlay {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255,255,255,.92); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  box-shadow: 0 6px 14px rgba(0,0,0,.18); z-index: 2; cursor: pointer; transition: .2s;
}
.music-cover .play-overlay:hover { transform: scale(1.1); background: #fff; }
.music-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.music-card-body h3 { font-size: 16px; color: var(--blue-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.music-card-desc {
  font-size: 13px; color: var(--muted); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.music-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.music-card-foot .views { font-size: 12px; color: #9ca3af; }
.lib-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.lib-more { text-align: center; padding: 30px 0 50px; }

/* ---------- 关于 ---------- */
.about-section { padding-bottom: 70px; }
.about-card {
  text-align: center; background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border: 1px solid #dbeafe; border-radius: 20px; padding: 46px 30px;
}
.about-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,99,235,.35);
}
.about-card h2 { font-size: 24px; color: var(--blue-900); margin-bottom: 12px; }
.about-card p { max-width: 640px; margin: 0 auto; color: #4b5563; }
.about-feats { display: flex; justify-content: center; gap: 50px; margin-top: 28px; flex-wrap: wrap; }
.about-feats div { text-align: center; }
.about-feats b { display: block; font-size: 26px; color: var(--blue-600); }
.about-feats span { font-size: 13px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 60%, #0e7490 100%);
  color: #dbeafe; padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; color: #fff; }
.footer-desc { margin-top: 12px; color: rgba(219,234,254,.78); font-size: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }
.footer-meta { margin-top: 14px; font-size: 13px; color: rgba(219,234,254,.6); }
.footer-meta a { color: #93c5fd; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal {
  position: relative; width: 100%; max-width: 720px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 30px 80px rgba(15,23,42,.35);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: #f3f4f6; color: #374151;
  font-size: 22px; cursor: pointer; line-height: 1; transition: .2s; z-index: 5;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }
.modal-player { margin: 16px 0; }
.modal-player audio { width: 100%; }
.modal-notes {
  margin-top: 14px; font-size: 14px; color: #4b5563; background: #f0f9ff;
  border: 1px solid #bae6fd; border-radius: 12px; padding: 14px 16px;
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- 提示 ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.flash-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.flash-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-float { display: none; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: 34px; }
  .form-row { flex-direction: column; gap: 16px; }
  .result-body { grid-template-columns: 1fr; }
  .gen-card { padding: 26px 22px; }
  .member-overview, .member-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gen-tabs button { font-size: 14px; padding: 10px 6px; }
  .member-table { min-width: 520px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; align-items: stretch;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 24px; border-bottom: 1px solid #f1f5f9; }
  .site-nav .nav-admin { border: 0; text-align: left; }
  .hero { padding: 66px 0 78px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .section { padding-top: 46px; }
  .section-head h2 { font-size: 25px; }
  .gen-actions { flex-direction: column; align-items: stretch; }
  .gen-actions .btn { width: 100%; }
  .result-head { flex-direction: column; }
  .result-actions { width: 100%; }
  .result-actions .btn { flex: 1; }
  .about-feats { gap: 28px; }
  .modal { padding: 20px 16px; }
}

/* ---------- 公告中心 / 卡密兑换 ---------- */
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.notice-list { display: flex; flex-direction: column; gap: 18px; }
.notice-item .notice-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.notice-item .notice-head h2 { font-size: 19px; color: var(--blue-900, #0f1c4d); }
.notice-date { color: var(--muted, #6b7280); font-size: 12px; }
.notice-body {
  white-space: pre-wrap; line-height: 1.85; color: #374151;
  margin-bottom: 14px; overflow-wrap: break-word;
}
.notice-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.notice-imgs .notice-img-item { display: block; border-radius: 10px; overflow: hidden; }
.notice-imgs .notice-img-item img {
  width: 100%; display: block; border-radius: 10px;
  border: 1px solid var(--line, #e5eaf5); background: #f8fafc;
}
.notice-pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 26px 0 46px; }
.notice-pager a, .notice-pager span {
  min-width: 34px; padding: 6px 11px; text-align: center;
  border: 1px solid var(--line, #e5eaf5); border-radius: 8px;
  color: #4b5563; background: #fff;
}
.notice-pager a:hover { border-color: var(--blue-500, #3b82f6); color: var(--blue-600, #2563eb); }
.notice-pager .current { background: var(--blue-600, #2563eb); color: #fff; border-color: var(--blue-600, #2563eb); }

/* ---------- 成品歌曲结果工具条 / 音乐库弹窗工具条 ---------- */
.song-tools, .modal-tools {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 14px 0 4px; padding: 12px; background: #f0f9ff;
  border: 1px solid #bfdbfe; border-radius: 12px;
}
.modal-tools { margin: 0 0 14px; }
.song-tools .btn, .modal-tools .btn { cursor: pointer; }

/* ---------- 分轨式编辑弹窗 ---------- */
.editor-mask { z-index: 320; }
.editor-modal { max-width: 860px; }
.editor-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.editor-head .result-icon { font-size: 30px; color: var(--blue-500, #3b82f6); }
.editor-head h3 { font-size: 20px; margin-bottom: 4px; }
.editor-sub { font-size: 13px; color: var(--muted, #6b7280); }
.editor-transport {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0; padding: 12px 14px; background: #f8fafc;
  border: 1px solid var(--line, #e5eaf5); border-radius: 12px;
}
.tr-time { font-variant-numeric: tabular-nums; font-size: 13px; color: #374151; min-width: 130px; }
.tr-seek { flex: 1; min-width: 140px; accent-color: var(--blue-600, #2563eb); }
.editor-tracks { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow: auto; padding: 2px; }
.track-lane {
  border: 1px solid var(--line, #e5eaf5); border-radius: 12px;
  padding: 12px 14px; background: #fff; transition: .2s;
}
.track-lane[data-muted="1"] { opacity: .55; border-color: #fca5a5; background: #fff5f5; }
.track-lane[data-solo="1"] { border-color: var(--green, #22c55e); }
.track-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.track-icon { color: var(--blue-500, #3b82f6); font-size: 18px; }
.track-name { font-weight: 600; color: #1f2937; }
.track-fmt {
  padding: 4px 8px; border: 1px solid var(--line, #e5eaf5); border-radius: 8px;
  font-size: 12px; color: #374151; background: #f9fafb;
}
.track-state { margin-left: auto; font-size: 12px; color: var(--muted, #6b7280); min-width: 46px; text-align: right; }
.track-state.is-ok { color: var(--green, #16a34a); }
.track-state.is-err { color: #dc2626; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-wave {
  display: block; width: 100%; height: 44px; margin-bottom: 8px;
  border-radius: 8px; background: #f8fafc;
}
.track-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.track-k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.track-k input[type="range"] { width: 110px; accent-color: var(--blue-600, #2563eb); }
.track-mute.is-on { background: #fee2e2; color: #dc2626; border-color: #fca5a5; font-weight: 700; }
.track-solo.is-on { background: #dcfce7; color: #15803d; border-color: #86efac; font-weight: 700; }
.editor-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line, #e5eaf5);
}
.editor-tip { font-size: 12px; color: var(--muted, #6b7280); max-width: 460px; }
.editor-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; }
.editor-progress p { font-size: 13px; color: #1d4ed8; }

@media (max-width: 720px) {
  .editor-tip { max-width: 100%; }
  .track-k input[type="range"] { width: 84px; }
  .editor-actions .btn { width: 100%; }
}
