/* ========== CreateVoice 首页样式 ========== */

.home-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #fff;
}

/* ========== 顶部导航 ========== */
.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    font-size: 32px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-domain {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 10px 24px;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.navbar-toggle {
    display: none;
}

/* ========== Hero Section ========== */
.hero-section {
    padding: 160px 32px 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-slogan {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slogan-chinese {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.slogan-english {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.cta-primary {
    padding: 16px 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.cta-secondary {
    padding: 16px 40px;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    color: #a5b4fc;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.8);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: #a5b4fc;
}

/* Hero 视觉元素 */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visual-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.visual-card.clickable {
    cursor: pointer;
}

.visual-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.visual-card.coming-soon {
    opacity: 0.7;
}

.visual-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.visual-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.visual-desc {
    font-size: 14px;
    color: #94a3b8;
}

.coming-soon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* ========== 功能特性 ========== */
.features-section {
    padding: 120px 32px;
    background: rgba(15, 23, 42, 0.5);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #94a3b8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
}

.feature-card.highlight {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.05);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.coming-badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.feature-desc {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    color: #cbd5e1;
    font-size: 14px;
}

/* ========== 会员方案 ========== */
.pricing-section {
    padding: 120px 32px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
}

.pricing-card.featured {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.pricing-badge {
    font-size: 40px;
    margin-bottom: 16px;
}

.pricing-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 32px;
}

.pricing-price span {
    font-size: 18px;
    color: #94a3b8;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.pricing-features li {
    font-size: 15px;
    color: #cbd5e1;
}

.pricing-btn {
    width: 100%;
    padding: 14px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-btn:hover {
    background: rgba(99, 102, 241, 0.3);
}

.pricing-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: white;
}

.pricing-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* ========== 新增会员方案样式 ========== */
.pricing-notice {
    text-align: center;
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 14px;
    display: inline-block;
}

.pricing-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.pricing-gift {
    font-size: 14px;
    color: #fbbf24;
    margin-bottom: 24px;
    font-weight: 500;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.pricing-card {
    position: relative;
}

.pricing-card.premium {
    border-color: rgba(245, 158, 11, 0.8);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
}

.pricing-card.premium:hover {
    border-color: rgba(245, 158, 11, 1);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3);
}

/* 价格对比区域 */
.pricing-comparison {
    margin-top: 80px;
    padding: 40px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
}

.pricing-comparison h4 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.comparison-item {
    text-align: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.comparison-label {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
}

.comparison-value {
    font-size: 32px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.comparison-value.highlight {
    color: #6366f1;
    font-size: 40px;
}

.comparison-desc {
    font-size: 14px;
    color: #64748b;
}

.comparison-note {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式调整 - 5列布局 */
@media (max-width: 1400px) {
    .pricing-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .pricing-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .pricing-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ========== Footer ========== */
.home-footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 80px 32px 32px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-slogan {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slogan-cn {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.slogan-en {
    font-size: 16px;
    color: #94a3b8;
}

.footer-domain {
    font-size: 14px;
    color: #6366f1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 1fr;
}

.footer-bottom p {
    color: #64748b;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .slogan-chinese {
        font-size: 36px;
    }

    .slogan-english {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* ========== 订阅页面样式 ========== */
.subscription-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #fff;
    padding-top: 80px;
}

/* ========== 顶部导航 ========== */
.subscription-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(148, 163, 184, 0.5);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.points-value {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
}

/* ========== Tab切换 ========== */
.subscription-tabs {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 32px;
    display: flex;
    gap: 16px;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* ========== 主容器 ========== */
.subscription-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-intro p {
    font-size: 18px;
    color: #94a3b8;
}

/* ========== 会员订阅区域 ========== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.membership-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.membership-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.membership-card.recommended {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.membership-card.premium {
    border-color: rgba(245, 158, 11, 0.8);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
}

.membership-card.premium:hover {
    border-color: rgba(245, 158, 11, 1);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tier-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #6366f1;
}

.membership-card.premium .tier-icon {
    color: #f59e0b;
}

.tier-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tier-price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #6366f1;
}

.membership-card.premium .price-amount {
    color: #f59e0b;
}

.price-period {
    font-size: 14px;
    color: #94a3b8;
    margin-left: 4px;
}

.tier-gift {
    font-size: 14px;
    color: #fbbf24;
    margin-bottom: 24px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gift-value {
    font-size: 12px;
    color: #94a3b8;
}

.tier-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #cbd5e1;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-features li {
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.purchase-btn {
    width: 100%;
    padding: 14px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.purchase-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.purchase-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: white;
}

.purchase-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.purchase-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.membership-notes {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.membership-notes h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-notes ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-notes li {
    font-size: 15px;
    color: #cbd5e1;
    padding-left: 24px;
    position: relative;
}

.membership-notes li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #6366f1;
    font-size: 20px;
}

/* ========== 积分充值区域 ========== */
.topup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.topup-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.topup-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.topup-card.featured {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.bonus-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.topup-amount {
    font-size: 48px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 24px;
}

.topup-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.base-points {
    font-size: 14px;
    color: #94a3b8;
}

.bonus-points {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.topup-total {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.total-points {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
}

.topup-equivalent {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.topup-notes {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.topup-notes h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topup-notes ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topup-notes li {
    font-size: 15px;
    color: #cbd5e1;
    padding-left: 24px;
    position: relative;
}

.topup-notes li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #6366f1;
    font-size: 20px;
}

/* 价格计算器 */
.pricing-calculator {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.pricing-calculator h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.calc-item {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.calc-label {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.calc-value {
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
}

/* ========== 安全保障 ========== */
.security-section {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.security-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 16px;
}

.security-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.security-section p {
    font-size: 16px;
    color: #94a3b8;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1400px) {
    .membership-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subscription-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .subscription-tabs {
        flex-direction: column;
    }

    .membership-grid,
    .topup-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== 创声工作台样式 ========== */

/* 全局重置 */
.workbench-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.workbench-page {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========== 顶部导航栏 ========== */
.top-navbar {
    height: 64px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #818cf8;
    font-size: 18px;
}

.back-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-title {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
}

.doc-meta {
    font-size: 13px;
    color: #9ca3af;
}

.nav-right {
    display: flex;
    gap: 12px;
}

.action-btn {
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

/* 线框样式按钮 */
.btn-outline-warning {
    background: transparent;
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    transform: translateY(-1px);
}

/* ========== 工具栏 ========== */
.toolbar {
    height: 56px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 8px;
    overflow-x: auto;
    flex-shrink: 0;
}

.toolbar-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(71, 85, 105, 0.2);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn:hover {
    background: rgba(71, 85, 105, 0.4);
    border-color: rgba(148, 163, 184, 0.4);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(148, 163, 184, 0.2);
    margin: 0 4px;
}

/* ========== 合成进度提示 ========== */
.synthesis-status-banner {
    margin: 16px 24px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-left: 4px solid #6366f1;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.synthesis-status-banner.completed {
    border-left-color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(17, 24, 39, 0.65);
}

.synthesis-status-banner.has-error {
    border-left-color: #f87171;
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(56, 18, 24, 0.55);
}

.synthesis-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e2e8f0;
    font-size: 14px;
}

.status-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.status-meta {
    color: #94a3b8;
    font-size: 13px;
}

.synthesis-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.synthesis-progress-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
    position: relative;
}

.synthesis-progress-value {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    transition: width 0.4s ease;
}

.synthesis-status-banner.completed .synthesis-progress-value {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.synthesis-status-banner.has-error .synthesis-progress-value {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.synthesis-progress-percent {
    min-width: 48px;
    text-align: right;
    font-weight: 600;
    color: #e2e8f0;
}

.synthesis-status-message {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.synthesis-status-message.error {
    color: #fda4af;
}

.synthesis-status-summary {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.synthesis-status-summary .summary-warning {
    color: #fbbf24;
}

.synthesis-status-header .synthesis-cancel-btn {
    margin-left: 12px;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ef4444;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
}

.synthesis-status-header .synthesis-cancel-btn:hover {
    background-color: rgba(239, 68, 68, 0.06);
}

/* ========== 主工作区容器 ========== */
.workbench-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.workbench-container.with-player {
    /* 当显示完整音频播放器时，高度会稍微减少 */
}

/* ========== 加载状态 ========== */
.workbench-loading {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #e5e7eb;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 12种角色颜色 ========== */
.color-1 { border-left-color: #ec4899 !important; }
.color-2 { border-left-color: #3b82f6 !important; }
.color-3 { border-left-color: #8b5cf6 !important; }
.color-4 { border-left-color: #f59e0b !important; }
.color-5 { border-left-color: #10b981 !important; }
.color-6 { border-left-color: #ef4444 !important; }
.color-7 { border-left-color: #06b6d4 !important; }
.color-8 { border-left-color: #f97316 !important; }
.color-9 { border-left-color: #84cc16 !important; }
.color-10 { border-left-color: #a855f7 !important; }
.color-11 { border-left-color: #ec4899 !important; }
.color-12 { border-left-color: #14b8a6 !important; }

/* 画本导出用浅色背景 */
.preview-segment.color-1 { background-color: #fce7f3; border-color: #ec4899; }
.preview-segment.color-2 { background-color: #dbeafe; border-color: #3b82f6; }
.preview-segment.color-3 { background-color: #ede9fe; border-color: #8b5cf6; }
.preview-segment.color-4 { background-color: #fef3c7; border-color: #f59e0b; }
.preview-segment.color-5 { background-color: #d1fae5; border-color: #10b981; }
.preview-segment.color-6 { background-color: #fee2e2; border-color: #ef4444; }
.preview-segment.color-7 { background-color: #cffafe; border-color: #06b6d4; }
.preview-segment.color-8 { background-color: #fed7aa; border-color: #f97316; }
.preview-segment.color-9 { background-color: #ecfccb; border-color: #84cc16; }
.preview-segment.color-10 { background-color: #f3e8ff; border-color: #a855f7; }
.preview-segment.color-11 { background-color: #fce7f3; border-color: #ec4899; }
.preview-segment.color-12 { background-color: #ccfbf1; border-color: #14b8a6; }

/* ========== 章节列表样式 ========== */
.chapter-list-panel {
    width: 320px;
    background: rgba(30, 41, 59, 0.8);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.6);
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 13px;
    color: #9ca3af;
}

.chapter-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chapter-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-item:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.4);
    transform: translateY(-2px);
}

.chapter-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.chapter-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chapter-name {
    font-size: 17px;
    font-weight: 600;
    color: #f9fafb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-id {
    font-size: 11px;
    color: #6b7280;
}

/* 🔥 参考项目管理界面的统计信息样式 */
.chapter-stats {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.stat-value {
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.chapter-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-text {
    color: #d1d5db;
    font-weight: 500;
}

.chapter-loading,
.chapter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.loading-text {
    font-size: 14px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-text {
    font-size: 14px;
}

.chapter-actions {
    padding: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.6);
}

.chapter-action-btn {
    width: 100%;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #818cf8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chapter-action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    transform: translateY(-1px);
}

/* ========== 智能分段进度增强 ========== */
.segmentation-progress-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.3s ease;
}

.segmentation-progress-card {
    width: 100%;
    max-width: 760px;
    padding: 28px 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.45);
    position: relative;
    overflow: hidden;
}

.segmentation-progress-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.15), transparent 55%);
    pointer-events: none;
}

.seg-progress-header {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.seg-progress-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.16);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: inset 0 0 18px rgba(99, 102, 241, 0.25);
}

.seg-progress-text h3 {
    font-size: 20px;
    color: #f8fafc;
    margin-bottom: 6px;
}

.seg-progress-text p {
    color: rgba(148, 163, 184, 0.85);
    font-size: 13px;
    letter-spacing: 0.2px;
}

.seg-progress-percent {
    margin-left: auto;
    font-size: 24px;
    font-weight: 600;
    color: #a5b4fc;
}

.seg-progress-bar {
    position: relative;
    height: 10px;
    background: rgba(99, 102, 241, 0.18);
    border-radius: 6px;
    margin: 22px 0 12px;
    overflow: hidden;
}

.seg-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #38bdf8 100%);
    border-radius: 6px;
    transition: width 0.45s ease;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.seg-progress-bar-glow {
    position: absolute;
    inset: -30px -50px 10px;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.18), transparent 60%);
    pointer-events: none;
}

.seg-progress-stage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.seg-stage-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.seg-stage-item--active {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
}

.seg-stage-item--done {
    border-color: rgba(34, 197, 94, 0.35);
}

.seg-stage-item--done .seg-stage-dot {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.seg-stage-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    flex-shrink: 0;
}

.seg-stage-title {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
}

.seg-stage-desc {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.8);
}

.seg-progress-tip {
    margin-top: 18px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.75);
    text-align: right;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
.chapter-list::-webkit-scrollbar {
    width: 6px;
}

.chapter-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chapter-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chapter-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .workbench-container {
        flex-direction: column;
    }

    .chapter-list-panel {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    }
}

@media (max-width: 768px) {
    .chapter-list-panel {
        height: 250px;
    }

    .chapter-stats {
        gap: 12px;
    }

    .stat-value {
        font-size: 12px;
        padding: 1px 6px;
    }
}

/* ========== 章节列表状态行样式 ========== */
.chapter-status-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-top: 8px;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.status-group .status-text {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
}

.status-group .anticon {
    font-size: 11px !important;
}

.stats-info {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.stat-text {
    font-size: 11px;
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 一键生成成品（Demo） */
.final-audio-modal {
position: fixed; inset: 0; background: rgba(0,0,0,.45);
z-index: 2147483647; display: flex; align-items: center; justify-content: center;
}
.final-audio-card {
width: 760px; max-width: 94vw; background: var(--bg-secondary);
color: var(--text-primary); border: 1px solid rgba(255,255,255,.08);
border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.final-audio-titlebar, .final-audio-footer {
padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
border-bottom: 1px solid rgba(255,255,255,.08);
}
.final-audio-footer { border-bottom: none; border-top: 1px solid rgba(255,255,255,.08); }
.final-audio-body { padding: 12px 16px; }
.fa-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.fa-row label { min-width: 76px; color: var(--text-secondary); font-size: 12px; }
.fa-row input {
flex: 1 1 auto; background: var(--bg-tertiary);
border: 1px solid var(--border-color); border-radius: 6px;
color: var(--text-primary); padding: 6px 8px;
}
.final-audio-log {
background: var(--bg-tertiary); border: 1px solid rgba(255,255,255,.08);
border-radius: 6px; padding: 8px; max-height: 40vh; overflow: auto;
font-family: ui-monospace,Menlo,Consolas,monospace; font-size: 12px; white-space: pre-wrap;
}

/* ========== 保存按钮动画 ========== */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
        transform: scale(1.02);
    }
}

.toolbar-btn-save:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

.toolbar-btn-save:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
}
/* ========== 左侧章节面板样式 ========== */

.chapter-list-panel {
    width: 280px;
    background: rgba(30, 41, 59, 0.4);
    border-right: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

/* ========== 面板头部 ========== */
.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    flex-shrink: 0;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 13px;
    color: #94a3b8;
}

/* ========== 章节列表 ========== */
.chapter-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    /* 🔥 限制最大高度，默认显示7个章节 */
    max-height: calc(7 * 80px + 24px);
    /* 7个章节高度 + padding */
    min-height: 200px;
}

/* 自定义滚动条 */
.chapter-list::-webkit-scrollbar {
    width: 6px;
}

.chapter-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.chapter-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.chapter-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ========== 章节项 ========== */
.chapter-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(71, 85, 105, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.chapter-item:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(2px);
}

.chapter-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* 章节头部 */
.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.chapter-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-id {
    font-size: 11px;
    color: #64748b;
    background: rgba(100, 116, 139, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 章节统计信息 */
.chapter-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
}

.stat-value {
    font-size: 12px;
    font-weight: 500;
    color: #e5e7eb;
}

/* 章节状态 */
.chapter-status {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.status-text {
    color: #94a3b8;
}

/* 加载状态 */
.chapter-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #94a3b8;
}

.loading-text {
    font-size: 13px;
}

/* ========== 章节操作 ========== */
.chapter-actions {
    padding: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    flex-shrink: 0;
}

.chapter-action-btn {
    width: 100%;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #a5b4fc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.2s;
}

.chapter-action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* ========== 空状态 ========== */
.chapter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    gap: 8px;
}

.chapter-empty .empty-icon {
    font-size: 36px;
    opacity: 0.5;
}

.chapter-empty .empty-text {
    font-size: 13px;
}

/* ========== 分集（Episode）列表 ========== */
.episode-list {
    margin: 4px 0 8px 16px;
    border-left: 1px dashed rgba(148, 163, 184, 0.4);
    padding-left: 8px;
}

.episode-item {
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid transparent;
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
}

.episode-item:hover {
    background: rgba(30, 64, 175, 0.5);
    border-color: rgba(129, 140, 248, 0.7);
}

.episode-item.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.75) 0%, rgba(129, 140, 248, 0.85) 100%);
    border-color: rgba(191, 219, 254, 0.9);
    color: #f9fafb;
}

.episode-title {
    font-weight: 500;
}

.episode-meta {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.9);
}
/* ========== 分段卡片样式（紧凑型） ========== */

.segment-card {
    background: rgba(15, 23, 42, 0.22);
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.segment-card:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateX(2px);
}

.segment-card.playing {
    background: rgba(99, 102, 241, 0.15);
    border-left-color: #818cf8;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.segment-card.status-generating {
    border-left-color: #6366f1 !important;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.segment-card.status-completed {
    background: rgba(15, 23, 42, 0.22);
    border-left-color: #60a5fa !important;
    box-shadow: none;
}

.segment-card.status-failed {
    border-left-color: #f87171 !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.2);
}

/* ========== 分段头部：单行显示所有元信息 ========== */
.segment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.segment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    font-size: 12px;
}

/* 角色标签 */
.character-label {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.character-label.clickable:hover {
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
}

/* 音色名称 */
.voice-name {
    color: #cbd5e1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.voice-name.clickable {
    cursor: pointer;
}

.voice-name.clickable:hover {
    background: rgba(71, 85, 105, 0.3);
    color: #e0e7ff;
}

/* 情感徽章 */
.emotion-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 146, 60, 0.18);
    color: #fed7aa;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(253, 186, 116, 0.3);
}

.emotion-badge.is-auto {
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.35);
}

.emotion-badge.is-manual {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.35);
}

.emotion-badge.is-loading {
    opacity: 0.8;
}

.emotion-emoji {
    font-size: 14px;
}

.emotion-label {
    font-weight: 600;
}

.emotion-confidence {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.emotion-refresh-btn {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.emotion-refresh-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 分段统计 */
.segment-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.stat-item {
    padding: 2px 6px;
    background: rgba(71, 85, 105, 0.2);
    border-radius: 3px;
}

/* 状态徽章 */
.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
}

.status-badge.status-generating {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.status-badge.status-completed {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.28);
}

.status-badge.status-failed {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.25);
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========== 操作按钮 ========== */
.segment-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(71, 85, 105, 0.2);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.segment-action-btn {
    padding: 4px 10px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.segment-action-btn:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
    color: #fff;
}

.segment-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.segment-action-btn.danger {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
}

.segment-action-btn.danger:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.status-badge.status-unsaved {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.2);
}

.status-badge.status-deleted {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.3);
    text-decoration: line-through;
}

.icon-btn:hover {
    background: rgba(71, 85, 105, 0.4);
    border-color: rgba(148, 163, 184, 0.4);
    transform: scale(1.05);
}

.play-btn.loading {
    cursor: wait;
    opacity: 0.75;
}

.play-btn.playing {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

.segment-playback-hint {
    font-size: 12px;
    color: #a5b4fc;
    padding: 0 6px;
}

.segment-actions .flag-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    cursor: pointer;
}

.segment-actions .flag-btn.flag-on {
    border-color: #f97316;
    background: rgba(248, 113, 113, 0.15);
    color: #fed7aa;
}

.segment-actions .flag-btn:hover {
    border-color: #fbbf24;
}

.setting-btn {
    color: #64748b;
}

.setting-btn:hover {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(100, 116, 139, 0.5);
    color: #94a3b8;
}

/* ========== 分段文本内容 ========== */
.segment-content-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.segment-content {
    flex: 1;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
    min-height: 40px;
    outline: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.segment-content:focus {
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.segment-content:hover {
    background: rgba(15, 23, 42, 0.4);
}

/* 合成状态提示 */
.segment-synthesis-hint {
    margin: 8px 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.segment-synthesis-hint .hint-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.segment-synthesis-hint.generating {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.25);
    color: #c7d2fe;
}

.segment-synthesis-hint.failed {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
    flex-direction: row;
    align-items: center;
}

.segment-synthesis-hint.failed span {
    flex: 1;
}

.hint-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #818cf8;
    animation: hintPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.6);
}

.segment-inline-progress {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.2);
    overflow: hidden;
}

.segment-inline-progress-inner {
    position: absolute;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #a5b4fc 50%, transparent 100%);
    animation: segmentProgressSlide 1.4s linear infinite;
}

@keyframes segmentProgressSlide {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

@keyframes hintPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.75);
    }
}

/* ========== 颜色选择器样式 ========== */
.color-selector-container {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.color-selector-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(71, 85, 105, 0.2);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 4px;
}

.color-selector-btn:hover {
    background: rgba(71, 85, 105, 0.4);
    border-color: rgba(148, 163, 184, 0.4);
    transform: scale(1.05);
}

.color-selector {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    min-width: 200px;
    margin-top: 6px;
    animation: fadeInDown 0.2s ease-out;
}

.color-selector-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #f9fafb;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
    border-radius: 8px 8px 0 0;
}

.color-selector-list {
    padding: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.color-selector-list::-webkit-scrollbar {
    width: 4px;
}

.color-selector-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.color-selector-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.color-option:last-child {
    margin-bottom: 0;
}

.color-option:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(2px);
}

.color-option:active {
    transform: translateX(1px);
}

.color-option.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.color-option.selected .color-label {
    color: #a5b4fc;
    font-weight: 600;
}

.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-label {
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 500;
    flex: 1;
}

/* 不同角色的背景颜色 */
.segment-card.color-1 .segment-content {
    background: rgba(236, 72, 153, 0.1);
    border-left-color: rgba(236, 72, 153, 0.4);
}

.segment-card.color-2 .segment-content {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: rgba(59, 130, 246, 0.4);
}

.segment-card.color-3 .segment-content {
    background: rgba(34, 197, 94, 0.12);
    border-left-color: rgba(34, 197, 94, 0.45);
}

.segment-card.color-4 .segment-content {
    background: rgba(250, 204, 21, 0.12);
    border-left-color: rgba(250, 204, 21, 0.45);
}

.segment-card.color-5 .segment-content {
    background: rgba(168, 85, 247, 0.12);
    border-left-color: rgba(168, 85, 247, 0.45);
}

.segment-card.color-6 .segment-content {
    background: rgba(251, 146, 60, 0.12);
    border-left-color: rgba(251, 146, 60, 0.45);
}

.segment-card.color-7 .segment-content {
    background: rgba(6, 182, 212, 0.1);
    border-left-color: rgba(6, 182, 212, 0.4);
}

.segment-card.color-8 .segment-content {
    background: rgba(239, 68, 68, 0.12);
    border-left-color: rgba(239, 68, 68, 0.45);
}

.segment-card.color-9 .segment-content {
    background: rgba(99, 102, 241, 0.12);
    border-left-color: rgba(99, 102, 241, 0.45);
}

.segment-card.color-10 .segment-content {
    background: rgba(107, 114, 128, 0.12);
    border-left-color: rgba(107, 114, 128, 0.45);
}

.segment-card.color-11 .segment-content {
    background: rgba(244, 63, 94, 0.12);
    border-left-color: rgba(244, 63, 94, 0.45);
}

.segment-card.color-12 .segment-content {
    background: rgba(245, 158, 11, 0.12);
    border-left-color: rgba(245, 158, 11, 0.45);
}

.voice-param-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    margin-right: 6px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 6px;
}

.voice-param-inline label {
    font-size: 11px;
    color: rgba(94, 234, 212, 0.85);
}

.voice-param-inline input[type="number"] {
    width: 64px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    color: #e2e8f0;
    padding: 3px 6px;
    font-size: 12px;
}

.voice-param-inline input[type="number"]:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.65);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35);
}

.voice-param-inline .random-seed-btn {
    background: rgba(45, 212, 191, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.45);
    color: #5eead4;
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.voice-param-inline .random-seed-btn:hover {
    background: rgba(45, 212, 191, 0.28);
    border-color: rgba(45, 212, 191, 0.65);
}

.voice-param-inline .random-seed-btn:active {
    transform: translateY(1px);
}

.random-seed-btn {
    background: rgba(45, 212, 191, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #5eead4;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.random-seed-btn:hover {
    background: rgba(45, 212, 191, 0.25);
    border-color: rgba(45, 212, 191, 0.6);
}

.random-seed-btn:active {
    transform: translateY(1px);
}

/* 编辑状态指示 */
.segment-content[contenteditable="true"]:empty:before {
    content: "输入文本内容...";
    color: #64748b;
}

/* ========== 角色选择器样式 ========== */
.character-label-container {
    position: relative;
    display: inline-block;
}

.character-selector {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    min-width: 180px;
    margin-top: 6px;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.character-selector-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #f9fafb;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
    border-radius: 8px 8px 0 0;
}

.character-selector-list {
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.character-selector-list::-webkit-scrollbar {
    width: 4px;
}

.character-selector-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.character-selector-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.character-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.character-option:last-child {
    margin-bottom: 0;
}

.character-option:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(2px);
}

.character-option:active {
    transform: translateX(1px);
}

.character-option.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.character-option.selected .character-option-name {
    color: #a5b4fc;
    font-weight: 600;
}

.character-option-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.character-option-name {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
    flex: 1;
}

.segment-card.status-pending {
    border-left-color: #94a3b8 !important;
}
.segment-card.status-unsaved {
    border-left-color: #facc15 !important;
}
.segment-card.status-deleted {
    border-left-color: #475569 !important;
    opacity: 0.6;
}

/* ========== BGM/SFX配置状态指示器（三色状态） ========== */

/* 绿色：已完整配置BGM/SFX */
.segment-card.bgm-configured {
    border-left: 4px solid #10b981 !important;
}

.segment-card.bgm-configured:hover {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* 橙色：继承配置，需要后期检查 */
.segment-card.bgm-inherited {
    border-left: 4px solid #f59e0b !important;
    animation: bgm-inherited-pulse 2s ease-in-out infinite;
}

.segment-card.bgm-inherited:hover {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3);
}

@keyframes bgm-inherited-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    }
}

/* 红色：拆分后需要重新配置 */
.segment-card.bgm-split-pending {
    border-left: 4px solid #ef4444 !important;
    animation: bgm-split-pulse 1.5s ease-in-out infinite;
}

@keyframes bgm-split-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* BGM/SFX状态徽章 */
.bgm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.bgm-status-badge.configured {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bgm-status-badge.inherited {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.bgm-status-badge.split-pending {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bgm-status-badge svg {
    font-size: 10px;
}

/* 拆分按钮特殊样式 */
.segment-action-btn.split-btn {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.segment-action-btn.split-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}
/* 分段操作模态框样式 - 基于character-color-modal.css扩展 */

/* ========== 颜色网格 ========== */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.color-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 60px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}

.color-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.color-item.selected {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.color-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-selected-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.color-label {
    color: #475569;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.2s ease;
}

.color-item.selected .color-label {
    color: #1e293b;
    font-weight: 700;
}

/* ========== 颜色预览 ========== */
.color-preview-container {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.color-preview-text {
    padding: 16px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #f9fafb;
    backdrop-filter: blur(10px);
}

/* ========== 角色选择 ========== */
.character-select-container {
    position: relative;
}

.character-select {
    width: 100%;
    height: 48px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 0 16px;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cbd5e1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.character-select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.character-select:hover {
    border-color: rgba(148, 163, 184, 0.3);
}

.character-select option {
    background: #1e293b;
    color: #e5e7eb;
    padding: 8px;
}

/* ========== 分段样式 ========== */
.character-color-section {
    margin-bottom: 32px;
}

.character-color-section:last-child {
    margin-bottom: 0;
}

.character-color-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 提示区域 ========== */
.character-color-tips {
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.tips-title {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
}

.tips-content {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.tips-content div {
    margin-bottom: 6px;
}

.tips-content div:last-child {
    margin-bottom: 0;
}

/* ========== 模态框头部 ========== */
.character-color-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.character-color-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #f9fafb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.character-color-modal-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s;
}

.character-color-modal-close-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    transform: scale(1.05);
}

/* ========== 模态框主体 ========== */
.character-color-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.character-color-modal-body::-webkit-scrollbar {
    width: 8px;
}

.character-color-modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.character-color-modal-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

/* ========== 模态框底部 ========== */
.character-color-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.character-color-btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.btn-cancel {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-cancel:hover {
    background: rgba(71, 85, 105, 0.5);
    transform: translateY(-1px);
}

.btn-confirm {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

/* 标签页样式 */
.operation-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding: 0 20px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.5);
}

.tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.tab-btn .anticon {
    font-size: 16px;
}

/* 分段选择列表样式 */
.segment-selection-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.segment-option {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.segment-option:last-child {
    border-bottom: none;
}

.segment-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.segment-option.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.segment-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.segment-order {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.segment-character {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.segment-length {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.segment-option-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
}

/* 拆分控件样式 */
.split-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-controls label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
}

.split-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.split-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.split-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.content-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
}

.content-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.content-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 拆分预览样式 */
.split-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.3);
}

.preview-section label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.preview-content {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.5;
    min-height: 40px;
    padding: 8px;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    font-size: 14px;
}

.preview-stats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 8px;
    text-align: right;
}

.preview-divider {
    text-align: center;
    color: #6366f1;
    font-size: 16px;
    font-weight: bold;
}

/* 合并预览样式 */
.merge-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selected-segments-summary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.selected-segments-summary p {
    margin: 0 0 12px 0;
}

.selected-segment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
}

.selected-segment-item .segment-order {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.selected-segment-item .segment-character {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 13px;
}

.selected-segment-item .segment-length {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.merged-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    line-height: 1.5;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 模态框容器扩展样式 - 参照音色选择模态框设计，适当放大 */
.character-color-modal-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    width: 90vw;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

/* 模态框覆盖层样式 - 直接复制音色库模态框的覆盖层样式 */
.character-color-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
.segment-selection-list::-webkit-scrollbar,
.merged-content::-webkit-scrollbar {
    width: 6px;
}

.segment-selection-list::-webkit-scrollbar-track,
.merged-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.segment-selection-list::-webkit-scrollbar-thumb,
.merged-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.segment-selection-list::-webkit-scrollbar-thumb:hover,
.merged-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .segment-operation-modal {
        min-width: 90vw;
        max-width: 95vw;
    }

    .operation-tabs {
        flex-direction: column;
        padding: 0 10px;
    }

    .tab-btn {
        justify-content: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tab-btn.active {
        border-bottom-color: #6366f1;
    }

    .segment-option-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .selected-segment-item {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* 动画效果 */
.segment-option {
    transition: all 0.2s ease;
}

.segment-option.selected {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        background: rgba(99, 102, 241, 0.05);
    }
    50% {
        background: rgba(99, 102, 241, 0.15);
    }
    100% {
        background: rgba(99, 102, 241, 0.1);
    }
}

.tab-btn {
    transition: all 0.2s ease;
}

.tab-btn:hover {
    transform: translateY(-1px);
}

.tab-btn.active {
    transform: translateY(0);
}

/* 确认按钮状态 */
.character-color-btn.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.character-color-btn.btn-confirm:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
/* ========== 分段列表容器样式 ========== */

.segment-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.6) 0%, rgba(26, 31, 58, 0.4) 100%);
    overflow: hidden;
    position: relative;
}

.segment-list-container.segment-list--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.6));
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.segment-list-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cbd5e1;
    font-size: 13px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(6px);
}

.segment-list-status .anticon {
    font-size: 16px;
    color: #6366f1;
}

.segment-list-status .status-progress {
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-weight: 500;
}

.segment-skeleton {
    display: grid;
    gap: 16px;
    padding: 24px 0;
}

.segment-skeleton-card {
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.segment-skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(148, 163, 184, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: skeletonWave 1.6s ease-in-out infinite;
}

.skeleton-line {
    height: 12px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line.skeleton-title {
    width: 40%;
    height: 14px;
}

.skeleton-line.skeleton-subtitle {
    width: 28%;
}

.skeleton-line.skeleton-text {
    width: 100%;
    opacity: 0.8;
}

.skeleton-line.skeleton-text.short {
    width: 65%;
}

.segment-skeleton-tip {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 8px;
}

@keyframes skeletonWave {
    0% {
        transform: translateX(-100%);
    }
    60% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========== 分段列表头部 ========== */
.segment-list-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(30, 41, 59, 0.3);
    flex-shrink: 0;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 8px;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

.stat-divider {
    color: rgba(148, 163, 184, 0.3);
}

/* ========== 分段列表内容区 ========== */
.segment-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* 自定义滚动条 */
.segment-list-content::-webkit-scrollbar {
    width: 8px;
}

.segment-list-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

.segment-list-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.segment-list-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ========== 空状态 ========== */
.segment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    gap: 12px;
}

.empty-icon {
    font-size: 48px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    font-weight: 500;
}

.empty-hint {
    font-size: 13px;
    color: #475569;
}
/* ========== 右侧角色面板样式 ========== */

.character-panel {
    width: 320px;
    background: rgba(30, 41, 59, 0.4);
    border-left: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

/* 自定义滚动条 */
.character-panel::-webkit-scrollbar {
    width: 6px;
}

.character-panel::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.character-panel::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.character-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ========== 面板区块 ========== */
.panel-section {
    padding: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 角色音色一览 ========== */
.character-voice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

/* 角色音色列表滚动条 */
.character-voice-list::-webkit-scrollbar {
    width: 4px;
}

.character-voice-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 2px;
}

.character-voice-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 2px;
    transition: background 0.2s;
}

.character-voice-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.character-voice-card {
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.character-voice-card:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(2px);
}

/* 角色颜色指示点 */
.character-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 使用之前定义的12种颜色 */
.character-color-dot.color-1 {
    background: #ec4899;
}

.character-color-dot.color-2 {
    background: #3b82f6;
}

.character-color-dot.color-3 {
    background: #8b5cf6;
}

.character-color-dot.color-4 {
    background: #f59e0b;
}

.character-color-dot.color-5 {
    background: #10b981;
}

.character-color-dot.color-6 {
    background: #ef4444;
}

.character-color-dot.color-7 {
    background: #06b6d4;
}

.character-color-dot.color-8 {
    background: #f97316;
}

.character-color-dot.color-9 {
    background: #84cc16;
}

.character-color-dot.color-10 {
    background: #a855f7;
}

.character-color-dot.color-11 {
    background: #ec4899;
}

.character-color-dot.color-12 {
    background: #14b8a6;
}

.cv-info {
    flex: 1;
    min-width: 0;
}

.cv-character {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.cv-voice {
    font-size: 12px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-stats {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.count-number {
    color: #a5b4fc;
    font-weight: 600;
}

.empty-hint {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 20px 0;
}

/* ========== 角色编辑按钮 ========== */
.role-edit-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-edit-btn {
    height: 40px;
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-edit-btn:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.3);
}

.btn-icon {
    font-size: 16px;
}

/* ========== 统计信息网格 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}/* ========== 音色选择模态框样式 ========== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 模态框头部 ========== */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #f9fafb;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    transform: scale(1.05);
}

/* ========== 模态框主体 ========== */
.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ========== 侧边栏 ========== */
.modal-sidebar {
    width: 220px;
    padding: 20px;
    border-right: 1px solid rgba(99, 102, 241, 0.15);
    overflow-y: auto;
    flex-shrink: 0;
}

.modal-right {
    border-right: none;
    border-left: 1px solid rgba(99, 102, 241, 0.15);
}

.modal-sidebar::-webkit-scrollbar {
    width: 6px;
}

.modal-sidebar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.modal-sidebar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

/* ========== 筛选器 ========== */
.filter-section {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-btn {
    height: 36px;
    padding: 0 12px;
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.3);
}

.filter-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

/* ========== 中间内容区 ========== */
.modal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

/* ========== 音色网格 ========== */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.voice-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
}

.voice-card.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.voice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.voice-name-display {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}

.voice-tier {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.tier-free {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.tier-pro {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.tier-max {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.tier-plus {
    background: rgba(236, 72, 153, 0.2);
    color: #f0abfc;
}

.voice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.voice-tag {
    background: rgba(71, 85, 105, 0.3);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* ========== 参数控制区 ========== */
.param-section {
    margin-bottom: 24px;
}

.param-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voice-info {
    background: rgba(71, 85, 105, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #94a3b8;
}

.info-value {
    color: #e5e7eb;
    font-weight: 500;
}

.param-control {
    margin-bottom: 16px;
}

.param-control label {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.param-slider {
    width: 100%;
    height: 6px;
    background: rgba(71, 85, 105, 0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.5);
}

.param-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.5);
}

.seed-control {
    display: flex;
    gap: 8px;
}

.seed-input {
    flex: 1;
    height: 36px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 0 12px;
    color: #e5e7eb;
    font-size: 13px;
}

.seed-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
}

.seed-random-btn {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.seed-random-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.preview-text-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 12px;
    color: #e5e7eb;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    margin-bottom: 12px;
}

.preview-text-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
}

.preview-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.preview-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.preview-btn.playing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ========== 模态框底部 ========== */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.modal-btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-cancel:hover {
    background: rgba(71, 85, 105, 0.5);
}

.btn-confirm {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}
/* ========== 导出文本模态框样式 ========== */

.export-modal-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    width: 90vw;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

/* ========== 导出模态框主体 ========== */
.export-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ========== 左侧章节选择 ========== */
.export-sidebar {
    width: 280px;
    border-right: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
}

.select-all-btn {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: #a5b4fc;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.select-all-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.chapter-select-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.chapter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #94a3b8;
    background: rgba(71, 85, 105, 0.1);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 8px;
}

.chapter-select-list::-webkit-scrollbar {
    width: 6px;
}

.chapter-select-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}

.chapter-select-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.chapter-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.chapter-select-item:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.2);
}

.chapter-select-item.previewing {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.chapter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
}

.chapter-select-info {
    flex: 1;
    min-width: 0;
}

.chapter-select-name {
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.chapter-select-meta {
    font-size: 12px;
    color: #94a3b8;
}

.export-all-section {
    padding: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.export-all-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.export-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

/* ========== 右侧画本预览 ========== */
.export-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    padding: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
}

.character-legend {
    padding: 16px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.legend-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.legend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.15);
}

.legend-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.legend-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

.legend-meta {
    font-size: 12px;
    color: #475569;
}

.legend-empty {
    font-size: 13px;
    color: #64748b;
}

.preview-content::-webkit-scrollbar {
    width: 8px;
}

.preview-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.preview-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.preview-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 画本分段样式（12种角色颜色） */
.preview-segment {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid;
    border-radius: 6px;
    color: #000000;
    font-size: 14px;
    line-height: 1.8;
}

.preview-character {
    font-weight: 600;
}

.preview-text {
    color: #1f2937;
}

.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

/* 使用12种颜色的浅色背景 */
.preview-segment.color-1 { background-color: #fce7f3; border-color: #ec4899; }
.preview-segment.color-2 { background-color: #dbeafe; border-color: #3b82f6; }
.preview-segment.color-3 { background-color: #ede9fe; border-color: #8b5cf6; }
.preview-segment.color-4 { background-color: #fef3c7; border-color: #f59e0b; }
.preview-segment.color-5 { background-color: #d1fae5; border-color: #10b981; }
.preview-segment.color-6 { background-color: #fee2e2; border-color: #ef4444; }
.preview-segment.color-7 { background-color: #cffafe; border-color: #06b6d4; }
.preview-segment.color-8 { background-color: #fed7aa; border-color: #f97316; }
.preview-segment.color-9 { background-color: #ecfccb; border-color: #84cc16; }
.preview-segment.color-10 { background-color: #f3e8ff; border-color: #a855f7; }
.preview-segment.color-11 { background-color: #fce7f3; border-color: #ec4899; }
.preview-segment.color-12 { background-color: #ccfbf1; border-color: #14b8a6; }

.preview-options {
    padding: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-group {
    display: flex;
    gap: 20px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
}

.option-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6366f1;
}

.format-selector {
    display: flex;
    gap: 8px;
}

.format-btn {
    padding: 8px 16px;
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.format-btn:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: rgba(148, 163, 184, 0.3);
}

.format-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

.format-hint {
    padding: 6px 20px 16px;
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
}

/* ========== 底部信息栏 ========== */
.footer-info {
    font-size: 13px;
    color: #94a3b8;
}

.highlight {
    color: #6366f1;
    font-weight: 600;
    font-size: 16px;
}

.footer-actions {
    display: flex;
    gap: 12px;
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* EmotionPanel 深色风格，统一与工作台主题 */
.emotion-panel-drawer-root .ant-drawer,
.emotion-panel-drawer-root .ant-drawer-content,
.emotion-panel-drawer .ant-drawer-content,
.emotion-panel-drawer .ant-drawer-header,
.emotion-panel-drawer .ant-drawer-body,
.emotion-panel-drawer .ant-drawer-wrapper-body {
  background: rgba(17, 24, 39, 0.96) !important; /* 深色，不用纯白 */
  color: #e6e6e6 !important;
}
.emotion-panel-drawer .ant-drawer-header { border-bottom: 1px solid rgba(255,255,255,0.08); }
.emotion-panel-drawer .ant-drawer-title { color: #e6e6e6; }
.emotion-panel-drawer, .emotion-panel-drawer * { color-scheme: dark; }
.emotion-panel-drawer p,
.emotion-panel-drawer span,
.emotion-panel-drawer label,
.emotion-panel-drawer .ant-typography,
.emotion-panel-drawer .ant-radio-wrapper,
.emotion-panel-drawer .ant-checkbox-wrapper,
.emotion-panel-drawer .ant-select-selection-item,
.emotion-panel-drawer .ant-tabs-tab-btn {
  color: #e6e6e6 !important;
}
.emotion-panel-drawer .ant-tabs-tab-btn { color: #cfcfcf; }
.emotion-panel-drawer .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: #fff; }
.emotion-panel-drawer .ant-input,
.emotion-panel-drawer .ant-input-textarea,
.emotion-panel-drawer textarea.ant-input,
.emotion-panel-drawer .ant-input-affix-wrapper {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #e6e6e6 !important;
}
.emotion-panel-drawer input::placeholder,
.emotion-panel-drawer textarea::placeholder { color: #b9c0ce; }
.emotion-panel-drawer .ant-slider-rail { background-color: rgba(255,255,255,0.12); }
.emotion-panel-drawer .ant-slider-track { background-color: #6c9cff; }
.emotion-panel-drawer .ant-slider-handle::after { box-shadow: 0 0 0 2px #6c9cff; }
.emotion-panel-drawer .ant-btn-default {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #e6e6e6 !important;
}
.emotion-panel-drawer .ant-btn-default:hover {
  background: rgba(255,255,255,0.10);
}

/* Tabs 深色 */
.emotion-panel-drawer .ant-tabs-nav::before { border-color: rgba(255,255,255,0.08); }
.emotion-panel-drawer .ant-tabs-ink-bar { background: #6c9cff; }
.emotion-panel-drawer .ant-tabs-tab { color: #cfd3dc; }
.emotion-panel-drawer .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: #ffffff; }

.emotion-preset-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.emotion-preset-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
}

.emotion-preset-card .preset-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.preset-emoji {
  font-size: 20px;
}

.preset-title {
  font-weight: 600;
  font-size: 14px;
}

.preset-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.preset-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-bottom: 10px;
}

.preset-bar {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.preset-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.preset-bar-fill {
  height: 100%;
  background: rgba(96, 165, 250, 0.9);
}
/* DirectorPanel.css - 导演模式推荐面板样式 */

.director-panel {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    max-width: 600px;
}

.director-panel.empty,
.director-panel.loading,
.director-panel.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.director-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.director-card .ant-card-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.director-card .ant-card-head-title {
    color: white;
    font-weight: 600;
}

/* 场景分析 */
.scene-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.scene-header .confidence {
    font-size: 13px;
    color: #595959;
}

.scene-header .confidence strong {
    color: #1890ff;
    font-size: 16px;
}

.matched-keywords {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.matched-keywords .label {
    font-size: 13px;
    color: #8c8c8c;
    white-space: nowrap;
    line-height: 24px;
}

/* 参考音频 */
.reference-audio {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.reference-audio.primary {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border: 1px solid #91d5ff;
}

.reference-audio .audio-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.reference-audio .audio-label {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.reference-audio .audio-desc {
    font-size: 13px;
    color: #595959;
    margin-bottom: 8px;
    line-height: 1.5;
}

.reference-audio.alternative {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #d9d9d9;
}

.reference-audio.alternative .audio-label {
    font-size: 13px;
}

/* 参数调整 */
.parameters {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.param-item {
    margin-bottom: 12px;
}

.param-item:last-child {
    margin-bottom: 0;
}

.param-label {
    display: block;
    font-size: 13px;
    color: #595959;
    margin-bottom: 4px;
}

.param-value {
    font-size: 14px;
    font-weight: 600;
    color: #1890ff;
}

/* 推荐理由 */
.reasoning {
    padding: 8px;
    background: #fafafa;
    border-radius: 4px;
    border-left: 3px solid #1890ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .director-panel {
        max-width: 100%;
        padding: 12px;
    }

    .scene-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/**
 * AudioLibraryManager 样式文件
 * 创建时间：2025-12-04
 */

.audio-library-manager {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 统计卡片 */
.audio-library-manager .statistics-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.audio-library-manager .statistics-card .ant-statistic {
    text-align: center;
}

.audio-library-manager .statistics-card .ant-statistic-title {
    font-size: 14px;
    color: #666;
}

.audio-library-manager .statistics-card .ant-statistic-content {
    font-size: 24px;
    font-weight: 600;
    color: #1890ff;
}

/* 主内容卡片 */
.audio-library-manager .ant-card {
    border-radius: 8px;
}

/* Tabs样式 */
.audio-library-manager .ant-tabs-tab {
    font-size: 16px;
    padding: 12px 0;
}

.audio-library-manager .ant-tabs-tab-active {
    font-weight: 600;
}

/* 表格样式 */
.audio-library-manager .ant-table {
    margin-top: 16px;
}

.audio-library-manager .ant-table-thead > tr > th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

.audio-library-manager .ant-table-tbody > tr:hover > td {
    background-color: #f0f7ff;
}

/* 标签样式 */
.audio-library-manager .ant-tag {
    margin-right: 4px;
    border-radius: 4px;
}

/* 按钮样式 */
.audio-library-manager .ant-btn-text:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.audio-library-manager .ant-btn-text.ant-btn-dangerous:hover {
    background-color: rgba(255, 77, 79, 0.08);
}

/* 编辑模态框 */
.audio-library-manager .ant-modal-header {
    border-bottom: 1px solid #f0f0f0;
}

.audio-library-manager .ant-modal-footer {
    border-top: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .audio-library-manager .statistics-card .ant-space {
        flex-direction: column;
        width: 100%;
    }

    .audio-library-manager .statistics-card .ant-statistic {
        width: 100%;
        margin-bottom: 12px;
    }

    .audio-library-manager .ant-tabs-tab {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* 上传按钮样式 */
.audio-library-manager .ant-upload-wrapper {
    display: inline-block;
}

/* 文件名省略样式 */
.audio-library-manager .ant-table-cell {
    word-break: break-all;
}

/* 空状态样式 */
.audio-library-manager .ant-empty {
    margin: 40px 0;
}

.audio-library-manager .ant-empty-description {
    color: #999;
}

/* 加载状态 */
.audio-library-manager .ant-spin-container {
    min-height: 200px;
}

/* Tooltip样式优化 */
.audio-library-manager .ant-tooltip {
    max-width: 400px;
}
/**
 * SceneConfigPanel 样式文件
 * 创建时间：2025-12-05
 */

.scene-config-panel {
    padding: 16px;
    height: 100%;
    overflow: auto;
}

/* 场景列表卡片 */
.scene-list-card {
    height: calc(100vh - 280px);
    overflow: hidden;
}

.scene-list-card .ant-card-body {
    height: calc(100% - 57px);
    overflow-y: auto;
    padding: 16px;
}

/* 场景列表项 */
.scene-item {
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.scene-item:hover {
    background-color: #f5f5f5;
}

.scene-item.selected {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.scene-item .ant-list-item-meta-title {
    font-weight: 600;
    font-size: 16px;
    color: #262626;
}

.scene-item .ant-list-item-meta-description {
    color: #595959;
    margin-top: 8px;
}

/* 场景信息显示 */
.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.info-item label {
    font-weight: 600;
    color: #8c8c8c;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-item span {
    color: #262626;
    font-size: 14px;
}

/* BGM配置显示 */
.bgm-config-display {
    padding: 16px;
    background-color: #fafafa;
    border-radius: 8px;
}

.config-item {
    margin-bottom: 16px;
}

.config-item label {
    font-weight: 600;
    color: #8c8c8c;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

.config-item div {
    color: #262626;
    font-size: 14px;
}

.fade-info {
    margin-top: 12px;
}

.fade-info .ant-tag {
    margin-right: 8px;
}

/* SFX列表项 */
.sfx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.sfx-info {
    flex: 1;
}

.sfx-info strong {
    display: block;
    margin-bottom: 8px;
    color: #262626;
    font-size: 14px;
}

.sfx-info .ant-tag {
    margin-right: 8px;
    margin-top: 4px;
}

/* 时间轴样式 */
.ant-timeline {
    padding: 16px 0;
}

.ant-timeline-item {
    padding-bottom: 16px;
}

/* 卡片标题图标 */
.ant-card-head-title span {
    display: inline-flex;
    align-items: center;
}

.ant-card-head-title span .anticon {
    margin-right: 8px;
}

/* 渲染进度 */
.ant-progress {
    margin-bottom: 16px;
}

/* 模态框内表单 */
.ant-modal .ant-form-item {
    margin-bottom: 20px;
}

/* Slider标记 */
.ant-slider-mark-text {
    font-size: 12px;
}

/* 分隔线 */
.ant-divider {
    margin: 20px 0;
    font-weight: 600;
    color: #595959;
}

/* 空状态 */
.ant-empty {
    padding: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scene-config-panel {
        padding: 12px;
    }

    .scene-list-card {
        height: auto;
        margin-bottom: 16px;
    }

    .scene-item {
        padding: 8px;
    }

    .bgm-config-display,
    .sfx-item {
        padding: 12px;
    }

    .info-item,
    .config-item {
        margin-bottom: 8px;
    }
}

/* 按钮组间距 */
.ant-space-vertical {
    width: 100%;
}

.ant-space-item {
    width: 100%;
}

/* 列表操作按钮 */
.ant-list-item-action {
    margin-left: 16px;
}

.ant-list-item-action li {
    padding: 0 4px;
}

/* 标签颜色优化 */
.ant-tag {
    border-radius: 4px;
    font-size: 12px;
}

/* Alert样式 */
.ant-alert {
    border-radius: 8px;
    margin-bottom: 16px;
}

/* 表单项标签 */
.ant-form-item-label > label {
    font-weight: 600;
    color: #262626;
}

/* 进度条状态 */
.ant-progress-status-active .ant-progress-bg {
    background: linear-gradient(90deg, #1890ff 0%, #52c41a 100%);
}

/* 卡片间距 */
.ant-space-large > .ant-space-item {
    margin-bottom: 16px;
}

/* 时间轴图标 */
.ant-timeline-item-head {
    background-color: #fff;
}

/* 选择器搜索 */
.ant-select-selection-search-input {
    height: 100% !important;
}

/* 数字输入框 */
.ant-input-number {
    width: 100%;
}

/* 滑块 */
.ant-slider-with-marks {
    margin-bottom: 32px;
}
/**
 * DirectorModePanel 样式文件
 * 创建时间：2025-12-04
 */

.director-mode-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Tabs容器 */
.director-mode-panel .ant-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.director-mode-panel .ant-tabs-content-holder {
    flex: 1;
    overflow: auto;
}

/* Tab标签样式 */
.director-mode-panel .ant-tabs-tab {
    font-size: 16px;
    padding: 12px 20px;
    font-weight: 500;
}

.director-mode-panel .ant-tabs-tab-active {
    font-weight: 600;
}

.director-mode-panel .ant-tabs-tab-disabled {
    opacity: 0.5;
}

/* Tab内容区域 */
.director-mode-panel .tab-content {
    padding: 16px;
    height: 100%;
    overflow: auto;
}

/* 底部提示 */
.director-mode-panel .footer-tips {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.director-mode-panel .footer-tips .ant-alert {
    border-radius: 8px;
}

.director-mode-panel .footer-tips ul {
    list-style-type: none;
}

.director-mode-panel .footer-tips li {
    padding: 4px 0;
    color: #666;
}

.director-mode-panel .footer-tips li::before {
    content: "✓ ";
    color: #52c41a;
    font-weight: bold;
    margin-right: 8px;
}

/* 顶部Alert */
.director-mode-panel .ant-alert-info {
    border-radius: 8px;
    border-left: 4px solid #1890ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .director-mode-panel .ant-tabs-tab {
        font-size: 14px;
        padding: 8px 12px;
    }

    .director-mode-panel .tab-content {
        padding: 12px;
    }
}
/* SegmentDirectorPanel 样式 */

.segment-director-panel {
    padding: 0;
}

.segment-director-panel .ant-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.segment-director-panel .ant-collapse {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.segment-director-panel .ant-collapse-item {
    border-bottom: 1px solid #d9d9d9;
}

.segment-director-panel .ant-collapse-item:last-child {
    border-bottom: none;
}

.segment-director-panel .ant-collapse-header {
    padding: 12px 16px;
    font-weight: 500;
}

.segment-director-panel .ant-collapse-content-box {
    padding: 16px;
}

.segment-director-panel .ant-form-item {
    margin-bottom: 16px;
}

.segment-director-panel .ant-form-item-label > label {
    font-weight: 500;
}

.segment-director-panel .ant-divider-plain {
    margin: 16px 0;
}

.segment-director-panel .ant-list-item {
    padding: 12px;
    transition: background-color 0.3s;
}

.segment-director-panel .ant-list-item:hover {
    background-color: #f5f5f5;
}

.segment-director-panel .ant-slider {
    margin-top: 8px;
    margin-bottom: 8px;
}

.segment-director-panel .ant-slider-mark-text {
    font-size: 12px;
}

.segment-director-panel .ant-tag {
    margin-right: 8px;
}

.segment-director-panel .ant-alert {
    border-radius: 4px;
}

.segment-director-panel .ant-empty {
    margin: 32px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .segment-director-panel .ant-col {
        margin-bottom: 16px;
    }
}
.sound-library-browser {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #e2e8f0;
}

/* 统计卡片 - 深色主题 */
.stats-card {
  margin-bottom: 16px;
  background: #1e293b !important;
  border: 1px solid rgba(148,163,184,0.2) !important;
  border-radius: 8px;
}

.stats-card .ant-card-body {
  padding: 16px;
}

.stats-info {
  display: flex;
  justify-content: space-around;
  gap: 16px;
}

.stats-info span {
  font-size: 14px;
  color: #94a3b8;
}

.stats-info strong {
  color: #60a5fa;
  font-size: 18px;
  margin-left: 8px;
}

/* 搜索卡片 - 深色主题 */
.search-card {
  margin-bottom: 16px;
  background: #1e293b !important;
  border: 1px solid rgba(148,163,184,0.2) !important;
  border-radius: 8px;
}

.search-card .ant-card-body {
  padding: 16px;
}

.search-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ant Design组件深色主题覆盖 */
.sound-library-browser .ant-input {
  background: #0f172a;
  border-color: rgba(148,163,184,0.3);
  color: #e2e8f0;
}

.sound-library-browser .ant-input:hover,
.sound-library-browser .ant-input:focus {
  border-color: #60a5fa;
  background: #1e293b;
}

.sound-library-browser .ant-select {
  color: #e2e8f0;
}

.sound-library-browser .ant-select-selector {
  background: #0f172a !important;
  border-color: rgba(148,163,184,0.3) !important;
  color: #e2e8f0 !important;
}

.sound-library-browser .ant-select-arrow {
  color: #94a3b8;
}

.sound-library-browser .ant-btn {
  background: #1e293b;
  border-color: rgba(148,163,184,0.3);
  color: #e2e8f0;
}

.sound-library-browser .ant-btn:hover {
  background: #334155;
  border-color: #60a5fa;
  color: #60a5fa;
}

/* 音效列表 - 深色主题 */
.sound-effects-list {
  flex: 1;
  overflow-y: auto;
  background: #1e293b;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(148,163,184,0.2);
}

.sound-effects-list .ant-list-item {
  padding: 16px;
  border-bottom: 1px solid rgba(148,163,184,0.1);
  transition: all 0.2s;
  background: transparent;
}

.sound-effects-list .ant-list-item:hover {
  background: rgba(96,165,250,0.05);
  border-radius: 6px;
}

.sound-effects-list .ant-list-item-meta-title {
  font-size: 15px;
  margin-bottom: 6px;
  color: #e2e8f0;
  font-weight: 500;
}

.sound-effects-list .ant-list-item-meta-description {
  font-size: 13px;
  color: #94a3b8;
}

.sound-effects-list .ant-list-item-action {
  margin-left: 16px;
}

.sound-effects-list .ant-list-item-action > li {
  padding: 0 8px;
}

/* 分页容器 - 深色主题 */
.pagination-container {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #1e293b;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.2);
}

.sound-library-browser .ant-pagination-item {
  background: #0f172a;
  border-color: rgba(148,163,184,0.3);
}

.sound-library-browser .ant-pagination-item a {
  color: #e2e8f0;
}

.sound-library-browser .ant-pagination-item:hover {
  border-color: #60a5fa;
}

.sound-library-browser .ant-pagination-item:hover a {
  color: #60a5fa;
}

.sound-library-browser .ant-pagination-item-active {
  background: #60a5fa;
  border-color: #60a5fa;
}

.sound-library-browser .ant-pagination-item-active a {
  color: #0f172a;
  font-weight: 600;
}

.sound-library-browser .ant-pagination-prev,
.sound-library-browser .ant-pagination-next {
  color: #e2e8f0;
}

.sound-library-browser .ant-pagination-prev:hover .ant-pagination-item-link,
.sound-library-browser .ant-pagination-next:hover .ant-pagination-item-link {
  color: #60a5fa;
  border-color: #60a5fa;
}

/* 标签 - 深色主题 */
.ant-tag {
  margin: 2px;
  font-size: 12px;
  background: rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.3);
  color: #93c5fd;
  border-radius: 4px;
}

/* Spin加载器 - 深色主题 */
.sound-library-browser .ant-spin-dot-item {
  background-color: #60a5fa;
}

/* 空状态 - 深色主题 */
.sound-library-browser .ant-empty-description {
  color: #64748b;
}

/* 滚动条美化 - 深色主题 */
.sound-effects-list::-webkit-scrollbar {
  width: 8px;
}

.sound-effects-list::-webkit-scrollbar-track {
  background: rgba(15,23,42,0.5);
  border-radius: 4px;
}

.sound-effects-list::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.3);
  border-radius: 4px;
}

.sound-effects-list::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,0.5);
}
.te-wrap{color:#e6f7ff;background:linear-gradient(135deg,#0a1929,#132f4c);min-height:100vh}
.te-wrap{--track-height:120px;}
.te-toolbar{position:sticky;top:0;background:rgba(10,25,41,.85);backdrop-filter:blur(6px);border-bottom:1px solid rgba(77,166,255,.15);padding:8px;z-index:5}
.te-toolbar .row{display:flex;gap:8px;align-items:center;margin:6px 0}
.te-toolbar label{display:inline-flex;gap:6px;align-items:center}
.te-toolbar input{background:#0b2033;border:1px solid #234;color:#cfe;outline:none;border-radius:4px;padding:4px 6px}
.te-toolbar button{background:#1e4c7a;border:1px solid #2a5f96;color:#fff;border-radius:4px;padding:6px 10px;cursor:pointer}
.te-toolbar .spacer{flex:1}
.te-toolbar .time{min-width:78px;text-align:right;color:#9ab}
.te-toolbar .btn-help{margin-left:6px}
.te-toolbar .btn-help.pulse{position:relative;box-shadow:0 0 0 0 rgba(77,166,255,.0)}
.te-toolbar .btn-help.pulse::after{content:"";position:absolute;inset:-6px;border-radius:6px;border:1px solid rgba(77,166,255,.65);box-shadow:0 0 12px rgba(77,166,255,.45);animation:helpPulse 1.6s ease-in-out infinite;pointer-events:none}
@keyframes helpPulse{0%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.03)}100%{opacity:.6;transform:scale(1)}}
/* 对轨模式徽标 */
.mode-badge{margin-left:12px;padding:4px 8px;border-radius:999px;font-size:12px;line-height:1;border:1px solid rgba(255,255,255,.12);color:#e5e7eb}
.mode-badge.sys{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.35)}
.mode-badge.rec{background:rgba(34,197,94,.18);border-color:rgba(34,197,94,.35)}
.te-ruler{position:relative;height:36px;margin:8px;cursor:col-resize}
/* 刻度样式：minor 为短线，无文本；major 为长线，带标签 */
.te-ruler .tick{position:absolute;transform:translateX(-0.5px)}
.te-ruler .tick.minor{top:22px;width:1px;height:10px;background:#3a5670}
.te-ruler .tick.major{top:12px;width:1.5px;height:20px;background:#74a2d6}
.te-ruler .tick.major .label{position:absolute;top:-12px;left:50%;transform:translateX(-50%);font-size:11px;color:#9ab;white-space:nowrap}
.te-ruler .playhead{position:absolute;top:0;bottom:0;width:2px;background:#ff4d4f;box-shadow:0 0 0 1px rgba(255,77,79,.35)}
.te-ruler .playhead::before{content:"";position:absolute;top:-10px;left:-6px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:10px solid #ff4d4f}
.te-canvas .playhead-v{position:absolute;top:36px;bottom:0;width:2px;background:#ff4d4f;box-shadow:0 0 0 1px rgba(255,77,79,.25);pointer-events:none;z-index:12}
.te-tracks{padding:8px; cursor:default}
.te-scroll{overflow-x:auto; overflow-y:hidden; border-top:1px solid rgba(77,166,255,.1)}
.te-canvas{position:relative}
.te-help-overlay{position:fixed;inset:0;background:rgba(10,25,41,.55);backdrop-filter:blur(4px);z-index:60;display:flex;align-items:center;justify-content:center}
.te-help-modal{width:min(860px,92vw);max-height:80vh;overflow:auto;background:#0e2236;border:1px solid #234;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.5);color:#cfe}
.te-help-modal .hdr{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(77,166,255,.15)}
.te-help-modal .hdr .title{font-weight:700}
.te-help-modal .hdr .x{background:transparent;border:1px solid #234;border-radius:6px;color:#cfe;width:28px;height:28px;cursor:pointer}
.te-help-modal .body{padding:12px 16px;display:grid;gap:12px}
.te-help-modal .body .sec b{display:block;margin-bottom:6px;color:#d8ecff}
.te-help-modal .body ul{margin:0;padding-left:18px;color:#cfe}
.te-help-modal .ftr{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid rgba(77,166,255,.15)}
.te-help-modal .ftr .btn{background:#1e4c7a;border:1px solid #2a5f96;color:#fff;border-radius:8px;padding:6px 12px;cursor:pointer}
.te-help-modal .ftr .btn:hover{filter:brightness(1.05)}
.te-segpanel{position:fixed;top:112px;right:12px;width:320px;bottom:12px;background:rgba(10,25,41,.85);border:1px solid rgba(77,166,255,.15);border-radius:12px;backdrop-filter:blur(6px);z-index:6;display:flex;flex-direction:column}
.te-segpanel .hdr{padding:8px 12px;border-bottom:1px solid rgba(77,166,255,.15);font-weight:600}
.te-segpanel .body{flex:1;overflow:auto}
.te-segpanel .segitem{display:flex;gap:8px;align-items:center;padding:8px 12px;border-bottom:1px dashed rgba(77,166,255,.1)}
.te-segpanel .segitem .idx{width:24px;text-align:right;color:#9ab}
.te-segpanel .segitem .txt{flex:1;color:#cfe}
.te-segpanel .empty{padding:12px;color:#9ab}
.track-row{display:flex;gap:8px;margin-bottom:8px;height:var(--track-height)}
.track-row{position:relative}
.track-header{width:240px;min-width:240px;background:#0e2236;border:1px solid #224;border-radius:8px;padding:2px 8px;height:var(--track-height);display:flex;flex-direction:column;justify-content:flex-start;row-gap:0;position:relative;z-index:3}
.track-header .title{font-weight:600;font-size:14px;line-height:16px;margin:0}
.track-header .meta{font-size:11px;line-height:12px;color:#9ab;margin:0}
.track-header .ops{display:flex;gap:6px;margin-top:0;flex-wrap:wrap;align-items:center;font-size:12px}
.track-header{overflow:hidden}
.track-header .ctrl{width:46px; display:flex; align-items:center; justify-content:center; overflow:hidden}
.track-header .ctrl-volume{width:46px}
.track-header .ctrl-pan{width:46px}
.track-header .ops-grid{display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:auto;gap:4px 10px;align-items:center}
.track-header .toggles{grid-column:1/span 1;grid-row:1;display:flex;gap:6px;align-items:center}
.track-header .ctrl{display:flex;gap:4px;align-items:flex-start;padding-top:0}
.track-header .ctrl.ctrl-volume{grid-column:3;grid-row:1;justify-self:end}
.track-header .ctrl.ctrl-pan{grid-column:4;grid-row:1;justify-self:end}
.track-header .ctrl-upload{grid-column:2;grid-row:1;justify-self:start}
.track-header .knob-label{min-width:28px;color:#9ab;font-size:11px;line-height:11px}
.track-header .btn-del{background:#6b1b1b;border-color:#883232}
.track-header .btn-up{position:relative;overflow:hidden}
.track-header .btn-up input{position:absolute;inset:0;opacity:0;cursor:pointer}
.track-body{position:relative;height:var(--track-height);background:#091a2a;border:1px solid #1a3550;border-radius:6px}
.clip{position:absolute;top:6px;bottom:6px;border-radius:4px;border:1px solid #3a6aa3;background:#1f4878;color:#d8ecff;padding:0 2px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:grab}
.clip .handle{position:absolute;top:0;width:10px;height:100%;cursor:ew-resize;background:transparent;z-index:5;pointer-events:auto}
.clip .handle.left{left:0}
.clip .handle.right{right:0}
/* 淡入淡出可视化与拖拽手柄 */
.clip .fade-region{position:absolute;top:0;bottom:0;pointer-events:none}
.clip .fade-in{left:0;background:linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0))}
.clip .fade-out{right:0;background:linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,0))}
.clip .fade-handle{position:absolute;top:-6px;width:14px;height:14px;border-radius:3px;background:#ffd166;border:1px solid #b68b00;cursor:ew-resize;z-index:3}
.clip .fade-handle.left{left:-5px}
.clip .fade-handle.right{right:-5px}
/* 包络线（点+折线），仅在选中时显著显示 */
.clip svg.env{position:absolute;left:2px;right:2px;top:2px;bottom:2px;pointer-events:none}
.clip.selected svg.env path{stroke:#4ade80;stroke-width:2;fill:transparent;opacity:.85}
.clip svg.env path{stroke:#8bd;stroke-width:1.5;fill:transparent;opacity:.6}
.clip svg.env circle{fill:#4ade80;stroke:#14532d;stroke-width:1.2;pointer-events:auto;cursor:ns-resize}
/* 淡入/淡出弧形遮罩（SVG）
   - 采用弧线填充，去除“直来直去”的楔形视觉
   - 提升 z-index，确保圆形手柄位于裁剪句柄之上；仅 circle 接受事件，path 不拦截点击 */
.clip svg.fade{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:auto;z-index:10}
.clip svg.fade path{fill:rgba(0,0,0,.32);pointer-events:none}
.clip svg.fade path.curve{fill:none;stroke:rgba(0,0,0,.5);stroke-width:1.6;opacity:.9;stroke-linecap:round;pointer-events:none}
.clip svg.fade circle{fill:#fff;stroke:#111;border:1px solid #111;pointer-events:auto;cursor:ew-resize;box-shadow:0 2px 4px rgba(0,0,0,.35)}
.clip.bgm{background:#28461a;border-color:#3f7a1e}
.clip.sfx{background:#533a14;border-color:#8a5a1a}
.clip.selected{outline:2px solid #ffd166}
.clip.playing{outline:2px solid #4da6ff; box-shadow: inset 0 0 0 2px rgba(77,166,255,.35)}
.clip .handle{position:absolute;top:0;bottom:0;width:12px;background:rgba(255,255,255,.06);cursor:ew-resize;z-index:8}
.clip .handle.left{left:0;border-right:1px solid rgba(255,255,255,.25)}
.clip .handle.right{right:0;border-left:1px solid rgba(255,255,255,.25)}
.track-header .m-btn,.track-header .s-btn{width:22px;height:22px;border-radius:4px;border:1px solid #2a5f96;background:#0d2744;color:#cfe;cursor:pointer}
.track-header .m-btn.active{background:#6b1b1b;border-color:#883232}
.track-header .s-btn.active{background:#1f5f2d;border-color:#2e813f}
.track-header .knob{width:auto;display:inline-flex;align-items:center;gap:4px;font-size:12px}
.track-header .knob input{width:96px;height:4px;appearance:none;background:#123;border-radius:2px}
.track-header .knob input::-webkit-slider-thumb{appearance:none;width:10px;height:10px;background:#4da6ff;border-radius:50%}
.knob-range{width:42px !important;height:42px !important;border-radius:50% !important;background: radial-gradient(circle at 50% 50%, #0b2033 40%, #162b44 41%) !important;border:1px solid #234 !important;appearance:none;position:relative}
.knob-range::-webkit-slider-thumb{appearance:none;width:6px;height:6px;border-radius:50%;background:#ffd166;box-shadow:0 -16px 0 1px #ffd166;}
.knob-range::-moz-range-thumb{width:6px;height:6px;border-radius:50%;background:#ffd166;border:none}
.knob-range::-webkit-slider-runnable-track{height:2px;background:transparent}
.knob-range::-moz-range-track{height:2px;background:transparent}

.align-progress{position:fixed;top:72px;right:24px;z-index:9999;display:flex;gap:12px;align-items:flex-start;background:rgba(7,14,28,0.92);border:1px solid rgba(148,163,184,0.3);border-radius:10px;padding:12px 16px;box-shadow:0 10px 24px rgba(0,0,0,0.45);color:#e2e8f0;min-width:220px}
.align-progress .spinner{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,0.4);border-top-color:#4ade80;animation:alignSpin 0.8s linear infinite;margin-top:4px}
.align-progress .title{font-size:14px;font-weight:600;margin-bottom:4px}
.align-progress .desc{font-size:12px;color:#cbd5f5;line-height:1.4}
@keyframes alignSpin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}

/* 旋钮组件样式 */
.knob-item{display:inline-flex;align-items:center;gap:6px}
.knob-label{font-size:12px;color:#9ab}
.knob-control{position:relative;background:#0e2236;border:1px solid #234;border-radius:50%;cursor:pointer;box-shadow: inset 0 6px 10px rgba(0,0,0,.35)}
.knob-dial{position:absolute;inset:5px;border-radius:50%;background:linear-gradient(135deg,rgba(52,211,153,.18),rgba(52,211,153,.02))}
/* 简化：用小圆点作为指示 */
.knob-indicator{position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 1px rgba(34,197,94,.25)}
.knob-ref{display:none}
.muted{opacity:.45}
.te-log{font-size:12px;color:#9ab;padding:8px}

/* 轨道电平表（简化） */
.meter{width:10px;height:var(--track-height);background:#0b2033;border:1px solid #234;border-radius:6px;position:absolute;right:-14px;top:0;display:flex;flex-direction:column-reverse;overflow:hidden}
.meter .bar{width:100%;background:linear-gradient(180deg,#3bd188,#1e7b4b);transition:height .08s linear}

/* 右键菜单 */
.te-contextmenu{position:fixed;min-width:160px;background:#0e2236;border:1px solid #234;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.45);z-index:50;color:#cfe;overflow:hidden}
.te-contextmenu .item{padding:8px 12px;cursor:pointer;white-space:nowrap}
.te-contextmenu .item:hover{background:#123a5e}
.te-contextmenu .item.danger{color:#ffb4b4}
.te-contextmenu .item.danger:hover{background:#5a1c1c}
.te-contextmenu .sep{height:1px;background:rgba(77,166,255,.15);margin:4px 0}

/* 片段/段落对应高亮（发光动画） */
/* 普通悬停：轻微发光，增强可感知性 */
.clip:hover{box-shadow:0 0 0 1px rgba(255,255,255,.28),0 0 10px 2px var(--clip-glow, rgba(77,166,255,.25));transition:box-shadow .18s ease}
/* 对应高亮：柔和的金色脉冲光，不破坏播放/选中状态 */
.clip.pair:not(.playing):not(.selected){
  outline:none !important;
  box-shadow:0 0 0 2px rgba(255,231,133,.65),0 0 14px 3px rgba(255,221,87,.35),0 0 28px 6px rgba(255,221,87,.18);
  animation:clipGlow 1.6s ease-in-out infinite;
}
@keyframes clipGlow{
  0%{box-shadow:0 0 0 2px rgba(255,231,133,.45),0 0 10px 2px rgba(255,221,87,.25),0 0 20px 4px rgba(255,221,87,.12)}
  50%{box-shadow:0 0 0 2px rgba(255,231,133,.8),0 0 16px 3px rgba(255,221,87,.45),0 0 34px 8px rgba(255,221,87,.28)}
  100%{box-shadow:0 0 0 2px rgba(255,231,133,.45),0 0 10px 2px rgba(255,221,87,.25),0 0 20px 4px rgba(255,221,87,.12)}
}
/* 段落对应/播放/选中高亮 */
.te-segpanel .segitem.pair{background:rgba(255,209,102,.12);box-shadow:inset 0 0 0 1px rgba(255,209,102,.35);animation:segGlow 1.6s ease-in-out infinite}
.te-segpanel .segitem.playing{background:rgba(77,166,255,.12);box-shadow:inset 0 0 0 1px rgba(77,166,255,.35)}
.te-segpanel .segitem.selected{border-left:3px solid #ffd166}
@keyframes segGlow{0%{box-shadow:inset 0 0 0 1px rgba(255,209,102,.25)}50%{box-shadow:inset 0 0 0 1px rgba(255,209,102,.45)}100%{box-shadow:inset 0 0 0 1px rgba(255,209,102,.25)}}
.clip.selected{
  outline:none !important;
  box-shadow:0 0 0 2px rgba(255,206,86,.95),0 0 18px 4px rgba(255,206,86,.45);
  animation:clipSelectPulse 1.2s ease-in-out infinite;
}
/* BGM/SFX 裁剪模式：选中时不显示外层发光边框，改由内部移动框显示 */
@keyframes clipSelectPulse{
  0%{box-shadow:0 0 0 2px rgba(255,206,86,.75),0 0 12px 3px rgba(255,206,86,.35)}
  50%{box-shadow:0 0 0 2px rgba(255,206,86,1),0 0 22px 6px rgba(255,206,86,.55)}
  100%{box-shadow:0 0 0 2px rgba(255,206,86,.75),0 0 12px 3px rgba(255,206,86,.35)}
}
.clip .slip-grip{position:absolute;top:6px;bottom:6px;width:14px;border-radius:8px;background:linear-gradient(180deg,#fff,#e5e7eb);box-shadow:0 0 0 1px rgba(0,0,0,.2),0 4px 10px rgba(0,0,0,.25);opacity:.9;cursor:ew-resize;display:none;z-index:9}
.clip.selected .slip-grip{display:block}
.clip .slip-grip.left{left:-8px}
.clip .slip-grip.right{right:-8px}
/* BGM/SFX 裁剪视觉：DOM 遮罩 + 边界线（不改变波形颜色） */
/* （已回滚）去除 BGM/SFX DOM 裁剪视觉，保持默认样式 */
/* ========== 项目管理页面样式 ========== */

.project-management {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 顶部区域 ========== */
.pm-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-2xl) var(--space-3xl);
}

/* 暗色平台风格的通用模态框（统一UI） */
.pm-dark-modal .ant-modal-content { background: #0f1436; color: #e2e8f0; border: 1px solid rgba(99,102,241,.3); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.pm-dark-modal .ant-modal-header { background: transparent; border-bottom: 1px solid rgba(255,255,255,.06); }
.pm-dark-modal .ant-modal-title { color: #e5e7eb; }
.pm-dark-modal .ant-modal-body { background: transparent; }
.pm-dark-modal .ant-modal-footer { background: transparent; border-top: 1px solid rgba(255,255,255,.06); }
.pm-dark-modal .ant-btn { background: rgba(148,163,184,.1); color:#e5e7eb; border:1px solid rgba(255,255,255,.12); }
.pm-dark-modal .ant-btn:hover { filter: brightness(1.06); }
.pm-dark-modal .ant-btn-primary { background: #6366f1; border-color:#6366f1; color:#fff; }
.pm-dark-modal .ant-btn-dangerous { background: rgba(244,63,94,.2); border-color: rgba(244,63,94,.6); color:#fecaca; }

/* 进度条 */
.pm-progress { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.pm-progress-bar { height:6px; background: rgba(99,102,241,.18); border-radius:6px; overflow:hidden; }
.pm-progress-inner { height:100%; background: linear-gradient(90deg,#818cf8,#a78bfa); width:0; transition: width .4s ease; }
.pm-progress-text { font-size:12px; color:#94a3b8; }

/* 强制覆盖 antd 默认浅色弹窗（提高权重+important） */
body .pm-dark-modal .ant-modal-content { background: #0f1436 !important; color: #e2e8f0 !important; border: 1px solid rgba(99,102,241,.3) !important; box-shadow: 0 12px 40px rgba(0,0,0,.45) !important; }
body .pm-dark-modal .ant-modal-header { background: transparent !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
body .pm-dark-modal .ant-modal-title { color: #e5e7eb !important; }
body .pm-dark-modal .ant-modal-body { background: transparent !important; }
body .pm-dark-modal .ant-modal-footer { background: transparent !important; border-top: 1px solid rgba(255,255,255,.06) !important; }
body .pm-dark-modal .ant-btn { background: rgba(148,163,184,.1) !important; color:#e2e8f0 !important; border:1px solid rgba(255,255,255,.12) !important; }

.pm-nav-group {
    max-width: 1600px;
    margin: 0 auto var(--space-xl);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.pm-nav-btn {
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(71, 85, 105, 0.25);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.pm-nav-btn:hover:not(.disabled):not(.active) {
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.2);
}

.pm-nav-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6) 0%, rgba(79, 70, 229, 0.6) 100%);
    border-color: rgba(99, 102, 241, 0.8);
    color: #fff;
    cursor: default;
}

.pm-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pm-header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pm-title-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pm-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.pm-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-muted);
}

/* ========== 主容器 ========== */
.pm-container {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ========== 左侧项目列表 ========== */
.pm-sidebar {
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
}

.pm-sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-primary);
}

.sidebar-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.project-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.project-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.project-item:hover {
    background: rgba(71, 85, 105, 0.3);
    border-color: var(--border-secondary);
    transform: translateX(4px);
}

.project-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--border-hover);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.project-icon {
    font-size: 32px;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 项目类型徽标 S/T/H */
.project-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}
.project-type-s { background: #a7f3d0; }  /* synthesis → 绿 */
.project-type-t { background: #bfdbfe; }  /* traditional → 蓝 */
.project-type-h { background: #fde68a; }  /* hybrid → 黄 */

/* 文本类型徽章（只读，深色友好） */
.project-texttype-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    color: #e5e7eb;
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.35);
}

.project-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== 右侧内容区 ========== */
.pm-main {
    padding: var(--space-3xl);
    overflow-y: auto;
}

.pm-empty-project {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    color: var(--text-muted);
}

.pm-empty-project .empty-icon {
    font-size: 80px;
}

.pm-empty-project h2 {
    font-size: var(--font-size-3xl);
    color: var(--text-secondary);
}

.pm-empty-project p {
    font-size: var(--font-size-lg);
}

.pm-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3xl);
}

.content-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.content-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.document-count {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: #a5b4fc;
}

/* ========== 文档网格 ========== */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-height: 900px;
    overflow-y: auto;
    padding-right: var(--space-sm);
}

/* 文档网格滚动条样式 */
.document-grid::-webkit-scrollbar {
    width: 8px;
}

.document-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.document-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.document-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.document-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    position: relative;
    min-height: 160px;
}

.document-card.batch-mode {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
}

.doc-checkbox {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 10;
}

.batch-mode .doc-checkbox {
    position: static;
}

.doc-icon {
    font-size: 40px;
    flex-shrink: 0;
    margin-bottom: var(--space-xs);
}

.batch-mode .doc-icon {
    font-size: 28px;
    margin-bottom: 0;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-mode .doc-name {
    font-size: var(--font-size-base);
    margin-bottom: 4px;
}

.doc-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.doc-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.batch-mode .doc-actions {
    flex-direction: column;
    gap: var(--space-xs);
}

/* ========== 删除按钮样式 ========== */
.delete-doc-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    height: 26px;
    width: auto;
    min-width: 50px;
    padding: 0 8px;
    border: 1px solid rgba(255, 71, 87, 0.2);
    background: transparent;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 12px;
    color: rgba(255, 71, 87, 0.6);
    font-weight: var(--font-weight-medium);
}

.document-card:hover .delete-doc-btn {
    display: flex;
}

.delete-doc-btn:hover {
    border-color: rgba(255, 71, 87, 0.4);
    background: rgba(255, 71, 87, 0.05);
    color: rgba(255, 71, 87, 0.8);
}

/* ========== 批量操作样式 ========== */
.content-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-md);
}

.batch-info {
    font-size: var(--font-size-sm);
    color: #64748b;
    font-weight: var(--font-weight-medium);
    margin-right: var(--space-sm);
}

/* 批量操作按钮统一样式 */
.batch-actions .ant-btn {
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    background: transparent !important;
    color: rgba(148, 163, 184, 0.8) !important;
    font-weight: var(--font-weight-medium) !important;
    transition: all 0.2s ease !important;
    font-size: var(--font-size-sm) !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: var(--radius-sm) !important;
}

.batch-actions .ant-btn:hover {
    border-color: rgba(148, 163, 184, 0.5) !important;
    background: rgba(148, 163, 184, 0.1) !important;
    color: rgba(148, 163, 184, 1) !important;
}

.batch-actions .ant-btn:disabled {
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: rgba(148, 163, 184, 0.4) !important;
    background: transparent !important;
}

/* 批量删除按钮特殊样式 */
.batch-delete-btn {
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    background: transparent !important;
    color: rgba(239, 68, 68, 0.7) !important;
    font-weight: var(--font-weight-medium) !important;
    transition: all 0.2s ease !important;
    font-size: var(--font-size-sm) !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: var(--radius-sm) !important;
}

.batch-delete-btn:hover {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.05) !important;
    color: rgba(239, 68, 68, 0.9) !important;
}

.batch-delete-btn:disabled {
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: rgba(148, 163, 184, 0.4) !important;
    background: transparent !important;
}

/* 批量操作按钮样式优化 */
.content-header-right .ant-btn:not(.ant-btn-primary) {
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    background: transparent !important;
    color: rgba(148, 163, 184, 0.8) !important;
    font-weight: var(--font-weight-medium) !important;
    transition: all 0.2s ease !important;
    font-size: var(--font-size-sm) !important;
    height: 32px !important;
    padding: 0 16px !important;
    border-radius: var(--radius-sm) !important;
}

.content-header-right .ant-btn:not(.ant-btn-primary):hover {
    border-color: rgba(148, 163, 184, 0.5) !important;
    background: rgba(148, 163, 184, 0.1) !important;
    color: rgba(148, 163, 184, 1) !important;
}

/* 上传文档按钮特殊样式 */
.content-header-right .ant-btn-primary {
    background: rgba(99, 102, 241, 0.8) !important;
    border-color: rgba(99, 102, 241, 0.8) !important;
    font-weight: var(--font-weight-medium) !important;
    transition: all 0.2s ease !important;
    font-size: var(--font-size-sm) !important;
    height: 32px !important;
    padding: 0 16px !important;
    border-radius: var(--radius-sm) !important;
}

.content-header-right .ant-btn-primary:hover {
    background: rgba(99, 102, 241, 1) !important;
    border-color: rgba(99, 102, 241, 1) !important;
}

/* 修复文档名称显示 */
.doc-name {
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

/* ========== 空状态 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-3xl);
    min-height: 400px;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.6;
}

.empty-text {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
}

/* ========== 加载状态 ========== */
.pm-loading {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    color: var(--text-muted);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .pm-container {
        grid-template-columns: 1fr;
    }

    .pm-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .pm-header {
        padding: var(--space-xl);
    }

    .pm-main {
        padding: var(--space-xl);
    }

    .document-grid {
        grid-template-columns: 1fr;
    }
}

  /* ========== 滚动条和删除按钮 ========== */
  .project-list {
      max-height: 400px !important;
      overflow-y: auto !important;
  }

  .project-list::-webkit-scrollbar {
      width: 8px !important;
  }

  .project-list::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1) !important;
      border-radius: 4px !important;
  }

  .project-list::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3) !important;
      border-radius: 4px !important;
  }

  .project-list::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.5) !important;
  }

  .delete-project-btn {
      position: absolute !important;
      right: 8px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      width: 20px !important;
      height: 20px !important;
      border: none !important;
      background: #ff4757 !important;
      color: white !important;
      border-radius: 10px !important;
      cursor: pointer !important;
      display: none !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 14px !important;
      line-height: 1 !important;
      z-index: 10 !important;
  }

  .project-item:hover .delete-project-btn {
      display: flex !important;
  }

  .delete-project-btn:hover {
      background: #ff3838 !important;
  }

  /* 修复文档名称显示 */
  .doc-name {
      color: inherit !important;
      font-size: 14px !important;
      line-height: 1.4 !important;
      word-break: break-word !important;
  }
/* ========== SeriesCard 系列卡片样式 ========== */

.series-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.series-card:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* ========== 系列头部 ========== */

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.series-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.series-expand-icon {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.series-icon {
    font-size: 28px;
    color: #6366f1;
    margin-top: 2px;
}

.series-info {
    flex: 1;
}

.series-title {
    color: #f1f5f9 !important;
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.series-description {
    color: #94a3b8;
    font-size: 14px;
    display: block;
    margin-top: 6px;
    line-height: 1.5;
}

.series-header-right {
    display: flex;
    align-items: center;
}

.series-header-right .ant-btn {
    color: #94a3b8;
}

.series-header-right .ant-btn:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.series-header-right .ant-btn.ant-btn-dangerous:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ========== 系列统计 ========== */

.series-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.stat-item.progress-stat {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.stat-icon {
    font-size: 16px;
    color: #6366f1;
    margin-bottom: 4px;
}

.stat-label {
    color: #64748b;
    font-size: 12px;
}

.stat-value {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
}

/* 进度条 */
.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(71, 85, 105, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
}

/* ========== 项目列表 ========== */

.series-projects {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.projects-header {
    margin-bottom: 12px;
}

.projects-header .ant-typography {
    color: #cbd5e1;
    font-size: 14px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-item:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateX(4px);
}

.project-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.project-order-tag {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
}

.project-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-name {
    color: #f1f5f9 !important;
    font-size: 15px;
}

.project-part-tag {
    margin-left: 8px;
    font-size: 12px;
}

.project-meta {
    display: flex;
    gap: 16px;
}

.project-meta-item {
    font-size: 12px;
    color: #64748b !important;
}

.project-item-right .ant-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-item:hover .ant-btn {
    opacity: 1;
}

.empty-projects {
    padding: 40px;
    text-align: center;
}

.empty-projects .ant-typography {
    color: #64748b;
}

/* ========== 响应式设计 ========== */

@media (max-width: 768px) {
    .series-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-item {
        min-width: 60px;
    }

    .stat-item.progress-stat {
        flex-basis: 100%;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-item-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .project-item:hover .ant-btn {
        opacity: 1;
    }
}
/* ========== SeriesManagement 系列管理页面样式 ========== */

.series-management {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 24px;
}

.series-management-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ========== 页面头部 ========== */

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.series-header-left {
    flex: 1;
}

.series-title {
    color: #f1f5f9;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.series-subtitle {
    color: #94a3b8;
    font-size: 16px;
    margin: 0;
}

.series-header-right {
    display: flex;
    align-items: center;
}

.series-header-right .ant-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    height: 44px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.series-header-right .ant-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* ========== 视图切换 ========== */

.series-view-switch {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.series-view-switch .ant-segmented {
    background: rgba(30, 41, 59, 0.8);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.series-view-switch .ant-segmented-item {
    color: #94a3b8;
    padding: 10px 24px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.series-view-switch .ant-segmented-item:hover {
    color: #cbd5e1;
}

.series-view-switch .ant-segmented-item-selected {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.series-view-switch .anticon {
    margin-right: 6px;
}

/* ========== 主内容区 ========== */

.series-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* 系列列表视图 */
.series-list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.series-list-view .ant-empty {
    padding: 80px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.series-list-view .ant-empty-image {
    height: 80px;
}

.series-list-view .ant-empty-description {
    color: #94a3b8;
}

/* 未归类项目视图 */
.unclassified-projects-view {
    max-width: 1200px;
    margin: 0 auto;
}

.unclassified-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
}

.unclassified-card .ant-card-head {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    color: #f1f5f9;
}

.unclassified-card .ant-card-head-title {
    color: #f1f5f9;
    font-size: 18px;
    font-weight: 600;
}

.unclassified-card .ant-card-body {
    padding: 0;
}

.unclassified-card .ant-list-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    transition: all 0.2s ease;
}

.unclassified-card .ant-list-item:hover {
    background: rgba(51, 65, 85, 0.5);
}

.unclassified-card .ant-list-item:last-child {
    border-bottom: none;
}

.unclassified-card .ant-list-item-meta-title {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 500;
}

.unclassified-card .ant-list-item-meta-description {
    color: #64748b;
}

.unclassified-card .ant-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

.unclassified-card .ant-btn-link {
    color: #a5b4fc;
}

.unclassified-card .ant-btn-link:hover {
    color: #c7d2fe;
}

/* ========== 空状态 ========== */

.unclassified-projects-view .ant-empty {
    padding: 80px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* ========== 模态框样式覆盖 ========== */

.create-series-modal .ant-modal-content,
.add-to-series-modal .ant-modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.create-series-modal .ant-modal-header,
.add-to-series-modal .ant-modal-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.create-series-modal .ant-modal-title,
.add-to-series-modal .ant-modal-title {
    color: #f1f5f9;
    font-size: 18px;
    font-weight: 600;
}

.create-series-modal .ant-modal-body,
.add-to-series-modal .ant-modal-body {
    background: transparent;
}

.create-series-modal .ant-modal-footer,
.add-to-series-modal .ant-modal-footer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border-top: 1px solid rgba(71, 85, 105, 0.5);
}

.create-series-modal .ant-form-item-label > label,
.add-to-series-modal .ant-form-item-label > label {
    color: #cbd5e1;
}

.create-series-modal .ant-input,
.create-series-modal .ant-input-textarea textarea,
.add-to-series-modal .ant-input,
.add-to-series-modal .ant-select-selector {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
}

.create-series-modal .ant-input:hover,
.create-series-modal .ant-input-textarea textarea:hover,
.add-to-series-modal .ant-input:hover,
.add-to-series-modal .ant-select-selector:hover {
    border-color: #6366f1;
}

.create-series-modal .ant-input:focus,
.create-series-modal .ant-input-textarea textarea:focus,
.add-to-series-modal .ant-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* ========== 响应式设计 ========== */

@media (max-width: 768px) {
    .series-management {
        padding: 16px;
    }

    .series-header {
        flex-direction: column;
        gap: 16px;
    }

    .series-title {
        font-size: 24px;
    }

    .series-subtitle {
        font-size: 14px;
    }

    .series-view-switch .ant-segmented-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    .unclassified-card .ant-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .unclassified-card .ant-list-item-action {
        width: 100%;
        margin-left: 0 !important;
    }
}
/* 项目协作面板样式 */
.collab-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    margin-bottom: 24px;
}

.collab-panel .ant-card-head {
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.collab-panel .ant-card-head-title {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
}

.collab-panel .ant-card-body {
    padding: 20px;
}

/* 阶段显示 */
.collab-stage-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
}

.collab-stage-section .stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.collab-stage-section .stage-name {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
}

.collab-stage-section .anticon {
    font-size: 18px;
    color: #6366f1;
}

.progress-section {
    margin-top: 12px;
}

/* 成员分配 */
.collab-members-section {
    margin-bottom: 24px;
}

.section-title {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.role-assignment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.role-assignment-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(2px);
}

.role-assignment-item .role-info {
    flex: 0 0 120px;
}

.role-assignment-item .assigned-user {
    flex: 1;
    color: #e5e7eb;
}

.role-assignment-item .unassigned {
    color: #94a3b8;
    font-style: italic;
}

/* 审核状态 */
.review-section {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(241, 196, 15, 0.08);
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 8px;
}

.review-alert {
    color: #f1c40f;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* 提交审核 */
.submit-section {
    margin-bottom: 16px;
}

.submit-hint {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* 团队成员 */
.collab-team-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.team-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.team-members-list .ant-avatar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-members-list .ant-avatar:hover {
    transform: scale(1.1);
    border-color: rgba(99, 102, 241, 0.6);
}

/* 邀请成员对话框 */
.invite-member-modal .ant-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.invite-member-modal .ant-modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.invite-member-modal .ant-modal-title {
    color: #e5e7eb;
}

.invite-member-modal .ant-modal-body {
    color: #e5e7eb;
}

.invite-member-modal .ant-form-item-label > label {
    color: #cbd5e1;
}

.invite-member-modal .ant-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #e5e7eb;
}

.invite-member-modal .ant-input:hover,
.invite-member-modal .ant-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(15, 23, 42, 0.8);
}

.invite-member-modal .ant-select-selector {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #e5e7eb !important;
}

.invite-member-modal .ant-select-arrow {
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .collab-panel .ant-card-body {
        padding: 16px;
    }

    .role-assignment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .role-assignment-item .role-info {
        flex: none;
    }

    .role-assignment-item .assigned-user {
        width: 100%;
    }
}

/* 暗色主题优化 */
.collab-panel .ant-progress-text {
    color: #e5e7eb;
}

.collab-panel .ant-tag {
    border: none;
}

.collab-panel .ant-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

.collab-panel .ant-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.collab-panel .ant-btn-text {
    color: #94a3b8;
}

.collab-panel .ant-btn-text:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}
/* 协作控制台样式 */
.collab-console {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 24px;
}

.console-loading,
.console-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

/* 统计卡片 */
.console-stats {
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
}

.stat-card .ant-statistic-title {
    color: #cbd5e1;
    font-size: 14px;
}

.stat-card .ant-statistic-content {
    color: #e5e7eb;
}

/* 主内容区 */
.console-main {
    margin-bottom: 24px;
}

/* 项目列表卡片 */
.project-list-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    height: calc(100vh - 280px);
    overflow: auto;
}

.project-list-card .ant-card-head {
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.project-list-card .ant-card-head-title {
    color: #e5e7eb;
}

.project-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px !important;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(4px);
}

.project-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
}

.project-item .ant-list-item-meta-title {
    color: #e5e7eb;
    font-size: 14px;
}

/* 活动日志卡片 */
.activity-log-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    margin-top: 16px;
}

.activity-log-card .ant-card-head {
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.activity-log-card .ant-card-head-title {
    color: #e5e7eb;
}

.activity-item {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 8px !important;
}

/* 空状态卡片 */
.empty-selection-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 暗色主题优化 */
.collab-console .ant-empty-description {
    color: #94a3b8;
}

.collab-console .ant-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

.collab-console .ant-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.video-studio-page {
    min-height: calc(100vh - 64px);
    padding: 32px 40px 80px;
    color: #f8fafc;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.video-studio-hero {
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.35));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 24px;
    padding: 32px 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
}

.video-hero-text {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    color: #c7d2fe;
}

.video-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.video-hero-desc {
    font-size: 16px;
    color: #cbd5f5;
    line-height: 1.6;
}

.video-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.video-steps-card {
    min-width: 320px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 16px 24px;
}

.video-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.video-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.video-studio-card {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.video-studio-card .ant-card-head {
    border-bottom-color: rgba(99, 102, 241, 0.15);
    color: #e0e7ff;
}

.video-studio-card .ant-card-head-title {
    color: inherit;
    font-weight: 600;
    font-size: 16px;
}
.video-studio-card .ant-card-body {
    color: #e5e7eb;
}

.video-studio-card .ant-card-extra {
    color: #94a3b8;
    font-size: 13px;
}

.video-studio-card .ant-input,
.video-studio-card .ant-select-selector,
.video-studio-card .ant-input-number,
.video-studio-card .ant-textarea,
.video-studio-card .ant-input-affix-wrapper {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    color: #f8fafc !important;
}

.video-studio-card .ant-input::placeholder,
.video-studio-card .ant-select-selection-placeholder,
.video-studio-card .ant-input-number .ant-input-number-input::placeholder {
    color: rgba(203, 213, 225, 0.6);
}
.video-studio-card .ant-form-item-label > label {
    color: #e0e7ff;
}
.video-studio-card .ant-input-number-input {
    color: #f8fafc;
}

.video-studio-card .ant-select-arrow {
    color: #c7d2fe;
}

.video-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.video-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.video-btn.secondary {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.video-btn.ghost {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.video-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.video-studio-table .ant-table {
    background: transparent;
}

.video-studio-table .ant-table-thead > tr > th {
    background: rgba(15, 23, 42, 0.9);
    color: #c7d2fe;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.video-studio-table .ant-table-tbody > tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.video-studio-table .ant-table-tbody > tr > td {
    background: rgba(15, 23, 42, 0.55) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.3);
    color: #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动态悬浮效果 - 只有动画，不改变背景 */
.video-studio-table .ant-table-tbody > tr:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.video-studio-table .ant-table-row:hover > td {
    background: rgba(15, 23, 42, 0.55) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* 强制覆盖 Ant Design 的 hover 类 */
.video-studio-table .ant-table-cell-row-hover {
    background: rgba(15, 23, 42, 0.55) !important;
}

.video-studio-table .ant-table {
    color: #f8fafc;
}

.role-blocking-panel {
    margin-top: 6px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
}

.role-blocking-title {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.role-blocking-row {
    padding: 6px 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.role-blocking-row:first-of-type {
    border-top: none;
}

.role-blocking-name {
    font-size: 12px;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.role-blocking-fields {
    display: flex;
    gap: 6px;
}

.role-blocking-fields .ant-select {
    flex: 1;
    min-width: 0;
}

.role-blocking-fields .ant-input-number {
    flex: 0 0 90px;
    min-width: 90px;
}

.role-blocking-row .ant-input {
    margin-top: 6px;
}

.video-job-list {
    max-height: 280px;
    overflow-y: auto;
}

.video-job-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.video-job-item:last-child {
    border-bottom: none;
}

.candidate-modal .ant-modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    color: #f8fafc;
}
.candidate-modal .ant-modal-title {
    color: #f8fafc;
}
.candidate-modal .ant-modal-header {
    background: rgba(15, 23, 42, 0.95);
}
.candidate-modal .ant-form-item-label > label {
    color: #e0e7ff;
}
.candidate-modal .ant-modal-body {
    color: #e5e7eb;
}
.candidate-modal .ant-input,
.candidate-modal .ant-input-number-input,
.candidate-modal .ant-select-selector {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #f8fafc !important;
}
.candidate-modal .ant-select-selection-item,
.candidate-modal .ant-select-selection-placeholder,
.candidate-modal .ant-input-number-handler-wrap span {
    color: #f8fafc !important;
}
.candidate-modal .ant-modal-close-x {
    color: #cbd5f5;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.candidate-card {
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.candidate-card img {
    width: 100%;
    border-radius: 8px;
}

.candidate-card:hover {
    transform: translateY(-4px);
    border-color: rgba(165, 180, 252, 0.9);
}

.candidate-card.active {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 2px rgba(165, 180, 252, 0.6);
}

.shot-scene-text {
    color: #f8fafc;
    margin-bottom: 4px;
    font-weight: 500;
}

.shot-action-text {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
    max-height: 56px;
    overflow: hidden;
}

.audio-clip-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.audio-clip-item {
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-clip-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audio-clip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e7ff;
}

.audio-clip-text {
    color: #cbd5f5;
    font-size: 13px;
}

.audio-clip-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.audio-clip-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-clip-actions audio {
    width: 100%;
}

.video-studio-card .ant-tag {
    border-radius: 999px;
    border: none;
    padding: 4px 12px;
    font-weight: 600;
}

.video-studio-card .ant-progress-text {
    color: #e2e8f0;
}

.video-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e7ff;
    margin-bottom: 12px;
}

.video-hint {
    font-size: 13px;
    color: #94a3b8;
}

.video-studio-card .ant-steps-item-title {
    color: #cbd5f5;
}

.video-studio-card .ant-steps-item-description {
    color: #94a3b8;
}

.video-studio-card .ant-steps-item-icon {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
}

.video-studio-card .ant-descriptions-item-label,
.video-studio-card .ant-descriptions-item-content {
    color: #e0e7ff;
}

.video-studio-card .ant-descriptions-item-label {
    opacity: 0.8;
}

.video-json-input {
    font-family: 'JetBrains Mono', Consolas, monospace;
    min-height: 200px;
    color: #e0e7ff !important;
}

.video-studio-card .ant-table-placeholder .ant-table-cell {
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
}

.video-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5f5;
    margin-bottom: 6px;
}

.video-inline-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.video-drawer .ant-drawer-content {
    background: rgba(10, 14, 39, 0.96);
    color: #f8fafc;
}
.video-drawer .ant-drawer-header {
    background: transparent;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}
.video-drawer .ant-drawer-title {
    color: #f8fafc;
}
.video-drawer .ant-drawer-close {
    color: #cbd5f5;
}
.video-drawer .ant-input,
.video-drawer .ant-input-number-input,
.video-drawer .ant-select-selector {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}
.video-drawer .ant-select-selection-item,
.video-drawer .ant-select-selection-placeholder {
    color: #e5e7eb !important;
}
.video-drawer .ant-input-number-handler-wrap span {
    color: #e5e7eb;
}
.video-drawer .ant-form-item-label > label {
    color: #e0e7ff;
}
.video-drawer .ant-btn {
    color: #f8fafc;
}

@media (max-width: 1024px) {
    .video-studio-page {
        padding: 24px;
    }
    .video-studio-hero {
        flex-direction: column;
    }
}

/* 剧本文本区域样式 */
.script-text-area {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.script-text-area textarea {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.ant-input-textarea .script-text-area {
  color: #111827 !important;
  background-color: #ffffff !important;
}

/* Drawer按钮强制可见样式 */
.script-drawer-button {
  color: #111827 !important;
  background-color: #ffffff !important;
  border-color: #d1d5db !important;
}

.script-drawer-button:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
  border-color: #9ca3af !important;
}

.script-drawer-button span {
  color: #111827 !important;
}

.script-drawer-button .anticon {
  color: #111827 !important;
}

.script-drawer-button.ant-btn-primary {
  color: #ffffff !important;
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}

.script-drawer-button.ant-btn-primary span {
  color: #ffffff !important;
}

.script-drawer-button.ant-btn-primary .anticon {
  color: #ffffff !important;
}

/* 剧本编辑TextArea强制可见样式 */
.script-edit-textarea {
  color: #111827 !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
}

.script-edit-textarea textarea {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.script-edit-textarea::placeholder {
  color: #9ca3af !important;
}

/* 剧本Drawer完整覆盖样式 - 确保深色文字可见 */
.script-drawer .ant-drawer-content {
  background: #ffffff !important;
  color: #111827 !important;
}

.script-drawer .ant-drawer-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.script-drawer .ant-drawer-title {
  color: #111827 !important;
}

.script-drawer .ant-drawer-body {
  color: #111827 !important;
}

.script-drawer .ant-btn {
  color: #111827 !important;
  background-color: #ffffff !important;
  border-color: #d1d5db !important;
}

.script-drawer .ant-btn-primary {
  color: #ffffff !important;
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}

.script-drawer .ant-btn .anticon {
  color: inherit !important;
}

.script-drawer .ant-input,
.script-drawer .ant-input-number-input,
.script-drawer .ant-select-selector,
.script-drawer textarea {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
}

.script-drawer .ant-select-selection-item,
.script-drawer .ant-select-selection-placeholder {
  color: #111827 !important;
}

.script-drawer pre {
  color: #111827 !important;
  background-color: #ffffff !important;
}
.video-role-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-role-card .role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-role-card .role-name {
    font-size: 16px;
    font-weight: 600;
    color: #e0e7ff;
}

.video-role-card .role-desc {
    color: #cbd5fe;
    font-size: 13px;
}

.video-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.video-role-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.video-role-chip {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.role-chip-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chip-name {
    color: #f8fafc;
    font-weight: 600;
}

.chip-desc {
    color: #94a3b8;
    font-size: 12px;
}

.video-role-btn {
    border-radius: 999px;
    color: #fff;
}

.video-role-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.video-role-btn.secondary {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(236, 72, 153, 0.5);
}

.video-role-btn.ghost {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.role-chip-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-chip-thumb {
    width: 100%;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.role-chip-thumb img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.role-chip-thumb:hover {
    border-color: rgba(165, 180, 252, 0.8);
    transform: translateY(-2px);
}

.role-chip-thumb.placeholder {
    text-align: center;
    color: #94a3b8;
    border-style: dashed;
    cursor: default;
    transform: none;
}

.role-chip-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-meta-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-meta-line span {
    font-size: 12px;
    color: #cbd5f5;
    letter-spacing: 0.5px;
}

.role-meta-line p {
    color: #e2e8f0;
    font-size: 13px;
    margin: 0;
}

.role-chip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.role-chip-tags .ant-tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.role-canvas-preview {
    width: 100%;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
/* ==========================================
   GenerationModal - 统一生成参数配置模态框样式
   设计理念：科技感 + 深色主题 + 玻璃态效果
   ========================================== */

/* ========== 模态框基础样式 ========== */
.generation-modal .ant-modal-content {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(99, 102, 241, 0.15);
}

.generation-modal .ant-modal-header {
  background: transparent;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 20px 24px;
}

.generation-modal .ant-modal-title {
  color: #e0e7ff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.generation-modal .ant-modal-body {
  padding: 24px;
  min-height: 300px;
}

.generation-modal .ant-modal-footer {
  background: transparent;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding: 16px 24px;
}

/* ========== 标题包装器 ========== */
.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e0e7ff, #cbd5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== 配置阶段样式 ========== */
.generation-config-stage {
  padding: 10px 0;
}

/* 表单标签样式 - 确保深色背景下清晰可见 */
.generation-config-stage .form-label {
  color: #e0e7ff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.generation-config-stage .ant-form-item-label > label {
  color: #e0e7ff !important;
}

.generation-config-stage .form-extra {
  color: #94a3b8;
  font-size: 12px;
}

/* 宽高比选择器 */
.aspect-ratio-group {
  width: 100%;
  display: flex;
  gap: 12px;
}

.aspect-ratio-option {
  flex: 1;
  height: auto !important;
  padding: 0 !important;
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.aspect-ratio-option:hover {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px);
}

.aspect-ratio-option.ant-radio-button-wrapper-checked {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(79, 70, 229, 0.3)) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.aspect-ratio-content {
  padding: 16px 12px;
  text-align: center;
}

.aspect-ratio-label {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.aspect-ratio-dimensions {
  color: #cbd5f5;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

/* 候选数量选择器 */
.candidate-count-group .ant-radio-button-wrapper {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #f8fafc !important;
  transition: all 0.3s ease;
}

.candidate-count-group .ant-radio-button-wrapper:hover {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

.candidate-count-group .ant-radio-button-wrapper-checked {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  border-color: #6366f1 !important;
  color: white !important;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* 帧数选择器 */
.frame-count-select .ant-select-selector {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #f8fafc !important;
}

.frame-count-select .ant-select-arrow {
  color: #cbd5f5 !important;
}

/* FPS显示 */
.fps-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  margin-top: 16px;
}

.fps-label {
  color: #cbd5f5;
  font-size: 14px;
  font-weight: 500;
}

.fps-value {
  color: #6366f1;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.fps-hint {
  color: #94a3b8;
  font-size: 12px;
  margin-left: auto;
}

/* ========== 生成中阶段样式 ========== */
.generation-generating-stage {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.generating-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* 环形进度指示器 */
.ring-progress-container {
  margin-bottom: 40px;
}

.ring-progress-container .ant-progress-circle-trail {
  stroke: rgba(99, 102, 241, 0.1);
}

.ring-progress-container .ant-progress-text {
  color: #f8fafc;
}

.progress-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-percent {
  font-size: 32px;
  font-weight: 700;
  color: #e0e7ff;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.progress-status {
  font-size: 14px;
  color: #cbd5f5;
  letter-spacing: 1px;
}

/* 粒子动画背景 */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #6366f1, transparent);
  border-radius: 50%;
  animation: particleFloat 5s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* 扫描线效果 */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(99, 102, 241, 0.8),
    transparent
  );
  animation: scanLineMove 3s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

@keyframes scanLineMove {
  0% {
    top: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* 生成信息 */
.generating-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-icon {
  font-size: 32px;
  color: #6366f1;
  animation: loadingRotate 1.5s linear infinite;
}

@keyframes loadingRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.generating-text {
  font-size: 18px;
  font-weight: 600;
  color: #e0e7ff;
  letter-spacing: 0.5px;
}

.generating-hint {
  font-size: 14px;
  color: #94a3b8;
}

/* ========== 预览阶段样式 ========== */
.generation-preview-stage {
  padding: 10px 0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.preview-title {
  font-size: 16px;
  font-weight: 600;
  color: #e0e7ff;
}

.regenerate-btn {
  color: #6366f1 !important;
  font-weight: 500;
}

.regenerate-btn:hover {
  color: #4f46e5 !important;
}

/* 预览结果网格 */
.preview-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

/* 自定义滚动条 */
.preview-results::-webkit-scrollbar {
  width: 6px;
}

.preview-results::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 3px;
}

.preview-results::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
  border-radius: 3px;
}

.preview-results::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* 结果卡片 */
.result-card {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 2px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.result-card:hover {
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.result-card.selected {
  border-color: #6366f1 !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.2)) !important;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.result-card .ant-card-cover img,
.result-card .ant-card-cover video {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.result-card .ant-card-body {
  padding: 12px;
  background: transparent;
}

.result-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc !important;
  font-size: 14px;
  font-weight: 500;
}

.result-card-title .anticon {
  color: #6366f1;
  font-size: 16px;
}

.selected-icon {
  margin-left: auto;
  color: #22c55e !important;
  font-size: 18px;
  animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.result-card-desc {
  color: #cbd5f5 !important;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  margin-top: 8px;
}

/* 错误容器 */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 300px;
  padding: 40px;
}

.error-icon {
  font-size: 64px;
  color: #ef4444;
  animation: errorShake 0.5s ease;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.error-message {
  font-size: 16px;
  color: #fca5a5;
  text-align: center;
  max-width: 400px;
}

/* ========== 按钮样式覆盖 ========== */
.generation-modal .ant-btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.generation-modal .ant-btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.generation-modal .ant-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.generation-modal .ant-btn-default {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #cbd5f5;
}

.generation-modal .ant-btn-default:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.5);
  color: #e0e7ff;
}

/* ========== 下拉选择器样式覆盖 ========== */
.ant-select-dropdown {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.ant-select-item {
  color: #f8fafc !important;
}

.ant-select-item:hover {
  background: rgba(99, 102, 241, 0.2) !important;
}

.ant-select-item-option-selected {
  background: rgba(99, 102, 241, 0.3) !important;
  color: #e0e7ff !important;
  font-weight: 600;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
  .preview-results {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .aspect-ratio-group {
    flex-direction: column;
  }

  .preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* 有声漫工作台 - 暗色专业风格 */
.voice-comic-studio {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1629 100%);
  padding: 24px;
}

/* 顶部导航 */
.studio-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.studio-header .ant-btn {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.studio-header .ant-btn:hover {
  color: #fff;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.header-title h3 {
  color: #fff !important;
  margin: 0 !important;
}

.header-title .ant-typography {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* 步骤卡片 */
.ant-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

.ant-card-body {
  padding: 24px;
}

/* 步骤导航 */
.ant-steps-item-title {
  color: rgba(255, 255, 255, 0.6) !important;
}

.ant-steps-item-active .ant-steps-item-title {
  color: #3b82f6 !important;
}

.ant-steps-item-finish .ant-steps-item-title {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ant-steps-item-icon {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.ant-steps-item-active .ant-steps-item-icon {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.ant-steps-item-finish .ant-steps-item-icon {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: #22c55e !important;
}

/* 步骤内容区域 */
.studio-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 600px;
  margin-top: 24px;
}

/* 步骤头部 */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-header h4 {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* 步骤底部操作栏 */
.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 按钮样式 */
.ant-btn-default {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.ant-btn-default:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
}

.ant-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5) !important;
  transform: translateY(-1px);
}

/* ========== 角色卡步骤样式 ========== */
.characters-step {
  min-height: 500px;
}

/* ========== 项目选择器样式 ========== */
.project-selector {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.project-selector .form-item {
  margin-bottom: 24px;
}

.project-selector .ant-typography-secondary {
  font-size: 16px;
}

.project-selector .ant-select-selector {
  height: 48px !important;
  padding: 8px 16px !important;
}

.project-selector .ant-select-selection-item {
  line-height: 32px !important;
}

.project-selector .ant-btn-primary {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
}

/* ========== 角色卡片样式 ========== */
.character-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25),
              0 0 0 1px rgba(59, 130, 246, 0.3);
}

.character-card.selected {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4),
              0 0 20px rgba(59, 130, 246, 0.3);
}

.character-card .ant-card-meta-title {
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
}

.character-card .ant-card-meta-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

.character-card-cover {
  height: 300px; /* 增加高度以容纳完整图片 */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.character-card-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%);
}

.character-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 改为contain，显示完整图片不裁剪 */
  background: rgba(0, 0, 0, 0.2); /* 添加深色背景，避免图片与渐变背景冲突 */
}

.character-placeholder {
  color: white;
  font-size: 48px;
  opacity: 0.8;
}

/* Badge样式 */
.ant-badge-status-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ant-badge-status-success {
  background: #22c55e;
}

.ant-badge-status-default {
  background: rgba(255, 255, 255, 0.3);
}

/* 表单样式 */
.form-item {
  margin-bottom: 20px;
}

.form-item .ant-typography {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}

.ant-input,
.ant-input-textarea textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px;
}

.ant-input:hover,
.ant-input-textarea textarea:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
}

.ant-input:focus,
.ant-input-textarea textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.ant-input::placeholder,
.ant-input-textarea textarea::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

.ant-select {
  width: 100%;
}

.ant-select-selector {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
}

.ant-select-selection-item {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-select-arrow {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ========== 分镜脚本步骤样式 ========== */
.storyboard-step {
  min-height: 500px;
}

/* 横向镜头缩略图带 */
.shots-timeline {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.shots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255, 255, 255, 0.05);
}

.shots-scroll::-webkit-scrollbar {
  height: 8px;
}

.shots-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.shots-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

.shots-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

.shot-thumbnail {
  min-width: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.shot-thumbnail:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
}

.shot-thumbnail.active {
  border-color: #3b82f6;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(37, 99, 235, 0.2) 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4),
              0 0 20px rgba(59, 130, 246, 0.3);
}

.shot-number {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shot-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.shot-duration {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

/* 镜头详情卡片 */
.shot-detail {
  margin-top: 32px;
}

.shot-detail .ant-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.shot-detail .ant-card-head-title {
  color: #fff !important;
  font-weight: 600;
}

.shot-detail .ant-card-extra .ant-btn-link {
  color: #3b82f6 !important;
}

.timeline-bar {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}

.timeline-bar .ant-typography {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ant-progress-bg {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
}

.ant-progress-inner {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Descriptions样式 */
.ant-descriptions-item-label {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 500;
}

.ant-descriptions-item-content {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-typography-secondary {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Divider */
.ant-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Empty状态 */
.ant-empty-description {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Spin加载 */
.ant-spin-dot-item {
  background-color: #3b82f6 !important;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .voice-comic-studio {
    padding: 12px;
  }

  .studio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .studio-content {
    padding: 16px;
  }

  .step-footer {
    flex-direction: column;
    gap: 12px;
  }

  .step-footer button {
    width: 100%;
  }

  .shot-thumbnail {
    min-width: 80px;
    padding: 12px;
  }

  .shot-number {
    font-size: 16px;
  }

  .shot-icon {
    font-size: 24px;
  }
}

/* ========== 增强专业感 ========== */

/* 微妙的动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
}

.character-card,
.shot-thumbnail,
.shot-detail,
.studio-header,
.studio-content {
  animation: fadeInUp 0.5s ease-out;
}

.shot-thumbnail.active {
  animation: fadeInUp 0.5s ease-out, glow 2s infinite;
}

/* 毛玻璃效果增强 */
.studio-header,
.studio-content,
.shots-timeline {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* 文字层级优化 */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  font-weight: 600 !important;
}

.ant-typography {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ant-typography-secondary {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* 选择器下拉框暗色主题 */
.ant-select-dropdown {
  background: rgba(26, 31, 58, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ant-select-item {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ant-select-item-option-selected {
  background: rgba(59, 130, 246, 0.2) !important;
}

.ant-select-item-option-active {
  background: rgba(59, 130, 246, 0.1) !important;
}

/* Modal暗色主题 */
.ant-modal-content {
  background: rgba(26, 31, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ant-modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ant-modal-title {
  color: #fff !important;
}

.ant-modal-close {
  color: rgba(255, 255, 255, 0.6) !important;
}

.ant-modal-close:hover {
  color: #fff !important;
}
  /* Apple黑色风格设计变量 */
  :root {
    --apple-black: #000000;
    --apple-dark: #1a1a1a;
    --apple-text: #f5f5f7;
    --apple-text-secondary: #a1a1a6;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --surface-glass: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
  }

  /* 主编辑器容器 */
  .xsound-editor {
    background: linear-gradient(135deg, #1d1d1f 0%, #000000 100%);
    color: var(--apple-text);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  }

  /* 顶部工具栏 */
  .xsound-header {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light) !important;
    padding: 0 24px !important;
  }

  .xsound-header .ant-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--apple-text);
    border-radius: var(--radius-sm);
  }

  .xsound-header .ant-btn:hover {
    background: var(--surface-glass);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
  }

  /* 左侧边栏 */
  .xsound-left-sidebar {
    background: var(--surface-glass) !important;
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-light) !important;
  }

  /* 右侧边栏 */
  .xsound-right-sidebar {
    background: var(--surface-glass) !important;
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-light) !important;
  }

  /* 主内容区域 */
  .xsound-main-content {
    background: var(--apple-dark);
    color: var(--apple-text);
  }

  /* 覆盖Ant Design组件样式 */
  .xsound-editor .ant-layout {
    background: transparent !important;
  }

  .xsound-editor .ant-layout-sider {
    background: var(--surface-glass) !important;
  }

  .xsound-editor .ant-layout-content {
    background: var(--apple-dark) !important;
  }

  /* 按钮样式统一 */
  .xsound-editor .ant-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--apple-text);
    border-radius: var(--radius-sm);
  }

  .xsound-editor .ant-btn:hover {
    background: var(--surface-glass);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
  }

  .xsound-editor .ant-btn-primary {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: white;
  }

  .xsound-editor .ant-btn-primary:hover {
    background: var(--apple-blue-hover);
    border-color: var(--apple-blue-hover);
  }

  /* 输入框样式 */
  .xsound-editor .ant-input {
    background: var(--surface-glass);
    border: 1px solid var(--border-light);
    color: var(--apple-text);
    border-radius: var(--radius-sm);
  }

  .xsound-editor .ant-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
  }

  /* 卡片样式 */
  .xsound-editor .ant-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
  }

  .xsound-editor .ant-card-head {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
  }

  .xsound-editor .ant-card-head-title {
    color: var(--apple-text);
  }

  .xsound-editor .ant-card-body {
    color: var(--apple-text);
  }

  /* 列表样式 */
  .xsound-editor .ant-list-item {
    border-bottom: 1px solid var(--border-light);
    color: var(--apple-text);
  }

  /* 标签页样式 */
  .xsound-editor .ant-tabs-tab {
    color: var(--apple-text-secondary);
  }

  .xsound-editor .ant-tabs-tab-active {
    color: var(--apple-blue);
  }

  .xsound-editor .ant-tabs-ink-bar {
    background: var(--apple-blue);
  }

  /* 工具提示样式 */
  .xsound-editor .ant-tooltip-inner {
    background: var(--apple-dark);
    color: var(--apple-text);
    border-radius: var(--radius-sm);
  }

  /* 滚动条样式 */
  .xsound-editor ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .xsound-editor ::-webkit-scrollbar-track {
    background: var(--apple-dark);
  }

  .xsound-editor ::-webkit-scrollbar-thumb {
    background: var(--surface-glass);
    border-radius: 4px;
  }

  .xsound-editor ::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
  }

  /* 修复顶部栏文字可见性 */
  .xsound-editor .ant-menu {
    background: transparent !important;
    color: var(--apple-text) !important;
  }

  .xsound-editor .ant-menu-item {
    color: var(--apple-text) !important;
  }

  .xsound-editor .ant-menu-item:hover {
    color: var(--apple-blue) !important;
    background: var(--surface-glass) !important;
  }

  /* 确保所有文本元素可见 */
  .xsound-editor h1,
  .xsound-editor h2,
  .xsound-editor h3,
  .xsound-editor span,
  .xsound-editor .ant-typography {
    color: var(--apple-text) !important;
  }

  /* 修复按钮组文字 */
  .xsound-editor .ant-btn-group .ant-btn {
    color: var(--apple-text) !important;
  }

    /* 修复图标颜色 */
  .xsound-editor .anticon {
    color: var(--apple-text) !important;
  }  

  /* 响应式设计 */
  @media (max-width: 768px) {
    .xsound-header {
      padding: 0 16px !important;
    }

    .xsound-left-sidebar,
    .xsound-right-sidebar {
      width: 280px !important;
    }
  }
  
  /* 轨道容器样式 */
  .tracks-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--apple-black);
    padding: 0;
  }

  /* 单个轨道样式 */
  .track-content {
    height: 80px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0;
    width: 100%;
  }

  /* 音频块样式 */
  .audio-block {
    position: absolute;
    height: 60px;
    top: 10px;
    min-width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-sm);
    cursor: move;
    padding: 4px 8px;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .audio-block:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    z-index: 10;
  }

  /* 音频块选中状态 */
  .audio-block.selected {
    border: 2px solid var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
  }
  
  /* 右键菜单样式 */
  .context-menu {
    position: fixed;
    background: var(--apple-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    padding: 4px 0;
    min-width: 120px;
    z-index: 9999;
  }

  .context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    color: var(--apple-text);
    transition: background 0.2s ease;
  }

  .context-menu-item:hover {
    background: var(--surface-glass);
    color: var(--apple-blue);
  }
  
/* ========== MainLayout 布局样式 ========== */

.main-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    display: flex;
    flex-direction: column;
}

/* ========== 顶部导航栏 ========== */
.layout-navbar {
    height: 64px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 900; /* 低于 AntD message/notification，避免信息被遮挡 */
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-logo {
    font-size: 28px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.nav-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-tab.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

.nav-tab.coming-soon {
    opacity: 0.7;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========== 用户信息 ========== */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.user-info:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
}

.user-tier-badge {
    font-size: 20px;
}

.user-name {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.user-credits {
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
}

/* ========== 用户菜单 ========== */
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 3000; /* 确保覆盖页面内部按钮 */
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-header {
    padding: 16px;
}

.user-menu-name {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
}

.user-menu-level {
    font-size: 12px;
    color: #94a3b8;
}

.user-menu-divider {
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
    margin: 8px 0;
}

.user-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #f9fafb;
}

.user-menu-item.danger {
    color: #f87171;
}

.user-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========== 工作模式切换样式 ========== */
.user-menu-section {
    padding: 8px 0;
}

.menu-section-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-menu-item.mode-item {
    position: relative;
    justify-content: space-between;
}

.user-menu-item.mode-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-left: 3px solid #6366f1;
}

.user-menu-item.mode-item .mode-check {
    color: #10b981;
    font-size: 16px;
    margin-left: auto;
}

.user-menu-item.mode-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* ========== 主内容区 ========== */
.layout-content {
    flex: 1;
    overflow: auto;
}

/* ========== Footer ========== */
.layout-footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 32px 24px;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-slogan {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slogan-cn {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}

.slogan-en {
    font-size: 13px;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f9fafb;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .navbar-tabs {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* 通知系统样式 */

/* 通知铃铛按钮 */
.notification-bell-button {
  color: var(--text-primary, #e2e8f0) !important;
  padding: 4px 8px;
}

.notification-bell-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 通知下拉面板 */
.notification-dropdown-overlay {
  z-index: 1050;
}

.notification-dropdown {
  width: 400px;
  max-height: 600px;
  background: #1e293b;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.notification-header {
  padding: 12px 16px;
  border-bottom: 1px solid #27324a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
}

.notification-title {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

.notification-list {
  max-height: 480px;
  overflow-y: auto;
}

/* 通知列表项 */
.notification-item {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.notification-item.notification-unread {
  background: rgba(59, 130, 246, 0.1) !important;
}

.notification-item.notification-unread:hover {
  background: rgba(59, 130, 246, 0.15) !important;
}

.notification-content {
  width: 100%;
}

.notification-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
}

.notification-title-text {
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 6px;
  line-height: 1.4;
}

.notification-message {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.notification-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.notification-footer-actions {
  padding: 12px 16px;
  border-top: 1px solid #27324a;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
}

/* 滚动条样式 */
.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Ant Design List样式覆盖 */
.notification-dropdown .ant-list-item {
  padding: 0 !important;
  border: none !important;
}

.notification-dropdown .ant-empty {
  color: #94a3b8;
}

.notification-dropdown .ant-tag {
  margin: 0;
}

/* Badge样式调整 */
.ant-badge-count {
  box-shadow: 0 0 0 1px #1e293b;
}
/* ========== 工作区选择器样式 ========== */

.workspace-selector-modal .ant-modal-body {
    padding: 24px;
}

.workspace-selector-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workspace-selector-hint {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid #6366f1;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.workspace-selector-hint p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 工作区列表 ========== */

.workspace-list {
    max-height: 400px;
    overflow-y: auto;
}

.workspace-item {
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    position: relative;
}

.workspace-item:hover {
    border-color: rgba(99, 102, 241, 0.8);
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(71, 85, 105, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.workspace-item.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 0 0 1px #6366f1 inset;
}

.workspace-item.selected::before {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.workspace-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== 工作区头部 ========== */

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workspace-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.workspace-icon {
    font-size: 20px;
    color: #a5b4fc;
}

.workspace-name {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
}

/* ========== 工作区描述 ========== */

.workspace-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 28px;
}

/* ========== 工作区元信息 ========== */

.workspace-meta {
    display: flex;
    gap: 16px;
    padding-left: 28px;
    font-size: 13px;
    color: #64748b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item .anticon {
    font-size: 14px;
    color: #94a3b8;
}

/* ========== 工作区操作 ========== */

.workspace-actions {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
}

.workspace-actions .ant-btn {
    height: 44px;
    font-size: 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.workspace-actions .ant-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ========== 空状态 ========== */

.workspace-list .ant-empty {
    padding: 40px 0;
}

.workspace-list .ant-empty-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

/* ========== Modal样式覆盖 ========== */

.workspace-selector-modal .ant-modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(71, 85, 105, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.workspace-selector-modal .ant-modal-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.workspace-selector-modal .ant-modal-title {
    color: #f1f5f9;
    font-size: 18px;
    font-weight: 600;
}

.workspace-selector-modal .ant-modal-body {
    background: transparent;
}

.workspace-selector-modal .ant-modal-footer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border-top: 1px solid rgba(71, 85, 105, 0.5);
    padding: 16px 24px;
}

.workspace-selector-modal .ant-modal-footer .ant-btn {
    height: 40px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.workspace-selector-modal .ant-modal-footer .ant-btn-default {
    background: rgba(71, 85, 105, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.5);
    color: #cbd5e1;
}

.workspace-selector-modal .ant-modal-footer .ant-btn-default:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: #64748b;
    color: #f1f5f9;
}

.workspace-selector-modal .ant-modal-footer .ant-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.workspace-selector-modal .ant-modal-footer .ant-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.workspace-selector-modal .ant-modal-footer .ant-btn-primary:disabled {
    background: rgba(71, 85, 105, 0.5);
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
}

.workspace-selector-modal .ant-modal-close {
    color: #94a3b8;
}

.workspace-selector-modal .ant-modal-close:hover {
    color: #f1f5f9;
}

/* ========== 响应式设计 ========== */

@media (max-width: 768px) {
    .workspace-item {
        padding: 12px;
    }

    .workspace-name {
        font-size: 14px;
    }

    .workspace-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== AuthLayout 认证页面布局 ========== */

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(560px, 1fr) minmax(560px, 1fr);
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    max-width: 1600px;
    margin: 0 auto;
}

/* ========== 左侧品牌展示 ========== */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
}

.brand-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 500px;
}

.brand-header {
    text-align: center;
}

.brand-logo-large {
    font-size: 80px;
    margin-bottom: 24px;
}

.brand-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.brand-domain {
    font-size: 16px;
    color: #6366f1;
    font-weight: 500;
}

.brand-slogan {
    text-align: center;
}

.slogan-chinese {
    font-size: 32px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.slogan-english {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
}

.feature-icon {
    font-size: 32px;
}

.feature-text {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 500;
}

/* ========== 右侧表单区域 ========== */
.auth-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.back-home-btn {
    position: absolute;
    top: 32px;
    left: 32px;
    padding: 10px 20px;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-home-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(148, 163, 184, 0.5);
}

.auth-form-content {
    width: 100%;
    max-width: 520px;
}

/* 使表单区域在大屏上不贴边，保持视觉居中 */
.auth-form-container {
    padding-left: 80px;
    padding-right: 80px;
}

.auth-footer {
    position: absolute;
    bottom: 32px;
    text-align: center;
}

.auth-footer p {
    color: #64748b;
    font-size: 13px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-container {
        padding: 40px 20px;
    }
}
  /* ========== 登录表单样式 ========== */
  .login-form-container {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
      padding: 20px;
  }

  .form-header {
      text-align: center;
      margin-bottom: 32px;
  }

  .form-title {
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 8px;
      color: #eea928ff;
  }

  .form-subtitle {
      color: #86868b;
      font-size: 16px;
      margin: 0;
  }

  .login-register-toggle {
      display: flex;
      background: #f5f5f7;
      border-radius: 12px;
      padding: 4px;
      margin-bottom: 32px;
      border: 1px solid #e8e8ed;
  }

  .toggle-btn {
      flex: 1;
      padding: 12px 16px;
      background: transparent;
      color: #86868b;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
      border-radius: 8px;
  }

  .toggle-btn.active {
      background: #ffffff;
      color: #1d1d1f;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .toggle-btn:hover:not(.active) {
      background: rgba(255, 255, 255, 0.5);
  }

  .auth-form {
      display: flex;
      flex-direction: column;
  }

  .auth-input {
      width: 100%;
      padding: 16px;
      background: #ffffff;
      border: 1px solid #d2d2d7;
      border-radius: 12px;
      font-size: 16px;
      margin-bottom: 16px;
      outline: none;
      transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
      box-sizing: border-box;
  }

  .auth-input:focus {
      border-color: #0071e3;
      box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
  }

  .auth-input::placeholder {
      color: #86868b;
  }

  .auth-submit-btn {
      width: 100%;
      padding: 16px;
      background: #0071e3;
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      margin-bottom: 20px;
      transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
      border-radius: 12px;
  }

  .auth-submit-btn:hover:not(.loading) {
      background: #0056b3;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
  }

  .auth-submit-btn:active {
      transform: translateY(0);
  }

  .auth-submit-btn.loading {
      opacity: 0.7;
      cursor: not-allowed;
  }

  .auth-footer-text {
      text-align: center;
      color: #86868b;
      font-size: 12px;
      line-height: 1.4;
      margin: 0;
  }

  /* 响应式设计 */
  @media (max-width: 1200px) {
      .auth-layout {
          grid-template-columns: 1fr;
      }
      .auth-brand {
          display: none; /* 中小屏时隐藏品牌大图，提高表单可用性 */
      }
      .auth-form-container {
          padding: 32px 24px;
      }
      .auth-form-content { max-width: 560px; }
  }

  @media (max-width: 768px) {
      .login-form-container {
          padding: 16px;
      }

      .form-title {
          font-size: 24px;
      }

      .toggle-btn {
          padding: 10px 14px;
          font-size: 14px;
      }

      .auth-input,
      .auth-submit-btn {
          padding: 14px;
          font-size: 15px;
      }
  }

  /* antd 兼容性微调：验证码按钮不挤压输入框 */
  .ant-input-group-addon .ant-btn-link {
      padding: 0 8px;
      height: 32px;
      line-height: 32px;
  }

  /* antd 输入在深色背景下的可读性优化 */
  .auth-form-container .ant-input,
  .auth-form-container .ant-input-password input,
  .auth-form-container .ant-input-affix-wrapper {
      background-color: #ffffff !important;
      color: #1f2937 !important;
      border-color: #d2d2d7;
  }
  .auth-form-container .ant-form-item-label > label {
      color: var(--text-secondary);
  }

  /* 深色背景下的 Radio 文案颜色与选中态优化 */
  .auth-form-container .ant-radio-wrapper {
      color: var(--text-secondary);
  }
  .auth-form-container .ant-radio-wrapper:hover {
      color: var(--text-primary);
  }
  /* 可选：统一单选框勾选态的品牌色，更清晰 */
  .auth-form-container .ant-radio-checked .ant-radio-inner {
      border-color: var(--brand-primary);
  }
  .auth-form-container .ant-radio-checked .ant-radio-inner::after {
      background-color: var(--brand-primary);
  }
/* 导入统一设计系统 */
/* ========== CreateVoice 设计系统 ========== */
/**
 * 品牌定位：声动故事，创作随心 | Voice Your Story, Create Freely
 * 设计理念：现代、专业、科技感、开放、自由
 */
:root {
    /* ========== 品牌色彩 ========== */
    --brand-primary: #6366f1;           /* Indigo - 主品牌色 */
    --brand-primary-light: #818cf8;
    --brand-primary-dark: #4f46e5;

    --brand-secondary: #a855f7;         /* Purple - 辅助品牌色 */
    --brand-secondary-light: #c084fc;
    --brand-secondary-dark: #9333ea;

    --brand-accent: #10b981;            /* Emerald - 强调色（成功） */
    --brand-accent-light: #34d399;
    --brand-accent-dark: #059669;

    --brand-warning: #f59e0b;           /* Amber - 警告色 */
    --brand-error: #ef4444;             /* Red - 错误色 */

    /* ========== 渐变色 ========== */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* ========== 背景色 ========== */
    --bg-primary: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --bg-secondary: rgba(15, 23, 42, 0.8);
    --bg-tertiary: rgba(30, 41, 59, 0.6);
    --bg-card: rgba(30, 41, 59, 0.4);
    --bg-hover: rgba(71, 85, 105, 0.3);

    /* ========== 文字颜色 ========== */
    --text-primary: #f9fafb;            /* 主要文字 */
    --text-secondary: #e5e7eb;          /* 次要文字 */
    --text-tertiary: #cbd5e1;           /* 三级文字 */
    --text-muted: #94a3b8;              /* 弱化文字 */
    --text-disabled: #64748b;           /* 禁用文字 */

    /* ========== 边框颜色 ========== */
    --border-primary: rgba(99, 102, 241, 0.2);
    --border-secondary: rgba(99, 102, 241, 0.3);
    --border-hover: rgba(99, 102, 241, 0.5);
    --border-muted: rgba(148, 163, 184, 0.2);

    /* ========== 阴影 ========== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.5);

    --shadow-primary: 0 4px 12px rgba(99, 102, 241, 0.4);
    --shadow-primary-lg: 0 8px 24px rgba(99, 102, 241, 0.5);
    --shadow-success: 0 4px 12px rgba(16, 185, 129, 0.4);

    /* ========== 圆角 ========== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ========== 间距 ========== */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;

    /* ========== 字体 ========== */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                   'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 32px;
    --font-size-5xl: 48px;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* ========== 过渡动画 ========== */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;

    /* ========== Z-index 层级 ========== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}
/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* ========== 通用按钮样式 ========== */
.btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}
.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-tertiary);
    border: 1px solid var(--border-muted);
}
.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(148, 163, 184, 0.5);
}
.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-success);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.btn-ghost {
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
}
/* ========== 通用卡片样式 ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}
.card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
/* ========== 通用输入框样式 ========== */
.input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}
.input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.input::placeholder {
    color: var(--text-disabled);
}
/* ========== 通用模态框样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    animation: fadeIn var(--transition-base);
}
.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-slow);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ========== 加载动画 ========== */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ========== 徽章样式 ========== */
.badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}
.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fdba74;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}
/* ========== 工具类 ========== */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
      "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
      sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
* {
    box-sizing: border-box;
  }
.app {
    min-height: 100vh;
  }
.page-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
