* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
body { background:#F5FFF5; color:#1a2b22; }

#app { max-width:480px; margin:0 auto; min-height:100vh; background:#fff; position:relative; padding-bottom:70px; }

/* 顶栏 */
.topbar { position:sticky; top:0; z-index:100; background:#F0FFF4; border-bottom:1px solid #e2f2e6; padding:12px 16px; display:flex; justify-content:space-between; align-items:center; }
.logo { font-size:18px; font-weight:700; color:#1f7a4d; }
.credits { background:#4FCD7A; color:#fff; font-size:12px; padding:3px 10px; border-radius:20px; }

/* 内容 */
.content { padding:16px; }

/* 登录遮罩 */
.login-mask { position:fixed; inset:0; background:linear-gradient(160deg,#f0fff4,#d8f5e2); z-index:200; display:flex; align-items:center; justify-content:center; }
.login-card { background:#fff; border-radius:20px; padding:40px 28px; width:80%; max-width:340px; text-align:center; box-shadow:0 10px 40px rgba(0,0,0,.08); }
.login-logo { font-size:48px; margin-bottom:8px; }
.login-card h2 { font-size:24px; color:#1f7a4d; margin-bottom:4px; }
.login-sub { color:#6b8a77; font-size:13px; margin-bottom:24px; }
.login-hint { color:#9caf a3; color:#9cafa3; font-size:11px; margin-top:14px; }

/* 按钮/输入 */
.input { width:100%; padding:12px 14px; border:1px solid #d5e8da; border-radius:10px; font-size:15px; background:#fbfefc; outline:none; margin-bottom:12px; }
.input:focus { border-color:#4FCD7A; }
.btn { border:none; border-radius:10px; padding:12px 18px; font-size:15px; cursor:pointer; }
.btn-primary { background:linear-gradient(135deg,#4FCD7A,#2ea863); color:#fff; font-weight:600; }
.btn-block { width:100%; }
.btn-lg { padding:15px; font-size:16px; }
.btn-ghost { background:#f0f4f1; color:#333; }
.btn:active { transform:scale(.98); }

/* 创作 */
.tab-page { display:none; }
.tab-page.active { display:block; }
.create-box { padding:8px 0; }
.mode-tabs { display:flex; gap:8px; margin-bottom:20px; }
.mode-tab { flex:1; padding:10px; border:1px solid #d5e8da; background:#fff; border-radius:10px; font-size:14px; cursor:pointer; }
.mode-tab.active { background:#4FCD7A; color:#fff; border-color:#4FCD7A; font-weight:600; }
.field label { display:block; font-size:13px; color:#557a66; margin-bottom:6px; font-weight:600; }
.balance-hint { text-align:center; color:#8aa395; font-size:12px; margin-top:10px; }
.gen-status { margin-top:16px; text-align:center; color:#1f7a4d; font-size:14px; min-height:20px; }
.result-box { margin-top:20px; background:#f6fbf7; border:1px solid #dfef e3; border:1px solid #dfefe3; border-radius:14px; padding:16px; }
.result-title { font-weight:600; margin-bottom:10px; color:#1f7a4d; }
.result-audio audio { width:100%; }

/* 广场 */
.square-head h3 { font-size:18px; color:#1f7a4d; margin-bottom:12px; }
.work-list { display:flex; flex-direction:column; gap:10px; }
.work-empty, .empty { text-align:center; color:#9cafa3; padding:30px 0; font-size:14px; }
.work-item { background:#fbfefc; border:1px solid #e2f2e6; border-radius:12px; padding:14px; }
.work-item .w-title { font-weight:600; font-size:15px; }
.work-item .w-user { color:#8aa395; font-size:12px; margin-top:2px; }
.work-item .w-style { color:#4FCD7A; font-size:11px; background:#f0fff4; padding:2px 8px; border-radius:8px; }
.work-item .w-cover { height:110px; border-radius:10px; margin-top:8px; }
.work-item audio { width:100%; margin-top:8px; }

/* 我的 */
.mine-card { background:linear-gradient(135deg,#f0fff4,#d8f5e2); border-radius:16px; padding:22px; text-align:center; margin-bottom:16px; }
.mine-avatar { font-size:40px; }
.mine-name { font-size:18px; font-weight:700; color:#1f7a4d; margin-top:6px; }
.mine-balance { display:flex; justify-content:center; gap:30px; margin-top:16px; }
.mine-balance div { text-align:center; }
.mine-balance span { font-size:22px; font-weight:700; color:#1f7a4d; display:block; }
.mine-balance small { color:#6b8a77; font-size:12px; }

.recharge-box { background:#fff; border:1px solid #e2f2e6; border-radius:16px; padding:18px; margin-bottom:16px; }
.recharge-box h3, .mine-works h3 { font-size:16px; color:#1f7a4d; margin-bottom:12px; }
.tier-list { display:flex; flex-direction:column; gap:10px; }
.tier { display:flex; justify-content:space-between; align-items:center; border:1px solid #d5e8da; border-radius:10px; padding:12px 14px; cursor:pointer; }
.tier.selected { border-color:#4FCD7A; background:#f0fff4; }
.tier .t-amount { font-size:18px; font-weight:700; color:#1f7a4d; }
.tier .t-desc { font-size:12px; color:#8aa395; }
.tier .t-gift { color:#e8883a; font-size:11px; }
.pay-mode { margin:14px 0 0; }

/* 支付弹窗 */
.pay-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:300; display:flex; align-items:center; justify-content:center; }
.modal-card { background:#fff; border-radius:16px; padding:24px; width:80%; max-width:320px; text-align:center; }
.modal-card h4 { margin-bottom:14px; color:#1f7a4d; }
#qrContainer { display:flex; justify-content:center; margin-bottom:10px; }
#qrContainer canvas, #qrContainer img { width:200px; height:200px; border:1px solid #eee; border-radius:8px; }
#payStatus { color:#6b8a77; font-size:13px; margin-bottom:12px; }

/* 底部导航 */
.tabbar { position:fixed; bottom:0; left:0; right:0; max-width:480px; margin:0 auto; background:#fff; border-top:1px solid #e2f2e6; display:flex; padding:8px 0; padding-bottom:calc(8px + env(safe-area-inset-bottom)); z-index:100; }
.tab-item { flex:1; text-align:center; padding:8px 0; font-size:12px; color:#8aa395; background:none; border:none; cursor:pointer; }
.tab-item.active { color:#1f7a4d; font-weight:600; }

/* toast */
.toast { position:fixed; left:50%; bottom:90px; transform:translateX(-50%); background:rgba(0,0,0,.78); color:#fff; padding:10px 18px; border-radius:8px; font-size:14px; opacity:0; pointer-events:none; transition:opacity .3s; z-index:400; }
.toast.show { opacity:1; }

/* 纯音乐入口 */
.instrumental-entry { background:linear-gradient(135deg,#FFF3E0,#FFE0B2); border:2px solid #FFD54F; border-radius:16px; padding:16px; margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.instrumental-entry:active { transform:scale(.98); }
.instr-left { display:flex; align-items:center; gap:12px; }
.instr-icon { font-size:28px; }
.instr-text { display:flex; flex-direction:column; }
.instr-title { font-size:17px; font-weight:800; color:#E65100; letter-spacing:1px; }
.instr-sub { font-size:11px; color:#BF8A00; margin-top:2px; }
.instr-go { font-size:15px; color:#FF9800; font-weight:700; }

/* 生成完成结果弹窗 */
.result-modal-mask { z-index:600; }
.result-modal-card { background:#fff; border-radius:20px; padding:24px; width:82%; max-width:340px; text-align:center; }
.rm-cover { width:150px; height:150px; border-radius:18px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.15); }
.rm-emoji { font-size:64px; }
.rm-title { font-size:17px; font-weight:700; color:#333; }
.rm-voice { font-size:12px; color:#4FCD7A; margin-top:4px; }
.rm-audio { margin-top:12px; }
.rm-audio audio { width:100%; }
.rm-actions { display:flex; gap:8px; margin-top:16px; }
.btn-flex { flex:1; padding:11px 4px; font-size:13px; }
.btn-full { width:100%; margin-top:8px; }

/* ===== 创作双Tab ===== */
.subtabs { display:flex; gap:8px; margin-bottom:16px; background:#fff; border:1px solid #e2f2e6; border-radius:12px; padding:4px; }
.subtab { flex:1; padding:10px; border:none; background:transparent; border-radius:9px; font-size:14px; font-weight:500; color:#8aa395; cursor:pointer; }
.subtab.active { background:linear-gradient(135deg,#8BE8A3,#4FCD7A); color:#fff; font-weight:600; }
.panel { display:none; }
.panel.active { display:block; }

/* 卡片 */
.card { background:#fff; border:1px solid #e2f2e6; border-radius:14px; padding:16px; margin-bottom:12px; }
.row-between { display:flex; justify-content:space-between; align-items:center; }
.card-title { display:flex; align-items:center; font-size:15px; font-weight:700; color:#1f7a4d; }
.card-title .bar { width:5px; height:18px; border-radius:3px; margin-right:8px; }
.card-title-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.mini-btn { border:none; background:#f0fff4; color:#4FCD7A; padding:6px 14px; border-radius:8px; font-size:12px; cursor:pointer; font-weight:600; }
.muted { font-size:12px; color:#8aa395; margin-top:4px; }
.pill { background:#f0fff4; border-radius:16px; padding:6px 14px; font-size:13px; color:#4FCD7A; font-weight:600; }
.textarea { min-height:110px; resize:vertical; }

/* 曲风 chips */
.chip-list { display:flex; flex-wrap:wrap; gap:8px; }
.chip { padding:8px 16px; border-radius:20px; background:#f0fff4; color:#666; font-size:13px; border:none; cursor:pointer; }
.chip.sel { background:#4FCD7A; color:#fff; font-weight:600; }

/* 进度条 */
.progress-wrap { margin-top:16px; background:#f6fbf7; border:1px solid #dfefe3; border-radius:14px; padding:16px; }
.progress-bar { height:8px; background:#e8f5e9; border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; width:0; background:linear-gradient(90deg,#8BE8A3,#4FCD7A); border-radius:4px; transition:width .4s; }
.progress-text { margin-top:10px; font-size:13px; color:#4FCD7A; text-align:center; }
.comfort-text { margin-top:10px; padding:10px 14px; background:rgba(79,205,122,.06); border:1px solid rgba(79,205,122,.2); border-radius:10px; font-size:13px; color:#3E9E62; text-align:center; min-height:18px; }
.ai-note { text-align:center; color:#99ccaa; font-size:11px; margin:10px 0 30px; }

/* 按钮变体 */
.btn-warn { background:linear-gradient(135deg,#FF9800,#F57C00); color:#fff; font-weight:600; margin-top:10px; }
.btn-danger { background:#F44336; color:#fff; font-weight:600; margin-top:14px; }
.btn-success { background:linear-gradient(135deg,#4FCD7A,#2ea863); color:#fff; font-weight:600; margin-top:8px; }
.btn-purple { background:linear-gradient(135deg,#AB47BC,#7B1FA2); color:#fff; font-weight:600; margin-top:10px; }

/* ===== 声音克隆 ===== */
.hero-sound { background:linear-gradient(135deg,#4E342E 0%,#5D4037 50%,#6D4C41 100%); border-radius:16px; padding:22px; margin-bottom:14px; position:relative; overflow:hidden; }
.hero-title { font-size:20px; font-weight:800; color:#fff; }
.hero-sub { font-size:12px; color:rgba(255,255,255,.5); margin-top:4px; }
.hero-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.hero-tags span { padding:3px 12px; background:rgba(255,255,255,.08); border-radius:10px; font-size:11px; color:rgba(255,255,255,.5); }
.auth-banner { background:linear-gradient(135deg,#4E342E,#5D4037); border-radius:14px; padding:18px; margin-bottom:14px; border:1px solid rgba(255,152,0,.3); }
.auth-text { color:#FFB74D; font-size:13px; font-weight:500; }
.record-start { padding:30px 20px; border:2px dashed #4FCD7A; border-radius:14px; text-align:center; background:#fafffa; }
.record-icon { font-size:36px; }
.record-text { font-size:14px; color:#4FCD7A; margin-top:6px; }
.record-sub { font-size:11px; color:#99ccaa; margin-top:4px; }
.record-active { padding:24px 20px; border:2px solid #FF9800; border-radius:14px; text-align:center; background:#fff8e1; }
.record-dot { font-size:32px; }
.script-box { background:#4E342E; border-radius:14px; padding:16px; margin-bottom:12px; border:1px solid rgba(100,181,246,.15); }
.script-title { color:#64B5F6; font-size:13px; font-weight:600; text-align:center; }
.script-sub { color:rgba(255,255,255,.3); font-size:10px; font-weight:400; margin-left:4px; }
.script-body { margin-top:10px; max-height:170px; overflow-y:auto; color:rgba(255,255,255,.6); font-size:12px; line-height:1.7; white-space:pre-wrap; word-break:break-all; text-align:left; padding:10px; background:rgba(255,255,255,.03); border-radius:8px; }
.quota-text { text-align:center; color:#99ccaa; font-size:12px; padding:6px 0 20px; }
.voice-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f0fff4; }
.voice-avatar { width:38px; height:38px; border-radius:50%; background:#e8f5e9; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.voice-info { flex:1; }
.voice-name { font-size:14px; font-weight:500; color:#333; }
.voice-status { font-size:11px; }
.green { color:#4FCD7A; }
.use-btn { background:linear-gradient(135deg,#4FCD7A,#2E7D5E); color:#fff; }
.del-btn { background:#fef2f2; color:#F44336; margin-left:6px; }

/* ===== 弹窗 ===== */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:500; display:flex; align-items:center; justify-content:center; }
.modal-card.sheet { width:86%; max-width:400px; padding:10px 0 14px; border-radius:16px; text-align:left; }
.modal-head { padding:16px 20px 12px; text-align:center; font-weight:600; font-size:16px; color:#333; border-bottom:1px solid #f0f4f1; }
.sheet-list { max-height:340px; overflow-y:auto; }
.sheet-item { display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid #f5f8f6; font-size:14px; color:#333; cursor:pointer; }
.sheet-item:active { background:#f6fbf7; }
.sheet-item.dim { opacity:.5; }
.sel-green { color:#4FCD7A; font-weight:600; }
.free { color:#99ccaa; font-size:11px; margin-left:auto; }
.vocal-section { padding:14px 20px; background:#fafffa; border-bottom:1px solid #f0f4f1; }
.vocal-label { font-size:12px; color:#666; margin-bottom:8px; }
.vocal-row { display:flex; gap:8px; }
.vocal-chip { flex:1; padding:9px 0; border:none; border-radius:9px; background:#f0f4f1; font-size:13px; cursor:pointer; color:#666; }
.vocal-chip.sel { background:linear-gradient(135deg,#8BE8A3,#4FCD7A); color:#fff; font-weight:600; }
.new-voice-btn { padding:14px 20px; border-bottom:1px solid #f0f4f1; color:#4FCD7A; font-weight:500; font-size:14px; cursor:pointer; text-align:center; }
.new-voice-btn:active { background:#f6fbf7; }
.sheet-foot { display:flex; gap:0; margin-top:10px; padding:0 10px; }
.sheet-foot .btn { flex:1; }
.modal-card.auth { width:86%; max-width:380px; padding:0 0 14px; border-radius:16px; text-align:center; }
.auth-list { text-align:left; padding:16px 20px; }
.auth-item { display:flex; gap:10px; padding:9px 0; font-size:13px; color:#555; line-height:1.5; }
.auth-num { color:#4FCD7A; font-weight:700; flex-shrink:0; }

/* ===== 我的页 ===== */
.mine-card { background:linear-gradient(135deg,#2f3a5c,#1f2745); border-radius:16px; padding:18px; display:flex; align-items:center; gap:14px; color:#fff; margin-bottom:12px; }
.mine-avatar { width:58px; height:58px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:30px; flex-shrink:0; }
.mine-avatar-img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.edit-avatar-row { display:flex; align-items:center; gap:14px; margin:0 14px 14px; }
.edit-avatar-preview { width:64px; height:64px; border-radius:50%; background:#f0f7f2; border:1px dashed #4FCD7A; display:flex; align-items:center; justify-content:center; font-size:34px; overflow:hidden; flex-shrink:0; }
.edit-avatar-preview .mine-avatar-img { border-radius:50%; }
.edit-avatar-actions { flex:1; }
.mine-info { flex:1; min-width:0; }
.mine-name { font-size:18px; font-weight:800; }
.mine-bio { font-size:12px; color:rgba(255,255,255,.75); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mine-vip-badge { display:inline-block; margin-top:4px; background:linear-gradient(135deg,#FFD54F,#FFA000); color:#5D4037; font-size:11px; font-weight:800; padding:2px 8px; border-radius:8px; }
.mine-edit { background:rgba(255,255,255,.15); border:none; color:#fff; font-size:12px; padding:6px 10px; border-radius:10px; cursor:pointer; white-space:nowrap; }

.asset-card { display:flex; background:#fff; border-radius:14px; padding:14px 0; margin-bottom:12px; box-shadow:0 2px 10px rgba(0,0,0,.05); }
.asset-item { flex:1; text-align:center; cursor:pointer; }
.asset-num { display:block; font-size:20px; font-weight:800; color:#4FCD7A; }
.asset-label { font-size:11px; color:#999; }

.vip-card { background:linear-gradient(135deg,#2b2b2b,#111); border-radius:14px; padding:16px; display:flex; align-items:center; justify-content:space-between; color:#fff; margin-bottom:12px; cursor:pointer; }
.vip-card.active { background:linear-gradient(135deg,#F9A825,#E65100); }
.vip-left { display:flex; flex-direction:column; }
.vip-title { font-size:16px; font-weight:800; }
.vip-sub { font-size:11px; color:rgba(255,255,255,.8); margin-top:3px; }
.vip-go { color:#FFD54F; font-size:13px; font-weight:700; }
.vip-card.active .vip-go { color:#fff; }

.mine-menu { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:12px; }
.menu-item { background:#fff; border-radius:14px; padding:14px 4px; text-align:center; cursor:pointer; position:relative; box-shadow:0 2px 8px rgba(0,0,0,.05); }
.menu-item:active { transform:scale(.96); }
.mi-icon { display:block; font-size:22px; }
.mi-label { display:block; font-size:11px; color:#555; margin-top:6px; }
.mi-dot { position:absolute; top:8px; right:14px; width:8px; height:8px; border-radius:50%; background:#E53935; display:none; }

.signin-streak { text-align:center; font-size:14px; color:#F57C00; font-weight:700; margin:8px 0 10px; }
.signin-board { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:14px; }
.s-cell { background:#f3f4f6; border-radius:10px; padding:8px 2px; text-align:center; }
.s-cell .s-day { font-size:11px; color:#666; }
.s-cell .s-reward { font-size:9px; color:#999; margin-top:2px; }
.s-cell.today { background:linear-gradient(135deg,#FFB74D,#F57C00); color:#fff; }
.s-cell.today .s-day,.s-cell.today .s-reward { color:#fff; }
.s-cell.done { background:#4FCD7A; color:#fff; }
.s-cell.done .s-day,.s-cell.done .s-reward { color:#fff; }
.s-cell.bonus { border:2px solid #FFD54F; }

.task-stats { font-size:12px; color:#4FCD7A; font-weight:700; margin:8px 0; text-align:center; }
.task-list { max-height:52vh; overflow-y:auto; margin-bottom:10px; }
.task-item { display:flex; align-items:center; gap:10px; background:#f8fafc; border-radius:12px; padding:10px; margin-bottom:8px; }
.t-icon { font-size:24px; }
.t-info { flex:1; }
.t-name { font-size:14px; font-weight:700; color:#333; }
.t-desc { font-size:11px; color:#999; margin-top:2px; }
.t-do { flex-shrink:0; }

.invite-desc { font-size:12px; color:#666; text-align:center; margin:6px 0 12px; }
.invite-stats { display:flex; justify-content:center; gap:20px; margin-bottom:14px; }
.invite-stats div { text-align:center; }
.invite-stats span { display:block; font-size:22px; font-weight:800; color:#4FCD7A; }
.invite-stats small { font-size:11px; color:#999; }
.invite-code-box { background:#fff7e6; border:2px dashed #FFB74D; border-radius:12px; padding:12px; text-align:center; font-size:14px; margin-bottom:12px; }
.invite-code-box span { font-size:20px; font-weight:800; color:#E65100; letter-spacing:3px; }

.points-card { text-align:center; }
.points-balance { font-size:18px; font-weight:800; color:#4FCD7A; margin:8px 0 4px; }
.points-rate { font-size:12px; color:#999; margin-bottom:12px; }
.points-exchange-row { display:flex; gap:10px; justify-content:center; margin-bottom:14px; }
.points-ledger { max-height:30vh; overflow-y:auto; text-align:left; margin-bottom:10px; }
.ledger-item { font-size:12px; color:#333; padding:6px 0; border-bottom:1px solid #f5f5f5; display:flex; justify-content:space-between; }
.ledger-item small { color:#bbb; font-size:10px; }

.sub-list { max-height:52vh; overflow-y:auto; margin-bottom:10px; }
.sub-plan { border:2px solid #eee; border-radius:14px; padding:14px; margin-bottom:12px; }
.sub-plan .sp-name { font-size:15px; font-weight:800; color:#333; }
.sp-badge { background:#E53935; color:#fff; font-size:10px; padding:1px 6px; border-radius:6px; margin-left:4px; }
.sp-price { font-size:22px; font-weight:800; color:#4FCD7A; margin:4px 0; }
.sp-price small { font-size:12px; color:#999; font-weight:400; }
.sp-perks { font-size:12px; color:#666; margin-bottom:10px; }
.sp-perks div { padding:2px 0; }
.sp-btn { margin-top:2px; }
.sub-status { text-align:center; font-size:12px; color:#4FCD7A; font-weight:700; margin-bottom:8px; }

.mine-list { margin-bottom:10px; }
.mine-list-item { display:flex; align-items:center; justify-content:space-between; padding:14px 4px; border-bottom:1px solid #f2f2f2; font-size:14px; color:#333; cursor:pointer; }
.mine-list-item.danger { color:#E53935; }
.mine-list-item .arrow { color:#ccc; font-size:16px; }

.textarea { width:100%; box-sizing:border-box; border:1px solid #eee; border-radius:10px; padding:10px; font-size:14px; margin-bottom:10px; resize:vertical; }
.agreement-text { max-height:50vh; overflow-y:auto; margin-bottom:10px; }
.agp { white-space:pre-wrap; font-size:13px; color:#555; line-height:1.7; }
.btn-mini { background:#eef2f7; border:none; color:#555; font-size:11px; padding:4px 10px; border-radius:8px; cursor:pointer; }
.btn-mini.primary { background:#4FCD7A; color:#fff; }
.btn-mini:disabled { opacity:.5; cursor:default; }
.dl-link { display:inline-block; color:#4FCD7A; text-decoration:none; font-size:12px; margin-top:4px; }
.w-actions { margin-top:4px; }


/* ===== 广场 · 瀑布流双列（升级） ===== */
.square-sections{ display:flex; gap:8px; margin:4px 0 14px; }
.sq-sec{ flex:1; text-align:center; padding:8px 0; font-size:13px; color:#5a8a6c; background:#f0f8f2; border-radius:10px; cursor:pointer; transition:all .15s; }
.sq-sec.active{ background:linear-gradient(135deg,#4FCD7A,#37a86b); color:#fff; font-weight:600; box-shadow:0 3px 8px rgba(79,205,122,.25); }
.square-masonry{ display:flex; gap:12px; align-items:flex-start; }
.sq-col{ flex:1; min-width:0; display:flex; flex-direction:column; gap:12px; }
.sq-card{ background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 3px 12px rgba(31,122,77,.08); border:1px solid #eef7f0; }
.sq-cover{ width:100%; aspect-ratio:1/1.15; position:relative; display:flex; align-items:center; justify-content:center; }
.sq-cover .sq-emoji{ font-size:52px; opacity:.9; }
.sq-cover .sq-play{ position:absolute; right:10px; bottom:10px; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.9); color:#37a86b; display:flex; align-items:center; justify-content:center; font-size:18px; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.18); }
.sq-body{ padding:10px 12px 12px; }
.sq-title{ font-weight:600; font-size:15px; color:#1f3d2a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sq-meta{ display:flex; align-items:center; margin-top:8px; }
.sq-avatar{ width:22px; height:22px; border-radius:50%; background:#e8f5e9; display:flex; align-items:center; justify-content:center; font-size:12px; margin-right:6px; flex-shrink:0; }
.sq-user{ font-size:12px; color:#7ba28a; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sq-like{ font-size:12px; color:#ff6b81; flex-shrink:0; }
.sq-genre{ display:inline-block; margin-top:8px; font-size:11px; color:#37a86b; background:#eefaf2; padding:2px 8px; border-radius:8px; }
.sq-card audio{ display:none; }
.work-empty{ text-align:center; color:#9cafa3; padding:30px 0; font-size:14px; }


/* ===== MV 页面（紫色系，与小程序 mv 页一致） ===== */
.mv-hero{ position:relative; overflow:hidden; border-radius:0 0 28px 28px; padding:42px 20px 46px; background:linear-gradient(145deg,#1A0B2E 0%,#4A148C 45%,#7C4DFF 100%); color:#fff; }
.mv-hero-glow{ position:absolute; top:-40px; right:-30px; width:160px; height:160px; border-radius:50%; background:radial-gradient(circle,rgba(179,136,255,.4),transparent 70%); pointer-events:none; }
.mv-hero-title{ position:relative; font-size:22px; font-weight:700; letter-spacing:1px; line-height:1.4; }
.mv-hero-tags{ position:relative; display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.mv-hero-tags span{ padding:6px 12px; background:rgba(255,255,255,.14); border-radius:16px; font-size:12px; }
.mv-card{ background:#fff; border-radius:16px; padding:16px; margin-top:14px; box-shadow:0 4px 16px rgba(124,77,255,.08); }
.mv-card-title{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:17px; color:#4A148C; margin-bottom:12px; }
.mv-bar{ width:4px; height:20px; border-radius:2px; display:inline-block; }
.mv-textarea{ width:100%; box-sizing:border-box; height:96px; border:1px solid #eee; border-radius:10px; padding:12px; font-size:14px; color:#333; background:#fafafa; resize:vertical; }
.mv-hint{ font-size:11px; color:#99CCAA; margin-top:8px; }
.mv-template-card{ margin-bottom:2px; }
.mv-template-head{ display:flex; align-items:center; cursor:pointer; }
.mv-tpl-thumb{ width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg,#7C4DFF,#B388FF); display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.mv-tpl-text{ flex:1; margin-left:12px; }
.mv-tpl-name{ font-size:15px; font-weight:800; color:#4A148C; }
.mv-tpl-sub{ font-size:11px; color:#B388FF; margin-top:2px; }
.mv-tpl-arrow{ width:32px; height:32px; border-radius:50%; background:#F6F0FF; display:flex; align-items:center; justify-content:center; color:#7C4DFF; font-size:14px; flex-shrink:0; }
.mv-tpl-list{ margin-top:10px; }
.mv-tpl-item{ display:flex; align-items:center; padding:12px; border-radius:12px; margin-top:8px; background:#fff; border:1px solid #f1e8ff; cursor:pointer; }
.mv-tpl-item:active{ background:#f8f4ff; }
.mv-tpl-thumb-sm{ width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,#7C4DFF,#B388FF); display:flex; align-items:center; justify-content:center; font-size:20px; margin-right:12px; flex-shrink:0; }
.mv-tpl-item-name{ font-size:14px; font-weight:700; color:#333; }
.mv-tpl-item-desc{ font-size:11px; color:#999; margin-top:2px; }
.mv-tpl-arrow-sm{ margin-left:auto; color:#7C4DFF; font-size:16px; }
.mv-i2v{ margin-top:14px; border-top:1px solid #F0E6FF; padding-top:12px; }
.mv-i2v-label{ font-size:13px; font-weight:600; color:#5E35B1; margin-bottom:10px; }
.mv-upload{ width:100%; box-sizing:border-box; background:linear-gradient(135deg,#7C4DFF,#B388FF); border-radius:14px; padding:18px; text-align:center; color:#fff; cursor:pointer; box-shadow:0 4px 14px rgba(124,77,255,.2); }
.mv-upload-icon{ font-size:26px; }
.mv-upload-text{ font-size:15px; font-weight:700; margin-top:4px; }
.mv-upload-sub{ font-size:11px; opacity:.75; margin-top:2px; }
.mv-i2v-preview{ position:relative; display:inline-block; }
.mv-i2v-preview img{ width:90px; height:90px; border-radius:10px; object-fit:cover; }
.mv-i2v-remove{ position:absolute; top:-8px; right:-8px; width:22px; height:22px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; cursor:pointer; }
.mv-param{ margin-bottom:14px; }
.mv-param-label{ font-size:12px; color:#666; font-weight:500; margin-bottom:8px; }
.mv-opt-row{ display:flex; gap:8px; }
.mv-opt{ flex:1; text-align:center; padding:9px 0; border-radius:10px; font-size:13px; font-weight:500; background:#F5F5F5; color:#666; cursor:pointer; border:none; }
.mv-opt.active{ background:linear-gradient(135deg,#7C4DFF,#B388FF); color:#fff; }
.mv-opt-sub{ font-size:10px; color:#99CCAA; margin-top:6px; }
.mv-works-empty{ text-align:center; padding:14px 0; font-size:12px; color:#99CCAA; }
.mv-works-list{ max-height:210px; overflow-y:auto; }
.mv-work-item{ display:flex; align-items:center; gap:10px; padding:10px; border-bottom:1px solid #F0FFF4; cursor:pointer; }
.mv-work-item:last-child{ border-bottom:none; }
.mv-work-icon{ width:34px; height:34px; border-radius:8px; background:#E8F5E9; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mv-work-info{ flex:1; min-width:0; }
.mv-work-title{ font-size:13px; color:#333; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mv-work-date{ font-size:10px; color:#99CCAA; margin-top:2px; }
.mv-gen-wrap{ padding:22px 8px 6px; }
.mv-gen-btn{ background:linear-gradient(135deg,#7C4DFF,#B388FF); border-radius:14px; padding:15px; text-align:center; color:#fff; font-size:16px; font-weight:700; cursor:pointer; box-shadow:0 6px 18px rgba(124,77,255,.3); }
.mv-gen-btn:disabled{ opacity:.6; cursor:default; }
.mv-ai-note{ font-size:10px; color:#99CCAA; text-align:center; margin-top:10px; }
.mv-cost-bar{ display:flex; align-items:center; justify-content:space-between; background:#fff; border-radius:12px; padding:12px 14px; margin:6px 0 16px; box-shadow:0 2px 10px rgba(124,77,255,.08); }
.mv-cost-text{ flex:1; }
.mv-cost-line{ display:block; font-size:11px; color:#666; margin-top:2px; }
.mv-cost-line b{ color:#E65100; }
.mv-cost-line:first-child{ margin-top:0; }
.mv-recharge{ background:linear-gradient(135deg,#FF6D00,#FFA040); border-radius:10px; padding:8px 16px; color:#fff; font-size:12px; font-weight:600; cursor:pointer; margin-left:10px; flex-shrink:0; }
.mv-mask{ position:fixed; top:0; left:0; right:0; bottom:0; z-index:999; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; }
.mv-mask-card{ width:78%; background:#fff; border-radius:18px; padding:24px 20px; text-align:center; }
.mv-mask-emoji{ font-size:30px; }
.mv-mask-title{ font-size:15px; font-weight:600; color:#333; margin-top:10px; }
.mv-progress-track{ margin:16px 0 8px; height:8px; background:#F0F0F0; border-radius:4px; overflow:hidden; }
.mv-progress-fill{ height:100%; width:0%; background:linear-gradient(90deg,#7C4DFF,#B388FF); border-radius:4px; transition:width .3s; }
.mv-progress-pct{ font-size:11px; color:#B388FF; }
.mv-progress-sub{ font-size:10px; color:#999; margin-top:8px; }
.mv-result-card{ width:88%; background:#fff; border-radius:18px; padding:16px; }
.mv-result-title{ font-size:15px; font-weight:700; color:#333; text-align:center; margin-bottom:12px; }
.mv-video{ width:100%; height:220px; border-radius:10px; background:#000; }
.mv-result-actions{ display:flex; align-items:center; gap:10px; margin-top:14px; }
.mv-dl-link{ flex:1; text-align:center; background:linear-gradient(135deg,#7C4DFF,#B388FF); padding:11px; border-radius:10px; color:#fff; font-size:13px; font-weight:600; text-decoration:none; }
.mv-close-btn{ flex:1; background:#F5F5F5; border:none; padding:11px; border-radius:10px; color:#666; font-size:13px; cursor:pointer; }
.mv-tpl-modal{ max-height:85vh; overflow-y:auto; }
.mv-tpl-modal-name{ font-size:20px; font-weight:800; color:#2D1B36; margin-top:8px; }
.mv-tpl-modal-desc{ font-size:13px; color:#666; margin-top:6px; line-height:1.6; }
.mv-tpl-modal-box{ margin:16px 0; background:#F8F4FF; border-radius:12px; padding:12px; text-align:left; }
.mv-tpl-modal-label{ font-size:12px; color:#7C4DFF; margin-bottom:6px; }
.mv-tpl-modal-line{ font-size:12px; color:#444; line-height:1.6; margin-top:4px; }
