/* ===== 乐芽 H5 · 极简大气蓝 ===== */
:root {
  --primary: #2563EB;
  --primary-deep: #60A5FA;
  --accent: #0EA5E9;
  --gradient: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0EA5E9 100%);
  --bg: #0F1115;
  --bg-input: #11131A;
  --bg-elevated: #1F2937;
  --card: #1A1D24;
  --text: #F8FAFC;
  --text-light: #94A3B8;
  --border: #2A2F3A;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --danger: #F87171;
  --success: #34D399;
  --warning: #FBBF24;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

#app { max-width: 480px; margin: 0 auto; padding-bottom: 136px; min-height: 100vh; }

/* 启动屏 */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #0B0F14;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, visibility .45s ease;
}
.splash-screen img {
  width: 100%; height: 100%; max-width: 480px; object-fit: cover;
}
.splash-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-ring {
  position: absolute; bottom: 16.5%; left: 50%;
  width: 54px; height: 54px; border-radius: 50%;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent 0%, rgba(56,189,248,.95) 55%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 62%, black 63%);
  mask: radial-gradient(circle, transparent 62%, black 63%);
  animation: splash-spin 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56,189,248,.55));
}
@keyframes splash-spin { to { transform: translateX(-50%) rotate(360deg); } }

.hidden { display: none !important; }

/* ===== 通用组件 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 12px 16px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; border: none; border-radius: 999px;
  padding: 12px 24px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s; width: 100%;
}
.btn:active { transform: scale(.97); opacity: .92; }
.btn.secondary { background: #EFF6FF; color: var(--primary-deep); border: 1.5px solid #BFDBFE; }
.btn.ghost { background: transparent; color: var(--text-light); border: 1.5px solid var(--border); }
.btn.sm { padding: 8px 16px; font-size: 13px; width: auto; }
.btn:disabled { opacity: .5; pointer-events: none; }

.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin: 4px;
  background: #EFF6FF; color: var(--primary-deep); border: 1px solid #BFDBFE;
  font-size: 13px; cursor: pointer; transition: all .2s;
}
.tag.active { background: var(--gradient); color: #fff; border-color: transparent; }
.tag.alt { background: #F0F9FF; color: #0369A1; border-color: #BAE6FD; }
.tag.alt.active { background: var(--accent); color: #fff; border-color: transparent; }

/* 风格确认页 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .tag { margin: 0; }
.tag.rec { position: relative; }
.tag i {
  font-style: normal; font-size: 9px; line-height: 1;
  background: #FF7D1A; color: #fff; border-radius: 4px;
  padding: 2px 4px; margin-left: 4px; vertical-align: 1px;
}
.rec-badge {
  font-size: 11px; color: #FF7D1A; background: #FFF3E8;
  border-radius: 6px; padding: 2px 6px; margin-left: 6px; font-weight: 500;
}

/* 分享页 */
.share-hero {
  padding: 48px 24px 24px; text-align: center; color: #fff;
  background: var(--gradient);
}
.share-hero .logo-badge { margin: 0 auto 16px; }
.share-hero h1 { font-size: 18px; font-weight: 600; }
.share-card {
  margin: -20px 16px 16px; background: #fff; border-radius: 16px;
  padding: 20px; box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
}
.share-title { font-size: 20px; font-weight: 700; }
.share-card audio { margin-top: 16px; }
.share-cta { text-align: center; padding: 8px 16px 48px; }
.share-cta p { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.share-cta .btn { display: inline-block; text-decoration: none; padding: 12px 40px; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: #EFF6FF; color: var(--primary-deep); margin: 2px 4px 2px 0;
}

input[type="text"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; outline: none; background: #fff; color: var(--text);
  font-family: inherit;
}
input:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 90px; }

/* 验证码输入行：输入框 + 获取验证码按钮 */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.getcode-btn {
  flex: 0 0 96px; height: 48px; border-radius: 12px;
  border: 1.5px solid var(--primary); background: transparent;
  color: var(--primary); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.getcode-btn:disabled { opacity: .55; border-color: var(--border); color: var(--text-light); }

.page-title { font-size: 20px; font-weight: 700; padding: 20px 16px 8px; }
.page-sub { font-size: 13px; color: var(--text-light); padding: 0 16px 12px; }
.section-title { font-size: 16px; font-weight: 700; padding: 16px 16px 4px; display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--text-light); font-size: 13px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.flex { display: flex; align-items: center; }
.grow { flex: 1; }

/* ===== 登录页 ===== */
.login-page { min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #1A2332 0%, #0F1115 55%); display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; }
.login-logo { text-align: center; margin-bottom: 8px; }
.login-logo .logo-badge {
  width: 96px; height: 96px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, .35);
  overflow: hidden;
}
.login-logo .logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.login-logo h1 { color: var(--text); font-size: 28px; font-weight: 800; }
.login-logo p { color: var(--text-light); font-size: 14px; margin-top: 6px; }
.login-card { background: var(--card); border-radius: 24px; padding: 28px 24px; margin-top: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.login-card .field { margin-bottom: 14px; }
.login-card input { background: var(--bg-input); color: var(--text); border-color: var(--border); }
.login-card input::placeholder { color: #64748B; }
.login-hint { text-align: center; color: var(--text-light); font-size: 12px; margin-top: 12px; }

/* ===== 底部 Tab ===== */
.tabbar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; display: flex;
  border-top: 1px solid var(--border); padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}
/* 页脚备案号条 */
.beian-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; text-align: center;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  font-size: 10px; line-height: 1; color: #8a93a3; background: #fff; z-index: 99;
}
.beian-bar a { color: #8a93a3; text-decoration: none; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-light); cursor: pointer; padding: 4px 0; }
.tab-item svg { width: 24px; height: 24px; margin-bottom: 2px; }
.tab-item.active { color: var(--primary); font-weight: 600; }

/* ===== 首页 Banner ===== */
.banner-wrap { position: relative; margin: 16px; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.banner-track { display: flex; transition: transform .35s ease; }
.banner-slide { flex: 0 0 100%; position: relative; width: 100%; aspect-ratio: 900 / 320; overflow: hidden; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background: var(--card); }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .2s; }
.banner-dot.active { width: 16px; border-radius: 3px; background: #fff; }

/* ===== 首页 ===== */
.hero { padding: 8px 16px 16px; }
.hero-create {
  background: var(--gradient); border-radius: 20px; padding: 22px 20px;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  box-shadow: var(--shadow-lg); color: #fff;
}
.hero-create .hc-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.hero-create .hc-icon svg { width: 28px; height: 28px; }
.hero-create .hc-text { flex: 1; text-align: left; }
.hero-create .hc-text b { font-size: 18px; display: block; }
.hero-create .hc-text p { font-size: 13px; opacity: .9; margin-top: 2px; }
.hero-create .hc-arrow { font-size: 20px; opacity: .9; }

.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.home-action {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
}
.home-action .ha-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #EFF6FF;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  flex-shrink: 0;
}
.home-action .ha-icon svg { width: 22px; height: 22px; }
.home-action .ha-text { flex: 1; }
.home-action .ha-text b { display: block; font-size: 15px; }
.home-action .ha-text p { font-size: 12px; color: var(--text-light); margin-top: 1px; }

/* ===== 创作页 ===== */
.mode-switch { display: flex; background: #F1F5F9; border-radius: 999px; padding: 4px; margin: 12px 16px 0; }
.mode-switch .ms-item { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-size: 14px; color: var(--text-light); cursor: pointer; font-weight: 600; }
.mode-switch .ms-item.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(37,99,235,.12); }

.lyric-version { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; margin: 10px 0; cursor: pointer; transition: all .2s; background: #fff; }
.lyric-version.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.lyric-version .lv-title { font-weight: 700; font-size: 16px; }
.lyric-version .lv-lyrics { white-space: pre-wrap; font-size: 13px; color: #475569; margin-top: 8px; max-height: 160px; overflow-y: auto; }
.lyric-version .lv-actions { display: flex; gap: 8px; margin-top: 12px; }
.lyric-version .lv-actions .btn { flex: 1; }
.lyric-version .lv-actions .btn.sm { width: auto; }

.mood-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 4px; scrollbar-width: none; }
.mood-strip::-webkit-scrollbar { display: none; }
.mood-strip .tag { flex-shrink: 0; }

/* ===== 作品列表 ===== */
.work-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 14px; margin: 8px 16px; box-shadow: var(--shadow); cursor: pointer; }
.work-cover {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gradient); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
}
.work-info { flex: 1; min-width: 0; }
.work-info .wi-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-info .wi-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.status-badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.status-completed { background: #ECFDF5; color: var(--success); }
.status-generating { background: #FFFBEB; color: #B45309; }
.status-failed { background: #FEF2F2; color: var(--danger); }
.status-pending { background: #F1F5F9; color: #64748B; }

/* ===== 作品详情 ===== */
.detail-hero { background: var(--gradient); border-radius: 0 0 32px 32px; padding: 32px 20px 28px; color: #fff; text-align: center; }
.detail-hero .dh-title { font-size: 22px; font-weight: 800; }
.detail-hero .dh-sub { font-size: 13px; opacity: .85; margin-top: 4px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ===== 我的页 ===== */
.mine-header { background: var(--gradient); border-radius: 0 0 32px 32px; padding: 28px 20px 24px; color: #fff; }
.mine-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin-right: 14px; border: 1px solid rgba(255,255,255,.2); }
.mine-points {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: 14px 16px; margin-top: 14px;
  display: flex; align-items: center; color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.mine-points .mp-num { font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mine-points .mp-label { font-size: 12px; color: rgba(255,255,255,.85); margin-left: 8px; line-height: 1.35; }

.menu-list { background: #fff; border-radius: var(--radius); margin: 12px 16px; box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-light); margin-right: 12px; flex: none; }
.menu-item .mi-icon svg { width: 19px; height: 19px; display: block; }
.menu-item .mi-arrow { color: var(--text-light); margin-left: auto; }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-sheet { background: #fff; border-radius: 24px 24px 0 0; width: 100%; max-width: 480px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 82vh; overflow-y: auto; animation: slideUp .25s ease; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 16px; }
.sheet-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 16px; }

/* ===== 底部播放条 ===== */
.player-bar {
  position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px; background: #fff; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(30, 58, 138, .18); display: flex; align-items: center;
  padding: 8px 12px 8px 16px; z-index: 90; gap: 10px;
}
.pb-info { flex: 1; min-width: 0; }
.pb-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-status { font-size: 11px; color: var(--text-light); }
.pb-ctrl {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.pb-ctrl svg { width: 20px; height: 20px; }

/* 吐司 */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300;
  background: rgba(15,23,42,.92); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; max-width: 86%; text-align: center; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%,-10px); } to { opacity: 1; transform: translate(-50%,0); } }

/* 加载 */
.loading { text-align: center; padding: 40px; color: var(--text-light); }
.spinner {
  width: 34px; height: 34px; border: 3px solid #BFDBFE; border-top-color: var(--primary);
  border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider { height: 1px; background: var(--border); margin: 10px 0; }
.price-tag { color: var(--primary); font-weight: 700; }
.row-between { display: flex; align-items: center; justify-content: space-between; }

/* 生成通知提示 */
.gen-notice {
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px;
  padding: 12px 16px; margin: 12px 16px; display: flex; align-items: center; gap: 10px;
  color: var(--primary-deep); font-size: 13px;
}
.gen-notice svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== 新增：创作页暗色专业布局 ===== */
.create-page {
  background: #0F1115;
  min-height: 100vh;
  padding-bottom: 120px;
}

.create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
  background: #0F1115;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mode-switch.dark {
  flex: 1;
  background: #1F2937;
  border-radius: 999px;
  padding: 4px;
  display: flex;
}
.mode-switch.dark .ms-item {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 14px;
  color: #94A3B8;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
}
.mode-switch.dark .ms-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, .35);
}

.model-select {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  background: #1F2937;
  border-radius: 999px;
  white-space: nowrap;
}
.model-select svg { width: 16px; height: 16px; color: #94A3B8; }

.create-form { padding: 8px 16px; }

.create-field {
  background: #1A1D24;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.create-field > input[type="text"],
.create-field > input[type="number"] {
  background: #11131A;
  border: 1px solid #2A2F3A;
  color: #F8FAFC;
  border-radius: 12px;
}
.create-field > input[type="text"]::placeholder,
.create-field > input[type="number"]::placeholder,
.create-textarea-wrap textarea::placeholder { color: #64748B; }

.create-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.create-label {
  font-size: 15px;
  font-weight: 600;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: #334155; color: #94A3B8;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; cursor: help;
}

.toggle-switch {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-track {
  width: 44px; height: 24px; border-radius: 999px;
  background: #334155; position: relative; transition: background .2s;
}
.toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--primary); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }
.toggle-text { font-size: 14px; color: #CBD5E1; }

.create-textarea-wrap { position: relative; }
.create-textarea-wrap.disabled { opacity: .55; pointer-events: none; }
.create-textarea-wrap textarea {
  width: 100%; min-height: 140px; background: #11131A;
  border: 1px solid #2A2F3A; border-radius: 12px; padding: 12px;
  color: #F8FAFC; font-size: 15px; resize: none;
}
.create-textarea-wrap textarea:disabled { background: #0B0D12; }

.textarea-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #0F172A; color: #38BDF8; border: 1px solid #1E293B;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.tool-btn:disabled { opacity: .45; cursor: not-allowed; }
.tool-btn svg { width: 14px; height: 14px; }
.char-count {
  font-size: 12px; color: #64748B;
}

.advanced-section {
  background: #1A1D24; border-radius: 16px; margin-bottom: 12px; overflow: hidden;
}
.advanced-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; cursor: pointer; color: #F8FAFC; font-weight: 600;
}
.advanced-arrow {
  width: 20px; height: 20px; color: #94A3B8;
  transition: transform .2s;
}
.advanced-arrow.open { transform: rotate(180deg); }
.advanced-body {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.advanced-body.open { max-height: 900px; }

.adv-row { padding: 12px 14px; border-top: 1px solid #252A36; }
.adv-label {
  font-size: 14px; color: #CBD5E1; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.adv-options { display: flex; gap: 10px; flex-wrap: wrap; }
.adv-pill {
  padding: 7px 16px; border-radius: 999px; background: #11131A;
  border: 1px solid #2A2F3A; color: #94A3B8; font-size: 14px;
  cursor: pointer; transition: all .2s;
}
.adv-pill.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.adv-row input[type="text"],
.adv-row input[type="number"] {
  width: 100%; background: #11131A; border: 1px solid #2A2F3A;
  color: #F8FAFC; border-radius: 10px; padding: 10px 12px;
}

.slider-row {
  display: flex; align-items: center; gap: 12px;
}
.slider-row input[type="range"] {
  flex: 1; accent-color: var(--primary);
}
.slider-row span { min-width: 40px; text-align: right; color: #CBD5E1; font-size: 14px; }

.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #11131A; border: 1px solid #2A2F3A;
  border-radius: 10px; padding: 10px 12px; color: #94A3B8;
  cursor: pointer;
}
.mock-row svg { width: 18px; height: 18px; }

.create-footer {
  padding: 8px 0 24px;
}
.gen-notice-inline {
  display: flex; align-items: center; gap: 8px;
  background: #1E293B; color: #94A3B8; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 13px;
}
.gen-notice-inline svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-generate {
  background: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
  border-radius: 999px; padding: 14px; font-size: 17px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-generate svg { width: 20px; height: 20px; }
.btn-generate:disabled { opacity: .7; }

.create-disclaimer {
  text-align: center; color: #475569; font-size: 12px; margin-top: 12px;
}

.spinner-inline {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: middle; margin-right: 6px;
}

/* 模型选择弹窗 */
.model-list { display: flex; flex-direction: column; gap: 10px; }
.model-option {
  display: flex; align-items: center; justify-content: space-between;
  background: #1A1D24; border: 1.5px solid #2A2F3A; border-radius: 14px;
  padding: 14px; cursor: pointer; transition: all .2s;
}
.model-option.active { border-color: var(--primary); background: #13243D; }
.mo-main { flex: 1; }
.mo-main b { color: #F8FAFC; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.mo-tag {
  background: #10B981; color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.mo-desc { color: #94A3B8; font-size: 13px; margin-top: 6px; }
.mo-check { color: #38BDF8; font-size: 18px; font-weight: 700; }

/* 歌词生成 sheet */
.create-sheet .lyric-gen-loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 40px 20px; color: #64748B; font-size: 14px;
}
.create-sheet .lyric-version {
  background: #0F1115; border-color: #2A2F3A;
}

.modal-sheet.create-sheet { background: #0F1115; }
.modal-sheet.create-sheet .sheet-title { color: #F8FAFC; }

/* 歌词结果页（全页面） */
.lyric-page-loading {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 80px 20px; color: #64748B; font-size: 14px;
}
.lyric-page-error {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 60px 20px; color: #64748B; font-size: 14px; text-align: center;
}
.lp-err-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(239, 68, 68, .15); color: #EF4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; margin-bottom: 8px;
}
.lyric-version .lv-actions { flex-wrap: wrap; }
.lyric-version textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid #2A2F3A;
  border-radius: 8px; padding: 10px; color: #E2E8F0; font-size: 13px;
  font-family: inherit; resize: vertical;
}
.modal-sheet.create-sheet .sheet-handle { background: #334155; }

/* ===== 返回栏 ===== */
.back-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 6px; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(to bottom, var(--bg) 82%, transparent);
}
.bb-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.bb-btn svg { width: 20px; height: 20px; color: var(--text); }
.bb-title { font-size: 17px; font-weight: 700; flex: 1; }
.bb-space { width: 34px; }

/* ===== 首页最新作品（双列广场） ===== */
.explore-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 16px 16px;
}
.explore-card {
  background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s;
}
.explore-card:active { transform: scale(.97); }
.ec-cover { width: 100%; aspect-ratio: 1; background: #EFF6FF; position: relative; overflow: hidden; }
.ec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-cover-default {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: rgba(255,255,255,.7);
}
.ec-cover-default svg { width: 44px; height: 44px; }
.ec-title {
  padding: 8px 10px 2px; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-meta { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 10px; }
.ec-author { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ec-author img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.ec-avatar-text {
  width: 18px; height: 18px; border-radius: 50%; background: #DBEAFE; color: var(--primary-deep);
  font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ec-author span {
  font-size: 12px; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-likes { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-light); flex-shrink: 0; }
.ec-likes svg { width: 14px; height: 14px; }
.ec-likes.liked { color: var(--danger); }

/* ===== 作品广场榜单 Tab ===== */
.explore-tabs {
  display: flex; margin: 4px 16px 4px; border-radius: 999px; background: #171A21; padding: 3px;
  border: 1px solid #23262F;
}
.etab {
  flex: 1; text-align: center; padding: 7px 0; font-size: 13.5px; font-weight: 600;
  color: #94A3B8; border-radius: 999px; cursor: pointer; transition: all .18s;
}
.etab.active { background: var(--gradient); color: #fff; box-shadow: 0 3px 10px rgba(196,77,255,.3); }
.etab:active { transform: scale(.97); }
/* 最热榜播放量角标 */
.ec-play-badge {
  position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 3px;
  background: rgba(15,23,42,.62); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.ec-play-badge svg { width: 11px; height: 11px; }

/* ===== 播放器作者行 + 关注按钮 ===== */
.pp-author-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 3px; }
.pp-follow {
  font-size: 11.5px; font-weight: 700; color: #fff; padding: 3px 12px; border-radius: 999px;
  background: var(--gradient); cursor: pointer; flex-shrink: 0; user-select: none;
}
.pp-follow.on { background: rgba(248,250,252,.18); color: rgba(248,250,252,.75); }

/* ===== 评论弹层 ===== */
.cm-list { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
.cm-item { display: flex; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.cm-item:last-child { border-bottom: none; }
.cm-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cm-avatar-text {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-size: 14px; font-weight: 700;
}
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; justify-content: space-between; }
.cm-nick { font-size: 12.5px; font-weight: 600; color: var(--text-light); }
.cm-del { font-size: 11.5px; color: #94A3B8; cursor: pointer; }
.cm-del:active { color: var(--danger); }
.cm-content { font-size: 14px; line-height: 1.55; margin-top: 3px; word-break: break-word; white-space: pre-wrap; }
.cm-input-bar { display: flex; gap: 10px; margin-top: 14px; position: sticky; bottom: 0; }
.cm-input-bar input {
  flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px;
  font-size: 14px; outline: none; background: var(--card); color: var(--text);
}
.cm-input-bar input:focus { border-color: #C44DFF; }
.cm-input-bar button {
  border: none; border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  background: var(--gradient); color: #fff; cursor: pointer; flex-shrink: 0;
}
.cm-input-bar button:disabled { opacity: .6; }
.cm-input-bar button:active { transform: scale(.96); }

/* ===== 作品列表封面 + 三点 ===== */
.work-cover { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #EFF6FF; display: flex; align-items: center; justify-content: center; position: relative; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-cover-default { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 20px; }
.work-more {
  padding: 12px 6px 12px 12px; cursor: pointer; color: var(--text-light); position: relative; z-index: 2; flex-shrink: 0;
}
.work-more svg { width: 18px; height: 18px; display: block; }
/* 列表内状态徽章固定宽度，保证三个点按钮纵向对齐 */
.work-item .status-badge { flex-shrink: 0; min-width: 62px; text-align: center; box-sizing: border-box; }

/* ===== 播放器页面 ===== */
.player-page {
  position: fixed; inset: 0; max-width: 480px; margin: 0 auto; z-index: 100;
  display: flex; flex-direction: column; overflow: hidden;
  background: #0B1120; color: #F8FAFC;
  touch-action: pan-y; /* 水平滑动留给 JS 手势处理，避免 pointercancel */
}
.pp-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(50px) brightness(.45); transform: scale(1.4); z-index: 0;
}
.pp-bg-default { background: var(--gradient); }
.pp-top { position: relative; z-index: 1; display: flex; align-items: center; padding: 14px 16px 0; gap: 10px; }
.pp-back, .pp-more { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pp-back svg, .pp-more svg { width: 24px; height: 24px; color: #F8FAFC; }
.pp-top-title { flex: 1; text-align: center; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 0 24px; transition: all .3s; }
.pp-disc-wrap { position: relative; margin-top: 4vh; transition: all .35s; }
.pp-disc {
  width: 62vw; max-width: 270px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #1E293B 18%, #0F172A 19%, #334155 20%, #0F172A 21%, #1E293B 100%);
  display: flex; align-items: center; justify-content: center;
  border: 8px solid #0D1526; box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.pp-disc.spinning { animation: pp-rotate 18s linear infinite; }
@keyframes pp-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.pp-disc img {
  width: 58%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.15);
}
.pp-disc-default { width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; border: 3px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
.pp-disc-default svg { width: 40%; height: 40%; }
.pp-stick {
  position: absolute; top: -26px; left: 50%; width: 8px; height: 76px; margin-left: -4px;
  background: linear-gradient(#E2E8F0, #94A3B8); border-radius: 4px; transform-origin: 50% 8px;
  transform: rotate(-28deg); transition: transform .4s; z-index: 2;
}
.pp-stick::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #E2E8F0; }
.pp-stick.on { transform: rotate(-8deg); }
.pp-info { margin-top: 18px; text-align: center; width: 100%; transition: all .3s; }
.pp-title { font-size: 19px; font-weight: 700; }
.pp-author { font-size: 13px; color: rgba(248,250,252,.65); margin-top: 3px; }
.pp-song-code { font-size: 11px; color: rgba(248,250,252,.4); margin-top: 3px; letter-spacing: 1.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pp-lyrics {
  flex: 1; width: 100%; margin-top: 14px; overflow-y: auto; text-align: center;
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  scrollbar-width: none;
}
.pp-lyrics::-webkit-scrollbar { display: none; }
.pp-lyrics p {
  font-size: 14px; color: rgba(248,250,252,.55); padding: 5px 0; line-height: 1.7;
  transition: color .35s ease, font-size .35s ease, transform .35s ease, text-shadow .35s ease, opacity .35s ease;
}
/* 当前行：放大 + 高亮突出 */
.pp-lyrics p.active {
  color: #FF8FBE; font-size: 18.5px; font-weight: 700;
  transform: scale(1.06);
  text-shadow: 0 0 18px rgba(255,107,157,.55);
}
.pp-lyrics p.active::first-letter { letter-spacing: 1px; }
/* ===== 字级卡拉OK：.w 是每个字/词，.on=已唱过，.cur=正在唱（--p 0~1 为渐变进度） ===== */
.pp-lyrics p .w { transition: color .18s linear, opacity .18s linear; }
.pp-lyrics p .w.on { color: #FFB3D1; }
.pp-lyrics p .w.cur {
  color: transparent;
  background-image: linear-gradient(90deg, #FF8FBE 0%, #FF8FBE var(--p, 0), rgba(248,250,252,.45) var(--p, 0), rgba(248,250,252,.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 12px rgba(255,107,157,.35);
}
.pp-hint-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 4px; }
.pp-calib {
  font-size: 11px; color: rgba(248,250,252,.6); cursor: pointer; user-select: none;
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(248,250,252,.22);
  transition: color .2s, border-color .2s, transform .15s;
}
.pp-calib:active { transform: scale(.94); }
.pp-calib:hover { color: #FF8FBE; border-color: rgba(255,143,190,.6); }
.pp-hint { font-size: 11px; color: rgba(248,250,252,.35); cursor: pointer; user-select: none; }
/* 全屏歌词模式（左滑） */
.player-page.lyric-full .pp-disc-wrap { transform: scale(.001); opacity: 0; height: 0; margin: 0; }
.player-page.lyric-full .pp-info { margin-top: 8px; }
.player-page.lyric-full .pp-lyrics p { font-size: 17px; padding: 9px 0; }
.player-page.lyric-full .pp-lyrics p.active { font-size: 22px; transform: scale(1.08); }
.pp-actions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-around; padding: 4px 40px 2px; }
.pp-act { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: rgba(248,250,252,.8); font-size: 11px; transition: transform .15s; }
.pp-act:active { transform: scale(.88); }
.pp-act svg { width: 26px; height: 26px; }
.pp-act.on { color: var(--danger); }
.pp-progress { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 6px 24px; width: 100%; }
.pp-time { font-size: 11px; color: rgba(248,250,252,.7); width: 38px; }
.pp-time:last-child { text-align: right; }
#pp-seek { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: rgba(248,250,252,.25); outline: none; }
#pp-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: pointer;
}
#pp-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: none; cursor: pointer; }
.pp-controls { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 10px 0 26px; }
.pp-play {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); cursor: pointer; transition: transform .15s;
}
.pp-play:active { transform: scale(.93); }
.pp-play svg { width: 34px; height: 34px; color: #0F172A; }

/* ===== 更多操作面板 ===== */
.modal-sheet.more-sheet { padding-bottom: 8px; }
.more-list { padding: 0 16px 16px; }
.more-item {
  padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--border); cursor: pointer;
  display: flex; align-items: center;
}
.more-item:last-child { border-bottom: none; }
.more-item:active { background: #F1F5F9; }
.more-item.primary { color: var(--primary-deep); font-weight: 600; }
.more-item.danger { color: var(--danger); }

/* ===== 修改歌名/封面 & 资料编辑 ===== */
.edit-song { padding: 0 16px 16px; }
.es-cover {
  width: 140px; height: 140px; border-radius: 16px; margin: 0 auto; overflow: hidden;
  background: #EFF6FF; border: 2px dashed #BFDBFE; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.es-cover img { width: 100%; height: 100%; object-fit: cover; }
.es-cover-ph { font-size: 13px; color: var(--primary-deep); text-align: center; padding: 8px; }

/* ===== 客服联系弹卡 ===== */
.contact-card { padding: 0 16px 20px; text-align: center; }
.cc-text { font-size: 14px; color: var(--text); line-height: 1.7; padding: 8px 4px 4px; }
.cc-qr { margin-top: 10px; }
.cc-qr img { width: 180px; height: 180px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); }

/* ===== 会员等级卡片（青铜/白银/黄金/璀璨） ===== */
.member-card {
  margin: 12px 16px; border-radius: var(--radius); padding: 18px 16px;
  display: flex; align-items: center; gap: 14px; color: #fff; cursor: pointer;
  position: relative; overflow: hidden; min-height: 84px;
  box-shadow: var(--shadow-lg); transition: transform .15s;
}
.member-card:active { transform: scale(.98); }
.mc-badge {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(4px);
}
.mc-main { flex: 1; min-width: 0; }
.mc-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.mc-desc { font-size: 12px; opacity: .85; margin-top: 3px; }
.mc-arrow { font-size: 26px; opacity: .8; }
.lvl-bronze  { background: linear-gradient(120deg, #A16207 0%, #CA8A04 55%, #EAB308 100%); }
.lvl-silver  { background: linear-gradient(120deg, #64748B 0%, #94A3B8 55%, #CBD5E1 100%); }
.lvl-gold    { background: linear-gradient(120deg, #B45309 0%, #F59E0B 55%, #FCD34D 100%); }
.lvl-diamond { background: linear-gradient(120deg, #4C1D95 0%, #7C3AED 50%, #C084FC 100%); }
.lvl-bronze::after, .lvl-silver::after, .lvl-gold::after, .lvl-diamond::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}

/* ===== 我的福利四宫格 ===== */
.welfare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; margin-bottom: 6px; }
.welfare-item {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 4px 12px; cursor: pointer; transition: transform .15s; font-size: 12px;
}
.welfare-item:active { transform: scale(.94); }
.welfare-item svg { width: 26px; height: 26px; color: #60A5FA; }

/* ===== 任务中心 ===== */
.task-item { display: flex; align-items: center; gap: 12px; }
.tk-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #EFF6FF; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.tk-icon svg { width: 24px; height: 24px; color: var(--primary); }

/* ===== 我的头像图片 ===== */
.mine-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acc-profile { cursor: pointer; }

/* ===== 富文本内容页 ===== */
.rich-content {
  background: var(--card); margin: 8px 16px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 16px; font-size: 14px; line-height: 1.8;
  min-height: 120px; word-break: break-word; overflow-wrap: anywhere;
}
.rich-content img { max-width: 100% !important; height: auto; border-radius: 8px; }
.rich-content p { margin: 8px 0; }
.rich-content h1, .rich-content h2, .rich-content h3 { margin: 14px 0 8px; }
.rich-content ul, .rich-content ol { padding-left: 22px; }
.rich-content.muted { padding: 40px 16px; text-align: center; }

/* ===== 灵感模式 ===== */
.insp-form { padding-top: 18px; }
.insp-hero { text-align: center; padding: 22px 10px 18px; }
.insp-title { font-size: 21px; font-weight: 700; background: linear-gradient(90deg, #2563EB, #0EA5E9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.insp-sub { font-size: 13px; color: #64748B; margin-top: 8px; line-height: 1.5; }
.insp-prompt-wrap textarea { min-height: 118px; font-size: 15px; line-height: 1.6; }
.insp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.insp-chips-label { width: 100%; font-size: 12px; color: #64748B; margin-bottom: 2px; }
.insp-chip { padding: 7px 13px; font-size: 12.5px; color: #334155; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 999px; cursor: pointer; transition: all .15s; }
.insp-chip:active { transform: scale(.96); background: #E0F2FE; border-color: #38BDF8; color: #0369A1; }
.insp-special { width: 100%; margin-bottom: 6px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,107,157,.06), rgba(196,77,255,.06)); border: 1px solid rgba(255,107,157,.15); }
.insp-special-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.insp-special-icon { width: 16px; height: 16px; color: #FF6B9D; flex-shrink: 0; display: flex; align-items: center; }
.insp-special-icon svg { width: 16px; height: 16px; fill: #FF6B9D; }
.insp-special-name { font-size: 14px; font-weight: 600; color: #FF6B9D; }
.insp-special-theme { font-size: 11.5px; color: #94A3B8; }
.insp-special-chips { margin: 0 -4px; }
.insp-special-chips .insp-marquee { border-radius: 8px; }
.insp-chip-special { background: rgba(255,107,157,.08) !important; border-color: rgba(255,107,157,.2) !important; color: #C44DFF !important; }
/* 灵感标签横向无缝滚动（两行错落：第二行反向） */
.insp-marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.insp-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.insp-track .insp-group { display: inline-flex; gap: 8px; padding-right: 8px; }
.insp-track .insp-chip { flex: none; }
.insp-track.scrolling { animation: inspMarquee var(--insp-dur, 30s) linear infinite; }
.insp-track.scrolling:active, .insp-track.scrolling.paused { animation-play-state: paused; }
@keyframes inspMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 第二行：反向滚动 + 初始错开半个组宽，形成交错节奏 */
.insp-marquee-row2 { margin-top: 8px; }
.insp-marquee-row2 .insp-track.scrolling { animation-name: inspMarqueeR; }
@keyframes inspMarqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .insp-track.scrolling { animation: none; } }
/* 情绪/风格折叠区（灵感/说唱模式）：去掉 create-field 卡片底，折叠卡片即视觉主体 */
.insp-collapse-field { background: none; padding: 0; }
.insp-collapse { border: 1px solid #E2E8F0; border-radius: 14px; background: #F8FAFC; overflow: hidden; transition: border-color .2s; }
.insp-collapse.open { border-color: rgba(37,99,235,.3); }
.insp-collapse-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; cursor: pointer; }
.insp-collapse-header .create-label { margin: 0; }
.insp-collapse-arrow { width: 18px; height: 18px; color: #94A3B8; transition: transform .25s; flex-shrink: 0; }
.insp-collapse-arrow.open { transform: rotate(180deg); }
.insp-collapse-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.insp-collapse-body.open { max-height: 420px; }
.insp-collapse-body .adv-options { padding: 0 14px 14px; margin-top: 0; }
.insp-moods { margin-top: 8px; }
.muted-small { font-size: 11px; color: #94A3B8; font-weight: 400; }

/* ===== 作品页顶部分段切换（我的作品/我的收藏） ===== */
.seg-tabs { display: flex; background: #F1F5F9; border-radius: 12px; padding: 3px; margin-top: 6px; }
.seg-item { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: #64748B; border-radius: 10px; cursor: pointer; transition: all .18s; }
.seg-item.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(15, 23, 42, .10); }

/* ===== 作品页二级分类（我的音乐/我的MV，下划线式，与一级胶囊式区分） ===== */
.seg-tabs-sub { display: flex; gap: 22px; background: transparent; }
.seg-item-sub { position: relative; flex: none; padding: 5px 2px; font-size: 13px; color: #94A3B8; cursor: pointer; border-bottom: 2px solid transparent; transition: all .18s; }
.seg-item-sub.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* ===== 全局暗色统一（对齐创作页风格） ===== */
body { background: #0F1115; }

.btn.secondary { background: #0F172A; color: #7DB4F8; border: 1.5px solid #1E3A8A; }
.tag { background: #11131A; color: #7DB4F8; border: 1px solid #2A2F3A; }
.tag.alt { background: #0C1A28; color: #38BDF8; border-color: #164E63; }
.chip { background: #0F172A; color: #7DB4F8; }

input[type="text"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
  background: var(--bg-input); color: var(--text); border-color: var(--border);
}

.mode-switch { background: var(--bg-elevated); }
.mode-switch .ms-item { color: #94A3B8; }
.mode-switch .ms-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  color: #fff; box-shadow: 0 2px 12px rgba(37, 99, 235, .35);
}

.lyric-version { background: #1A1D24; }
.lyric-version.selected { box-shadow: 0 0 0 2px rgba(37, 99, 235, .3); }
.lyric-version .lv-lyrics { color: #94A3B8; }

/* 不可购买的低级会员卡：变灰 */
.card-disabled { opacity: .5; }
.card-disabled .price-tag,
.card-disabled .btn { filter: grayscale(.6); }
.btn:disabled { cursor: not-allowed; opacity: .55; }

.tabbar { background: #12141A; border-top-color: #23262F; box-shadow: 0 -6px 20px rgba(0,0,0,.35); }
.beian-bar { background: #12141A; }
.beian-bar a { color: #6b7280; }

.home-action { background: var(--card); }
.home-action .ha-icon { background: #0F172A; }

.status-completed { background: rgba(52, 211, 153, .14); color: var(--success); }
.status-generating { background: rgba(251, 191, 36, .14); color: var(--warning); }
.status-failed { background: rgba(248, 113, 113, .14); color: var(--danger); }
.status-pending { background: rgba(148, 163, 184, .14); color: #94A3B8; }

.rec-badge { background: rgba(255, 125, 26, .15); color: #FBA150; }

.mine-points { background: var(--card); }
.menu-list { background: var(--card); }
.menu-item { border-bottom-color: #23262F; }

.work-item { background: var(--card); }
.work-cover { background: var(--bg-input); }

.modal-mask { background: rgba(0, 0, 0, .6); }
.modal-sheet { background: #171A21; }
.sheet-handle { background: #334155; }

.player-bar { background: #171A21; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

.login-card { background: var(--card); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.share-card { background: var(--card); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }

.ec-cover { background: var(--bg-input); }
.ec-avatar-text { background: #1E3A8A; color: #93C5FD; }

.gen-notice { background: rgba(37, 99, 235, .12); border-color: rgba(37, 99, 235, .35); color: #7DB4F8; }

.spinner { border-color: #2A2F3A; border-top-color: var(--primary); }

.more-item:active { background: #232733; }

.es-cover { background: var(--bg-input); border-color: #1E3A8A; }
.es-cover-ph { color: #7DB4F8; }

.tk-icon { background: #0F172A; }

.insp-chip { background: #11131A; border-color: #2A2F3A; color: #CBD5E1; }
.insp-chip:active { background: rgba(56, 189, 248, .15); border-color: #38BDF8; color: #7DD3FC; }
.insp-chips-label { color: #94A3B8; }
.insp-special { background: linear-gradient(135deg, rgba(255,107,157,.08), rgba(196,77,255,.08)); border-color: rgba(255,107,157,.18); }
.insp-special-icon svg { fill: #FF6B9D; }
.insp-special-name { color: #FF6B9D; }
.insp-special-theme { color: #64748B; }
.insp-chip-special { background: rgba(255,107,157,.1) !important; border-color: rgba(196,77,255,.25) !important; color: #E0A0FF !important; }

/* 情绪/风格折叠区（深色） */
.insp-collapse { background: #1A1D24; border-color: #2A2F3A; }
.insp-collapse.open { border-color: rgba(56, 189, 248, .35); }

.seg-tabs { background: var(--bg-elevated); }
.seg-item { color: #94A3B8; }
.seg-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  color: #fff; box-shadow: 0 2px 12px rgba(37, 99, 235, .35);
}
.seg-item-sub { color: #64748B; }
.seg-item-sub.active { color: #60A5FA; border-bottom-color: #60A5FA; }

.back-bar { background: linear-gradient(to bottom, #0F1115 82%, transparent); }
.create-disclaimer { color: #64748B; }
.cc-qr img { border-color: #2A2F3A; background: #fff; }
.rich-content { color: #E2E8F0; }
.login-hint { color: #94A3B8; }
/* 灵感模式歌词选择弹层副标题 */
.insp-sheet-sub { font-size: 12px; color: var(--text-light); padding: 0 4px 10px; line-height: 1.5; }
#ig-list .lyric-version { cursor: pointer; }

/* ---------- 灵感模式对话页 ---------- */
.insp-chat-page { display: flex; flex-direction: column; height: 100vh; background: #0B0F14; }
.ic-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06); background: #0F1115; flex-shrink: 0;
}
.ic-back { color: #E2E8F0; cursor: pointer; display: flex; align-items: center; }
.ic-back svg { width: 22px; height: 22px; }
.ic-title { font-size: 16px; font-weight: 600; color: #F1F5F9; flex: 1; }
.ic-model-tag { font-size: 12px; color: #94A3B8; background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 20px; cursor: pointer; }
.ic-messages { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.ic-messages::-webkit-scrollbar { display: none; }
.ic-msg { display: flex; gap: 8px; max-width: 92%; animation: ic-fade .3s ease; }
.ic-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ic-msg.ai { align-self: flex-start; }
@keyframes ic-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ic-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.ic-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ic-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ic-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; word-break: break-word;
  white-space: pre-wrap;
}
.ic-msg.ai .ic-bubble { background: #1A1D24; color: #E2E8F0; border-top-left-radius: 4px; }
.ic-msg.user .ic-bubble { background: linear-gradient(135deg, #FF6B9D, #C44DFF); color: #fff; border-top-right-radius: 4px; }
.ic-loading-bubble { display: flex; align-items: center; gap: 6px; color: #94A3B8 !important; }
.ic-start-btn {
  align-self: flex-start; padding: 8px 18px; border: none; border-radius: 22px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #FF6B9D, #C44DFF); color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,107,157,.3); transition: transform .15s;
}
.ic-start-btn:active { transform: scale(.95); }
.ic-cards { display: flex; flex-direction: column; gap: 10px; }
.ic-lyric-card, .ic-style-card {
  background: #15181F; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; user-select: none; touch-action: auto;
}
.ic-lyric-card:active, .ic-style-card:active { border-color: rgba(255,107,157,.25); }
.ic-lyric-card.picked, .ic-style-card.picked { border-color: rgba(255,107,157,.5); box-shadow: 0 0 0 2px rgba(255,107,157,.15); }
.ic-lyric-card.editing { border-color: rgba(167,139,250,.4); }
.ic-lc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ic-lc-title { font-size: 14px; font-weight: 600; color: #F1F5F9; }
.ic-lc-badge { font-size: 10px; color: #A78BFA; background: rgba(167,139,250,.15); padding: 2px 6px; border-radius: 4px; }
.ic-lc-lyrics { font-size: 13px; color: #94A3B8; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: hidden; }
.ic-lc-tags, .ic-sc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: 11px; color: #64748B; align-items: center; }
.ic-lc-tags .chip, .ic-sc-tags .chip { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.06); color: #94A3B8; }
.ic-lc-pick, .ic-sc-pick {
  margin-top: 10px; width: 100%; padding: 8px; border: none; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: rgba(255,107,157,.15); color: #FF8FBE; cursor: pointer; transition: background .15s;
}
.ic-lc-pick:active, .ic-sc-pick:active { background: rgba(255,107,157,.25); }
.ic-lc-picked, .ic-sc-picked { margin-top: 8px; text-align: center; color: #FF8FBE; font-size: 13px; font-weight: 500; }
.ic-lc-edit { margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.ic-lc-edit input {
  flex: 1; background: #0F1115; border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  padding: 8px 10px; color: #E2E8F0; font-size: 13px; min-width: 0;
}
.ic-lc-edit input:focus { outline: none; border-color: rgba(255,107,157,.4); }
.ic-style-card .ic-sc-name { font-size: 14px; font-weight: 600; color: #F1F5F9; }
.ic-style-card .ic-sc-desc { font-size: 13px; color: #94A3B8; margin-top: 4px; line-height: 1.5; }
.ic-hint { font-size: 11px; color: #475569; padding: 2px 0; }
.ic-song-card {
  display: flex; align-items: center; gap: 12px;
  background: #15181F; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 12px 14px;
}
.ic-song-cover {
  width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #232733, #15181F); display: flex; align-items: center; justify-content: center;
}
.ic-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.ic-song-cover .work-cover-default { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #FF8FBE; font-size: 20px; }
.ic-song-info { flex: 1; min-width: 0; }
.ic-song-title { font-size: 14px; font-weight: 600; color: #F1F5F9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-song-sub { font-size: 12px; color: #64748B; margin-top: 4px; font-family: var(--font-mono, monospace); letter-spacing: .5px; }
.ic-song-play {
  flex-shrink: 0; border: none; border-radius: 18px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #FF6B9D, #C44DFF); cursor: pointer;
}
.ic-song-play:active { transform: scale(.94); }
.ic-input-bar {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.06);
  background: #0F1115; flex-shrink: 0;
}
.ic-input-bar input {
  flex: 1; background: #1A1D24; border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
  padding: 10px 16px; color: #E2E8F0; font-size: 14px;
}
.ic-input-bar input:focus { outline: none; border-color: rgba(255,107,157,.3); }
.ic-send-btn {
  width: 40px; height: 40px; border: none; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #FF6B9D, #C44DFF); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ic-send-btn:active { transform: scale(.92); }
.ic-send-btn svg { width: 18px; height: 18px; }
#ig-regen { width: 100%; }

/* ---------- 2026-08-19 需求迭代新增样式 ---------- */

/* 确权弹层：协议滚动区 */
.cf-agreement-scroll {
  margin: 8px 0 0; padding: 12px 14px; height: 200px; overflow-y: auto;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 14px;
  font-size: 12px; line-height: 1.8; color: var(--text-light); white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}
.cf-read-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px; font-size: 12px; color: #94A3B8;
}
.cf-read-hint svg { width: 14px; height: 14px; }
.cf-read-hint.read-ok { color: #34D399; }

/* 更多面板：分区弧角方框 + 小锁 */
.more-group {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 6px 4px; margin-bottom: 12px; background: rgba(255, 255, 255, .02);
}
.more-group .more-item { border-bottom: 1px solid rgba(148, 163, 184, .1); }
.more-group .more-item:last-child { border-bottom: none; }
.more-group-title {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px 4px; font-size: 11px; color: #94A3B8; font-weight: 600; letter-spacing: 1px;
}
.more-group-sub { font-weight: 400; letter-spacing: 0; color: #64748B; }
.more-lock { width: 14px; height: 14px; margin-left: auto; color: #F59E0B; flex-shrink: 0; }
.more-item { display: flex; align-items: center; }

/* 播放器：作者头像+昵称（操作行最左） */
.pp-act-author {
  display: flex; align-items: center; gap: 7px; cursor: pointer; margin-right: auto; flex-shrink: 0;
}
.pp-actions { gap: 6px; padding: 4px 18px 2px; }
.ppa-avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #0EA5E9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.ppa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ppa-name { color: rgba(248, 250, 252, .92); font-size: 13px; font-weight: 600; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 用户主页头部 */
.user-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(37, 99, 235, .18), rgba(14, 165, 233, .05) 70%, transparent);
}
.uh-avatar {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #0EA5E9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800;
  border: 3px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 30px rgba(37, 99, 235, .35);
}
.uh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uh-name { margin-top: 12px; font-size: 19px; font-weight: 800; color: var(--text); }
.uh-uid { margin-top: 4px; font-size: 12px; color: #64748B; letter-spacing: 1px; }
.uh-stats { display: flex; gap: 34px; margin-top: 16px; }
.uhs-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.uhs-item b { font-size: 17px; color: var(--text); }
.uhs-item span { font-size: 11px; color: #64748B; }
.uh-follow {
  margin-top: 16px; width: auto; min-width: 132px; padding: 9px 22px; font-size: 14px;
  background: linear-gradient(135deg, #2563EB, #0EA5E9); color: #fff;
}
.uh-follow.on { background: var(--bg-elevated); color: var(--text-light); border: 1px solid var(--border); }
.uh-me-tag {
  margin-top: 16px; font-size: 12px; color: #94A3B8;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 16px;
}
.ec-meta-time { font-size: 11px; color: #64748B; }

/* 生成页：秒级倒计时 */
.gen-countdown { margin-top: 10px; font-size: 13px; color: #7DB4F8; font-variant-numeric: tabular-nums; }

/* 欢迎页：登录/注册双 Tab */
.login-tabs {
  display: flex; margin-bottom: 20px; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; background: var(--bg-input);
}
.login-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600;
  color: var(--text-light); cursor: pointer; transition: all .18s;
}
.login-tab.active {
  background: linear-gradient(135deg, #2563EB, #0EA5E9); color: #fff;
}

/* 邀请页：专属链接 */
.inv-link {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  font-size: 12px; color: #7DB4F8; word-break: break-all; line-height: 1.6;
  -webkit-user-select: all; user-select: all;
}

/* 灵感创作：风格板块 */
.insp-genres { margin-top: 8px; }

/* 已购音轨行：播放/下载双按钮 */
.more-stem-item { justify-content: space-between; padding-right: 10px; }
.ms-name { flex: 1; min-width: 0; }
.ms-ops { display: flex; gap: 8px; flex-shrink: 0; }
.ms-btn {
  border: 1px solid var(--border); background: var(--bg-input); color: var(--text-light);
  border-radius: 8px; padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ms-btn-main {
  background: linear-gradient(135deg, #2563EB, #0EA5E9); color: #fff; border: none;
}
