.my-shoucang {
    width: 550px;
}

    /* 隐藏页眉和页脚 */
    .site-footer {
        display: none;
    }
    .site-header {
        display: none;
    }
.header-gap {
    height: 0 !important;
}
/* ==================== 配音工作台框架样式 ==================== */
/* 整体包装器 */
.peiyin-workspace-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--ios-gray-4, #f2f2f7);
}

/* 顶部导航栏 */
.peiyin-topbar {
    height: 72px;
    min-height: 72px;
    background: var(--is-surface, #fff);
    border-bottom: 1px solid var(--ios-gray-3, #d1d1d6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 80;
    position: relative;
}
.action-btn.toggle-color.aikelong-toggle-color {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--is-body, #f2f2f7);
}
.aikelong-toggle-color > span.show {
    display: inline-flex;
    cursor: pointer;
}
.aikelong-toggle-color > span {
    display: none;
}
.topbar-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.topbar-logo {
    display: flex;
    align-items: center;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.topbar-subtitle {
    font-size: 12px;
    color: var(--ios-gray-2, #86868b);
    margin: 0;
    line-height: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 返回首页链接 */
.header-link {
    font-size: 14px;
    text-decoration: none;
    color: #666;
    transition: var(--transition, all 0.2s ease);
}

.header-link i {
    color: inherit;
    line-height: 1;
}

.header-link:hover {
    color: #007AFF;
}

.header-link:hover i,
.header-link:hover span {
    color: #007AFF;
}

/* 配额信息（新样式，参考声音克隆页面） */
.pill {
    padding: 2px 14px;
    border-radius: 999px;
    background: var(--is-body);
    font-size: 14px;
    line-height: 1;
    border: 1px solid var(--is-body);
}

.pill-balance {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 灵力值标签和图标 */
.quota-type-label {
    font-size: 14px;
    white-space: nowrap;
}

.quota-icon {
    font-size: 16px;
    margin: 0;
}

/* 配额项垂直布局（数字在上，文字在下） */
.quota-item-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.quota-value-top {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.quota-label-bottom {
    font-size: 10px;
    line-height: 1;
    color: var(--ios-gray-2, #86868b);
}

.quota-item-vertical .quota-used {
    color: var(--ios-orange, #ff9500);
}

.quota-item-vertical .quota-remaining {
    color: var(--ios-green, #34c759);
}

.semibold {
    font-weight: 600;
}

.pill-recharge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    box-shadow: var(--ios-shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    border: none;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
}

.pill-recharge:hover {
    transform: translateY(-1px);
    box-shadow: var(--ios-shadow-md, 0 2px 6px rgba(0,0,0,0.1));
}

/* 配额信息 */
.quota-info {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    border-left: 1px solid var(--ios-gray-4, #f2f2f7);
    border-right: 1px solid var(--ios-gray-4, #f2f2f7);
}

.quota-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.quota-label {
    font-size: 12px;
    color: var(--ios-gray-2, #86868b);
    line-height: 1;
}

.quota-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ios-gray-1, #1d1d1f);
    line-height: 1;
}

.quota-used {
    color: var(--ios-orange, #ff9500);
}

.quota-remaining {
    color: var(--ios-green, #34c759);
}

/* 顶部图标按钮 */
.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ios-gray-4, #f2f2f7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
    position: relative;
    color: var(--ios-gray-1, #1d1d1f);
    font-size: 18px;
}

.topbar-icon-btn:hover {
    background: var(--ios-gray-5, #e5e5ea);
    transform: scale(1.05);
}

.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--ios-red, #ff3b30);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* 用户头像区域 */
.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--ios-gray-4, #f2f2f7);
    transition: var(--transition, all 0.2s ease);
}

.user-avatar-small:hover {
    border-color: var(--primary-color, #007aff);
    transform: scale(1.05);
}

/* 登录按钮样式已改为使用Bootstrap的 btn-outline-primary rounded-pill */
/* 旧的 .login-btn-topbar 样式已移除，现在使用原生Bootstrap样式 */

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--ios-radius-lg, 16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid var(--ios-gray-3, #d1d1d6);
}

.topbar-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--ios-gray-4, #f2f2f7);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-info {
    flex: 1;
}

.user-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-gray-1, #1d1d1f);
    margin-bottom: 4px;
}

.user-dropdown-vip {
    font-size: 12px;
    color: var(--ios-gray-2, #86868b);
}

.user-dropdown-menu {
    padding: 8px 0;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--ios-gray-1, #1d1d1f);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition, all 0.2s ease);
}

.dropdown-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--ios-gray-2, #86868b);
}

.dropdown-menu-item:hover {
    background: var(--ios-gray-4, #f2f2f7);
    color: var(--primary-color, #007aff);
}

.dropdown-menu-item:hover i {
    color: var(--primary-color, #007aff);
}

.dropdown-divider {
    height: 1px;
    background: var(--ios-gray-4, #f2f2f7);
    margin: 8px 0;
}

/* 工作台容器（调整高度，减去顶部导航栏） */
.peiyin-workspace-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 64px);
    overflow: hidden;
    background: var(--ios-gray-4, #f2f2f7);
}

/* 左侧菜单 */
.peiyin-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100%;
    background: var(--is-surface, #fff);
    border-right: 1px solid var(--is-surface, #fff);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--ios-gray-4, #f2f2f7);
}

.sidebar-brand h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ios-gray-1, #1d1d1f);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.sidebar-subtitle {
    font-size: 13px;
    color: var(--ios-gray-2, #86868b);
    margin: 0;
}

.sidebar-search {
    padding: 20px;
    border-bottom: 1px solid var(--ios-gray-4, #f2f2f7);
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--ios-gray-3, #d1d1d6);
    border-radius: var(--ios-radius-md, 12px);
    font-size: 14px;
    background: var(--ios-gray-4, #f2f2f7);
    color: var(--ios-gray-1, #1d1d1f);
    transition: var(--transition, all 0.2s ease);
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--primary-color, #007aff);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* ==================== 侧边栏核心行动区：导入授权文案按钮 ==================== */
.sidebar-primary-action {
    padding: 20px 16px;
    margin-bottom: 0;
}

.import-text-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1180ff 0%, #0051D5 100%);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(17, 128, 255, 0.3), 0 2px 6px rgba(0, 81, 213, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.import-text-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.import-text-btn:hover::before {
    left: 100%;
}

.import-text-btn:hover {
    background: linear-gradient(135deg, #0051D5 0%, #003d9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17, 128, 255, 0.4), 0 4px 8px rgba(0, 81, 213, 0.3);
    color: white;
}

.import-text-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(17, 128, 255, 0.3), 0 1px 4px rgba(0, 81, 213, 0.2);
}

.import-text-btn .import-icon {
    font-size: 18px;
    margin-right: 10px;
    opacity: 0.95;
}

.import-text-btn span:not(.import-icon) {
    flex: 1;
    text-align: left;
    letter-spacing: 0.2px;
}

.import-text-btn i {
    font-size: 16px;
    opacity: 0.9;
    margin-left: 8px;
}

/* 分割线 */
.sidebar-divider {
    height: 1px;
    background: var(--ios-gray-3, #d1d1d6);
    margin: 0 16px 20px 16px;
}

/* ==================== 导航菜单区 ==================== */
.sidebar-nav {
    flex: 1;
    padding: 0 12px 12px 12px;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var( --is-font);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
    position: relative;
}

.sidebar-nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    color: var( --is-font);
    text-align: center;
}

.sidebar-nav-item .loading-icon {
    color: var(--primary-color, #007aff);
    font-size: 14px;
}

.sidebar-nav-item span:not(.badge-hot) {
    flex: 1;
}

.badge-hot {
    background: linear-gradient(135deg, #ff3b30 0%, #ff2d55 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

/* 克隆声音菜单项 - 简洁醒目样式 */
.sidebar-nav-item.kelong-voice-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    margin: 6px 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.sidebar-nav-item.kelong-voice-item i {
    color: #ff8c00 !important;
}

.sidebar-nav-item.kelong-voice-item span {
    color: #d2691e !important;
    font-weight: 700 !important;
}

.sidebar-nav-item.kelong-voice-item:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.3) 100%);
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.sidebar-nav-group {
    margin: 8px 0;
    padding-left: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--is-body);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-vip {
    font-size: 12px;
    color: var(--ios-gray-2, #86868b);
}

/* 右侧内容区 */
.peiyin-content-area {
    flex: 1;
    width: 0; /* 防止 flex 子元素溢出 */
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--is-body);
    position: relative;
}

/* 加载动画 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ios-gray-4, #f2f2f7);
    border-top-color: var(--primary-color, #007aff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ios-gray-2, #86868b);
}

/* 滚动条美化 */
.peiyin-sidebar::-webkit-scrollbar,
.peiyin-content-area::-webkit-scrollbar {
    width: 6px;
}

.peiyin-sidebar::-webkit-scrollbar-track,
.peiyin-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.peiyin-sidebar::-webkit-scrollbar-thumb,
.peiyin-content-area::-webkit-scrollbar-thumb {
    background-color: var(--ios-gray-3, #d1d1d6);
    border-radius: 3px;
}

.peiyin-sidebar::-webkit-scrollbar-thumb:hover,
.peiyin-content-area::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}

/* 模块容器样式 */
.peiyin-module-container {
    padding: 24px;
    min-height: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .peiyin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .peiyin-sidebar.show {
        transform: translateX(0);
    }
    
    .peiyin-content-area {
        width: 100%;
    }
    
    .peiyin-module-container {
        padding: 16px;
    }
}
/* ==================== 工作台框架样式结束 ==================== */   
/* 工具栏按钮图标彩色（按钮本身使用 ios-common.css 的 .toolbar-btn 样式） */
#insert-pause i { color: #8b5cf6; } /* 插入停顿 - 紫色 */
#detect-sensitive-words i { color: #ef4444; } /* 检测敏感词 - 红色 */
#liaison-button i { color: #ec4899; } /* 连读 - 粉红色 */
#replace-text i { color: #10b981; } /* 查找替换 - 绿色 */
#format-text-btn i { color: #f59e0b; } /* 一键整理格式 - 橙色 */
#pause-mode-button i { color: #3b82f6; } /* 停顿模式 - 蓝色 */
#audio-quality-button  i { color: #ff4747; } /* 音频设置 - iOS红 */

/* 音质选择按钮标签 */
#audio-quality-button {
    position: relative;
}

.quality-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    white-space: nowrap;
}

.quality-badge-standard {
    background: linear-gradient(135deg, #65ed6a 0%, #12d71b 100%);
    color: white;/*标准*/
}

.quality-badge-ultra {
    background: linear-gradient(135deg, #ea9df7 0%, #d841ff 100%);
    color: white;/*超高*/
}

.quality-badge-lossless {
    background-image: linear-gradient(-82deg, #ffd585, #fffae0 67%, #ffebb8);
    color: #693f16; /*无损*/
}

/* 底部操作按钮布局 */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-btn i {
    font-size: 16px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 试听按钮 - 粉色，较窄 */
.action-btn-audition {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    min-width: 100px;
    position: relative;
}

.action-btn-audition:hover:not(.disabled) {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
}

/* 试听按钮播放状态 - 音波动画 */
.action-btn-audition.playing {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
}

.action-btn-audition.playing .fa-play-circle {
    display: none;
}

/* 音波动画容器 */
.audio-waves {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 20px;
    margin-right: 5px;
}

/* 音波条 */
.audio-wave-bar {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: wave-animation 1.2s ease-in-out infinite;
}

.audio-wave-bar:nth-child(1) {
    animation-delay: 0s;
    height: 8px;
}

.audio-wave-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 12px;
}

.audio-wave-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 16px;
}

.audio-wave-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 20px;
}

.audio-wave-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 16px;
}

.audio-wave-bar:nth-child(6) {
    animation-delay: 0.5s;
    height: 12px;
}

.audio-wave-bar:nth-child(7) {
    animation-delay: 0.6s;
    height: 8px;
}

/* 音波动画关键帧 */
@keyframes wave-animation {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 禁用状态样式 */
.action-btn.disabled,
.action-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* 声音合成按钮 - 蓝色渐变，主按钮，较宽 */
.action-btn-generate {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    min-width: 140px;
    font-size: 16px;
    padding: 14px 28px;
}

.action-btn-generate:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* 合成记录按钮 - 紫色，中等宽度 */
.action-btn-history {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    min-width: 120px;
}

.action-btn-history:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

        .peiyin_container {
            margin-top: -10px;
            display: flex;
            justify-content: flex-start; /* 子元素从左到右排列，去掉额外空隙 */
            margin-left: auto;
            margin-right: auto;
            padding: 20px;
            position: relative; /* 为声音列表面板的absolute定位提供参考 */
            gap: 12px; /* 各区域间距：缩小中间灰色空白 */
            height: calc(100vh - 60px); /* 统一高度：视口高度减去顶部导航 */
            align-items: stretch; /* 子元素等高 */
            width: 100%;
            box-sizing: border-box;
            flex-wrap: nowrap; /* 禁止换行，确保所有元素在同一行 */
            background: var(--is-body);
        }
        
        /* 左侧菜单：统一高度和色彩 */
        .sidebar-menu {
            width: 12%; /* 响应式：使用百分比 */
            min-width: 200px; /* 最小宽度 */
            max-width: 250px; /* 最大宽度 */
            flex-shrink: 0;
            background: linear-gradient(to bottom, #eff6ff, #f1f8ff, #f3f9ff, #f3faff, #f5fcff);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            height: 100%; /* 与容器等高 */
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        
        .sidebar-search {
            margin-bottom: 15px;
        }
        
        .sidebar-search-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            box-sizing: border-box;
        }
        
        .sidebar-search-input:focus {
            outline: none;
            border-color: #007bff;
        }
        
        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .sidebar-nav-group {
            margin-left: 10px;
            margin-top: 5px;
            margin-bottom: 5px;
        }
        
        .sidebar-nav-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var( --is-font);
            font-size: 14px;
            position: relative;
        }
        
        .sidebar-nav-item i {
            margin-right: 10px;
            width: 18px;
            text-align: center;
            color: #666;
        }
        
        .sidebar-nav-item span:not(.badge-hot) {
            flex: 1;
        }
        
        .sidebar-nav-item:hover {
            background: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .sidebar-nav-item:hover i {
            color: #007bff;
        }
        
        .sidebar-nav-item.active {
            background: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .sidebar-nav-item.active i {
            color: #007bff;
        }
        .badge-hot {
            background: #ff4444;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: auto;
        }
        
        
.controls-panel {
    display: flex;
    flex-direction: column;
    flex: 1; /* ✅ 在 flex 容器内使用 flex: 1 占据剩余空间，而不是 height: 100% */
    padding: 0;
    overflow: hidden; /* 防止内容溢出 */
}



.voice-list-section .controls-daohang {
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.voice-list-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
}
.filter-group h5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    font-size: .7rem;
    color: var( --is-font);
    margin-right: 12px;
}
/* 中间文本区域：响应式宽度，统一高度和色彩 */
.quyu {
    flex: 1; /* 占据剩余所有空间，自动把右侧面板推到右边 */
    min-width: 400px; /* 最小宽度 */
       background: var(--is-surface);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%; /* 与容器等高 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* 工具栏按钮区域 - 与下面的标题栏+编辑器区域分开 */
.toolbar-buttons {
    margin-bottom: 16px;
}

/* 作品标题栏样式 - 与编辑区视觉连成一体（作为编辑器的页头） */
.work-title-section {
    margin-bottom: 0;
}

/* 标题栏容器 - 去除边框，使用底色 */
.work-title-input-container {
    display: flex;
    align-items: center;
    background: var(--is-body);
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
    gap: 10px;
    transition: var(--transition, all 0.2s ease);
}

.work-title-input-container:focus-within {
    background: white;
}

/* 左侧图标 */
.work-title-icon {
    color: var(--ios-gray-2, #86868b);
    font-size: 16px;
    flex-shrink: 0;
}

.work-title-input-container:focus-within .work-title-icon {
    color: var(--primary-color, #007aff);
}
.work-title-input:focus {
    box-shadow: none !important;
}

/* 状态信息 - 居中显示（使用 flex 自动填充空间） */
.work-title-status {
    font-size: 12px;
    color: var(--ios-gray-2, #86868b);
    white-space: nowrap;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin: 0 12px;
}

/* 右侧新建工程文件按钮 - 显眼的加号按钮 */
.work-title-new-project-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color, #007aff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
    flex-shrink: 0;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.work-title-new-project-btn:hover {
    background: var(--primary-hover, #0056d6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.work-title-new-project-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.work-title-new-project-btn i {
    font-size: 16px;
    font-weight: 600;
}

/* 右侧菜单图标和下拉菜单 */
.work-title-menu-wrapper {
    position: relative;
    margin-left: 12px;
    flex-shrink: 0;
}

.work-title-menu-icon {
    font-size: 16px;
    color: var(--ios-gray-2, #86868b);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition, all 0.2s ease);
}

.work-title-menu-icon:hover {
    color: var(--primary-color, #007aff);
    background: var(--ios-gray-4, #f2f2f7);
}

.work-title-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 8px 0;
}

.work-title-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.work-title-menu-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ios-gray-1, #1d1d1f);
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
}

.work-title-menu-dropdown .menu-item:hover {
    background: var(--ios-gray-4, #f2f2f7);
    color: var(--primary-color, #007aff);
}

.work-title-menu-dropdown .menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.work-title-menu-dropdown .menu-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.work-title-menu-dropdown .menu-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* 保存图标 - 添加动画效果 */
.work-title-save-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.work-title-save-icon.saving {
    animation: savePulse 0.6s ease;
}

@keyframes savePulse {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
/* 编辑器容器 - 与标题栏视觉连成一体 */
#editor-container {
    border-top: none !important;
}

/* 一键粘贴按钮样式已移至 ios-common.css */
textarea#text-input {
    border-radius: 16px;
    padding: 30px 30px;
    box-sizing: border-box;
    overflow-y: auto;
    font-size: 15px;
    line-height: 46px;
    background-color: #EDF4FC;
}
.filter-group-header {
    display: flex;
    align-items: center;
}
.nametouxiang {
    display: flex;
    align-items: center;
}
.voice-info {
    padding-left: 10px;
}
.custom-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background-image: linear-gradient(-82deg, #ffd585, #fffae0 67%, #ffebb8);
    color: #693f16;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 10;
}

/* 精选角标 - 金色风格 */
.custom-badge-featured {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #fff;
}

/* 热门角标 - 红色火焰风格 */
.custom-badge-hot {
    background: linear-gradient(135deg, #ff00aa 0%, #ff0000 100%);
    color: #fff;
}

/* 仿真角标 - 绿色科技风格 */
.custom-badge-simulation {
    background: linear-gradient(135deg, #34ff51 0%, #0bc71b 100%);
    color: #fff;
}

        .voice-card {
            padding:10px;
            background-color: var(--is-body);
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
            box-sizing: border-box;
        }
        .voice-card:hover {
            background-color: #ddd;
            transform: scale(1.005);
        }
        
        /* 右侧mokuai区域的卡片：移除hover灰色效果，移除选中边框和对勾，添加点击提示 */
        .mokuai .voice-card {
            cursor: pointer; /* 显示手型光标，提示可点击 */
            transition: all 0.2s ease;
            position: relative;
        }
        
        .mokuai .voice-card:hover {
            background-color: transparent; /* 不改变背景色 */
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3); /* 添加阴影提示可点击 */
        }
        
        /* 移除mokuai区域卡片的蓝色边框和对勾 */
        .mokuai .voice-card.selected {
            border: none; /* 移除蓝色边框 */
        }
        
        .mokuai .voice-card.selected::after {
            display: none; /* 移除蓝色对勾 */
        }
        
        /* 头像持续扩散光圈动画（默认显示，持续循环） */
        .mokuai .voice-card .voice-avatar {
            position: relative;
        }
        .mokuai .voice-card .voice-avatar img {
            position: relative;
            z-index: 2;
        }
        .mokuai .voice-card .voice-avatar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 2px solid rgba(0, 123, 255, 0.6);
            animation: ripple 2s ease-out infinite;
            pointer-events: none;
            z-index: 1;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(1);
                opacity: 0.8;
            }
            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }
        
        /* 点击提示文字（位于卡片外部下方）*/
        .mokuai::after {
            content: '点击展开主播列表';
            display: block;
            text-align: center;
            color: #666;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .mokuai:hover::after {
            opacity: 1; /* 鼠标悬停时显示提示 */
        }
        
        
        /* 声音卡片距离上面线条的间距 */
        .settings-section .mokuai {
            margin-top: 15px;
        }
        
        .mokuai .voice-card:active {
            opacity: 0.8; /* 点击时的反馈 */
        }
        .voice-card:nth-child(odd) {
            margin-right: 10px; /* Spacing between cards */
        }
        .voice-card img {
            border-radius: 50%;
            width: 60px;
            height: 60px;
            margin-bottom: 10px;
        }
        .voice-card .play-button {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(0, 0, 0, 0.5);
            border: none;
            border-radius: 50%;
            padding: 0;
            cursor: pointer;
            color: white;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        
        .voice-card .play-button i {
            font-size: 16px;
            color: white;
        }
        
        .voice-card:hover .play-button {
            display: flex;
        }
        /* 筛选 chip 样式已统一到 .shaixuan 区块 */
        .biaoti {
            font-size: 18px;
            text-align: center;
            font-weight: 500;
               margin: 0 10px;
        }

        .slider-label {
            display: flex;
            justify-content: space-between;
        }
        .btn-preview {
            margin-left: auto;
            background: none;
            border: none;
            cursor: pointer;
            color: #007bff;
        }
        .small-card {
            display: none;
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #fff;
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }


/* 已删除：旧版collapsed-container（不再需要）*/

        .shengyin {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
            display: flex;
            flex-wrap: wrap;
            align-content: flex-start;
        }
        .voice-card.selected {
    border: 2px solid #007bff;
    position: relative;
}

.voice-card.selected::after {
    content: '✔';
    color: white;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
/*选择音色UI*/
        .voice-card.selected {
            border: 2px solid #007bff;
            position: relative;
        }

        .voice-card.selected::after {
            content: '✔';
            color: white;
            background-color: #007bff;
            border-radius: 50%;
            position: absolute;
            top: 10px;
            right: 10px;
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
        }
  .selected { border: 2px solid blue; }
        .modal-backdrop { display: none; }       

/*声音卡片角标*/
.voice-card {
    position: relative;
    display: inline-block;
    width: 240px;
    margin: 2px;
    border: 1px solid var(--is-body);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.biaoti_zhedie {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.mokuai .voice-card {
    width: 100%; /* 使卡片适应父容器宽度 */
    margin: 0; /* 移除卡片的外边距 */
}

.voice-card .badge {
border-radius: 5px;
    background-image: linear-gradient(-82deg, #ffd585, #fffae0 67%, #ffebb8);
    color: #693f16;
    font-size: 12px;
}
.voice-card .badge.vipsy {
    border-radius: 5px;
    background-color: rgb(241 115 4 / 97%);
    color: #fff;
    font-size: 12px;
}
.voice-card .biaozhun {
    background-color: rgb(6 113 255 / 85%);
}
.voice-card .badge.svip {
    color: #ffaf04;
    background: linear-gradient(to bottom, #473817, #000000);

}
.badge.vipsy {
    color: #ffffff;
    background: linear-gradient(to bottom, #e40c1d, #ff1515);
}
.voice-card .badge.emotional {
    background: rgba(79, 63, 240, 0.1);
    color: #4F3FF0;
}

.voice-card .corner-mark {
    position: absolute;
    top: 0;
    right: 0;
    background-color: purple;
    color: white;
    padding: 5px;
    font-size: 10px;
    transform: rotate(45deg);
    transform-origin: top right;
    width: 50px;
    text-align: center;
}

.voice-card .corner-mark.top-left {
    position: absolute;
    top: 50px;
    left: -20px; /* 向左移动，使其完全显示 */
    transform: rotate(-45deg);
    transform-origin: top left;
    width: 100px; /* 调整宽度以确保完整显示 */
    text-align: center;
        font-size: 12px;
}

.highlight {
    background-color: yellow;
    color: black;
    position: relative;
}

.highlight::before {
    content: attr(data-pinyin);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}



.mokuai button {
    margin: 10px 5px;
}
.style-button {
    position: relative;
    padding-right: 60px; /* 确保有足够空间显示播放图标 */
}



.style-button.selected {
    background-color: #007bff;
    color: white;
}
.mokuai_fengge {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    border-width: 0;
    border-bottom: solid 1px rgba(171, 171, 171, .35);

}
.form-control-range {
    width: 100%; /* 调整滑块宽度 */
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.slider-value {
    margin: 0 10px;
}

.reset-btn {
    position: absolute;
    right: 0;
    top: -45px;
    font-size: 0.8rem;
    color: #6e6f6f;
    cursor: pointer;
    background-color: #ecf1f6;
    font-size: 12px;
    text-decoration: none;
}
.form-group {
    margin-bottom: 20px; /* 调整上下间距，根据需要修改数值 */
}
/*敏感词检测*/
    .modal-body {
        max-height: 500px;
        overflow-y: auto;
    }
    .highlight {
        background-color: yellow;
        color: red;
        font-weight: bold;
    }
    .centered-title {
        text-align: center;
        font-size: 1.25rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        padding: 10px 0;
    }
    .detect-button-container {
        text-align: center;
        padding: 20px;
    }
    #detected-text-container {
        white-space: pre-wrap;
        width: 100%;
    }
    .switch {
        position: relative;
        display: inline-block;
        width: 52px;
        height: 24px;
    }
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ff4b4b;
        transition: .4s;
        border-radius: 34px;
    }
    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    input:checked + .slider {
        background-color: #2196F3;
    }
    input:checked + .slider:before {
        transform: translateX(26px);
    }
    .text-danger {
        color: red;
        font-size: 1rem;
    }
    .modal-footer {
        display: flex;
        justify-content: space-between;
    }


/*背景音乐*/
/* 确保背景音乐分类导航栏支持滑动 */
.bg-music-categories {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.bg-music-category {
    flex-shrink: 0;
    margin-right: 5px;
}

.bg-music-category:last-child {
    margin-right: 0;
}
.card-weidenglu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    padding: 20px;
    margin: 20px 0;
}

.card-weidenglu:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-weidenglu .card-header {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #f8f9fa;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 15px;
}

.card-weidenglu .card-body {
    text-align: center;
}

.card-weidenglu .card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.card-weidenglu .card-text {
    font-size: 1rem;
    margin-bottom: 20px;
}

.card-weidenglu .btn-primary,
.card-weidenglu .btn-secondary {
    margin: 5px;
    border-radius: 5px;
    font-size: 1rem;
}

        .unique-card-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 12px 0;
            background: #f8f8f8;
            border-radius: 15px;
        }

.unique-info-card {
    width: 154px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var( --is-font);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-image: linear-gradient(to right, #ffefba, #ffffff);
}
        .unique-info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .unique-info-card h6 {
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .unique-info-card p {
            margin: 0;
            font-size: 1rem;
            font-weight: bold;
        }
/*收缩板块*/

/* 已删除：旧版#settings-panel和collapsed样式（不再需要）*/

/* 已删除：旧版small-card（不再需要）*/
/*兑换字数包*/
.exchange-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin-bottom: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.exchange-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.exchange-option .original-price {
    text-decoration: line-through;
    color: #ff4d4f;
    margin-right: 5px;
    font-size: 0.9em;
}

.exchange-option .discounted-price {
    color: #52c41a;
    font-weight: bold;
    font-size: 1em;
}

.exchange-option button {
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.3s;
}

.exchange-option button:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}
.exchange-options.mt-3 {
    max-height: calc(45vh - 30px - 60px);
    flex-wrap: wrap;
}
.style-icon-container {
    position: relative;
    text-align: center;
}

.style-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.style-button {
padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    border: none;
}

.style-button:hover {
    background-color: #e0e0e0;
}

.style-button.selected {
    background-color: #ffcf009e
}

.style-text {
    margin-top: 8px;
    font-size: 14px;
    color: var( --is-font);
}

/* 复用声音卡片的播放按钮样式 */
.style-icon-container .play-button {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.style-icon-container .play-button i {
    font-size: 16px;
    color: white;
}

.style-button:hover .play-button {
    display: flex;
}
/*拖拽进度条*/
/* 美化拖动条 */
/* 声音参数滑块 - 紫色渐变 */
input[type="range"].form-control-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0; /* 默认灰色，会被JS动态覆盖 */
    outline: none;
    cursor: pointer;
    position: relative;
}

/* 语速滑块：21个白色节点标记（0.5到1.5，每0.05一个单位） */
input[type="range"].form-control-range#speed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    background-image: 
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.5 (0%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.55 (5%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.6 (10%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.65 (15%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.7 (20%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.75 (25%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.8 (30%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.85 (35%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.9 (40%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 0.95 (45%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.0 (50%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.05 (55%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.1 (60%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.15 (65%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.2 (70%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.25 (75%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.3 (80%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.35 (85%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.4 (90%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px),  /* 1.45 (95%) */
        radial-gradient(circle, #ffffff 2px, transparent 2px);  /* 1.5 (100%) */
    background-size: 0.5% 100%; /* 节点很小，避免重叠 */
    background-position: 
        0% center,    /* 0.5 */
        5% center,    /* 0.55 */
        10% center,   /* 0.6 */
        15% center,   /* 0.65 */
        20% center,   /* 0.7 */
        25% center,   /* 0.75 */
        30% center,   /* 0.8 */
        35% center,   /* 0.85 */
        40% center,   /* 0.9 */
        45% center,   /* 0.95 */
        50% center,   /* 1.0 */
        55% center,   /* 1.05 */
        60% center,   /* 1.1 */
        65% center,   /* 1.15 */
        70% center,   /* 1.2 */
        75% center,   /* 1.25 */
        80% center,   /* 1.3 */
        85% center,   /* 1.35 */
        90% center,   /* 1.4 */
        95% center,   /* 1.45 */
        100% center;  /* 1.5 */
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    border-radius: 4px;
}

/* Webkit浏览器滑块按钮 */
input[type="range"].form-control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4), 0 0 0 3px rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

input[type="range"].form-control-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.5), 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* Firefox浏览器滑块按钮 */
input[type="range"].form-control-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4), 0 0 0 3px rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

input[type="range"].form-control-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.5), 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* 调整slider标签样式 */
.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-value {
    font-weight: bold;
    margin: 0 10px;
}
/*停顿*/
/* 搜索容器样式 */
.search-container {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(216, 228, 243, 0.8);
}

.search-container .form-control {
    flex: 1;
}
.attribute {
display: inline-block;
    margin-right: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 100;
}
.badge-text {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 10px;
}

    #membership-modal .modal-body {
        background-image: url('/wp-content/themes/ripro-v5/page/peiyin/images/null-cap.svg'); /* 替换为您的图片路径 */
        background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    }

.membership-message {
        background-color: rgb(255 251 251 / 76%);/* 半透明背景以增强可读性 */
    padding: 30px;
    border-radius: 10px;
    position: relative; /* 使文本在覆盖层上显示 */
    z-index: 2;
}
    .btn-primary {
        background-color: #007bff;
            position: relative; /* 使按钮在覆盖层上显示 */
    z-index: 2;
    }
    .btn-primary:hover {
        background-color: #ff0000;
    }
    .fs-5.duihuan {
    color: #0e0e0e;
}
.membership-message .text-danger {
    margin-bottom: 150px; /* 调整红色字与按钮之间的距离 */
}
.biaoti.active {
    color: #000000;
    border-radius: .4rem;
    padding: .2rem;
    background-image: linear-gradient(to right, #fffc00, #ffffff);
}
.custom-icon {
    width: 32px; /* 调整图标的宽度 */
    height: 32px; /* 调整图标的高度 */
    vertical-align: middle; /* 垂直对齐文本 */
    margin-right: 5px; /* 图标和文本之间的间距 */
}
/* 筛选分类 — iOS chip 风格 */
.shaixuan {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 14px;
    margin: 0 12px 10px;
    flex-shrink: 0;
    background: var(--is-surface, #fff);
    border-radius: var(--ios-radius-lg, 16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filter-groups-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.filter-row + .filter-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-row-label {
    flex-shrink: 0;
    width: 32px;
    padding-top: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ios-gray-2, #86868b);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.filter-row-chips,
.filter-group1 {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.filter-group {
    margin-bottom: 0;
}

/* 仅 .shaixuan 内 chip，不影响「我的收藏」按钮 */
.shaixuan .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: var(--is-body, #f2f2f7);
    color: var(--is-font, #1d1d1f);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition, all 0.2s ease);
    box-shadow: none;
    outline: none;
}

.shaixuan .filter-btn:hover {
    background: var(--ios-gray-5, #e5e5ea);
}

.shaixuan .filter-btn.selected {
    background: var(--primary-color, #007aff);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.22);
}

.shaixuan .filter-btn:active {
    transform: scale(0.96);
}

/* 臻品声音 — 未选中实色字，选中渐变底 */
.shaixuan .filter-btn.filter-btn-premium:not(.selected) {
    background: rgba(124, 58, 237, 0.08);
    background-image: none;
    color: #7c3aed;
    -webkit-text-fill-color: #7c3aed;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.28);
    box-shadow: none;
}

.shaixuan .filter-btn.filter-btn-premium:not(.selected):hover {
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
    -webkit-text-fill-color: #6d28d9;
}

.shaixuan .filter-btn.filter-btn-premium.selected {
    background: linear-gradient(135deg, #ff52c4 0%, #5e84ff 50%, #d95de8 100%);
    background-image: linear-gradient(135deg, #ff52c4 0%, #5e84ff 50%, #d95de8 100%);
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 82, 196, 0.35);
}

[data-bs-theme=dark] .shaixuan {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

[data-bs-theme=dark] .filter-row + .filter-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme=dark] .shaixuan .filter-btn {
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme=dark] .shaixuan .filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-bs-theme=dark] .shaixuan .filter-btn.filter-btn-premium:not(.selected) {
    background: rgba(196, 181, 253, 0.12);
    color: #c4b5fd;
    -webkit-text-fill-color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.35);
}

.liaison-highlight {
    background-color: #d1e7dd;
    border-radius: 3px;
    padding: 2px;
}
/* 声音卡片骨架屏（首屏占位） */
.voice-skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 4px 0;
}

@media (min-width: 768px) {
  .voice-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.voice-card-skeleton {
  background: white;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  border: 1px solid #edf0f5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.voice-skeleton-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f4f6 25%, #e8e8ed 50%, #f4f4f6 75%);
  background-size: 200% 100%;
  animation: voice-skeleton-loading 1.4s ease-in-out infinite;
}

.voice-skeleton-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f4f4f6 25%, #e8e8ed 50%, #f4f4f6 75%);
  background-size: 200% 100%;
  animation: voice-skeleton-loading 1.4s ease-in-out infinite;
}

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

.voice-skeleton-line.description {
  width: 90%;
}

.voice-skeleton-line.description.short {
  width: 70%;
}

.voice-skeleton-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.voice-skeleton-tag {
  width: 44px;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4f4f6 25%, #e8e8ed 50%, #f4f4f6 75%);
  background-size: 200% 100%;
  animation: voice-skeleton-loading 1.4s ease-in-out infinite;
}

@keyframes voice-skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
    .modal-body {
    padding: 20px;
}

.nav-tabs {
    margin-bottom: 15px;
}

.pause-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pause-time-btn,
.pause-time-btn-batch {
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer button {
    width: 100px;
}
.nav-tabs .nav-item .nav-link {
    border-radius: 15px;
    display: flex;
    align-items: center;
    transform: scale(0.85);
    transform-origin: center;
    font-size: 1rem;
    font-weight: 700;
}
.nav-tabs .nav-item .nav-link.active {
    background-color: yellow;
    background-image: linear-gradient(to right, #ffefba, #ffffff);
    font-size: .95rem;
    transform: scale(0.8);
    transform-origin: center;
}
.nav-tabs .nav-item .nav-link .tab-icon {
    margin-right: 5px;
}
#single-insert-tab::before {
    content: url('/wp-content/themes/ripro-v5/page/peiyin/images/ting.svg'); 
    display: inline-block;
    margin-right: 5px;
        transform: scale(0.6);
    transform-origin: center;
}
#batch-insert-tab::before {
    content: url('/wp-content/themes/ripro-v5/page/peiyin/images/piliang.svg');
    display: inline-block;
    margin-right: 5px;
        transform: scale(0.6);
    transform-origin: center;
}
.card-lunbo {
width: 500px;
max-width: 500px;
}
.voice-card.top-card .play-button {
    display: none;
}

/* 初始状态下隐藏收藏按钮 */
.favorite-button {
    display: none;
}

/* 鼠标悬停到声音卡片时显示收藏按钮 */
.voice-card:hover .favorite-button {
    display: block;
}

/* 按钮图标和文字的样式 */
#filter-favorites {
    display: flex;
    flex-direction: column; /* 使图标和文字垂直排列 */
    align-items: center;
    border: none;
    background-color: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 15px;
    font-size: .9rem;
    width: 100px;
}

#filter-favorites .icon {
    width: 26px; /* 图标的宽度 */
    height: 26px; /* 图标的高度 */
}

#filter-favorites span {
    font-size: 12px; /* 使文字更小 */
    margin-top: 4px; /* 图标和文字之间的间距 */
    text-align: center;
}


/* Quill 编辑器 placeholder 样式覆盖 */
.ql-editor.ql-blank::before {
    color: #bbb !important; /* 浅灰色 */
    font-style: normal !important; /* 不倾斜 */
    white-space: pre-line !important; /* 支持换行 */
    left: 15px;
    right: 15px;
    top: 15px; /* 顶部对齐 */
    pointer-events: none;
    position: absolute;
    line-height: 1.6; /* 增加行高，让多行更易读 */
}

/* 按钮选中状态的样式 */
#filter-favorites.active {
    background-color: #14a8fb;
    color: #fff;
}

#filter-favorites.active .icon {
    filter: invert(100%); /* 使图标在选中状态下变成白色 */
}

/* 鼠标悬停效果 */
#filter-favorites:hover {
    background-color: #f88914;
}
.highlight-1 {
    background-color: red;   /* 严重违规，例如色情 */
    color: white;
    font-weight: bold;
}
li.nav-item {
    width: 200px;
}
.highlight-2 {
background-color: red;
    color: white;
    border-radius: .4rem;
    padding: 4px;
}

.highlight-3 {
background-color: #fff313;
    border-radius: .4rem;
    padding: 4px;
    color: #ff2a2a;
}
.pause-marker {
    display: inline-block;
    background-color: #2ecc71; /* 绿色背景 */
    color: white; /* 白色文字 */
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 2px;
    cursor: pointer;
}
.anniu {
    position: relative; /* 使进度条相对按钮定位 */
}

.progress-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px;
    font-size: 14px;
    display: none; /* 初始隐藏 */
    align-items: center;
    justify-content: center;
    z-index: 10; /* 确保在按钮图标之上 */
}
.pause-block {
    background-color: rgb(7, 197, 120);
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 10px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.liaison-block {
    background-color: #ec4899;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 10px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    font-weight: 500;
}

ul.list-group {
    position: relative;
    overflow-y: auto;
    max-height: 470vh;
    height: 470px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        cursor: pointer;
}

.optimization-fixes p {
    white-space: pre-line;  /* 保留换行符和空格 */
}
.update-item a {
    text-decoration: underline !important;  /* 使用 !important 强制生效 */
        font-size: 18px;  /* 保证和标题字体大小一致 */
    font-weight: bold;  /* 保证和标题一样粗体 */
    margin-left: 10px;  /* 如果需要，给超链接标题留点间距 */
}



/* 设置右侧内容区域的最大高度，并允许其内部滚动 */
div#update-content {
    position: relative;
    overflow-y: auto;
    max-height: 470vh;
        height: 470px;
}
/* 自定义滚动条整体 */
#update-content::-webkit-scrollbar {
    width:4px; /* 设置滚动条的宽度 */
}

/* 滑块部分 (滚动条的可拖动部分) */
#update-content::-webkit-scrollbar-thumb {
    background-image:linear-gradient(to right, #f7971e,#ffd200);
    border-radius: 6px; /* 滑块圆角 */
}

/* 滚动条轨道 (滚动条背景) */
#update-content::-webkit-scrollbar-track {
    background-color: #f0f0f0; /* 设置轨道背景颜色 */
    border-radius: 6px;
}

img.img-fluid {
    max-width: 60%;
    border-radius: 12px;
}
#update-content .update-title {
    font-weight: bold;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    color: #0b0b0c;
    font-size: 24px;
}
.optimization-fixes {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.optimization-fixes h4 {
    color: black;
    font-size: 20px;
    font-weight: 600;
}
#update-content .update-title::after {
    content: ''; /* 生成一个空内容 */
    position: absolute;
    bottom: -10px; /* 将横线放置在标题下方 */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff6406, transparent); /* 渐变的横线 */
    /* 如果需要不同的颜色，可以修改 #000 */
}
#update-content .update-item h3 {
    font-size: 18px; /* 设置一个比默认小的字号 */
    margin-left: 20px; /* 为了让符号和标题之间有空隙 */
    position: relative;
    font-weight: 600;
        color: #211e1e;
}

#update-content .update-item h3::before {
    content: '●'; /* 你可以选择任何符号，或使用 Unicode 字符 */
    font-size: 18px; /* 设置符号的大小 */
    position: absolute;
    left: -20px; /* 符号放在标题的左边 */
    top: 50%;
    transform: translateY(-50%); /* 确保符号垂直居中 */
    color: #000; /* 设置符号的颜色，可以根据需要调整 */
}
.update-item.active {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
}
/* 旧版xitongk（保留以防JS依赖，但不显示）*/
.xitongk {
    display: none !important;
}
.controls-daohang {
border-bottom: 1px solid rgba(216, 228, 243, 0.8);
    cursor: pointer;
    height: 60px;
    padding: 0 25px;
    align-items: center;
    justify-content: space-between;
    display: flex;
}
.__voice-modal__open {
    display: flex;
    align-items: center;
}
div#voice-list-panel {
    width: 100%;
     padding: 10px;
}
.__voice-modal__open-icon {
    width: 30px;
    height: 30px;
    margin: 0 6px 0 0;
    background: url(/wp-content/themes/ripro-v5/page/peiyin/images/toggle-icon.png) no-repeat;
    background-size: contain;
}


/* 右侧：控制面板（独立，始终显示）- 统一高度和色彩，响应式 */
.settings-section {
    width: 18%; /* 响应式：使用百分比 */
    min-width: 380px; /* 最小宽度 */
    max-width: 450px; /* 最大宽度 */
    flex-shrink: 0; /* 禁止收缩，确保始终显示 */
    flex-grow: 0; /* 禁止扩展 */
    margin-left: 0; /* 避免把左侧主播列表与右侧面板强行拉开形成大空白 */
    margin-bottom: 10px; /* 底部也留出同样间距，保持左右高度一致 */
    background: var(--is-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow-y: auto;
    padding: 0;
    height: 100%; /* 与容器等高 */
    display: flex;
    flex-direction: column;
    position: relative; /* 改为relative，不再fixed */
}

.settings-section .weitiao,
.settings-section .mokuai,
.settings-section .mokuai_fengge {
    padding: 0 20px 0 20px;
}

.settings-section .controls-daohang {
    padding: 0 20px;
}

/* 左侧：主播列表（浮层），用 right/width 控制它与右侧面板的距离（你截图箭头指的就是这里） */
.voice-list-section {
    position: absolute;
    top: 10px;    /* 顶部留白，与右侧面板一致 */
    bottom: 10px; /* 底部留白，与右侧面板一致 */
    right: 392px;
    width: calc(25% - 20px);
    min-width: 550px;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        background: var(--is-surface);
    border-radius: 12px;
    overflow: hidden; /* 确保内容不溢出 */
    z-index: 10;

    display: flex;
    flex-direction: column;

    transform: scaleX(0);
    transform-origin: right;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    transition: transform .2s ease, opacity .15s ease;
}

/* 展开状态 */
.voice-list-section.show {
    transform: scaleX(1);
    opacity: 1;
    pointer-events: auto;
}

/* 旧版容器（隐藏）*/
.xitongk-unified {
    display: none !important;
}

/* 预计音频时长样式 */
#estimated-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 10px;
    color: #666;
}

#estimated-duration i {
    color: #999;
    font-size: 14px;
}

#estimated-duration #duration-time {
    font-weight: 600;
    color: var( --is-font);
    margin-left: 4px;
}

/* 智能改写、敏感词检测、查找替换、充值弹框宽度（确保覆盖全局620px限制） */
.ri-popup .ri-popup-body[style*="width:1380px"],
.ri-popup .ri-popup-body[style*="width: 1380px"],
.ri-popup-body[style*="width: 1380px"] {
    max-width: 1380px !important;
    width: 1380px !important;
    min-width: 1380px !important;
}

/* 合成记录弹框宽度 */
.ri-popup .ri-popup-body[style*="width:680px"],
.ri-popup-body[style*="width:680px"] {
    max-width: 680px !important;
    width: 680px !important;
    min-width: 680px !important;
}

/* 通用规则：当弹框宽度大于620px时，移除max-width限制 */


/* ========== 合成记录列表 - 一行一条样式 ========== */
/* 合成记录头部 & 页脚（简洁版） */
.history-simple-header {
    flex-shrink: 0;
    padding: 4px 4px 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.history-simple-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.history-simple-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.history-simple-title {
    font-size: 18px;
    font-weight: 600;
}

.history-simple-desc {
    font-size: 12px;
    color: #9ca3af;
}

.history-simple-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 6px;
        background: var(--is-body);
    border-radius: 12px;
}

.history-simple-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
}

.history-simple-footer-left {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
}

.history-simple-footer-left i {
    color: #10b981;
}

.history-simple-footer-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.history-simple-link {
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s ease;
}

.history-export-link {
    color: #2563eb;
}

.history-export-link:hover {
    color: #1d4ed8;
}

.history-clear-link {
    color: #ef4444;
}

.history-clear-link:hover {
    color: #b91c1c;
}

/* 合成记录：一条一行的卡片式布局（参考深色图，但保持当前浅色系） */
.history-record-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    margin: 0 12px 10px 12px; /* 左右各12px间距 */
    background: var(--is-surface);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--is-surface);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.history-record-item:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}


/* 左侧：头像播放按钮 */
.play-btn-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 0;
    background: transparent;
}

.play-btn-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.play-btn-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.play-btn-avatar:hover::after {
    opacity: 1;
}

.play-btn-avatar i {
    position: absolute;
    z-index: 2;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-btn-avatar:hover i {
    opacity: 1;
}

.play-btn-avatar i.fa-play {
    margin-left: 3px;
}

/* 播放中状态：始终显示暂停图标 */
.play-btn-avatar.playing::after {
    opacity: 1;
}

.play-btn-avatar.playing i {
    opacity: 1;
}

/* 兼容旧版圆形按钮（如果有地方还在用） */
.play-btn-circle {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: #4a5568;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.play-btn-circle:hover {
    background: #2d3748;
    transform: scale(1.05);
}

.play-btn-circle i.fa-pause {
    margin-left: 0;
}

.play-btn-circle i.fa-play {
    margin-left: 3px;
}

/* 中间：内容区 */
.record-content {
    flex: 1;
    min-width: 0;
}

/* 标题行 */
.record-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.record-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.record-info-top {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 13px;
    color: #86868b;
}

.record-info-top i {
    margin-right: 4px;
    font-size: 12px;
}

/* 进度条行 */
.progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-current,
.time-total {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    min-width: 40px;
}

.time-current {
    color: #3b82f6;
}

/* 进度条 */
.progress-track {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-track:hover {
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* 右侧：操作按钮 */
.record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.history-action-btn.download-btn {
    color: #4adc0d;
}

.history-action-btn.download-btn:hover {
    background: #eff6ff;
}

.history-action-btn.delete-btn {
    color: #86868b;
}

.history-action-btn.delete-btn:hover {
    background: #fee2e2;
}

/* 响应式 */
@media (max-width: 768px) {
    .history-record-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .play-btn-circle {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 18px;
    }
    
    .record-title {
        font-size: 14px;
        max-width: 200px;
    }
    
    .record-info-top {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        font-size: 12px;
    }
    
    .history-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* 智能改写滑块样式 - 紫色渐变 */
.rewrite-level-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0; /* 默认灰色背景，会被JS动态覆盖 */
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
}

/* 滑块节点标记（5个白色圆点） */
.rewrite-level-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    background-image: 
        radial-gradient(circle, #ffffff 3px, transparent 3px),
        radial-gradient(circle, #ffffff 3px, transparent 3px),
        radial-gradient(circle, #ffffff 3px, transparent 3px),
        radial-gradient(circle, #ffffff 3px, transparent 3px),
        radial-gradient(circle, #ffffff 3px, transparent 3px);
    background-size: 20% 100%;
    background-position: 0% center, 25% center, 50% center, 75% center, 100% center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    border-radius: 4px;
}

/* Webkit浏览器滑块按钮 */
.rewrite-level-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4), 0 0 0 3px rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.rewrite-level-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.5), 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* Firefox浏览器滑块按钮 */
.rewrite-level-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4), 0 0 0 3px rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.rewrite-level-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.5), 0 0 0 4px rgba(124, 58, 237, 0.15);
}
/* ==================== 音质选择弹框样式 ==================== */
.audio-quality-modal {
    width: 450px;
}

.audio-quality-header {
    padding: 28px 28px 20px;
    text-align: center;
    border-bottom: 1px solid var(--ios-gray-4, #f2f2f7);
}

.audio-quality-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ios-gray-1, #1d1d1f);
    margin: 0 0 10px 0;
}

.audio-quality-tip {
    font-size: 13px;
    color: var(--ios-gray-2, #86868b);
    margin: 0;
}
.audio-quality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: var(--ios-gray-4, #f2f2f7);
    border: 1px solid transparent;
    border-radius: var(--ios-radius-md, 12px);
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
}

.audio-quality-item:hover {
    background: var(--ios-gray-5, #e5e5ea);
}

.audio-quality-item.selected {
    background: rgba(0, 122, 255, 0.08);
    border-color: var(--ios-blue, #007AFF);
}

.audio-quality-item:last-child {
    margin-bottom: 0;
}

.quality-info {
    flex: 1;
}

.quality-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--ios-gray-1, #1d1d1f);
    margin: 0;
}

.quality-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quality-ratio {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-blue, #007AFF);
    padding: 6px 14px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 12px;
}

.audio-quality-item.selected .quality-ratio {
    background: rgba(0, 122, 255, 0.15);
}

.quality-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-check i {
    font-size: 20px;
    color: var(--ios-blue, #007AFF);
}

.audio-quality-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--ios-gray-4, #f2f2f7);
    text-align: center;
}

.audio-quality-confirm-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--ios-blue, #007AFF);
    color: white;
    border: none;
    border-radius: var(--ios-radius-md, 12px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
}

.audio-quality-confirm-btn:hover {
    background: #0051D5;
    opacity: 0.9;
}

.audio-quality-confirm-btn:active {
    opacity: 0.8;
}
