* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
}

/* 自定义滚动条样式 - Cursor IDE风格 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #484f58;
    border-radius: 5px;
    border: 2px solid #161b22;
}

::-webkit-scrollbar-thumb:hover {
    background: #6e7681;
}

::-webkit-scrollbar-thumb:active {
    background: #8b949e;
}

/* 模态对话框打开时隐藏页面滚动条 */
body.modal-open {
    overflow: hidden !important;
}

body.modal-open ::-webkit-scrollbar {
    display: none;
}

body.modal-open {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 顶部的导航栏 */
.navbar {
    background-color: #161b22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #30363d;
}

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

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    color: #58a6ff;
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #e6edf3;
}

.nav-tabs {
    display: flex;
    gap: 30px;
}

.nav-tab {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    color: #8b949e;
}

.nav-tab.active {
    background-color: #238636;
    color: white;
}

.nav-tab:hover:not(.active) {
    background-color: rgba(56, 139, 253, 0.15);
    color: #c9d1d9;
}

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

.points {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(56, 139, 253, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #30363d;
    color: #8b949e;
}

.points i {
    color: #e3b341;
}

.logout-btn {
    background-color: #21262d;
    color: #f85149;
    border: 1px solid #30363d;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #30363d;
    transform: translateY(-2px);
}

.login-btn {
    background-color: #238636;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e6edf3;
}

.hero-subtitle {
    font-size: 18px;
    color: #8b949e;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* 功能入口区域 */
.creation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    justify-content: center;
}

.creation-card {
    background: rgba(22, 27, 34, 0.8);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.creation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #484f58;
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: #238636;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 36px;
    color: white;
}

.creation-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #e6edf3;
}

.creation-card p {
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 10px;
    flex-grow: 1;
}

.cost-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #e3b341;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cost-info i {
    font-size: 12px;
}

.card-points {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e3b341;
    font-weight: 600;
    margin-bottom: 20px;
}

.use-btn {
    background-color: rgba(56, 56, 56, 0.3);
    color: #8b949e;
    border: 1px solid #30363d;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.use-btn:hover {
    background-color: rgba(56, 56, 56, 0.5);
    border-color: #484f58;
    color: #e6edf3;
}

/* 我的视频库 */
.video-library-section {
    margin-top: 40px;
    position: relative;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #58a6ff;
}

/* 视频库滑动容器 */
.video-slider-container {
    position: relative;
    overflow: visible;
    border-radius: 12px;
    background-color: rgba(13, 17, 23, 0.5);
    padding: 30px 60px 20px;
    border: 1px solid #30363d;
    margin-top: 20px;
}

.video-slider-wrapper {
    overflow: hidden;
}

.video-slider {
    display: flex;
    transition: transform 0.5s ease;
}

/* 视频卡片容器 */
.video-slide {
    flex: 0 0 calc(100% / 4);
    display: flex;
    justify-content: center;
    padding: 15px 10px 10px;
    position: relative;
    z-index: 1;
}

/* 视频卡片样式 */
.video-card {
    background-color: #161b22;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    height: 240px;
    position: relative;
    cursor: pointer;
}

/* 视频卡片悬停时提升层级 */
.video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #484f58;
    z-index: 10;
    position: relative;
}

.video-preview {
    height: 100%;
    background: linear-gradient(135deg, #161b22, #21262d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #58a6ff;
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.video-preview i {
    z-index: 2;
}

/* 视频处理中状态 */
.video-preview.processing-preview {
    background: linear-gradient(135deg, #1a2332, #21262d);
}

.processing-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.processing-icon {
    font-size: 36px;
    color: #58a6ff;
}

.processing-text {
    font-size: 13px;
    color: #8b949e;
    text-align: center;
}

/* 视频失败状态 */
.video-preview.failed-preview {
    background: linear-gradient(135deg, #2a1f1f, #21262d);
}

.failed-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.failed-icon {
    font-size: 36px;
    color: #f85149;
}

.failed-text {
    font-size: 13px;
    color: #f85149;
    text-align: center;
    font-weight: 500;
}

.failed-reason {
    font-size: 11px;
    color: #8b949e;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}

.video-card.failed {
    border-color: rgba(248, 81, 73, 0.3);
}

/* 视频库视频缩略图 */
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

/* 视频播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #58a6ff;
}

.play-icon {
    color: #fff;
    font-size: 24px;
    margin-left: 3px;
}

.video-time {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
}


.video-badge {
    display: inline-block;
    background-color: #238636;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 5px;
    line-height: 1.3;
}


/* 视频卡片悬停效果 - 显示创建按钮 */
.create-video-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #238636;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    z-index: 4;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.create-video-btn:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
}

/* 空状态视频卡片 */
.video-card.empty-card {
    background-color: #161b22;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    width: 100%;
    max-width: 300px;
    height: 240px;
    cursor: default;
}

/* 创建数字人视频模态对话框 */
.create-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.create-video-modal.active {
    display: flex;
}

.create-video-panel {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.create-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #30363d;
    background-color: #161b22;
    flex-shrink: 0;
}

.create-video-header h2 {
    margin: 0;
    font-size: 18px;
    color: #e6edf3;
}

.close-panel-btn {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 22px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-panel-btn:hover {
    background-color: #30363d;
    color: #e6edf3;
}

.create-video-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.create-video-left {
    width: 40%;
    background-color: #161b22;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #30363d;
}

.avatar-preview {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9/16;
    background-color: #0d1117;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #30363d;
}

.avatar-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #484f58;
}

.avatar-placeholder i {
    font-size: 60px;
    margin-bottom: 12px;
}

.avatar-placeholder p {
    font-size: 14px;
}

.create-video-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    min-height: 0;
    position: relative;
}

.script-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.script-tab {
    padding: 6px 14px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.script-tab:hover {
    background-color: #30363d;
    color: #e6edf3;
}

.script-tab.active {
    background-color: #238636;
    border-color: #238636;
    color: white;
}

.script-content {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.script-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.script-panel.active {
    display: flex;
}

.script-textarea {
    width: 100%;
    flex: 1;
    min-height: 50px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding: 12px;
    color: #e6edf3;
    font-size: 13px;
    resize: none;
}

.script-textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

.script-textarea::placeholder {
    color: #484f58;
}

.script-char-count {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    font-size: 11px;
    color: #484f58;
    padding: 6px 12px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-top: none;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.audio-upload-area {
    width: 100%;
    height: calc(100% - 10px);
    background-color: #0d1117;
    border: 2px dashed #30363d;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s;
}

.audio-upload-area:hover {
    border-color: #484f58;
    background-color: #161b22;
}

.audio-upload-area .upload-icon {
    font-size: 20px;
    margin-bottom: 5px;
    color: #58a6ff;
}

.audio-upload-area p {
    font-size: 12px;
    margin: 3px 0;
}

.audio-upload-area span {
    font-size: 10px;
    color: #484f58;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #161b22;
    border-radius: 6px;
    margin-top: 8px;
}

.audio-info i {
    color: #58a6ff;
    font-size: 16px;
}

.audio-info span {
    flex: 1;
    font-size: 12px;
    color: #e6edf3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-audio-btn {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: all 0.2s;
}

.remove-audio-btn:hover {
    background-color: #30363d;
    color: #f85149;
}

/* 导入音频预览样式 */
.import-audio-preview {
    width: 100%;
    margin-top: 8px;
}

.import-audio-preview audio {
    width: 100%;
    height: 40px;
}

.voice-settings {
    flex: 1;
    min-height: 0;
}

/* 语音设置网格布局 */
.voice-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.voice-setting-row {
    margin-bottom: 0;
}

.voice-setting-row.full-width {
    grid-column: span 2;
}

.voice-setting-row .voice-setting-label {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 4px;
}

.voice-setting-row .voice-select {
    width: 100%;
    padding: 6px 8px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #e6edf3;
    font-size: 12px;
    cursor: pointer;
}

.voice-setting-row .voice-select:focus {
    outline: none;
    border-color: #58a6ff;
}

.voice-setting-row .voice-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-setting-row .voice-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background-color: #30363d;
    border-radius: 2px;
    cursor: pointer;
}

.voice-setting-row .voice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background-color: #58a6ff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-setting-row .voice-slider::-webkit-slider-thumb:hover {
    background-color: #79c0ff;
    transform: scale(1.1);
}

.voice-value-label {
    color: #58a6ff !important;
    font-weight: 600;
    min-width: 30px;
    font-size: 11px;
}

/* 情绪选择器 */
.emotion-options {
    display: flex;
    gap: 6px;
}

.emotion-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #8b949e;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.emotion-option:hover {
    background-color: #30363d;
    color: #e6edf3;
}

.emotion-option.selected {
    background-color: #238636;
    border-color: #238636;
    color: white;
}

.emotion-option i {
    font-size: 12px;
}

.create-video-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding-top: 12px;
    border-top: 1px solid #30363d;
    margin-top: 12px;
    flex-shrink: 0;
}

.create-video-buttons .cancel-btn-panel {
    flex: 1;
}

.create-video-buttons #generateAudioBtn {
    flex: 1;
}

.create-video-buttons #confirmCreateVideo {
    flex: 1;
}

.cancel-btn-panel {
    padding: 8px 16px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 5px;
    color: #e6edf3;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn-panel:hover {
    background-color: #30363d;
}

.generate-btn-panel {
    padding: 8px 16px;
    background-color: #238636;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.generate-btn-panel:hover {
    background-color: #2ea043;
}

.generate-btn-panel:disabled {
    background-color: #30363d;
    cursor: not-allowed;
}

.generate-btn-panel i {
    font-size: 12px;
}

/* 语音设置工具栏 */
.voice-toolbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-top: auto;
    flex-shrink: 0;
    gap: 10px;
}

.voice-toolbar-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background-color: #30363d;
    border-color: #484f58;
}

.toolbar-btn.active {
    background-color: #238636;
    border-color: #238636;
}

/* 下拉菜单容器 */
.toolbar-dropdown-container {
    position: relative;
    display: inline-block;
}

.toolbar-btn i {
    font-size: 14px;
    color: #58a6ff;
}

.toolbar-arrow {
    font-size: 10px;
    color: #8b949e;
    margin-left: 4px;
}

.preview-btn i {
    color: #e6edf3;
}

/* 下拉菜单 */
.voice-dropdown,
.emotion-dropdown,
.adjust-panel {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.voice-dropdown.active,
.emotion-dropdown.active,
.adjust-panel.active {
    display: block;
}

/* 情绪选择下拉菜单位置 */
.emotion-dropdown {
    left: 0;
}

/* 语音合成面板内的情绪下拉菜单 */
.voice-cards-panel .emotion-dropdown,
.voice-settings-section .emotion-dropdown {
    position: absolute;
    bottom: auto;
    top: 100%;
    left: 0;
    margin-top: 4px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 8px;
    min-width: 100%;
    width: 100%;
    border: 1px solid #30363d;
    background-color: #21262d;
    border-radius: 8px;
    display: none;
    box-sizing: border-box;
}

.voice-cards-panel .emotion-dropdown.active,
.voice-settings-section .emotion-dropdown.active {
    display: block;
}

/* 语音选择按钮样式 */
.voice-select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: space-between;
}

.voice-select-btn:hover {
    background-color: #30363d;
    border-color: #58a6ff;
}

.voice-select-btn.active {
    border-color: #58a6ff;
    background-color: #30363d;
}

/* 下拉容器 */
.toolbar-dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background-color: #30363d;
}

.dropdown-item.selected {
    background-color: #238636;
}

.dropdown-item i {
    font-size: 16px;
    color: #58a6ff;
    width: 20px;
    text-align: center;
}

.dropdown-item span {
    flex: 1;
    font-size: 13px;
}

.dropdown-item .check-icon {
    color: #3fb950;
    font-size: 14px;
}

.dropdown-item.selected .check-icon {
    opacity: 1;
}

.dropdown-item:not(.selected) .check-icon {
    opacity: 0;
}

/* 语音调节面板 */
.adjust-panel {
    padding: 15px;
    min-width: 280px;
    right: 0;
    left: auto;
}

.adjust-item {
    margin-bottom: 15px;
}

.adjust-item:last-of-type {
    margin-bottom: 10px;
}

.adjust-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.adjust-label i {
    font-size: 14px;
    color: #58a6ff;
    width: 18px;
    text-align: center;
}

.adjust-label span {
    font-size: 13px;
    color: #8b949e;
}

.adjust-value {
    margin-left: auto;
    font-size: 12px;
    color: #58a6ff;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.adjust-slider-container {
    padding: 0 2px;
}

.adjust-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background-color: #30363d;
    border-radius: 2px;
    cursor: pointer;
}

.adjust-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background-color: #58a6ff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.adjust-slider::-webkit-slider-thumb:hover {
    background-color: #79c0ff;
    transform: scale(1.1);
}

.adjust-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #30363d;
    margin-top: 5px;
}

.reset-btn {
    padding: 6px 12px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #8b949e;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background-color: #30363d;
    color: #e6edf3;
}

.video-card.empty-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #30363d;
}

/* 创建数字人卡片样式 */
.video-create-card {
    position: relative;
}

.video-create-card:hover {
    border-color: #238636;
}

.create-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 134, 54, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-create-card:hover .create-overlay {
    opacity: 1;
}

.create-overlay i {
    font-size: 48px;
    color: #3fb950;
}

.create-overlay span {
    font-size: 18px;
    font-weight: 600;
    color: #3fb950;
}

.empty-preview {
    height: 100%;
    background: linear-gradient(135deg, #161b22, #21262d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.empty-icon {
    font-size: 48px;
    color: #484f58;
}

.empty-text {
    color: #484f58;
    font-size: 16px;
}

/* 更多菜单按钮 */
.more-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .more-menu-btn {
    opacity: 1;
}

.more-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 更多菜单 */
.more-menu {
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: #21262d;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 10;
    display: none;
    min-width: 120px;
    border: 1px solid #30363d;
}

.more-menu.active {
    display: block;
}

.menu-item {
    padding: 10px 15px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.menu-item:hover {
    background-color: #30363d;
    color: #e6edf3;
}

.menu-item.delete:hover {
    background-color: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.menu-item i {
    font-size: 12px;
}

/* 调整左右切换按钮的位置 */
.slider-btn {
    position: absolute;
    top: calc(50% + 10px);
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 50%;
    color: #8b949e;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-btn:hover {
    background-color: #30363d;
    color: #e6edf3;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background-color: #21262d;
    transform: translateY(-50%) scale(1);
}

/* 底部信息 */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-size: 14px;
}

/* 登录模态框 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-dialog {
    background-color: #161b22;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #30363d;
}

.login-modal.active .login-dialog {
    transform: translateY(0);
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e6edf3;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    color: #8b949e;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 15px;
    color: #e6edf3;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

.login-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.login-btn-modal {
    background-color: #238636;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.login-btn-modal:hover {
    background-color: #2ea043;
}

.cancel-btn-modal {
    background-color: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.cancel-btn-modal:hover {
    background-color: #30363d;
    color: #e6edf3;
}

/* 登录错误提示样式 */
.login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    background-color: rgba(248, 81, 73, 0.1);
    border: 1px solid #f85149;
    border-radius: 8px;
}

.login-error i {
    color: #f85149 !important;
    font-size: 14px;
    flex-shrink: 0;
}

.login-error span {
    color: #f85149 !important;
    font-size: 13px;
    font-weight: 500;
}

.register-link {
    text-align: center;
    margin-top: 15px;
    color: #8b949e;
    font-size: 14px;
}

.register-link a {
    color: #58a6ff;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 注册模态框 */
.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.register-modal.active {
    opacity: 1;
    visibility: visible;
}

.register-dialog {
    background-color: #161b22;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #30363d;
}

.register-modal.active .register-dialog {
    transform: translateY(0);
}

.register-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e6edf3;
    text-align: center;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.register-btn-modal {
    background-color: #238636;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.register-btn-modal:hover {
    background-color: #2ea043;
}

.login-link {
    text-align: center;
    margin-top: 15px;
    color: #8b949e;
    font-size: 14px;
}

.login-link a {
    color: #58a6ff;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 删除确认对话框 */
.delete-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-confirm.active {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background-color: #161b22;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #30363d;
}

.delete-confirm.active .confirm-dialog {
    transform: translateY(0);
}

.confirm-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e6edf3;
}

.confirm-message {
    color: #8b949e;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.confirm-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.cancel-btn {
    background-color: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
}

.cancel-btn:hover {
    background-color: #30363d;
    color: #e6edf3;
}

.delete-btn {
    background-color: #da3633;
    color: white;
}

.delete-btn:hover {
    background-color: #f85149;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .nav-tabs {
        gap: 15px;
    }

    .nav-tab {
        padding: 10px 18px;
        font-size: 16px;
    }

    .video-slide {
        flex: 0 0 calc(100% / 3);
    }
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-tabs {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .creation-options {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .video-slide {
        padding: 12px 10px 8px;
    }

    .video-slider-container {
        padding: 25px 50px 15px;
    }
}

/* ========== 语音合成面板样式 - 全局适用 ========== */
.voice-synthesis-container {
    padding: 0;
}

.voice-synthesis-panel {
    display: flex;
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-radius: 16px;
    border: 1px solid #30363d;
    overflow: visible;
    min-height: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.voice-panel-header {
    display: none;
}

.close-voice-panel-btn {
    display: none;
}

.voice-panel-content {
    display: flex;
    width: 100%;
    padding: 0;
    gap: 0;
}

/* 左侧核心输入区 */
.voice-text-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-radius: 0;
    border: none;
    border-right: 1px solid #30363d;
    padding: 30px;
}

.voice-section-title {
    display: none;
}

.voice-text-input {
    flex: 1;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #e6edf3;
    font-size: 16px;
    padding: 30px 25px;
    resize: none;
    min-height: 300px;
    line-height: 1.8;
    width: 100%;
    font-family: inherit;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

.voice-text-input::-webkit-scrollbar {
    width: 8px;
}

.voice-text-input::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 4px;
}

.voice-text-input::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.voice-text-input::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.voice-text-input:focus {
    outline: none;
    border-color: #484f58;
}

.voice-text-input::placeholder {
    color: #484f58;
}

.voice-text-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
    border-top: none;
}

.voice-char-count {
    font-size: 14px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 15px;
}

.voice-text-actions {
    display: none;
}

.pause-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pause-btn:hover {
    background-color: #30363d;
    border-color: #484f58;
    color: #e6edf3;
}

.play-audio-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-audio-btn:hover {
    background-color: #30363d;
    border-color: #484f58;
    color: #e6edf3;
}

.play-audio-btn.playing {
    background-color: #1f6feb;
    border-color: #388bf4;
    color: #fff;
}

/* 音频进度条容器 */
.audio-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px 14px;
    flex: 1;
    min-width: 400px;
}

.audio-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #238636;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    background-color: #2ea043;
}

.audio-play-btn.playing {
    background-color: #da3633;
}

.audio-play-btn.playing:hover {
    background-color: #f85149;
}

.audio-progress-bar {
    flex: 1;
    height: 6px;
    background-color: #30363d;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    min-width: 100px;
}

.audio-progress {
    height: 100%;
    background: linear-gradient(90deg, #1f6feb, #58a6ff);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-progress-bar:hover .audio-progress {
    background: linear-gradient(90deg, #388bf4, #79c0ff);
}

.audio-time {
    font-size: 12px;
    color: #8b949e;
    font-family: monospace;
    flex-shrink: 0;
}

.audio-separator {
    color: #484f58;
    margin: 0 2px;
}

.audio-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #30363d;
    border: none;
    border-radius: 6px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.audio-download-btn:hover {
    background-color: #484f58;
    color: #fff;
}

.audio-download-btn:active {
    transform: scale(0.95);
}

/* TTS 音频播放器（放在文字数量和生成配音按钮中间） */
.tts-audio-player {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.tts-audio-player audio {
    width: 100%;
    height: 40px;
    border-radius: 6px;
}

.voice-generate-btn {
    background-color: #238636;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.voice-generate-btn:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
}

/* 右侧参数调节区 */
.voice-settings-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
    border-radius: 0;
    border: none;
    padding: 30px;
    max-width: 400px;
}

.voice-setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.voice-setting-label {
    font-size: 14px;
    color: #8b949e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.voice-value-label {
    color: #58a6ff;
    font-weight: 600;
    font-size: 14px;
}

.voice-select {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
    color: #e6edf3;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    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='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.voice-select:focus {
    outline: none;
    border-color: #484f58;
}

.voice-select option {
    background-color: #0d1117;
    color: #e6edf3;
    padding: 10px;
}

/* 语音合成页面音色选择下拉菜单 */
.voice-select-dropdown {
    position: relative;
    width: 100%;
}

.voice-select-dropdown .voice-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-select-dropdown .voice-select-btn:hover {
    border-color: #58a6ff;
}

.voice-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.voice-dropdown-menu.active {
    display: block;
}

.voice-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-dropdown-item:hover {
    background-color: #161b22;
}

.voice-dropdown-item .voice-name {
    font-size: 15px;
    font-weight: 600;
    color: #e6edf3;
}

.voice-dropdown-item .voice-gender {
    font-size: 12px;
    color: #8b949e;
    margin-top: 4px;
}

.voice-dropdown-item .voice-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #58a6ff;
}

.emotion-options {
    display: flex;
    gap: 8px;
    width: 100%;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px;
}

.emotion-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emotion-option:hover {
    background-color: #21262d;
}

.emotion-option.selected {
    background-color: rgba(56, 139, 253, 0.15);
}

.emotion-option i {
    font-size: 18px;
    color: #484f58;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.emotion-option.selected i {
    color: #58a6ff;
}

.emotion-option span {
    font-size: 12px;
    color: #8b949e;
}

.emotion-option.selected span {
    color: #58a6ff;
    font-weight: 600;
}

.voice-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
}

.voice-slider-icon {
    color: #484f58;
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.voice-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #21262d;
    border-radius: 2px;
    cursor: pointer;
}

.voice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #58a6ff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .voice-synthesis-panel {
        flex-direction: column;
    }

    .voice-text-section {
        border-right: none;
        border-bottom: 1px solid #30363d;
        padding: 20px;
    }

    .voice-settings-section {
        padding: 20px;
        max-width: 100%;
    }

    .voice-text-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 20px;
    }
    
    .creation-options {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .video-slide {
        flex: 0 0 100%;
    }
    
    .video-slider-container {
        padding: 20px 40px 10px;
        margin-top: 15px;
    }
    
    .slider-btn {
        top: calc(50% + 5px);
    }
}

/* 从视频创建数字人模态对话框 */
.video-create-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #0d1117;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid #30363d;
}

.video-create-modal.active {
    transform: translateX(0);
}

.video-create-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.video-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #30363d;
}

.video-create-header h2 {
    font-size: 20px;
    color: #e6edf3;
    margin: 0;
}

.close-panel-btn {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-panel-btn:hover {
    background-color: #21262d;
    color: #e6edf3;
}

.video-create-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.video-create-content .form-group {
    margin-bottom: 20px;
}

.video-create-content .form-label {
    display: block;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 8px;
}

.video-create-content .form-label.required::before {
    content: "*";
    color: #f85149;
    margin-right: 4px;
}

.video-create-content .form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    transition: all 0.3s ease;
}

.video-create-content .form-input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

.video-create-content .form-input::placeholder {
    color: #484f58;
}

.upload-area {
    border: 2px dashed #30363d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(22, 27, 34, 0.5);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #484f58;
    background-color: rgba(22, 27, 34, 0.8);
}

.upload-area.drag-over {
    border-color: #58a6ff;
    background-color: rgba(56, 139, 253, 0.1);
}

.upload-area.has-video {
    padding: 10px;
    min-height: 150px;
}

.upload-icon {
    font-size: 48px;
    color: #484f58;
    margin-bottom: 15px;
}

.upload-area p {
    color: #8b949e;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.upload-area span {
    color: #484f58;
    font-size: 12px;
}

/* 视频尺寸警告文字 */
.video-size-warning {
    color: #dc2626;
    font-style: italic;
    font-size: 12px;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* 通用上传区域文字样式 - 统一所有上传区域的文字大小和颜色 */
.image-upload-area p,
.text-image-upload-area p {
    color: #8b949e;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.image-upload-area span,
.text-image-upload-area span {
    color: #484f58;
    font-size: 12px;
}

.upload-area.has-video p,
.upload-area.has-video span {
    display: none;
}

/* 视频预览缩略图样式 */
.video-preview-thumbnail {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 8px;
    margin: 0;
    background-color: #000;
    object-fit: cover;
}

/* 转码方式按钮组样式 - 视频创建界面风格 */
.video-create-content .transcode-options {
    margin-bottom: 20px;
}

.video-create-content .transcode-title {
    display: block;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 12px;
}

.video-create-content .transcode-buttons {
    display: flex;
    gap: 10px;
}

.video-create-content .transcode-btn {
    flex: 1;
    padding: 10px 16px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-create-content .transcode-btn:hover {
    background-color: #161b22;
    border-color: #484f58;
}

.video-create-content .transcode-btn.active {
    background-color: #238636;
    border-color: #238636;
    color: white;
}

.video-create-content .transcode-description {
    margin-top: 12px;
    font-size: 12px;
    color: #484f58;
    line-height: 1.5;
}

/* 授权确认复选框样式 */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #8b949e;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 15px;
    background-color: transparent;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background-color: #161b22;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #30363d;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #238636;
    border-color: #238636;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label .checkbox-text {
    color: #8b949e;
}

.panel-buttons {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #30363d;
    background-color: #161b22;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.cancel-btn-panel {
    flex: 1;
    padding: 14px 20px;
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn-panel:hover {
    background-color: #21262d;
    border-color: #484f58;
    color: #e6edf3;
}

.create-btn-panel {
    flex: 1;
    padding: 14px 20px;
    background-color: #238636;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-btn-panel:hover {
    background-color: #2ea043;
}

/* 创建按钮加载状态 */
.create-btn-panel.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.create-btn-panel .fa-spinner {
    margin-right: 8px;
}

/* Font Awesome 旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* 从图片创建数字人模态对话框 */
.image-create-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #0d1117;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid #30363d;
}

.image-create-modal.active {
    transform: translateX(0);
}

.image-create-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.image-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #30363d;
}

.image-create-header h2 {
    font-size: 20px;
    color: #e6edf3;
    margin: 0;
}

.image-create-content {
    flex: 1;
    padding: 25px;
    padding-bottom: 100px;
    overflow-y: auto;
}

.image-create-content .form-group {
    margin-bottom: 20px;
}

.image-create-content .form-label {
    display: block;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 8px;
}

.image-create-content .form-label.required::before {
    content: "*";
    color: #f85149;
    margin-right: 4px;
}

.image-create-content .form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    transition: all 0.3s ease;
}

.image-create-content .form-input:focus {
    outline: none;
    border-color: #58a6ff;
}

.image-create-content .form-input::placeholder {
    color: #484f58;
}

.image-create-content .form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.image-upload-area {
    border: 2px dashed #30363d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(22, 27, 34, 0.5);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: #484f58;
    background-color: rgba(22, 27, 34, 0.8);
}

.image-upload-area.drag-over {
    border-color: #58a6ff;
    background-color: rgba(56, 139, 253, 0.1);
}

.image-upload-area.has-image {
    padding: 10px;
    min-height: 150px;
}

.image-upload-area.has-image p,
.image-upload-area.has-image span:not(.size-hint) {
    display: none;
}

.image-upload-area .size-hint {
    color: #e74c3c;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.image-upload-area.has-image .size-hint {
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.image-preview-thumbnail {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 8px;
    margin: 0;
    background-color: #000;
    object-fit: fill;
}

/* 字符计数样式 */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #484f58;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.char-count.warning {
    color: #d29922;
}

.char-count.error {
    color: #f85149;
}

.char-count span {
    font-weight: 600;
}

/* 从文字创建数字人模态对话框 */
.text-create-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #0d1117;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid #30363d;
}

.text-create-modal.active {
    transform: translateX(0);
}

.text-create-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.text-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #30363d;
}

.text-create-header h2 {
    font-size: 20px;
    color: #e6edf3;
    margin: 0;
}

.text-create-content {
    flex: 1;
    padding: 25px;
    padding-bottom: 100px;
    overflow-y: auto;
}

.text-create-content .form-group {
    margin-bottom: 20px;
}

.text-create-content .form-label {
    display: block;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 8px;
}

.text-create-content .form-label.required::before {
    content: "*";
    color: #f85149;
    margin-right: 4px;
}

.text-create-content .form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    transition: all 0.3s ease;
}

.text-create-content .form-input:focus {
    outline: none;
    border-color: #58a6ff;
}

.text-create-content .form-input::placeholder {
    color: #484f58;
}

.text-create-content .form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.text-image-upload-area {
    border: 2px dashed #30363d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(22, 27, 34, 0.5);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-image-upload-area:hover {
    border-color: #484f58;
    background-color: rgba(22, 27, 34, 0.8);
}

.text-image-upload-area.drag-over {
    border-color: #58a6ff;
    background-color: rgba(56, 139, 253, 0.1);
}

.text-image-upload-area.has-image {
    padding: 10px;
    min-height: 150px;
}

.text-image-upload-area.has-image p,
.text-image-upload-area.has-image span {
    display: none;
}

.text-image-preview {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 8px;
    margin: 0;
    object-fit: fill;
}

/* 生成比例选项样式 */
.ratio-options {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.ratio-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.ratio-option:hover {
    border-color: #484f58;
    background-color: #161b22;
}

.ratio-option.selected {
    border-color: #238636;
    background-color: rgba(35, 134, 54, 0.15);
}

.ratio-text {
    font-size: 14px;
    color: #8b949e;
    font-weight: 600;
}

.ratio-option.selected .ratio-text {
    color: #3fb950;
}

/* 文字创建面板按钮样式 */
.text-panel-buttons {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #30363d;
    background-color: #161b22;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.generate-btn-panel {
    flex: 1;
    padding: 14px 20px;
    background-color: #238636;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn-panel:hover {
    background-color: #2ea043;
}

.generate-btn-panel:disabled {
    background-color: #21262d;
    cursor: not-allowed;
    transform: none;
}

/* 积分充值模态对话框 */
.recharge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.recharge-modal.active {
    opacity: 1;
    visibility: visible;
}

.recharge-dialog {
    background-color: #161b22;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid #30363d;
}

.recharge-modal.active .recharge-dialog {
    transform: scale(1);
}

.recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #30363d;
}

.recharge-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
}

.close-recharge-btn {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-recharge-btn:hover {
    background-color: #21262d;
    color: #e6edf3;
}

.recharge-tip {
    color: #8b949e;
    font-size: 16px;
    margin-bottom: 20px;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.recharge-option {
    background-color: #0d1117;
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.recharge-option:hover {
    border-color: #484f58;
}

.recharge-option.selected {
    border-color: #238636;
}

/* 选中时的对勾图标 */
.recharge-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #238636;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.option-icon {
    width: 50px;
    height: 50px;
    background-color: #238636;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon i {
    font-size: 24px;
    color: #e3b341;
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-points {
    font-size: 22px;
    font-weight: 700;
    color: #e6edf3;
}

.option-price {
    font-size: 16px;
    color: #8b949e;
}

.payment-section {
    border-top: 1px solid #30363d;
    padding-top: 25px;
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    background-color: #0d1117;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-method:hover {
    border-color: #484f58;
}

.payment-method.selected {
    border-color: #238636;
}

.method-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.wechat-icon {
    background-color: #07c160;
    color: white;
}

.alipay-icon {
    background-color: #1677ff;
    color: white;
}

.payment-method span {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 12px;
    margin-top: 15px;
}

.qrcode-container img {
    width: 180px;
    height: 180px;
}

.qrcode-placeholder {
    text-align: center;
    padding: 20px;
}

.qrcode-placeholder .qr-icon {
    font-size: 80px;
    color: #484f58;
    margin-bottom: 15px;
}

.qrcode-placeholder p {
    color: #484f58;
    font-size: 14px;
}

/* ========== 我的作品样式 ========== */
.my-works-content {
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.works-header-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-radius: 16px;
    border: 1px solid #30363d;
}

.works-title {
    font-size: 32px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 12px;
}

.works-subtitle {
    font-size: 16px;
    color: #8b949e;
}

.works-container {
    padding: 20px 0;
}

.works-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #8b949e;
    gap: 15px;
}

.works-loading i {
    font-size: 32px;
    color: #58a6ff;
}

.works-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-radius: 16px;
    border: 1px solid #30363d;
}

.works-empty .empty-icon {
    font-size: 64px;
    color: #484f58;
    margin-bottom: 20px;
}

.works-empty .empty-text {
    font-size: 16px;
    color: #8b949e;
}

.works-day-group {
    margin-bottom: 40px;
}

.works-date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(35, 134, 54, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #238636;
}

.works-date-header i {
    color: #238636;
    font-size: 18px;
}

.works-date {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
}

.works-count {
    font-size: 14px;
    color: #8b949e;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.work-card {
    background: linear-gradient(135deg, #161b22, #21262d);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #484f58;
}

.work-preview {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #161b22, #21262d);
    overflow: hidden;
}

.work-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #161b22, #21262d);
}

.work-placeholder i {
    font-size: 48px;
    color: #484f58;
}

/* 音频卡片样式 */
.audio-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.audio-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.audio-icon-center {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.audio-icon-center i {
    font-size: 28px;
    color: #e94560;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

/* 音频波形动画 */
.audio-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
}

.audio-wave span {
    width: 4px;
    background: linear-gradient(180deg, #e94560, #ff6b6b);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { animation-delay: 0s; height: 12px; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; height: 18px; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; height: 12px; }

@keyframes audioWave {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 音频覆盖层 - 默认隐藏，悬停时显示 */
.audio-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.work-card:hover .audio-overlay {
    opacity: 1;
    visibility: visible;
}

.work-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #238636;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.work-play-btn:hover {
    background-color: #2ea043;
    transform: scale(1.1);
}

.work-info {
    padding: 16px;
}

.work-title {
    font-size: 15px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-time {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 4px;
}

.work-type {
    display: inline-block;
    font-size: 12px;
    color: #58a6ff;
    background-color: rgba(56, 139, 253, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.work-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid #30363d;
}

.work-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.work-action-btn:hover {
    background-color: #21262d;
    border-color: #484f58;
    color: #e6edf3;
}

.work-action-btn[data-action="delete"]:hover {
    background-color: rgba(248, 81, 73, 0.15);
    border-color: #f85149;
    color: #f85149;
}

/* 作品处理中状态样式 */
.work-card.processing {
    cursor: wait;
}

.work-card.processing:hover {
    transform: none;
    box-shadow: none;
    border-color: #30363d;
}

.work-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.work-processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.work-processing-icon {
    font-size: 32px;
    color: #58a6ff;
}

.work-processing-text {
    font-size: 13px;
    color: #8b949e;
}

.processing-placeholder {
    background: linear-gradient(135deg, #1a2332, #21262d) !important;
}

/* 作品失败状态样式 */
.work-failed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.work-failed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.work-failed-icon {
    font-size: 32px;
    color: #e74c3c;
}

.work-failed-text {
    font-size: 13px;
    color: #e74c3c;
    text-align: center;
}

.work-failed-reason {
    font-size: 11px;
    color: #c0392b;
    text-align: center;
}

.work-card.failed .work-actions {
    display: none !important;
}

/* ========== 作品卡片内播放样式 ========== */

/* 视频在卡片内播放 */
.work-card.video-mode .work-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.work-card.video-mode .work-preview {
    position: relative;
    background: #000;
}

/* 音频在卡片内播放 */
.work-card.audio-mode .work-audio {
    display: none;
}

.work-card.audio-mode .audio-preview {
    background: linear-gradient(135deg, #1a2332 0%, #21262d 50%, #1a2332 100%);
}

/* 播放时显示暂停图标 */
.work-play-btn.playing i::before {
    content: "\f04c"; /* pause icon */
}

/* 作品卡片悬停时，如果有视频在播放，保持覆盖层显示 */
.work-card:hover .work-overlay {
    opacity: 1;
}

/* ========== 作品统计数据区域样式 ========== */
.works-stats-section {
    margin-bottom: 40px;
}

.works-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #161b22, #21262d);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #484f58;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
    color: #fff;
}

/* 视频统计卡片样式 */
.stat-card.video-stat .stat-icon {
    background: linear-gradient(135deg, #238636, #2ea043);
}

/* 图片统计卡片样式 */
.stat-card.image-stat .stat-icon {
    background: linear-gradient(135deg, #a371f7, #8957e5);
}

/* 文本统计卡片样式 */
.stat-card.text-stat .stat-icon {
    background: linear-gradient(135deg, #58a6ff, #388bfd);
}

/* 积分统计卡片样式 */
.stat-card.points-stat .stat-icon {
    background: linear-gradient(135deg, #e3b341, #d29922);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .works-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .works-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon i {
        font-size: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-works-content {
        padding: 20px;
    }

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

    .works-header-section {
        padding: 30px 20px;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .work-preview {
        height: 140px;
    }
}

/* ======================================== */
/*        语音选择模态对话框样式           */
/* ======================================== */

/* 模态遮罩层 */
.voice-select-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    align-items: flex-start;
    justify-content: flex-end;
}

.voice-select-modal.active {
    display: flex;
}

.voice-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 右侧滑出面板 */
.voice-select-panel {
    position: relative;
    width: 700px;
    max-width: 100%;
    height: 100%;
    background-color: #0d1117;
    border-left: 1px solid #30363d;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.voice-select-modal.active .voice-select-panel {
    transform: translateX(0);
}

/* 头部 */
.voice-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #30363d;
}

.voice-select-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
}

.close-voice-panel-btn {
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    color: #8b949e;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.close-voice-panel-btn:hover {
    background-color: #30363d;
    color: #f0f6fc;
}

/* Tab 切换 */
.voice-select-tabs {
    display: flex;
    border-bottom: 1px solid #30363d;
}

.voice-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: transparent;
    color: #8b949e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}

.voice-tab:hover {
    color: #f0f6fc;
    background-color: rgba(177, 186, 212, 0.06);
}

.voice-tab.active {
    color: #58a6ff;
}

.voice-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #58a6ff;
}

/* 内容区域 */
.voice-select-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* 分页控件 */
.voice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid #30363d;
    background-color: #0d1117;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #f0f6fc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #f0f6fc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #30363d;
    border-color: #58a6ff;
    color: #58a6ff;
}

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

.pagination-info {
    font-size: 14px;
    color: #8b949e;
}

.voice-panel {
    display: none;
}

.voice-panel.active {
    display: block;
}

/* 声音网格 */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
}

.voice-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
    max-width: 300px;
    position: relative;
    min-height: 100px;
    transition: all 0.2s;
}

/* 公用语言项 - 增加高度 */
.voice-item .voice-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.voice-flag {
    font-size: 20px;
    line-height: 1;
}

.voice-language {
    font-size: 12px;
    color: #8b949e;
    margin-top: 4px;
}

.voice-item:hover {
    background-color: #21262d;
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.voice-icon {
    font-size: 18px;
    color: #58a6ff;
    margin-right: 10px;
    flex-shrink: 0;
}

.voice-item.selected {
    background-color: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
}

.voice-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 4px;
    align-self: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.voice-gender {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.voice-desc {
    font-size: 11px;
    color: #8b949e;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    width: 100%;
}
    max-width: 100%;
    line-height: 1.4;
}

.voice-play-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #58a6ff;
    opacity: 0;
    transition: all 0.2s;
}

.voice-item:hover .voice-play-btn {
    opacity: 1;
}

.voice-play-btn:hover {
    color: #79c0ff;
    transform: translateY(-50%) scale(1.1);
}

/* 我的声音 - 空状态 */
.my-voices-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.my-voices-empty i {
    font-size: 48px;
    color: #30363d;
    margin-bottom: 16px;
}

.my-voices-empty p {
    font-size: 15px;
    font-weight: 500;
    color: #f0f6fc;
    margin: 0 0 8px 0;
}

.my-voices-empty span {
    font-size: 13px;
    color: #8b949e;
}

/* 响应式 */
@media (max-width: 500px) {
    .voice-select-panel {
        width: 100%;
    }
    
    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .voice-item {
        padding: 15px 10px;
    }
}

/* ===========================================
   语音合成 - 简洁语音卡片样式
   =========================================== */

/* 选中状态的语音卡片 */
.voice-card-selected {
    background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.voice-card-selected:hover {
    border-color: #58a6ff;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.15);
}

/* 头像图标 */
.voice-card-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #238636 0%, #1a6329 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voice-card-avatar i {
    font-size: 20px;
    color: #ffffff;
}

/* 主要内容区 */
.voice-card-main {
    flex: 1;
    min-width: 0;
}

/* 语音名称 */
.voice-name {
    font-size: 15px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 4px;
}

/* 语音性别/标签 */
.voice-gender {
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 4px;
}

/* 语音描述 */
.voice-desc {
    font-size: 12px;
    color: #6e7681;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-card-info {
    flex: 1;
    min-width: 0;
}

/* 卡片内的语音名称 */
.voice-card .voice-name {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 3px;
}

/* 卡片内的语音性别 */
.voice-card .voice-gender {
    font-size: 11px;
    color: #8b949e;
    margin-bottom: 3px;
}

/* 卡片内的语音描述 */
.voice-card .voice-desc {
    font-size: 11px;
    color: #6e7681;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 6px;
}

.voice-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.voice-tag {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* 操作按钮区域 */
.voice-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 小播放按钮 */
.voice-play-btn-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #30363d;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-play-btn-small:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    color: #58a6ff;
}

.voice-play-btn-small i {
    font-size: 10px;
    margin-left: 1px;
}

/* 切换按钮 */
.voice-card-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-card-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    color: #58a6ff;
}

.voice-card-btn i {
    font-size: 12px;
}

/* 音色选择面板 */
.voice-cards-panel {
    display: none;
    background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

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

.voice-cards-panel.active {
    display: block;
}

.voice-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #30363d;
}

.voice-cards-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
}

.voice-cards-close {
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.voice-cards-close:hover {
    background: #21262d;
    color: #e6edf3;
}

/* 音色卡片网格 */
.voice-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

/* 滚动条样式 */
.voice-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.voice-cards-grid::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 3px;
}

.voice-cards-grid::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.voice-cards-grid::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* 单个音色卡片 */
.voice-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.voice-card:hover {
    background: rgba(33, 38, 45, 0.9);
    border-color: #484f58;
    transform: translateY(-2px);
}

.voice-card.selected {
    background: rgba(88, 166, 255, 0.08);
    border-color: #58a6ff;
    box-shadow: 0 0 0 1px #58a6ff;
}

.voice-card .voice-card-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.voice-card .voice-card-avatar i {
    font-size: 16px;
}

.voice-card .voice-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 5px;
}

.voice-card .voice-card-tags {
    gap: 4px;
}

.voice-card .voice-tag {
    padding: 2px 6px;
    font-size: 10px;
}

/* 卡片右侧按钮 */
.voice-card-btns {
    margin-left: auto;
    flex-shrink: 0;
}

.voice-play-btn,
.voice-copy-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #30363d;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.voice-play-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    color: #58a6ff;
}

.voice-copy-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    color: #58a6ff;
}

.voice-copy-btn.copied {
    background: rgba(35, 134, 54, 0.2);
    border-color: #238636;
    color: #3fb950;
}

/* 底部我的声音入口 */
.voice-cards-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #30363d;
}

.voice-my-voices-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed #30363d;
    color: #8b949e;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.voice-my-voices-btn:hover {
    background: rgba(88, 166, 255, 0.05);
    border-color: #58a6ff;
    color: #58a6ff;
}

.voice-my-voices-btn i {
    font-size: 14px;
}

/* ===========================================
   克隆新声音按钮样式
   =========================================== */
.clone-voice-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 18px 12px;
    background-color: transparent;
    border: 2px dashed #30363d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 300px;
}

.clone-voice-item:hover {
    background-color: rgba(88, 166, 255, 0.05);
    border-color: #58a6ff;
    border-style: solid;
}

.clone-voice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.clone-icon {
    font-size: 24px;
    color: #58a6ff;
    transition: all 0.2s;
}

.clone-voice-item:hover .clone-icon {
    transform: scale(1.1);
    color: #79c0ff;
}

.clone-text {
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    transition: all 0.2s;
}

.clone-voice-item:hover .clone-text {
    color: #58a6ff;
}

/* ===========================================
   克隆新声音模态框样式
   =========================================== */
.clone-voice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.clone-voice-modal.active {
    opacity: 1;
    visibility: visible;
}

.clone-voice-modal-content {
    background-color: #252526;
    border-radius: 12px;
    padding: 0;
    width: 480px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
    overflow: hidden;
}

.clone-voice-modal.active .clone-voice-modal-content {
    transform: scale(1);
}

.clone-voice-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
}

.clone-voice-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.clone-voice-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.clone-voice-modal-close:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.clone-voice-form {
    padding: 0 24px;
}

/* 音色名称输入框 */
.clone-name-group {
    margin-bottom: 16px;
}

.clone-name-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.clone-name-label.required::before {
    content: "*";
    color: #f85149;
    margin-right: 4px;
}

.clone-name-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    background-color: #1e1e1e;
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 14px;
    color: #ffffff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.clone-name-input:focus {
    outline: none;
    border-color: #4f46e5;
}

.clone-name-input::placeholder {
    color: #6b7280;
}

/* 语音文件上传区域 */
.clone-audio-group {
    margin-bottom: 20px;
}

.clone-audio-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.clone-audio-label.required::before {
    content: "*";
    color: #f85149;
    margin-right: 4px;
}

.clone-audio-upload-area {
    width: 100%;
    height: 100px;
    background-color: #1e1e1e;
    border: 1px dashed #404040;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.clone-audio-upload-area:hover {
    border-color: #5c7cff;
    background-color: rgba(92, 124, 255, 0.05);
}

.clone-audio-upload-area.drag-over {
    border-color: #5c7cff;
    background-color: rgba(92, 124, 255, 0.1);
}

.clone-audio-upload-area.has-audio {
    padding: 10px;
}

.clone-audio-upload-area .upload-icon {
    font-size: 24px;
    color: #5c7cff;
    margin-bottom: 6px;
}

.clone-audio-upload-area p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 4px 0;
}

.clone-audio-upload-area span {
    font-size: 11px;
    color: #6b7280;
}

.clone-audio-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clone-audio-preview audio {
    width: 100%;
    margin-top: 8px;
}

/* 音频上传错误提示 */
.clone-audio-error {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 6px;
    color: #fca5a5;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clone-audio-error::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* 底部操作区 */
.clone-voice-modal-footer {
    padding: 20px 24px;
    margin-top: 8px;
}

/* 协议勾选框 */
.clone-agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    cursor: pointer;
}

.clone-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 2px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}

.clone-agreement-text {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

.clone-agreement-link {
    color: #5c7cff;
    text-decoration: none;
}

.clone-agreement-link:hover {
    text-decoration: underline;
}

/* 成本提示 */
.clone-cost {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.clone-cost-text {
    font-size: 12px;
    color: #9ca3af;
}

/* 按钮组 */
.clone-buttons {
    display: flex;
    gap: 12px;
}

.clone-buttons .clone-cancel-btn {
    flex: 1;
    padding: 12px 20px;
    background-color: transparent;
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.clone-buttons .clone-cancel-btn:hover {
    background-color: #3a3a3a;
    border-color: #525252;
    color: #ffffff;
}

.clone-buttons .clone-submit-btn {
    flex: 2;
    padding: 12px 20px;
    background-color: #4f46e5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.clone-buttons .clone-submit-btn:hover {
    background-color: #4338ca;
}

.clone-buttons .clone-submit-btn:disabled {
    background-color: #404040;
    color: #6b7280;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 500px) {
    .clone-voice-modal-content {
        width: 95%;
    }
    
    .clone-voice-form,
    .clone-voice-modal-header,
    .clone-voice-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .clone-buttons {
        flex-direction: column;
    }
    
    .clone-buttons .clone-cancel-btn,
    .clone-buttons .clone-submit-btn {
        width: 100%;
    }
}

/* ===========================================
   语音选择 - 空状态样式
   =========================================== */
.voice-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    min-height: 300px;
}

.voice-empty-state .empty-icon {
    font-size: 64px;
    color: #484f58;
    margin-bottom: 20px;
}

.voice-empty-state .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 8px;
}

.voice-empty-state .empty-desc {
    font-size: 14px;
    color: #8b949e;
    max-width: 300px;
}

/* 克隆声音状态标签 */
.voice-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    background-color: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.my-clone-voice.status-pending {
    opacity: 0.7;
    cursor: not-allowed;
}

.my-clone-voice.status-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================================
   我的消费日志样式
   =========================================== */

/* 消费内容区域容器 */
.consumption-content {
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 消费统计区域 */
.consumption-stats-section {
    margin-bottom: 40px;
}

.consumption-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.consumption-stat-card {
    background: linear-gradient(135deg, #161b22, #21262d);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.consumption-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #484f58;
}

.consumption-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f85149, #da3633);
}

.consumption-stat-icon i {
    font-size: 24px;
    color: #fff;
}

.consumption-stat-icon.recharge-icon {
    background: linear-gradient(135deg, #e3b341, #d29922);
}

.consumption-stat-icon.balance-icon {
    background: linear-gradient(135deg, #58a6ff, #388bfd);
}

.consumption-stat-info {
    flex: 1;
    min-width: 0;
}

.consumption-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.2;
    margin-bottom: 4px;
}

.consumption-stat-label {
    font-size: 14px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 消费日志标题 */
.consumption-header {
    margin-bottom: 30px;
}

.consumption-title {
    font-size: 28px;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consumption-title i {
    color: #58a6ff;
}

/* 消费记录列表容器 */
.consumption-list-container {
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-radius: 16px;
    border: 1px solid #30363d;
    overflow: hidden;
}

.consumption-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #8b949e;
    gap: 15px;
}

.consumption-loading i {
    font-size: 32px;
    color: #58a6ff;
}

.consumption-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.consumption-empty .empty-icon {
    font-size: 64px;
    color: #484f58;
    margin-bottom: 20px;
}

.consumption-empty .empty-text {
    font-size: 16px;
    color: #8b949e;
    margin-bottom: 8px;
}

.consumption-empty .empty-desc {
    font-size: 14px;
    color: #484f58;
}

/* 消费记录日期分组 */
.consumption-date-group {
    margin-bottom: 0;
}

.consumption-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: rgba(56, 139, 253, 0.1);
    border-bottom: 1px solid #30363d;
}

.consumption-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.consumption-date i {
    color: #58a6ff;
    font-size: 18px;
}

.consumption-date-text {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
}

.consumption-date-count {
    font-size: 14px;
    color: #8b949e;
}

/* 消费记录列表 */
.consumption-list {
    padding: 0;
}

.consumption-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #21262d;
    transition: all 0.2s ease;
    gap: 16px;
}

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

.consumption-item:hover {
    background-color: rgba(56, 139, 253, 0.05);
}

.consumption-item.consumption-type {
    background-color: rgba(248, 81, 73, 0.08);
}

.consumption-item.recharge-type {
    background-color: rgba(35, 134, 54, 0.08);
}

/* 消费类型图标 */
.consumption-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.consumption-item.consumption-type .consumption-type-icon {
    background: linear-gradient(135deg, #f85149, #da3633);
}

.consumption-item.recharge-type .consumption-type-icon {
    background: linear-gradient(135deg, #238636, #2ea043);
}

.consumption-type-icon i {
    font-size: 18px;
    color: #fff;
}

/* 消费详情 */
.consumption-details {
    flex: 1;
    min-width: 0;
}

.consumption-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.consumption-time {
    font-size: 12px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consumption-time i {
    font-size: 10px;
}

/* 消费金额 */
.consumption-amount {
    text-align: right;
    flex-shrink: 0;
}

.consumption-points {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.consumption-item.consumption-type .consumption-points {
    color: #f85149;
}

.consumption-item.recharge-type .consumption-points {
    color: #3fb950;
}

.consumption-points i {
    font-size: 14px;
}

.consumption-status {
    font-size: 12px;
    color: #8b949e;
    margin-top: 4px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .consumption-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .consumption-content {
        padding: 20px;
    }

    .consumption-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .consumption-stat-card {
        padding: 20px 16px;
    }

    .consumption-stat-icon {
        width: 48px;
        height: 48px;
    }

    .consumption-stat-icon i {
        font-size: 20px;
    }

    .consumption-stat-value {
        font-size: 24px;
    }

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

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

    .consumption-amount {
        text-align: left;
        width: 100%;
    }

    .consumption-points {
        justify-content: flex-start;
    }
}

/* ======================================== */
/*           联系方式按钮 & 模态框           */
/* ======================================== */

/* 导航栏中的联系方式 Tab */
.nav-tab.contact-nav-btn {
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.nav-tab.contact-nav-btn:hover {
    background-color: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    border-color: rgba(88, 166, 255, 0.5);
}

.contact-btn {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.contact-btn i {
    font-size: 14px;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(46, 160, 67, 0.45);
}

/* 联系方式模态遮罩 */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.contact-modal.active {
    display: flex;
}

/* 对话框主体 */
.contact-dialog {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    width: 520px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: contactSlideIn 0.28s cubic-bezier(.4,0,.2,1);
}

@keyframes contactSlideIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 对话框头部 */
.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #30363d;
    background: #0d1117;
}

.contact-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 9px;
}

.contact-header h3 i {
    color: #238636;
    font-size: 17px;
}

.contact-close-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.contact-close-btn:hover {
    background: #21262d;
    color: #e6edf3;
}

/* 对话框内容区 */
.contact-body {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 28px;
}

/* 二维码区域 */
.contact-qrcode {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 2px solid #30363d;
    background: #0d1117;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qrcode-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #484f58;
    width: 100%;
    height: 100%;
}

.qrcode-placeholder i {
    font-size: 60px;
    color: #30363d;
}

.qrcode-placeholder span {
    font-size: 13px;
    color: #8b949e;
}

/* 联系信息区域 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-phone i {
    color: #238636;
    font-size: 22px;
    width: 22px;
    flex-shrink: 0;
}

.contact-phone span {
    font-size: 22px;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: 1.5px;
}

.contact-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-name i {
    color: #58a6ff;
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
}

.contact-name span {
    font-size: 18px;
    font-weight: 600;
    color: #c9d1d9;
}
}
