/* ======================================== */
/*           ???? - ??????             */
/* ======================================== */
: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: #76b900;
    --primary-color-hover: #8fd400;
    --accent-color: #5f9400;
    --accent-color-light: #486f00;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: #0a0a0a;
    --card-bg-hover: #111111;
    --success-color: #3ddc97;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --gradient-primary: linear-gradient(135deg, #76b900 0%, #8fd400 100%);
    --gradient-accent: linear-gradient(135deg, #5f9400 0%, #76b900 100%);
    --glow-primary: 0 0 20px rgba(118, 185, 0, 0.25);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.6);
    --interactive-transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans 3', '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(118, 185, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 0%, rgba(217, 54, 87, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(154, 107, 24, 0.05) 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(118, 185, 0, 0.35);
    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(118, 185, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.15);
    border: 1px solid rgba(118, 185, 0, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    margin-right: 10px;
}

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

/* ????? / ?? / ?? ????????? */
.header-primary-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);
}

.header-primary-switch .nav-item.header-primary-switch-btn,
button.header-primary-switch-btn.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 64px;
    margin: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background var(--interactive-transition), color var(--interactive-transition), transform var(--interactive-transition);
}

.header-primary-switch .nav-item.header-primary-switch-btn::before {
    display: none;
}

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

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

/* ???????????????????? */
html.studio-no-tool-nav {
    --sidebar-width: 0px;
    --sidebar-collapsed-width: 0px;
}

html.studio-no-tool-nav .sidebar {
    display: none !important;
}

.lang-switch {
    display: none !important;
}

.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(118, 185, 0, 0.35);
    background: rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.35);
    background: rgba(118, 185, 0, 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(118, 185, 0, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(118, 185, 0, 0.15) 0%, rgba(118, 185, 0, 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(118, 185, 0, 0.1);
    color: var(--text-primary);
}

.quick-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.3);
}

.quick-tab-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 185, 0, 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;
}

.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(118, 185, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.3);
}

.quick-create-buttons .create-btn-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 185, 0, 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(118, 185, 0, 0.3);
}

.sidebar .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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);
}

/* 头像下拉内的厂商剩余费用（MiniMax / 即梦 / 阿里，图标区分） */
.dropdown-vendor-balances {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 12px;
}

.dropdown-balance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.35;
}

.dropdown-balance-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.dropdown-balance-mark--minimax {
    color: #76b900;
    background: rgba(118, 185, 0, 0.14);
    border: 1px solid rgba(118, 185, 0, 0.35);
}

.dropdown-balance-mark--jimeng {
    color: #5eead4;
    background: rgba(94, 234, 212, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.35);
}

.dropdown-balance-mark--ali {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.dropdown-balance-mark--deepseek {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.dropdown-balance-label {
    color: var(--text-secondary, #8b949e);
    flex-shrink: 0;
    min-width: 4.5em;
}

.dropdown-balance-value {
    color: var(--text-primary, #e6edf3);
    font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
    font-variant-numeric: tabular-nums;
    text-align: right;
    margin-left: auto;
    min-width: 0;
    word-break: break-all;
}

.dropdown-user-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(118, 185, 0, 0.2) 0%, rgba(118, 185, 0, 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(118, 185, 0, 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);
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(118, 185, 0, 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: #76b900;
    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(118, 185, 0, 0.08);
    border-color: rgba(118, 185, 0, 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(118, 185, 0, 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 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

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

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

/* ????????*/
.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(118, 185, 0, 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: #76b900;
    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: #76b900;
}

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

.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(118, 185, 0, 0.3);
}

.create-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 185, 0, 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: #76b900;
}

.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(118, 185, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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: #76b900;
    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: #76b900;
}

.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: #76b900;
    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: #76b900 !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(118, 185, 0, 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(118, 185, 0, 0.3);
}

/* ?????? */
.toolbar-dropdown-container {
    position: relative;
    display: inline-block;
}

.toolbar-btn i {
    font-size: 14px;
    color: #76b900;
}

.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(118, 185, 0, 0.35);
}

.voice-select-btn.active {
    border-color: rgba(118, 185, 0, 0.35);
    background: rgba(118, 185, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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(118, 185, 0, 0.15);
    border: 1px solid rgba(118, 185, 0, 0.3);
}

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

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

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

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

.adjust-value {
    margin-left: auto;
    font-size: 12px;
    color: #76b900;
    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: #76b900;
    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: #76b900;
}

.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(118, 185, 0, 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 #76b900;
    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: #76b900;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

/* 密码框：右侧眼睛切换明文/密文 */
.password-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.password-input-wrap__input {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8b949e;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-visibility-toggle:hover {
    color: #e6edf3;
    background-color: #21262d;
}

.password-visibility-toggle:focus-visible {
    outline: 2px solid #76b900;
    outline-offset: 2px;
}

.password-visibility-toggle[aria-pressed="true"] {
    color: #76b900;
}

.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(118, 185, 0, 0.3);
}

.login-btn-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 185, 0, 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: #76b900;
    text-decoration: none;
}

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

/* 登录框：忘记密码 / 更改密码入口 */
.login-auth-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: -4px 0 14px;
    font-size: 13px;
}

.login-auth-links a {
    color: #76b900;
    text-decoration: none;
}

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

.login-auth-links-sep {
    color: #8b949e;
}

/* 忘记密码：验证码行 */
.forgot-code-fields {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.forgot-code-fields .form-input {
    flex: 1;
    min-width: 0;
}

.forgot-send-code-btn {
    flex-shrink: 0;
    padding: 0 14px;
    border: 1px solid #30363d;
    border-radius: 8px;
    background: rgba(118, 185, 0, 0.12);
    color: #76b900;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.forgot-send-code-btn:hover:not(:disabled) {
    background: rgba(118, 185, 0, 0.22);
    border-color: #76b900;
}

.forgot-send-code-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 忘记密码 / 更改密码模态（对齐登录框） */
.forgot-password-modal,
.change-password-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;
}

.forgot-password-modal.active,
.change-password-modal.active {
    opacity: 1;
    visibility: visible;
}

.forgot-password-modal.active .login-dialog,
.change-password-modal.active .login-dialog {
    transform: translateY(0);
}

/* ????????*/
.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: #3ddc97;
    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: #76b900;
    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: #76b900;
    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(118, 185, 0, 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: #76b900;
    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(118, 185, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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: #76b900;
    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(118, 185, 0, 0.3);
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(118, 185, 0, 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, #76b900, #76b900);
    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: #76b900;
    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(118, 185, 0, 0.3);
}

.voice-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 185, 0, 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(118, 185, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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: #76b900;
}

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

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

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

.emotion-option.selected span {
    color: #76b900;
    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(118, 185, 0, 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: #76b900;
    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: #76b900;
    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(118, 185, 0, 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(118, 185, 0, 0.3);
}

.create-btn-panel:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 185, 0, 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: #76b900;
}

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

.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: #76b900;
    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: #76b900;
    background-color: rgba(118, 185, 0, 0.15);
    box-shadow: 0 0 10px rgba(118, 185, 0, 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: #76b900;
    box-shadow: 0 0 15px rgba(118, 185, 0, 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: #76b900;
    box-shadow: 0 0 15px rgba(118, 185, 0, 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: #3ddc97;
    color: white;
}

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

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

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

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

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

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

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

/* ========== 我的作品页样式已迁至 my-works-page.css ========== */

/* ======================================== */
/*        ???????????           */
/* ======================================== */

/* ????? */
.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-modal.is-character-voice-popover {
    align-items: flex-start;
    pointer-events: none;
    z-index: 4000;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.voice-select-modal.is-character-voice-popover .voice-select-overlay {
    background: transparent;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
}

.voice-select-modal.is-character-voice-popover .voice-select-panel {
    position: fixed !important;
    top: var(--voice-popover-top, 16px);
    left: var(--voice-popover-left, 16px);
    right: auto !important;
    bottom: auto !important;
    width: min(420px, calc(100vw - 24px));
    height: min(520px, calc(100vh - 24px));
    max-height: calc(100vh - 24px);
    margin: 0 !important;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
    transform: none !important;
    pointer-events: auto;
}

.voice-select-modal.is-character-voice-popover .voice-select-header {
    padding: 9px 11px;
}

.voice-select-modal.is-character-voice-popover .voice-select-header h3 {
    font-size: 14px;
}

.voice-select-modal.is-character-voice-popover .close-voice-panel-btn {
    width: 28px;
    height: 28px;
    font-size: 15px;
}

.voice-select-modal.is-character-voice-popover .voice-select-tabs {
    padding: 0 8px;
}

.voice-select-modal.is-character-voice-popover .voice-tab {
    padding: 8px 10px;
    font-size: 12px;
}

.voice-select-modal.is-character-voice-popover .voice-select-content {
    padding: 7px;
}

.voice-select-modal.is-character-voice-popover .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
}

.voice-select-modal.is-character-voice-popover .voice-item {
    min-height: 64px;
    padding: 10px;
    border-radius: 6px;
}

.voice-select-modal.is-character-voice-popover .voice-item:hover {
    transform: none;
}

.voice-select-modal.is-character-voice-popover .voice-item-header {
    gap: 5px;
    margin-bottom: 3px;
}

.voice-select-modal.is-character-voice-popover .voice-icon {
    margin-right: 5px;
    font-size: 15px;
}

.voice-select-modal.is-character-voice-popover .voice-flag,
.voice-select-modal.is-character-voice-popover .voice-national-icon {
    font-size: 16px;
}

.voice-select-modal.is-character-voice-popover .voice-name {
    font-size: 12px;
}

.voice-select-modal.is-character-voice-popover .voice-gender {
    top: 5px;
    right: 5px;
    padding: 1px 4px;
    font-size: 9px;
}

.voice-select-modal.is-character-voice-popover .voice-desc {
    display: none;
}

.voice-select-modal.is-character-voice-popover .voice-pagination {
    gap: 7px;
    padding: 8px 10px;
}

.voice-select-modal.is-character-voice-popover .voice-pagination button {
    min-height: 27px;
    padding: 4px 8px;
    font-size: 11px;
}

/* ?? */
.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: #76b900;
}

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

/* ???? */
.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(118, 185, 0, 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: #76b900;
    transform: translateY(-2px);
}

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

.voice-item.selected {
    background-color: rgba(118, 185, 0, 0.1);
    border-color: #76b900;
}

.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: #76b900;
    background: rgba(118, 185, 0, 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: #76b900;
    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(118, 185, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.1);
    color: #76b900;
    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(118, 185, 0, 0.1);
    border-color: #76b900;
    color: #76b900;
}

.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(118, 185, 0, 0.1);
    border-color: #76b900;
    color: #76b900;
}

.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(118, 185, 0, 0.08);
    border-color: #76b900;
    box-shadow: 0 0 0 1px #76b900;
}

.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(118, 185, 0, 0.1);
    border-color: #76b900;
    color: #76b900;
}

.voice-copy-btn:hover {
    background: rgba(118, 185, 0, 0.1);
    border-color: #76b900;
    color: #76b900;
}

.voice-copy-btn.copied {
    background: rgba(118, 185, 0, 0.2);
    border-color: #76b900;
    color: #76b900;
}

/* ???????? */
.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(118, 185, 0, 0.05);
    border-color: #76b900;
    color: #76b900;
}

.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(118, 185, 0, 0.05);
    border-color: #76b900;
    border-style: solid;
}

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

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

/* ===========================================
   ??????????
   =========================================== */
.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;
}

/* ========== 我的消费页样式已迁至 consumption-page.css ========== */

/* ===========================================
   ??????
   =========================================== */

/* ?????? */
.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(118, 185, 0, 0.2) 0%, rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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;
}

.home-banner-hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.92;
}

.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(118, 185, 0, 0.15);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(118, 185, 0, 0.15) 0%, rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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.active） */
.profile-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: 25000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(6px);
}

.profile-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-dialog {
    position: relative;
    background-color: var(--card-bg, #161b22);
    border-radius: 12px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    max-height: none;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: none;
    border: 1px solid var(--border-color, #30363d);
}

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

.profile-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 36px 20px;
    color: var(--text-primary, #e6edf3);
    text-align: center;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-item--avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.12));
    background: var(--sidebar-bg, #0a0a0a);
}

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

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

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

.invite-link-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: var(--sidebar-bg, #0d1117);
    border: 1px solid var(--border-color, #30363d);
    border-radius: 8px;
    color: var(--text-primary, #e6edf3);
    font-size: 13px;
    outline: none;
}

.copy-link-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* ??????????*/
.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: 232px;
    --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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.12), rgba(118, 185, 0, 0.08));
    border: 1px solid rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.18), 0 0 0 1px rgba(118, 185, 0, 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);
}

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

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

.sidebar .nav-item:hover {
    background: rgba(118, 185, 0, 0.08);
    border-color: rgba(118, 185, 0, 0.16);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar .nav-item.active {
    background: linear-gradient(135deg, rgba(118, 185, 0, 0.16) 0%, rgba(118, 185, 0, 0.08) 100%);
    border-color: rgba(118, 185, 0, 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(118, 185, 0, 0.08);
    border-color: rgba(118, 185, 0, 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(118, 185, 0, 0.3);
}

.quick-tab-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 185, 0, 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(118, 185, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 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(118, 185, 0, 0.035) 100%);
    border: 1px dashed rgba(148, 163, 184, 0.22);
}

.quick-create-content .upload-area:hover {
    background: linear-gradient(180deg, rgba(118, 185, 0, 0.06) 0%, rgba(118, 185, 0, 0.09) 100%);
    border-color: rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.12);
    border: 1px solid rgba(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 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(118, 185, 0, 0.08);
    border-color: rgba(118, 185, 0, 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 .sidebar .nav-item {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

html.sidebar-collapsed .sidebar .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);
}

.studio-novel-header { display:inline-flex; align-items:center; gap:7px; width:auto; max-width:none; padding:7px 11px; border:1px solid rgba(118,185,0,.35); border-radius:8px; background:rgba(118,185,0,.1); color:var(--text-primary); cursor:pointer; overflow:hidden; }
.studio-novel-header[hidden] { display:none !important; }
.studio-novel-header i { color:var(--primary-color); }
#studioComicDramaNovelHeaderText { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.studio-novel-header-label { display:inline-flex; align-items:center; gap:7px; max-width:520px; color:var(--text-primary); overflow:hidden; }
.studio-novel-header-label[hidden] { display:none !important; }
.studio-novel-header-label i { color:var(--primary-color); }
#studioComicDramaNovelHeaderLabelText { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.studio-novel-header:not([hidden]):not(.has-novel) { position:absolute; left:50%; transform:translateX(-50%); }
.studio-comic-id-badge {
    display: inline-block;
    max-width: min(42vw, 420px);
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(118, 185, 0, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #b6f06a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-all;
    user-select: all;
    vertical-align: middle;
}
.studio-comic-id-badge[hidden] { display: none !important; }

