/* 耀发爆款云剪智能体 - 样式表 v1.0 */

:root {
    --bg-primary: #0f0a14;
    --bg-card: #1a1422;
    --bg-elevated: #221a2e;
    --bg-overlay: rgba(15, 10, 20, 0.85);

    --text-primary: #ffffff;
    --text-secondary: #d4c5e0;
    --text-muted: #8b7d9c;
    --text-faint: #5b4d6c;

    --accent: #ff4458;          /* 红色主调 */
    --accent-2: #ff7588;
    --accent-purple: #8b5cf6;
    --accent-blue: #5dadec;
    --accent-pink: #ff9eb5;
    --accent-gold: #f5b942;
    --accent-cyan: #4dd0e1;

    --grad-red: linear-gradient(135deg, #ff4458 0%, #b80f44 100%);
    --grad-blue: linear-gradient(135deg, #5dadec 0%, #4a90e2 100%);
    --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --grad-pink: linear-gradient(135deg, #ff7588 0%, #ff9eb5 100%);
    --grad-gold: linear-gradient(135deg, #f5b942 0%, #e69021 100%);
    --grad-cyan: linear-gradient(135deg, #4dd0e1 0%, #0097a7 100%);
    --grad-hero: linear-gradient(135deg, #ff4458 0%, #8b5cf6 50%, #5dadec 100%);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 8px 32px rgba(255, 68, 88, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 动态背景 */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.orb-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: var(--accent-purple); top: 40%; right: -80px; }
.orb-3 { width: 300px; height: 300px; background: var(--accent-cyan); bottom: -50px; left: 30%; }

/* 容器 */
.cloud-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

/* 顶栏 */
.cloud-header {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
}
.header-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: white;
}
.header-title {
    font-size: 16px;
    font-weight: 600;
}
.header-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.header-actions {
    display: flex;
    gap: 8px;
}
.header-btn {
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* 主内容 */
.cloud-main {
    padding: 0 0 100px;
}
.cloud-page {
    padding: 20px;
    animation: pageIn 0.3s ease;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ 首页 ============ */
.hero-section {
    text-align: center;
    padding: 32px 0 24px;
}
.hero-shield {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: var(--grad-red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    color: white;
}
.hero-shield svg { width: 48px; height: 48px; }
.hero-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.hero-slogan {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

/* 智能体知识库 */
.kb-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.kb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.kb-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}
.kb-title svg { width: 18px; height: 18px; color: var(--accent-2); }
.kb-tip {
    font-size: 12px;
    color: var(--text-muted);
}
.kb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.kb-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.kb-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 68, 88, 0.3); }
.kb-required { border: 1px solid rgba(255, 68, 88, 0.5); }
.kb-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kb-info { flex: 1; min-width: 0; }
.kb-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-required {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}
.kb-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 工作台 */
.workbench-section { margin-top: 24px; }
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary);
}
.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 16px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 16px;
    transition: transform 0.3s;
    box-shadow: var(--shadow);
}
.hero-card:hover { transform: translateY(-2px); }
.hero-card-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-red);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}
.hero-card-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 L100 50 M50 0 L50 100' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-card-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    text-align: center;
    color: white;
}
.hero-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: finger 1.5s infinite;
}
@keyframes finger {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.hero-card-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
}
.hero-card-sub {
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.workbench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.workbench-item {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 24px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.workbench-item:hover { background: var(--bg-card); border-color: rgba(255, 68, 88, 0.3); }
.wb-icon { font-size: 32px; margin-bottom: 8px; }
.wb-name { font-size: 13px; font-weight: 500; }

/* 底部 Tab */
.bottom-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
    z-index: 50;
}
.tab-item {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    padding: 8px;
    transition: color 0.2s;
}
.tab-item.active { color: var(--accent); }
.tab-emoji { display: block; font-size: 22px; margin-bottom: 4px; }

/* ============ 子页面通用 ============ */
.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 24px;
}
.back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
}
.page-title {
    font-size: 18px;
    font-weight: 600;
}
.more-btn {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
}
.upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
}

/* ============ 智能云剪 3 步骤 ============ */
.step-block {
    margin-bottom: 24px;
}
.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.step-row {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
}
.step-row:hover { border-color: var(--accent); }
.step-row-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============ 智能云剪 · 第 1 步「输入文案」 ============
 * 2026-09-21 新增：原来这一步的文案是靠 window.prompt() 临时问的，
 * 页面上没有任何输入框 —— 用户点「一键智能成片」会突然被弹窗拦住，
 * 看着像"又回到文案输入"。现在把输入框放回页面。
 */
.smart-text-area {
    width: 100%;
    min-height: 96px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.smart-text-area:focus { border-color: var(--accent); }
.smart-text-area::placeholder { color: var(--text-muted); }
/* 文案为空被拦下时闪一下边框，比弹窗温和 */
.smart-text-area.smart-text-warn {
    border-color: #f5a524;
    box-shadow: 0 0 0 2px rgba(245, 165, 36, 0.18);
}
.smart-text-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.smart-text-hint {
    flex: 1;
    min-width: 160px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-muted);
}
.step-text-required {
    color: var(--accent);
    font-size: 15px;
    flex: 1;
}
.step-text-disabled {
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
}
.step-hint {
    color: var(--accent);
    margin-right: 12px;
    font-size: 13px;
}
.step-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

.element-card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}
.element-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.element-label {
    font-size: 14px;
    font-weight: 600;
}
.element-actions { display: flex; gap: 8px; }
.element-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    cursor: pointer;
}

.voice-selector {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}
.voice-item, .voice-add {
    flex: 0 0 64px;
    text-align: center;
    cursor: pointer;
}
.voice-add {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.2s;
}
.voice-add:hover { border-color: var(--accent); color: var(--accent); }
.voice-add-icon { font-size: 24px; }
.voice-add-text { font-size: 10px; margin-top: 2px; }
.voice-item {
    position: relative;
}
.voice-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid transparent;
    position: relative;
    transition: all 0.2s;
}
.voice-play::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-30%, -50%);
    border-left: 16px solid var(--text-muted);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.voice-item:hover .voice-play { border-color: var(--accent); }
.voice-item-active .voice-play {
    background: var(--accent);
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(255, 68, 88, 0.2);
}
.voice-item-active .voice-play::before { border-left-color: white; }
.voice-name {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.voice-item-active .voice-name { color: var(--accent); }

.element-row {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}
.element-row-label {
    font-size: 14px;
    font-weight: 500;
}
.element-row-action {
    color: var(--accent);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.t-icon {
    background: var(--accent);
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* ============ 按钮 ============ */
.primary-btn {
    background: var(--grad-red);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s;
}
.primary-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.primary-btn-large { width: 100%; padding: 16px; font-size: 16px; margin-top: 16px; }
.primary-btn-block { width: 100%; }
.primary-btn-flex { flex: 1; }

.bottom-action {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}
.qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* ============ 爆款智能成片 Gerow-AI ============ */
.gerow-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    justify-content: center;
}
.gerow-icon {
    font-size: 48px;
    background: var(--grad-purple);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gerow-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}
.gerow-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.upload-zone {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    margin-bottom: 16px;
}
.upload-zone:hover { border-color: var(--accent-purple); }
.upload-icon { font-size: 56px; margin-bottom: 8px; color: var(--text-muted); }
.upload-text { color: var(--text-secondary); font-size: 14px; }

.profile-hint-row {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 12px;
}
.profile-hint-arrow {
    color: var(--accent);
    font-size: 16px;
}
.profile-hint-info {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}
.profile-summary {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 4px;
    margin-bottom: 16px;
}
.profile-summary em {
    color: var(--accent);
    font-style: normal;
}

.mode-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.mode-option {
    flex: 1;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.mode-option input { display: none; }
.mode-option:has(input:checked) { border-color: var(--accent); background: rgba(255, 68, 88, 0.08); }
.mode-check {
    width: 18px; height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-input-block {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
}
.text-input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.text-input-block textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
}

/* ============ 爆款3秒开头文案 ============ */
.hook-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 24px;
}
.hook-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.hook-botname { font-size: 16px; font-weight: 600; }

.hook-messages {
    padding-bottom: 120px;
}
.hook-msg {
    margin-bottom: 16px;
}
.hook-msg-meta {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 8px;
}
.hook-msg-avatar-mini {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 6px;
}
.hook-msg-bubble {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 90%;
    position: relative;
}
.hook-msg-blue {
    background: var(--accent-blue);
    color: white;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin: 8px auto;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.6;
}
.hook-msg-tip {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-gold);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
}
.hook-select-btn {
    width: 90%;
    margin: 12px auto 0;
    display: block;
    background: var(--grad-purple);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.hook-input-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 50;
}
.hook-category {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}
.hook-input-wrap {
    flex: 1;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hook-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
}
.hook-send {
    background: var(--accent-2);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

/* ============ 去水印 ============ */
.dewm-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 0 24px;
}
.dewm-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    margin-bottom: 16px;
}
.dewm-history {
    margin-top: 32px;
    padding-bottom: 80px;
}
.dewm-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.dewm-history-title {
    font-size: 13px;
    color: var(--text-secondary);
}
.dewm-history-clear {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 18px;
}
.dewm-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============ 对标账号 ============ */
.copy-tip {
    text-align: right;
    margin: 16px 0 24px;
}
.copy-tip a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}
.copy-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    margin-bottom: 16px;
}

/* ============ 模态框 ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 101;
}
.modal-content {
    position: relative;
    background: var(--bg-card);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
    z-index: 102;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-large { max-height: 92vh; }
.modal-medium { max-height: 80vh; }
.modal-small { max-height: 70vh; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-shield {
    font-size: 24px;
}
.modal-title {
    font-size: 16px;
    font-weight: 600;
}
.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}
.modal-banner {
    background: var(--grad-purple);
    color: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.modal-warn {
    background: rgba(255, 152, 0, 0.1);
    color: var(--accent-gold);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 12px;
    margin-bottom: 16px;
}

/* 表单 */
.form-section { margin-bottom: 16px; }
.form-section-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 0;
    letter-spacing: 2px;
}
.form-item { margin-bottom: 14px; }
.form-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-hint {
    color: var(--text-muted);
    font-size: 11px;
}
.form-input, .form-textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
}
.form-textarea {
    resize: vertical;
    font-family: inherit;
}
.radio-row { display: flex; gap: 8px; }
.radio-pill {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.radio-pill:has(input:checked) {
    background: var(--accent);
    color: white;
}
.radio-pill input { display: none; }
.modal-footer {
    margin: 24px -20px -20px;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* 列表（选择模板/分类等） */
.modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal-list-item {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.modal-list-item:hover { border-color: var(--accent); background: rgba(255, 68, 88, 0.05); }
.modal-list-item-title { font-size: 14px; font-weight: 600; }
.modal-list-item-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 声音分类选择器 */
.voice-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
}
.voice-cat-pill {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
}
.voice-cat-pill.active {
    background: var(--accent);
    color: white;
}
.voice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.voice-list-item {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.voice-list-item:hover { border-color: var(--accent); }
.voice-list-item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.voice-list-item-meta {
    font-size: 11px;
    color: var(--text-muted);
}
.voice-list-item-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.voice-list-item-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 字幕样式 */
.subtitle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.subtitle-item {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.subtitle-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.subtitle-preview {
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}
.subtitle-default { background: rgba(0,0,0,0.4); color: white; }
.subtitle-bold { background: rgba(255,255,255,0.1); color: var(--text-primary); font-weight: 900; }
.subtitle-neon {
    background: rgba(0,0,0,0.6);
    color: #ff0080;
    text-shadow: 0 0 8px #ff0080, 0 0 16px #ff0080;
}
.subtitle-pink {
    background: rgba(255, 192, 203, 0.2);
    color: #ff85a2;
}
.subtitle-classic {
    background: white;
    color: black;
}
.subtitle-minimal {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: normal;
}

/* 结果区域 */
.gerow-result, .dewm-result, .copy-result {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.gerow-result h3, .dewm-result h3, .copy-result h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.result-block, .dewm-result-block, .copy-result-block {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* 我的页 */
.mine-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 24px;
    cursor: pointer;
}
.mine-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.mine-info { flex: 1; }
.mine-name { font-size: 16px; font-weight: 600; }
.mine-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.mine-arrow { color: var(--text-muted); font-size: 24px; }
.mine-menu {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.mine-menu-item {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mine-menu-item:last-child { border-bottom: none; }
.mine-menu-item:hover { background: rgba(255, 255, 255, 0.04); }
.mine-menu-item span:nth-child(2) { flex: 1; }
.mine-menu-icon { font-size: 20px; }

/* 声音库 */
.library-tip {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.library-subtip { color: var(--text-muted); margin-top: 4px; font-size: 11px; }
.library-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
}
.library-cat {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
}
.library-cat-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.library-cat-icon { font-size: 20px; }
.library-cat-label { flex: 1; }
.library-cat-count {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
}
.library-cat-arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: transform 0.2s;
}
.library-cat.expanded .library-cat-arrow { transform: rotate(180deg); }
.library-cat-info {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--text-muted);
}
.library-cat-voices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}
.library-voice-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.library-voice-info { flex: 1; min-width: 0; }
.library-voice-name {
    font-size: 14px;
    font-weight: 500;
}
.library-voice-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.library-voice-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.library-voice-tag {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
}
.library-voice-tag.warn {
    background: rgba(255, 152, 0, 0.2);
    color: var(--accent-gold);
}
.library-voice-play {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.toast.show { opacity: 1; }

/* 滚动条 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 4px; }

/* ===== 背景音乐选择弹窗（2026-09-21 新增） ===== */
.bgm-body { max-height: 62vh; overflow-y: auto; }
.bgm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bgm-hint { margin-top: 10px; font-size: 11px; line-height: 1.7; color: var(--text-muted); }
.bgm-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.bgm-cat {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.bgm-cat:hover { border-color: var(--accent); }
.bgm-cat.active {
    background: rgba(255, 68, 88, 0.12);
    border-color: var(--accent);
    color: var(--text-primary);
    font-weight: 600;
}
.bgm-list { display: flex; flex-direction: column; gap: 8px; }
.bgm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.bgm-item:hover { border-color: var(--accent); }
.bgm-item.active { border-color: var(--accent); background: rgba(255, 68, 88, 0.08); }
.bgm-item-name { font-size: 13px; }
.bgm-item-cat { font-size: 11px; color: var(--text-muted); }

/* ===== AI 提炼标题弹窗（2026-09-21 新增） ===== */
.title-field { display: flex; flex-direction: column; gap: 6px; }
.title-field label { font-size: 12px; color: var(--text-muted); }
.title-style-label { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ===== 成片设置面板（2026-09-22 新增：一键智能成片的全部要素） ===== */
.mode-tip { margin: 8px 0 2px; font-size: 11px; line-height: 1.7; color: var(--text-muted); }
.opt-panel {
    margin: 14px 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.opt-head {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px; cursor: pointer; font-size: 13px; font-weight: 600;
    color: var(--text-primary);
}
.opt-head-sub { flex: 1; font-size: 11px; font-weight: 400; color: var(--text-muted); text-align: right; }
.opt-arrow { font-size: 11px; color: var(--text-muted); }
.opt-body { padding: 4px 14px 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.opt-row {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}
.opt-label { width: 88px; flex-shrink: 0; font-size: 12px; color: var(--text-secondary); }
.opt-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.opt-select, .opt-input {
    flex: 1; min-width: 90px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    padding: 7px 9px;
    outline: none;
}
.opt-select:focus, .opt-input:focus { border-color: var(--accent); }
.opt-select option { background: #20202b; color: #fff; }
.opt-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.opt-check input { accent-color: var(--accent); }
.opt-note { font-size: 10px; color: var(--text-muted); }
.opt-mini-btn {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 11px; padding: 6px 10px; cursor: pointer;
    white-space: nowrap;
}
.opt-mini-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.opt-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-top: 10px; font-size: 10px; color: var(--text-muted);
}

/* ===== 视频链接采集 + 原文案改写（二创去重） ===== */
.link-box {
    margin-top: 12px; padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.link-box-title { font-size: 12px; color: var(--text-primary); font-weight: 600; margin-bottom: 6px; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-row .opt-input { flex: 1; }
.link-textarea { width: 100%; resize: vertical; line-height: 1.5; margin-top: 4px; }
.link-note { font-size: 10px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.opt-row-block { align-items: flex-start; }
.opt-dedup { display: flex; flex-wrap: wrap; gap: 8px 14px; flex: 1; padding-top: 2px; }
.opt-dedup .opt-check { width: auto; }
