/* ======================================== */
/*           全局样式 - 科技感设计              */
/* ======================================== */
:root {
    --sidebar-width: 230px;
    --sidebar-collapsed-width: 72px;
    --quick-create-width: 380px;
    --upload-sidebar-width: calc(var(--quick-create-width) - 30px);
    --sidebar-bg: #000000;
    --sidebar-bg-light: #0a0a0a;
    --primary-color: #4ade80;
    --primary-color-hover: #86efac;
    --accent-color: #38bdf8;
    --accent-color-light: #c084fc;
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: #0f0f0f;
    --card-bg-hover: #141414;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --gradient-primary: linear-gradient(135deg, #4ade80 0%, #38bdf8 100%);
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #c084fc 50%, #f472b6 100%);
    --glow-primary: 0 0 20px rgba(74, 222, 128, 0.25);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.45);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.55);
    --interactive-transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #000000;
    color: #ededed;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 背景光晕 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 50% 35% at 20% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 0%, rgba(192, 132, 252, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* 细网格背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: rgba(74, 222, 128, 0.25);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 5px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

::-webkit-scrollbar-thumb:active {
    background: #52525b;
}

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

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

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

/* ======================================== */
/*           左侧边栏样式                     */
/* ======================================== */
/* 统一顶部导航栏 */
.unified-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 2000;
}

.unified-left {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.unified-left .logo .logo-image {
    height: 36px;
    width: auto;
}

.quick-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.unified-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.unified-center #pageTitleText {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.unified-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.unified-right .quick-action-btn {
    padding: 8px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.unified-right .quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

/* 顶部导航栏登录按钮 */
.unified-right .login-btn-header {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.unified-right .login-btn-header:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 顶部导航栏用户积分显示 */
.header-user-points {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    margin-right: 10px;
}

.header-user-points i {
    color: #f0b429;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-switch-btn {
    min-width: 78px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--interactive-transition), color var(--interactive-transition), transform var(--interactive-transition), box-shadow var(--interactive-transition);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.lang-switch-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: none;
}

.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    transition: width var(--interactive-transition);
}

.sidebar-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-nav-head .nav-section-title {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--interactive-transition), background var(--interactive-transition), color var(--interactive-transition);
}

.sidebar-collapse-btn:hover {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary-color);
}

.sidebar-collapse-btn i {
    font-size: 14px;
    line-height: 1;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar .logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.5));
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
    border-bottom: none;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    margin-top: 12px;
    margin-bottom: 8px;
}

.nav-section-header .nav-section-title {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-section-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--interactive-transition), background var(--interactive-transition), color var(--interactive-transition);
}

.nav-section-collapse-btn:hover {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary-color);
}

.nav-section-collapse-btn i {
    font-size: 12px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.nav-section-collapse-btn[aria-expanded='false'] i {
    transform: rotate(180deg);
}

.nav-section.is-collapsed .nav-section-body {
    display: none;
}

.sidebar-nav-head + .nav-item {
    margin-top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    background: rgba(74, 222, 128, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.08) 100%);
    color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-text {
    font-size: 13px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: none;
}

.sidebar-footer .footer-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: none;
    text-align: center;
}

.sidebar-footer .footer-info p {
    margin: 4px 0;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ======================================== */
/*         快捷创建面板（紧挨左边栏）          */
/* ======================================== */
.quick-create-panel {
    width: var(--upload-sidebar-width);
    height: calc(100vh - 60px);
    background: var(--sidebar-bg-light);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: var(--sidebar-width);
    top: 60px;
    z-index: 10;
    display: none;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.quick-create-panel.active {
    display: flex;
}

.quick-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.quick-create-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 创建方式标签 */
.quick-create-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.quick-tab {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-tab:hover {
    background: rgba(74, 222, 128, 0.1);
    color: var(--text-primary);
}

.quick-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.quick-tab i {
    font-size: 12px;
}

/* 快捷创建按钮样式 */
.quick-tab-btn {
    flex: 1;
    padding: 5px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

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

/* 视频 / 图片 / 文字 Tab：图标仅在选中时显示 */
.quick-tab-btn[data-form="video"] > i,
.quick-tab-btn[data-form="image"] > i,
.quick-tab-btn[data-form="text"] > i {
    display: none;
}

.quick-tab-btn[data-form="video"].active > i,
.quick-tab-btn[data-form="image"].active > i,
.quick-tab-btn[data-form="text"].active > i {
    display: inline-block;
}

.quick-tab-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.quick-tab-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

.quick-tab-btn.active i {
    color: #fff;
}

/* 表单容器 */
.quick-form {
    display: none;
}

.quick-form.active {
    display: block;
}

.close-quick-panel {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-quick-panel:hover {
    background: rgba(248, 81, 73, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.quick-create-content {
    padding: 20px;
    flex: 1;
    box-sizing: border-box;
}

.comic-drama-upload-section.quick-create-content,
.ai-novel-upload-section.quick-create-content {
    width: var(--upload-sidebar-width, calc(var(--quick-create-width) - 30px));
}

.quick-create-content .form-group {
    margin-bottom: 18px;
    position: relative;
}

.quick-create-content .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* 字符计数器 */
.quick-create-content .char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.quick-create-content .form-textarea {
    resize: vertical;
    min-height: 80px;
    padding-bottom: 28px;
}

.quick-create-content .form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.quick-create-content .form-input,
.quick-create-content .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-create-content .form-input:focus,
.quick-create-content .form-textarea:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.quick-create-content .form-input::placeholder,
.quick-create-content .form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* 上传区域 */
.quick-create-content .upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.quick-create-content .upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(74, 222, 128, 0.05);
}

.quick-create-content .upload-icon {
    font-size: 32px;
    color: #484f58;
    margin-bottom: 10px;
}

.quick-create-content .upload-area p {
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 6px;
}

.quick-create-content .upload-area span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.quick-create-content .size-hint {
    color: var(--warning-color) !important;
}

/* 视频预览 */
.quick-create-content .video-preview {
    position: relative;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.quick-create-content .video-preview video {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.quick-create-content .remove-video-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-create-content .remove-video-btn:hover {
    background: var(--danger-color);
}

/* 复选框 */
.quick-create-content .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.quick-create-content .checkbox-label input {
    display: none;
}

.quick-create-content .checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.quick-create-content .checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* 消耗提示 */
.quick-create-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 数字人名称右侧的积分提示 */
.cost-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.cost-hint i {
    color: #f59e0b;
    font-size: 12px;
}
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: 10px;
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 18px;
    margin-left: 20px;
    margin-right: 20px;
    box-sizing: border-box;
    width: calc(100% - 40px);
}

/* 按钮组 */
.quick-create-buttons {
    display: flex;
    justify-content: center;
    padding: 20px 20px 20px 20px;
    width: 100%;
    box-sizing: border-box;
}

.quick-create-buttons .create-btn-quick {
    width: 100%;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.quick-create-buttons .create-btn-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

/* 快捷创建面板隐藏状态 */
.quick-create-panel.hidden {
    display: none;
}

/* 隐藏时调整主内容区域 */
.main-wrapper.expanded {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* 快捷面板显示时（非 expanded） */
.main-wrapper:not(.expanded) {
    margin-left: calc(var(--sidebar-width) + var(--quick-create-width));
    width: calc(100% - var(--sidebar-width) - var(--quick-create-width));
}

/* 登录按钮 */
.sidebar .login-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.sidebar .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

/* 用户信息 */
.sidebar .user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar .user-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.sidebar .user-points i {
    font-size: 16px;
}

.sidebar .logout-btn {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar .logout-btn:hover {
    background: rgba(248, 81, 73, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ======================================== */
/*           主内容区域包装器                  */
/* ======================================== */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    overflow-x: visible;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* 当创建面板显示时，给主内容区域添加额外边距 */
body.quick-panel-open .main-wrapper {
    margin-left: calc(var(--sidebar-width) + var(--upload-sidebar-width) + 10px);
    width: calc(100% - var(--sidebar-width) - var(--upload-sidebar-width) - 10px);
}

/* 顶部快捷操作栏 */
.topbar {
    height: 70px;
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-title i {
    color: var(--primary-color);
    font-size: 20px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
    50% { text-shadow: 0 0 20px rgba(74, 222, 128, 0.8); }
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.2) 0%, rgba(63, 185, 80, 0.1) 100%);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 8px;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.3) 0%, rgba(63, 185, 80, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(63, 185, 80, 0.3);
}

/* 用户头像按钮 */
.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
    background: #161b22;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 用户下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    min-width: 340px;
    max-width: min(420px, calc(100vw - 24px));
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.dropdown-user-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.2) 100%);
}

.signin-btn {
    padding: 6px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

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

.signin-btn.disabled {
    background: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.signin-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-details {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
}

.dropdown-user-id {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: inherit;
}

/* ======================================== */
/*           主要内容区域                     */
/* ======================================== */
.main-content {
    flex: 1;
    padding: 30px;
    padding-top: 36px;
    overflow-y: auto;
    overflow-x: visible;
}

/* ======================================== */
/*           隐藏旧的顶部导航                 */
/* ======================================== */
.navbar {
    display: none !important;
}

/* 顶部的导航栏 */
.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: #4ade80;
    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;
}

/* ======================================== */
/*         数字人内容区域左右布局            */
/* ======================================== */
/* 数字人内容主容器 */
.digital-human-content {
    margin-top: -40px;
}

/* 右侧内容区域：加宽 80px、左移 40px（相对原 -10px 为 -50px） */
.content-right-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    margin-top: 45px;
    margin-left: -50px;
    width: calc(100% + 80px);
}

/* 右侧区块通用样式 */
.right-section {
    width: 100%;
    background: linear-gradient(165deg, rgba(15, 15, 15, 0.92), rgba(10, 10, 10, 0.88));
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.right-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.right-section-title i {
    color: var(--primary-color);
}

/* 创建数字人页：我的作品 / 数字人 — 标题与分页同一行（分页在右上） */
.my-works-section-header,
.my-avatars-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.my-works-section-header .right-section-title,
.my-avatars-section-header .right-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
    min-width: 0;
}

.my-works-section-header .works-pagination-mini,
.my-avatars-section-header .works-pagination-mini {
    margin-top: 0;
    padding: 0;
    flex-shrink: 0;
    justify-content: flex-end;
}

/* 我的数字人 / 我的作品：右侧区块整体左移 10px */
.right-section.my-avatars-section,
.right-section.my-works-section {
    margin-left: -10px;
}

/* 我的数字人区块额外上移 */
.right-section.my-avatars-section {
    margin-top: -10px;
}

.my-avatars-section .video-slider-container {
    margin: 0;
    padding: 24px 20px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.my-works-section .works-container-mini {
    margin: 0;
    padding: 24px 20px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

/* 数字人列表响应式调整 */
@media (min-width: 1800px) {
    .my-avatars-section .video-slide {
        width: calc((100% - 100px) / 6);
    }
}

@media (min-width: 1400px) and (max-width: 1799px) {
    .my-avatars-section .video-slide {
        width: calc((100% - 80px) / 5);
    }
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .my-avatars-section .video-slide {
        width: calc((100% - 60px) / 4);
    }
}

@media (min-width: 800px) and (max-width: 1099px) {
    .my-avatars-section .video-slide {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 799px) {
    .my-avatars-section .video-slide {
        width: calc((100% - 20px) / 2);
    }
}

/* 我的作品区块 - 迷你统计 */
.mini-works-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mini-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.mini-stat i {
    font-size: 18px;
    color: var(--primary-color);
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 迷你作品容器 */
.works-container-mini {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 10px 5px 10px 0;
    margin: -10px 0;
}

/* 分页控件样式 */
.works-pagination-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination-btn-mini {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pagination-btn-mini:hover:not(:disabled) {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.35);
}

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

.pagination-info-mini {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.works-loading-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-secondary);
    gap: 10px;
}

.works-loading-mini i {
    font-size: 24px;
    color: var(--primary-color);
}

/* 精简版作品卡片 */
.work-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    height: 160px;
}

.work-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(74, 222, 128, 0.35);
}

.work-thumbnail-mini {
    position: relative;
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

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

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

.no-thumbnail-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 48px;
}

.work-play-overlay-mini {
    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);
}

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

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

.work-play-overlay-mini i {
    font-size: 24px;
    color: #fff;
    background-color: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
}

.work-info-mini {
    padding: 8px 12px;
    display: flex;
    justify-content: center;
}

.work-time-mini {
    font-size: 12px;
    color: var(--text-secondary);
}

.work-title-mini {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 精简版处理中覆盖层 */
.work-processing-overlay-mini {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-processing-content-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 12px;
}

.work-processing-content-mini i {
    font-size: 24px;
}

/* 精简版失败覆盖层 */
.work-failed-overlay-mini {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-failed-content-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #f85149;
    font-size: 12px;
}

.work-failed-content-mini i {
    font-size: 24px;
}

/* 精简版音频模式 */
.audio-visual-mini {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.audio-icon-center-mini {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.audio-wave-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 20px;
}

.audio-wave-mini span {
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

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

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

/* 精简版空状态 */
.works-empty-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    width: 100%;
}

.works-empty-mini--auth {
    padding: 48px 20px;
    min-height: 180px;
}

.empty-icon-mini {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.works-empty-mini--auth .empty-icon-mini {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 1;
    margin-bottom: 16px;
}

.empty-text-mini {
    font-size: 12px;
    text-align: center;
}

.works-empty-mini--auth .empty-text-mini {
    font-size: 15px;
    color: var(--text-secondary);
}

.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: #4ade80;
}

/* 视频库滑动容器 */
.video-slider-container {
    position: relative;
    overflow: visible;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 60px 20px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.video-slider-wrapper {
    overflow: hidden;
    padding: 10px 0;
    margin: -10px 0;
}

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

/* 空状态提示 */
.empty-state-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    min-width: 280px;
}

.empty-state-message i {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-message p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-message span {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 200px;
}

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

/* 视频卡片样式 */
.video-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    height: 180px;
    position: relative;
    cursor: pointer;
}

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

/* 默认数字人卡片样式 */
.default-avatar-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.default-avatar-card .video-card-thumbnail {
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.default-avatar-card .video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
}

.default-avatar-placeholder i {
    font-size: 60px;
    color: #4ade80;
    opacity: 0.8;
}

.default-avatar-card .video-card-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 70%, transparent 100%);
    z-index: 10;
}

.default-avatar-card .video-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.default-avatar-card .video-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video-preview {
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

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

/* 视频处理中状态 */
.video-preview.processing-preview {
    background: rgba(255, 255, 255, 0.02);
}

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

.processing-icon {
    font-size: 36px;
    color: #4ade80;
}

.processing-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* 视频失败状态 */
.video-preview.failed-preview {
    background: rgba(248, 113, 113, 0.06);
}

.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: #4ade80;
}

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

.video-time {
    position: absolute;
    top: 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: var(--gradient-primary);
    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;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.create-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

/* 空状态视频卡片 */
.video-card.empty-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    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: linear-gradient(170deg, rgba(15, 15, 15, 0.98), rgba(5, 5, 5, 0.96));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.create-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    flex-shrink: 0;
}

.create-video-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.create-video-header .modal-close-btn,
.modal-close-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}

.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: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.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: #4ade80;
}

.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: var(--primary-color);
    background: rgba(74, 222, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.audio-upload-area:hover .upload-icon {
    color: var(--primary-color);
}

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

.audio-upload-area p {
    font-size: 12px;
    color: #8b949e;
    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: #4ade80;
    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: #4ade80;
}

.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: #4ade80;
    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: #4ade80 !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: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.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: 10px 20px;
    background: var(--text-primary);
    border: none;
    border-radius: 999px;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
}

.generate-btn-panel:hover {
    transform: none;
    background: #ffffff;
    box-shadow: none;
}

.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: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

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

.toolbar-btn i {
    font-size: 14px;
    color: #4ade80;
}

.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: var(--sidebar-bg-light);
    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: var(--sidebar-bg-light);
    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: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
    justify-content: space-between;
}

.voice-select-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 222, 128, 0.35);
}

.voice-select-btn.active {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

/* 下拉容器 */
.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: var(--card-bg-hover);
}

.dropdown-item.selected {
    background-color: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

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

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

.dropdown-item .check-icon {
    color: #4ade80;
    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: #4ade80;
    width: 18px;
    text-align: center;
}

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

.adjust-value {
    margin-left: auto;
    font-size: 12px;
    color: #4ade80;
    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: #4ade80;
    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: var(--border-color);
}

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

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

.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: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
}

.empty-text {
    color: var(--text-secondary);
    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: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 20;
}

.slider-btn:hover {
    background: rgba(74, 222, 128, 0.08);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

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

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

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

.slider-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-50%) scale(1);
}

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

/* 登录模态框（须高于 .unified-header 的 z-index: 2000） */
.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: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.login-dialog {
    position: relative;
    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;
    padding-left: 36px;
    padding-right: 36px;
    box-sizing: border-box;
    color: #e6edf3;
    text-align: center;
}

/* 登录 / 注册弹窗右上角关闭 */
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    color: #8b949e;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-modal-close:hover {
    color: #e6edf3;
    background-color: #21262d;
}

.auth-modal-close:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

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

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

/* 标签行，用于并排显示标签和积分提示 */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.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: #4ade80;
    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: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.login-btn-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

.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: #4ade80;
    text-decoration: none;
}

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

/* 社交登录分隔符 */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 10px 0 8px;
    color: #8b949e;
    font-size: 14px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #30363d;
}

.social-login-divider span {
    padding: 0 15px;
}

/* 第三方登录：单行图标按钮 */
.social-login-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin-top: 2px;
}

.social-login-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #30363d;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.social-login-icon-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-login-icon-btn:active:not(:disabled) {
    transform: translateY(0);
}

.social-login-icon-btn:disabled {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.social-login-row--disabled {
    opacity: 0.92;
}

.social-login-icon-btn--google {
    background-color: #ffffff;
    color: #3c4043;
}

.social-login-icon-btn--google:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #484f58;
}

.social-login-icon-btn--wechat {
    background-color: #07c160;
    color: #ffffff;
    border-color: #059c4d;
    font-size: 24px;
}

.social-login-icon-btn--wechat:hover:not(:disabled) {
    background-color: #06ad56;
}

.social-login-icon-btn--alipay {
    background-color: #1677ff;
    color: #ffffff;
    border-color: #0958d9;
    font-size: 24px;
}

.social-login-icon-btn--alipay:hover:not(:disabled) {
    background-color: #0958d9;
}

.google-icon {
    flex-shrink: 0;
    display: block;
}

/* 注册模态框（须高于 .unified-header 的 z-index: 2000） */
.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: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.register-dialog {
    position: relative;
    background-color: #161b22;
    border-radius: 10px;
    padding: 18px 20px 20px;
    max-width: 400px;
    width: 90%;
    max-height: min(88vh, calc(100dvh - 32px));
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(12px);
    transition: transform 0.3s ease;
    border: 1px solid #30363d;
    box-sizing: border-box;
}

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

.register-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    color: #e6edf3;
    text-align: center;
}

.register-dialog .auth-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 15px;
}

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

.register-form .form-label {
    font-size: 13px;
}

.register-form .form-input {
    padding: 9px 12px;
    font-size: 14px;
}

/* 注册：用户名+邮箱、密码+确认 两列一行 */
.register-form .form-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.register-form .form-row .form-group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 520px) {
    .register-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* 注册：头像横向滚动区 */
.register-form .avatar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.register-form .avatar-selection {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.register-form .avatar-selection::-webkit-scrollbar {
    height: 6px;
}

.register-form .avatar-selection::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.avatar-nav-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #30363d;
    border-radius: 8px;
    background-color: #21262d;
    color: #e6edf3;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.avatar-nav-btn:active {
    background-color: #161b22;
}

.avatar-option {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #30363d;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.avatar-option img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.avatar-option.selected {
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.25);
}

.avatar-option .check-mark {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4ade80;
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
}

.avatar-option.selected .check-mark {
    display: flex;
}

.avatar-loading,
.avatar-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    width: 100%;
    padding: 12px;
    color: #8b949e;
    font-size: 14px;
    border: 1px dashed #30363d;
    border-radius: 8px;
    background-color: #0d1117;
}

.avatar-error {
    color: #f85149;
    border-color: #f8514933;
}

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

.register-btn-modal {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

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

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

.register-form .login-link {
    margin-top: 8px;
    font-size: 13px;
}

.login-link a {
    color: #4ade80;
    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;
    }
}

/* ========== 语音合成面板样式 - 全局适用 ========== */
#voiceSynthesisPlaceholder {
    display: none;
}

.main-wrapper.voice-synthesis-active #voiceSynthesisPlaceholder {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.main-wrapper.voice-synthesis-active {
    height: calc(100vh - 72px);
    min-height: calc(100vh - 72px);
    overflow: hidden;
}

.voice-synthesis-container {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 0;
    padding: 12px 10px 24px;
    display: flex;
    flex-direction: column;
}

.voice-synthesis-panel-outer {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 28px;
}

/* 面板主卡片左上角外侧：积分说明 */
.voice-synthesis-cost-hint {
    position: absolute;
    left: 4px;
    top: 0;
    z-index: 2;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #d4a853;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.voice-synthesis-cost-hint .voice-synthesis-cost-icon {
    color: #f59e0b;
    font-size: 14px;
}

.voice-synthesis-panel {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-radius: 16px;
    border: 1px solid #30363d;
    overflow: hidden;
    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: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 400px);
    grid-template-rows: minmax(0, 1fr) auto;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 16px;
    gap: 16px;
    overflow: hidden;
}

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

.voice-text-input {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 16px;
    padding: 20px;
    resize: none;
    line-height: 1.8;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

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

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

.voice-text-input::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.voice-text-input::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.voice-text-input:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.voice-text-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 14px;
}

.voice-text-footer {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    border-top: none;
    flex-shrink: 0;
}

.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: #4ade80;
    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: 0;
}

.audio-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(74, 222, 128, 0.3);
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(74, 222, 128, 0.5);
}

.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, #4ade80, #4ade80);
    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 1 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    margin: 0 12px;
}

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

.voice-generate-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.voice-char-limit-info {
    color: #8b949e;
    font-size: 13px;
    font-weight: 500;
}

.voice-char-limit-info span {
    color: #4ade80;
    font-weight: 600;
}

.voice-generate-btn {
    background: var(--gradient-primary);
    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;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.voice-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

/* 右侧参数调节区 */
.voice-settings-section {
    grid-column: 2;
    grid-row: 1 / -1;
    flex: 0 0 clamp(280px, 32vw, 400px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 右侧滚动条样式 */
.voice-settings-section::-webkit-scrollbar {
    width: 6px;
}

.voice-settings-section::-webkit-scrollbar-track {
    background: transparent;
}

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

.voice-settings-section::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.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: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.voice-value-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.voice-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s 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='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.voice-select:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.voice-select option {
    background-color: #0f0f0f;
    color: var(--text-primary);
    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: #4ade80;
}

.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: #4ade80;
}

.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: #4ade80;
}

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

.emotion-option.selected span {
    color: #4ade80;
    font-weight: 600;
}

.voice-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
}

.voice-slider-icon {
    color: var(--text-secondary);
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.voice-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    cursor: pointer;
}

.voice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.voice-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    border: none;
}

.voice-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
}

/* 移动端响应式调整 */
@media (max-width: 1024px) {
    .voice-synthesis-container {
        padding: 12px 16px 20px;
    }

    .voice-panel-content {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(320px, 1fr) auto auto;
        overflow-y: auto;
    }

    .voice-text-input {
        grid-column: 1;
        grid-row: 1;
        min-height: 320px;
    }

    .voice-text-footer {
        grid-column: 1;
        grid-row: 2;
    }

    .voice-settings-section {
        grid-column: 1;
        grid-row: 3;
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .voice-synthesis-panel {
        flex-direction: column;
    }

    .voice-settings-section {
        padding: 20px;
        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: #4ade80;
    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: #4ade80;
    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: 12px;
    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: 12px;
    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: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.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: var(--gradient-primary);
    border-color: transparent;
}

.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: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.create-btn-panel:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

/* 创建按钮加载状态 */
.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: #4ade80;
}

.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: #4ade80;
    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: #4ade80;
}

.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: #4ade80;
    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: #4ade80;
    background-color: rgba(74, 222, 128, 0.15);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.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;
}

.text-panel-buttons .generate-btn-panel {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 积分充值模态对话框 */
.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: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

/* 选中时的对勾图标 */
.recharge-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    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: var(--gradient-primary);
    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: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}
}

.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;
}

/* ========== 我的作品样式 ========== */
#myWorksContent {
    position: relative;
    z-index: 100;
}

.my-works-content {
    width: 100%;
    min-height: calc(100vh - 72px);
    overflow: visible;
    background: transparent;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.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 {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: calc(100vh - 120px);
    position: fixed;
    left: calc(var(--sidebar-width) + 10px);
    top: 90px;
    right: 20px;
    bottom: 30px;
    overflow: hidden;
    width: auto;
    margin-top: 0;
    box-sizing: border-box;
}

.works-container-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.works-container-scroll::-webkit-scrollbar {
    width: 8px;
}

.works-container-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 6px;
}

.works-container-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.works-container-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.42);
}

html.sidebar-collapsed .works-container {
    left: calc(var(--sidebar-collapsed-width) + 10px);
}

.works-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: min(480px, 100%);
    padding: 60px;
    color: #8b949e;
    gap: 15px;
}

.works-loading i {
    font-size: 32px;
    color: #4ade80;
}

.works-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: min(480px, 100%);
    padding: 80px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.works-empty .empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.works-empty .empty-text {
    font-size: 16px;
    color: var(--text-secondary);
}

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

.works-date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.08) 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.works-date-header i {
    color: #4ade80;
    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(250px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.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: rgba(255, 255, 255, 0.02);
}

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

.audio-icon-center {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-icon-center i {
    font-size: 28px;
    color: var(--primary-color);
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.35);
}

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

.audio-wave span {
    width: 4px;
    background: var(--primary-color);
    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;
    }
}

/* 小说卡片样式 */
.novel-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

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

.novel-icon-center {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.novel-icon-center i {
    font-size: 28px;
    color: var(--primary-color);
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.35);
}

/* 精简版小说模式 */
.novel-visual-mini {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.novel-icon-center-mini {
    font-size: 36px;
    color: var(--primary-color);
}

/* 音频覆盖层 - 默认隐藏，悬停时显示 */
.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;
    z-index: 4;
}

.video-card:hover .work-overlay,
.work-card:hover .work-overlay,
.work-card-mini:hover .work-overlay,
.motion-work-card:hover .work-overlay {
    opacity: 1;
}

.work-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    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: rgba(0, 0, 0, 0.9);
    border-color: #4ade80;
    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: #4ade80;
    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-action-btn[data-action="share"].work-action-btn--shared {
    border-color: rgba(74, 222, 128, 0.55);
    color: #8cc2ff;
    background: rgba(56, 139, 253, 0.12);
}

.work-action-btn[data-action="share"].work-action-btn--shared:hover {
    background: rgba(56, 139, 253, 0.2);
    border-color: #4ade80;
    color: #d7ebff;
}

.work-action-btn[data-action="mint"] {
    border-color: #30363d;
    color: #8b949e;
    background: transparent;
}

.work-action-btn[data-action="mint"]:hover {
    background-color: #21262d;
    border-color: #484f58;
    color: #e6edf3;
}

/* 统一悬停提示（由 utils.js 驱动，替代原生 title） */
.ui-tooltip {
    position: fixed;
    z-index: 20000;
    max-width: min(280px, calc(100vw - 16px));
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(12, 16, 24, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.95);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, visibility 0.16s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.ui-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.ui-tooltip.ui-tooltip--wrap {
    white-space: normal;
    word-break: break-all;
    text-align: left;
}

.work-action-icon-nft {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.work-action-icon-nft-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.work-mint-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 14000;
    padding: 20px;
}

.work-mint-modal.show {
    display: flex;
}

.work-mint-dialog {
    width: min(920px, 95vw);
    background: linear-gradient(170deg, rgba(15, 15, 15, 0.98), rgba(5, 5, 5, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px 24px 24px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.mint-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    min-height: 36px;
}

.mint-dialog-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.mint-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(300px, 1fr);
    gap: 16px;
    align-items: start;
}

.mint-left-panel,
.mint-right-panel {
    min-width: 0;
}

.mint-left-panel {
    max-width: 340px;
}

/* 与右侧 mint-work-type（13px + 下边距 14px）同高，使预览与 mint-hash-section 上缘对齐 */
@media (min-width: 861px) {
    .mint-left-panel {
        padding-top: calc(13px * 1.45 + 14px);
    }
}

.mint-right-panel {
    display: flex;
    flex-direction: column;
}

.mint-close-btn {
    position: static;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
}

.mint-close-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.mint-media-preview {
    width: 100%;
    height: min(38vh, 300px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0 0;
}

.mint-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mint-preview-video {
    width: 88%;
    height: 88%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.mint-audio-cover,
.mint-novel-cover,
.mint-preview-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    background:
        radial-gradient(circle at 30% 25%, rgba(74, 222, 128, 0.12) 0%, transparent 45%),
        linear-gradient(165deg, rgba(15, 15, 15, 0.95), rgba(8, 8, 8, 0.98));
}

.mint-audio-cover i,
.mint-novel-cover i,
.mint-preview-empty i {
    font-size: 36px;
    color: var(--primary-color);
}

.mint-audio-cover span,
.mint-novel-cover span,
.mint-preview-empty span {
    font-size: 13px;
    letter-spacing: 0.4px;
    color: var(--text-muted, #71717a);
}

.mint-work-type {
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 13px;
}

.mint-hash-section {
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.02);
}

.mint-hash-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mint-hash-list {
    display: grid;
    gap: 12px;
}

.mint-hash-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    cursor: pointer;
    border-radius: 10px;
    margin: 0 -8px;
    padding: 10px 12px;
    transition: background 0.2s ease;
}

.mint-hash-item:hover {
    background: rgba(74, 222, 128, 0.06);
}

.mint-hash-item:focus-visible {
    outline: 2px solid rgba(74, 222, 128, 0.55);
    outline-offset: 1px;
}

.mint-hash-item--selected {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.22);
}

.mint-hash-chain {
    width: 68px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.mint-hash-value,
.mint-hash-empty {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    border-radius: 8px;
    padding: 6px 10px;
}

.mint-hash-logo-wrap {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.mint-hash-item .mint-hash-logo-wrap .mint-hash-chain-logo {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    flex: none;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
    overflow: hidden;
}

.mint-hash-check {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #000000;
    background: var(--primary-color);
    font-size: 9px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
}

.mint-hash-item--selected .mint-hash-check {
    display: flex;
}

.mint-hash-value {
    color: var(--primary-color);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.28);
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mint-hash-empty {
    color: var(--text-muted, #71717a);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mint-chain-logo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.mint-chain-logo-eth {
    background: linear-gradient(145deg, #627eea, #3c4f9a);
    font-size: 16px;
}

.mint-chain-logo-base {
    background: linear-gradient(145deg, #0052ff, #0039b3);
}

.mint-chain-logo-op {
    background: linear-gradient(145deg, #ff0420, #b80018);
    font-size: 12px;
}

.mint-chain-logo-po {
    background: linear-gradient(145deg, #4ade80, #16a34a);
    font-size: 12px;
}

.mint-start-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    background: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
}

.mint-start-btn:hover {
    transform: none;
    background: #ffffff;
    box-shadow: none;
}

@media (max-width: 860px) {
    .mint-main-layout {
        grid-template-columns: 1fr;
    }

    .mint-left-panel {
        max-width: none;
    }

    .mint-media-preview {
        height: min(44vh, 340px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* 作品处理中状态样式 */
.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: #4ade80;
}

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

.processing-placeholder {
    background: rgba(255, 255, 255, 0.02) !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: rgba(255, 255, 255, 0.02);
}

/* 播放时显示暂停图标 */
.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: var(--gradient-primary);
}

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

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

/* 积分统计卡片样式 */
.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) {
    .works-container {
        left: 16px;
        right: 16px;
        top: 82px;
        bottom: 16px;
    }

    .works-container-scroll {
        padding: 16px;
    }

    .my-works-content {
        padding: 0;
    }

    .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: #4ade80;
}

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

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

/* 分页控件 */
.voice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.voice-select-panel .pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.voice-select-panel .pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 222, 128, 0.35);
    color: var(--text-primary);
}

.voice-select-panel .pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.voice-select-panel .pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.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;
}

/* 公用声音：后端返回的语言/国家图标 URL（VoiceNational） */
.voice-national-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

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

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

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

.voice-item.selected {
    background-color: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
}

.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: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.voice-country {
    font-size: 11px;
    color: #8b949e;
    margin-top: 4px;
    margin-bottom: 4px;
    display: block;
}

.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: #4ade80;
    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: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.voice-card-selected:hover {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

/* 头像图标 */
.voice-card-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

/* 语音合成：选中音色用国家/地区图标（VoiceNational）替代默认小人 */
.voice-card-selected .voice-card-avatar:has(.tts-voice-national-img) {
    background: linear-gradient(160deg, #30363d 0%, #21262d 55%, #1c2128 100%);
    border: 1px solid rgba(74, 222, 128, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.35);
    padding: 6px;
    box-sizing: border-box;
}

.voice-card-selected .voice-card-avatar .tts-voice-national-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* 主要内容区 */
.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(74, 222, 128, 0.1);
    color: #4ade80;
    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(74, 222, 128, 0.1);
    border-color: #4ade80;
    color: #4ade80;
}

.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(74, 222, 128, 0.1);
    border-color: #4ade80;
    color: #4ade80;
}

.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(74, 222, 128, 0.08);
    border-color: #4ade80;
    box-shadow: 0 0 0 1px #4ade80;
}

.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(74, 222, 128, 0.1);
    border-color: #4ade80;
    color: #4ade80;
}

.voice-copy-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
    color: #4ade80;
}

.voice-copy-btn.copied {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    color: #4ade80;
}

/* 底部我的声音入口 */
.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(74, 222, 128, 0.05);
    border-color: #4ade80;
    color: #4ade80;
}

.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(74, 222, 128, 0.05);
    border-color: #4ade80;
    border-style: solid;
}

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

.clone-icon {
    font-size: 24px;
    color: #4ade80;
    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: #4ade80;
}

/* ===========================================
   克隆新声音模态框样式
   =========================================== */
.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: #484f58;
    margin-bottom: 6px;
}

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

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

.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;
    padding: 0;
    background: transparent;
    border: none;
}

.clone-agreement:hover {
    background: transparent;
}

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

.clone-agreement .checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.clone-agreement input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.clone-agreement 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;
}

.clone-agreement-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.clone-agreement-link {
    color: var(--primary-color);
    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;
}

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

#consumptionContent {
    position: fixed;
    z-index: 100;
    left: calc(var(--sidebar-width) + 10px);
    top: 90px;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    margin: 0;
    width: auto;
    overflow: hidden;
    background: transparent;
    box-sizing: border-box;
}

html.sidebar-collapsed #consumptionContent {
    left: calc(var(--sidebar-collapsed-width) + 10px);
}

/* 消费头部区域 */
.consumption-header {
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
}

.consumption-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, 1fr);
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.18) 0%, transparent 32%),
        linear-gradient(135deg, rgba(15, 25, 45, 0.94) 0%, rgba(8, 14, 28, 0.98) 100%);
    box-shadow: 0 24px 48px rgba(2, 7, 18, 0.3);
}

.consumption-hero-copy,
.consumption-stats-section {
    position: relative;
    z-index: 1;
}

.consumption-hero-copy {
    display: flex;
    flex-direction: column;
}

.consumption-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.consumption-title {
    font-size: 32px;
    color: #f5f7fb;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.consumption-title i {
    color: var(--primary-color);
}

.consumption-subtitle {
    max-width: 680px;
    margin-top: 16px;
    color: rgba(226, 232, 240, 0.74);
    font-size: 15px;
    line-height: 1.8;
}

.consumption-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}

.consumption-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e8eefc;
    font-size: 13px;
    font-weight: 600;
}

.consumption-highlight i {
    color: var(--primary-color);
}

.consumption-stats-section {
    display: flex;
    align-items: stretch;
}

.consumption-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.consumption-stat-card {
    min-height: 154px;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.82) 0%, rgba(8, 14, 27, 0.96) 100%);
    border-radius: 20px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform var(--interactive-transition), box-shadow var(--interactive-transition), border-color var(--interactive-transition);
}

.consumption-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(10, 18, 36, 0.24);
    border-color: rgba(74, 222, 128, 0.18);
}

.consumption-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: none;
}

.consumption-stat-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.consumption-stat-icon.recharge-icon {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

.consumption-stat-icon.recharge-icon i {
    color: #fbbf24;
}

.consumption-stat-icon.balance-icon {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.4);
}

.consumption-stat-icon.balance-icon i {
    color: var(--primary-color);
}

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

.consumption-stat-value {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.consumption-stat-label {
    font-size: 13px;
    color: rgba(149, 163, 184, 0.82);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* 消费记录列表容器 */
.consumption-list-container {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.94) 0%, rgba(8, 14, 27, 0.98) 100%);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 24px 48px rgba(2, 7, 18, 0.24);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.consumption-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.consumption-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.consumption-list-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 6px;
}

.consumption-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.consumption-list-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.42);
}

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

.consumption-loading i {
    font-size: 32px;
    color: #4ade80;
}

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

.consumption-empty .empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.consumption-empty .empty-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.consumption-empty .empty-desc {
    font-size: 14px;
    color: var(--text-muted);
}

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

.consumption-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12) 0%, rgba(74, 222, 128, 0.08) 100%);
    border: 1px solid rgba(74, 222, 128, 0.14);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.consumption-date i {
    color: #4ade80;
    font-size: 18px;
}

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

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

.consumption-date-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.consumption-date-total {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.consumption-date-total i {
    font-size: 12px;
    color: #f0b429;
}

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

.consumption-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    transition: background var(--interactive-transition), transform var(--interactive-transition), border-color var(--interactive-transition);
    gap: 16px;
}

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

.consumption-item:hover {
    background-color: rgba(74, 222, 128, 0.05);
    transform: translateY(-1px);
}

.consumption-item.consumption-type {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.05) 0%, rgba(74, 222, 128, 0.03) 100%);
}

.consumption-item.recharge-type {
    background: linear-gradient(90deg, rgba(240, 180, 41, 0.06) 0%, rgba(210, 153, 34, 0.03) 100%);
}

/* 消费类型图标 */
.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: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: none;
}

.consumption-item.consumption-type .consumption-type-icon i {
    color: var(--primary-color);
}

.consumption-item.recharge-type .consumption-type-icon {
    background: linear-gradient(135deg, #e3b341, #d29922);
    box-shadow: 0 10px 20px rgba(210, 153, 34, 0.18);
}

.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: #dce6ff;
}

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

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

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

.consumption-status.processing {
    color: #fbbf24;
}

.consumption-status.completed {
    color: #9fd2ae;
}

.consumption-status.failed {
    color: #f58b84;
}

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

    .consumption-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #consumptionContent {
        left: 16px;
        right: 16px;
        top: 82px;
        bottom: 16px;
        gap: 16px;
    }

    .consumption-hero {
        padding: 22px;
    }

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

    .consumption-highlights {
        padding-top: 18px;
    }

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

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

    .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;
    }
}

/* ===========================================
   首页内容样式
   =========================================== */

/* 首页内容容器 */
.home-content {
    padding: 20px 20px 20px 20px;
    max-width: 100%;
    margin: 0 auto;
    margin-left: 0;
    animation: fadeIn 0.4s ease;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    box-sizing: border-box;
}

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

/* ===========================================
   顶部横幅区域（横向滚动）
   =========================================== */
.home-banner-section {
    margin-top: 30px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 34px 24px 18px;
    background-color: transparent;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 16px;
    box-sizing: border-box;
}

.banner-scroll-wrapper {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: space-between;
}

.banner-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1 1 0;
    min-width: 0;
    height: 110px;
    position: relative;
    box-sizing: border-box;
}

.banner-item .banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
    padding-right: 72px;
    box-sizing: border-box;
}

.banner-item .banner-icon {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.banner-item:hover {
    background: linear-gradient(165deg, rgba(15, 15, 15, 0.96), rgba(10, 10, 10, 0.92));
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-icon i {
    font-size: 24px;
    color: #ffffff;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.banner-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   图片展示区域
   =========================================== */
.home-images-showcase {
    grid-column: 1 / -1;
    margin-bottom: 28px;
    margin-right: 0;
    margin-left: 0;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
}

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

.showcase-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3);
    z-index: 1;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================
   图片展示轮播区域（新样式）
   =========================================== */
.showcase-slider-container {
    position: relative;
    overflow: visible;
    border-radius: 12px;
    background-color: transparent;
    padding: 0 0 15px;
}

/* 热门应用标题区域 */
.showcase-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 16px 0;
    background-color: transparent;
    z-index: 5;
}

.showcase-nav-btns {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.showcase-nav-btns .slider-btn {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.showcase-nav-btns .slider-btn:hover,
.showcase-nav-btns .slider-btn:disabled:hover {
    transform: none;
}

.showcase-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-section-title i {
    color: var(--primary-color);
    font-size: 18px;
}

.showcase-slider-wrapper {
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 10px 0;
    margin: -10px 0;
}

.showcase-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    transition: transform 0.5s ease;
}

/* 图片卡片样式 */
.showcase-card {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

/* 卡片主体 - 3:4竖屏比例 */
.showcase-card-inner {
    background-color: transparent !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 200px;
    height: 266px;
    aspect-ratio: auto;
    position: relative;
    cursor: pointer;
    box-shadow: none;
    border: none;
}

.showcase-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    position: relative;
}

/* 图片区域 - 充满整个卡片 */
.showcase-card-image {
    width: 200px;
    height: 266px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.showcase-card-image img {
    width: 200px;
    height: 266px;
    object-fit: cover;
    background-color: transparent !important;
}

/* 卡片信息区域 - 覆盖在图片上方 */
.showcase-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.showcase-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.showcase-card-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 - 图片展示轮播 */
@media (max-width: 1200px) {
    .showcase-card {
        flex: 0 0 calc(100% / 6);
    }
    .showcase-card-inner {
        width: 200px;
        height: 266px;
    }
    .showcase-card-image {
        width: 200px;
        height: 266px;
    }
    .showcase-card-image img {
        width: 200px;
        height: 266px;
    }
}

@media (max-width: 900px) {
    .showcase-card {
        flex: 0 0 calc(100% / 5);
    }
    .showcase-card-inner {
        width: 200px;
        height: 266px;
    }
    .showcase-card-image {
        width: 200px;
        height: 266px;
    }
    .showcase-card-image img {
        width: 200px;
        height: 266px;
    }
}

@media (max-width: 600px) {
    .showcase-slider-container {
        padding: 0 0 15px;
    }

    .showcase-nav-btns .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .showcase-card {
        flex: 1 1 calc(33.33% - 12px);
        min-width: 80px;
    }
    .showcase-card-inner {
        width: 200px;
        height: 266px;
    }
    .showcase-card-image {
        width: 200px;
        height: 266px;
    }
    .showcase-card-image img {
        width: 200px;
        height: 266px;
    }
}

/* ===========================================
   分享广场区域
   =========================================== */
.share-square-section {
    grid-column: 1 / -1;
    margin-top: -10px;
    padding: 0 35px;
    box-sizing: border-box;
}

.share-square-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.share-square-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.share-square-title i {
    color: var(--primary-color);
}

.share-square-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.share-square-grid {
    display: grid;
    /* 默认列规则；有数据时由 JS 按容器宽度写入 grid-template-columns，与每页条数无关 */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.share-square-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    box-sizing: border-box;
}

.share-square-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.share-square-item:hover img {
    transform: scale(1.1);
}

.share-square-overlay {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-square-item:hover .share-square-overlay {
    opacity: 1;
}

/* 制作同款按钮 */
.create-same-btn {
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    padding: 10px 0;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
}

.share-square-item:hover .create-same-btn {
    opacity: 1;
}

.author-name {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.like-count {
    font-size: 12px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 12, 22, 0.45);
    border-radius: 999px;
    padding: 4px 9px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.like-count i {
    color: #ff6b6b;
}

.like-count:hover {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.15);
    transform: translateY(-1px);
}

.like-count.liked {
    color: #ffd7de;
    border-color: rgba(255, 107, 107, 0.65);
    background: rgba(255, 107, 107, 0.28);
}

/* 响应式 */
@media (max-width: 600px) {
    .share-square-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .share-square-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===========================================
   功能卡片区域
   =========================================== */
.home-features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: transparent;
    margin-left: -30px;
    width: calc(100% + 60px);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 222, 128, 0.15);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-card-content {
    flex: 1;
}

.feature-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card-info {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-tag i {
    color: var(--primary-color);
    font-size: 13px;
}

.feature-card-btn {
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.feature-card-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .home-features-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .home-content {
        padding: 16px;
    }
    
    .banner-scroll-wrapper {
        padding-bottom: 4px;
        gap: 10px;
    }
    
    .banner-item {
        min-width: 120px;
        padding: 12px 16px;
        height: 120px;
        flex: 1 1 0;
    }
    
    .home-features-section {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-card-content h3 {
        font-size: 16px;
    }
    
    .feature-card-content p {
        font-size: 13px;
    }
}
    
    .showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ======================================== */
/*          个人资料模态框样式                */
/* ======================================== */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

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

.profile-dialog {
    display: none;
    background: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
}

.profile-modal.active .profile-dialog {
    display: block;
}

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

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.profile-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-profile-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-profile-btn:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.profile-content {
    padding: 24px;
}

.profile-item {
    margin-bottom: 20px;
}

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

.profile-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.profile-value {
    font-size: 15px;
    color: var(--text-primary);
    padding: 10px 14px;
    background: var(--sidebar-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-invite-link {
    display: flex;
    gap: 8px;
}

.invite-link-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.invite-link-input:focus {
    border-color: var(--primary-color);
}

.copy-link-btn {
    padding: 10px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.copy-link-btn:active {
    transform: translateY(0);
}

/* 声音克隆音频预览区 */
.voice-audio-preview {
    position: relative;
    margin-top: 12px;
    border-radius: 12px;
    overflow: visible;
    padding: 14px;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.voice-audio-preview .remove-video-btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* ========================================
   2026 专业化视觉升级覆盖
   ======================================== */

:root {
    --sidebar-width: 242px;
    --sidebar-collapsed-width: 72px;
    --quick-create-width: 392px;
    --upload-sidebar-width: calc(var(--quick-create-width) - 30px);
    --sidebar-bg: #081120;
    --sidebar-bg-light: #0c1628;
    --primary-color: #6e8fff;
    --primary-color-hover: #86a2ff;
    --accent-color: #6e8fff;
    --accent-color-light: #a9bcff;
    --text-primary: #f5f7fb;
    --text-secondary: #95a3bd;
    --border-color: rgba(148, 163, 184, 0.18);
    --card-bg: rgba(13, 21, 38, 0.82);
    --card-bg-hover: rgba(17, 28, 49, 0.96);
    --gradient-primary: linear-gradient(135deg, #6e8fff 0%, #8ab0ff 100%);
    --glow-primary: 0 20px 40px rgba(39, 74, 148, 0.28);
    --hover-bg: rgba(74, 222, 128, 0.08);
}

* {
    font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body {
    background: #050816;
    color: var(--text-primary);
}

body::before {
    background:
        radial-gradient(circle at top left, rgba(74, 222, 128, 0.18) 0%, transparent 38%),
        radial-gradient(circle at 85% 12%, rgba(56, 189, 248, 0.1) 0%, transparent 26%),
        linear-gradient(180deg, #050816 0%, #091121 54%, #060b16 100%);
}

body::after {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.025) 1px, transparent 1px);
    background-size: 160px 160px;
    opacity: 0.45;
}

.unified-header {
    height: 72px;
    padding: 0 28px;
    background: rgba(6, 11, 22, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 36px rgba(1, 5, 14, 0.35);
}

.unified-left .logo .logo-image {
    height: 38px;
    filter: drop-shadow(0 8px 18px rgba(74, 222, 128, 0.22));
}

.unified-center #pageTitleText {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(245, 247, 251, 0.78);
}

.unified-right {
    gap: 10px;
}

.header-user-points {
    padding: 9px 14px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.08));
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 999px;
    color: #dbe5ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.unified-right .login-btn-header,
.unified-right .quick-action-btn,
.quick-create-buttons .create-btn-quick,
.copy-link-btn {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transition: transform var(--interactive-transition), box-shadow var(--interactive-transition), border-color var(--interactive-transition), background var(--interactive-transition), color var(--interactive-transition);
}

.unified-right .login-btn-header {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-primary);
    margin-right: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.unified-right .login-btn-header:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 222, 128, 0.4);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.unified-right .quick-action-btn,
.quick-create-buttons .create-btn-quick,
.copy-link-btn {
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.unified-right .quick-action-btn:hover,
.quick-create-buttons .create-btn-quick:hover,
.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.unified-right .quick-action-btn:active,
.quick-create-buttons .create-btn-quick:active,
.copy-link-btn:active,
.unified-right .login-btn-header:active,
.pagination-btn:active,
.create-same-btn:active {
    transform: translateY(0);
}

.lang-switch-btn:focus-visible,
.unified-right .login-btn-header:focus-visible,
.unified-right .quick-action-btn:focus-visible,
.quick-create-buttons .create-btn-quick:focus-visible,
.copy-link-btn:focus-visible,
.pagination-btn:focus-visible,
.create-same-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18), 0 0 0 1px rgba(74, 222, 128, 0.5);
}

.sidebar {
    top: 72px;
    height: calc(100vh - 72px);
    background: linear-gradient(180deg, rgba(7, 12, 25, 0.96) 0%, rgba(9, 16, 30, 0.96) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 20px 0 40px rgba(1, 6, 16, 0.32);
}

.sidebar-nav {
    padding: 22px 14px;
}

.sidebar-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 10px;
}

.sidebar-nav-head .nav-section-title {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-section-title {
    padding: 0 12px;
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(149, 163, 184, 0.66);
}

.nav-item {
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: rgba(226, 232, 240, 0.78);
}

.nav-item::before {
    display: none;
}

.nav-item:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.16);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.16) 0%, rgba(74, 222, 128, 0.08) 100%);
    border-color: rgba(74, 222, 128, 0.3);
    color: #eef3ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(19, 32, 62, 0.28);
}

.nav-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
}

.nav-text {
    font-size: 13px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 18px 20px 24px;
}

.sidebar-footer .footer-info {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar-footer .footer-info p {
    color: rgba(149, 163, 184, 0.7);
}

.quick-create-panel {
    width: var(--upload-sidebar-width);
    top: 72px;
    left: var(--sidebar-width);
    height: calc(100vh - 72px);
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.94) 0%, rgba(8, 14, 28, 0.96) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 22px 0 40px rgba(2, 6, 16, 0.24);
}

.quick-create-tabs {
    gap: 10px;
    padding: 18px 18px 0;
    background: transparent;
    border-bottom: none;
}

.quick-create-content {
    padding: 18px;
}

.quick-tab-btn {
    min-height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(226, 232, 240, 0.8);
}

.quick-tab-btn:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    color: #ffffff;
    transform: none;
}

.quick-tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.quick-tab-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

.quick-tab-btn.active i {
    color: #fff;
}

.quick-create-content .form-input,
.quick-create-content .form-textarea,
.invite-link-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.quick-create-content .form-input:focus,
.quick-create-content .form-textarea:focus,
.invite-link-input:focus {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.quick-create-content .form-input::placeholder,
.quick-create-content .form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.quick-create-content .upload-area {
    padding: 28px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(74, 222, 128, 0.035) 100%);
    border: 1px dashed rgba(148, 163, 184, 0.22);
}

.quick-create-content .upload-area:hover {
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.06) 0%, rgba(74, 222, 128, 0.09) 100%);
    border-color: rgba(74, 222, 128, 0.42);
}

.quick-create-content .checkbox-label,
.cost-hint,
.quick-create-content .upload-area p,
.quick-create-content .upload-area span {
    color: var(--text-secondary);
}

.main-wrapper {
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    background: transparent;
}

body.quick-panel-open .main-wrapper {
    margin-left: calc(var(--sidebar-width) + var(--quick-create-width) + 16px);
    width: calc(100% - var(--sidebar-width) - var(--quick-create-width) - 16px);
}

.home-content {
    max-width: 1560px;
    padding: 34px 34px 44px;
    margin: 0 auto;
}

.home-banner-section {
    margin-top: 0;
    margin-bottom: 28px;
    padding: 0;
    overflow: visible;
}

.banner-scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
}

.banner-item {
    position: relative;
    overflow: hidden;
    min-height: 152px;
    height: auto;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 24, 42, 0.92) 0%, rgba(10, 17, 30, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(3, 8, 20, 0.24);
    transition: transform var(--interactive-transition), box-shadow var(--interactive-transition), border-color var(--interactive-transition), background var(--interactive-transition);
}

.banner-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.14), transparent 48%);
    opacity: 0;
    transition: opacity var(--interactive-transition);
    pointer-events: none;
}

.banner-item:hover {
    background: linear-gradient(180deg, rgba(18, 31, 56, 0.98) 0%, rgba(11, 19, 34, 1) 100%);
    border-color: rgba(74, 222, 128, 0.38);
    box-shadow: 0 22px 40px rgba(24, 39, 74, 0.34);
    transform: translateY(-4px);
}

.banner-item:hover::after {
    opacity: 1;
}

.banner-item .banner-icon {
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-desc {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-images-showcase,
.share-square-section {
    grid-column: 1 / -1;
}

.showcase-slider-container,
.share-square-section {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(165deg, rgba(15, 15, 15, 0.72), rgba(10, 10, 10, 0.68)),
        radial-gradient(circle at 0% 0%, rgba(74, 222, 128, 0.06), transparent 45%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.showcase-slider-container {
    padding: 28px 28px 28px;
}

.showcase-section-header {
    padding-bottom: 20px;
}

.showcase-section-title,
.share-square-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.showcase-section-title i,
.share-square-title i {
    color: var(--primary-color);
}

.showcase-slider-wrapper {
    padding: 4px 0 8px;
    margin: 0;
}

.showcase-slider {
    gap: 20px;
}

.showcase-nav-btns .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: none;
}

.showcase-nav-btns .slider-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(74, 222, 128, 0.35);
}

.showcase-card {
    width: 220px;
    transition: transform var(--interactive-transition);
}

.showcase-card-inner {
    width: 220px;
    height: 300px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
    transition: border-color var(--interactive-transition), box-shadow var(--interactive-transition);
}

.showcase-card:hover {
    transform: translateY(-6px);
}

.showcase-card:hover .showcase-card-inner {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5);
}

.showcase-card-image,
.showcase-card-image img {
    width: 220px;
    height: 300px;
}

.showcase-card-info {
    padding: 52px 16px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.9) 100%);
}

.showcase-card-title {
    font-size: 15px;
    font-weight: 700;
}

.showcase-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.share-square-section {
    margin-top: 0;
    padding: 28px;
}

.share-square-header {
    margin-bottom: 22px;
}

.share-square-grid {
    gap: 18px;
}

.share-square-item {
    max-width: none;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
    background: linear-gradient(165deg, rgba(15, 15, 15, 0.92), rgba(10, 10, 10, 0.88));
    transition: transform var(--interactive-transition), border-color var(--interactive-transition), box-shadow var(--interactive-transition);
}

.share-square-item:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5);
}

.share-square-overlay {
    bottom: 32px;
    padding: 10px 16px 6px;
    background: transparent;
}

.share-square-overlay .author-name {
    display: inline-flex;
    align-items: center;
    max-width: 72%;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(8, 12, 22, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
}

.create-same-btn {
    left: 16px;
    right: 16px;
    bottom: 8px;
    padding: 6px 0;
    min-height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    background: var(--gradient-primary);
    box-shadow: 0 14px 24px rgba(32, 54, 108, 0.26);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--interactive-transition), box-shadow var(--interactive-transition), opacity var(--interactive-transition), border-color var(--interactive-transition), filter var(--interactive-transition);
}

.create-same-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 30px rgba(32, 54, 108, 0.34);
    filter: brightness(1.04);
}

.share-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: transparent;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #eef3ff;
    transition: transform var(--interactive-transition), border-color var(--interactive-transition), background var(--interactive-transition), color var(--interactive-transition), opacity var(--interactive-transition);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.42;
    color: rgba(148, 163, 184, 0.72);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(148, 163, 184, 0.08);
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* 分享广场瀑布流 + 无限滚动 */
.share-square-grid {
    display: block;
    column-count: var(--share-columns, 4);
    column-gap: 18px;
}

.share-square-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.share-square-item--normal {
    aspect-ratio: 3 / 4;
    min-height: 260px;
}

.share-square-item--tall {
    aspect-ratio: 3 / 5;
    min-height: 320px;
}

.share-square-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 120px;
    margin-bottom: 8px;
    padding: 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.share-square-empty i {
    opacity: 0.85;
    color: var(--primary-color);
}

.share-infinite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    min-height: 32px;
}

.share-infinite-status.is-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-top-color: var(--primary-color);
    animation: share-spin 0.8s linear infinite;
}

.share-load-more-trigger {
    width: 100%;
    height: 1px;
}

@keyframes share-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.home-features-section {
    gap: 24px;
}

@media (max-width: 1440px) {
    .banner-scroll-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .home-content {
        padding: 24px 20px 36px;
    }

    .showcase-slider-container,
    .share-square-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .share-square-item--normal {
        min-height: 220px;
    }

    .share-square-item--tall {
        min-height: 280px;
    }
}

@media (max-width: 840px) {
    .unified-header {
        padding: 0 18px;
    }

    .unified-center {
        display: none;
    }

    .banner-scroll-wrapper {
        grid-template-columns: 1fr;
    }

    .share-square-grid {
        column-count: var(--share-columns, 2);
    }

    .share-square-item--normal {
        min-height: 200px;
    }

    .share-square-item--tall {
        min-height: 250px;
    }
}

/* ======================================== */
/*           侧边栏折叠（仅图标模式）          */
/* ======================================== */
html.sidebar-collapsed {
    --sidebar-width: var(--sidebar-collapsed-width);
}

html.sidebar-collapsed .sidebar-nav-head {
    justify-content: center;
    padding: 0 4px;
    margin-bottom: 12px;
}

html.sidebar-collapsed .sidebar-nav-head .nav-section-title {
    display: none;
}

html.sidebar-collapsed .sidebar-nav {
    padding-left: 8px;
    padding-right: 8px;
}

html.sidebar-collapsed .nav-section-title,
html.sidebar-collapsed .nav-section-header,
html.sidebar-collapsed .nav-text,
html.sidebar-collapsed .sidebar-footer {
    display: none;
}

html.sidebar-collapsed .nav-section.is-collapsed .nav-section-body {
    display: block;
}

html.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

html.sidebar-collapsed .nav-item::before {
    width: 2px;
}

html.sidebar-collapsed .nav-icon {
    width: 22px;
    height: 22px;
    font-size: 16px;
}

html.sidebar-collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

