/* 基础变量与全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) var(--tertiary-dark);
    transition: scrollbar-color 0.5s ease;
}

:root {
    --primary-dark: #0a0a0f;
    --secondary-dark: #141420;
    --tertiary-dark: #1e1e2d;
    --primary-accent: #00d0ff;
    --secondary-accent: #00ffc8;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-tertiary: #808090;
    --card-bg: rgba(30, 30, 45, 0.7);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --primary-accent-light: rgba(0, 208, 255, 0.1);
}

/* 白色主题变量 */
.light-theme {
    --primary-dark: #f0f2f5;
    --secondary-dark: #ffffff;
    --tertiary-dark: #e4e7ec;
    --primary-accent: #0066cc;
    --secondary-accent: #0099cc;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #909399;
    --card-bg: rgba(255, 255, 255, 0.9);
    --primary-accent-light: rgba(0, 102, 204, 0.1);
    scrollbar-color: rgba(0, 0, 0, 0.1) var(--tertiary-dark);
}

body {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: background 0.5s ease, color 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 208, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 200, 0.1) 0%, transparent 20%);
    z-index: -1;
}

.light-theme body::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 153, 204, 0.05) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* 手机端优化：减小 padding */
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 208, 255, 0.1);
    transition: background-color 0.5s ease;
}

.light-theme .navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(0, 102, 204, 0.08);
}

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

.logo-icon {
    font-size: 1.5rem; /* 手机端优化：缩小图标 */
    color: var(--primary-accent);
    margin-right: 8px;
    text-shadow: 0 0 15px rgba(0, 208, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-size: 1.3rem; /* 手机端优化：缩小文字 */
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2px;
    list-style: none;
}

.nav-links li {
    margin: 0 8px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--primary-accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-accent);
    background: rgba(0, 208, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 208, 255, 0.08);
}

.light-theme .nav-links a.active {
    background: rgba(0, 102, 204, 0.05);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a.disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    pointer-events: none;
}

.navbar-actions {
    display: flex;
    gap: 10px; /* 手机端优化：减小间距 */
    align-items: center;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: var(--primary-dark);
    padding: 8px 20px; /* 手机端优化：减小按钮尺寸 */
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem; /* 手机端优化：缩小文字 */
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 208, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 208, 255, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

.light-theme .cta-button {
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.light-theme .cta-button:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.5);
}

.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem; /* 手机端优化：缩小按钮 */
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-accent);
    width: 40px; /* 手机端优化：缩小按钮 */
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.3rem; /* 手机端优化：缩小图标 */
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.03);
}

.theme-toggle:hover {
    background: rgba(0, 208, 255, 0.1);
    transform: rotate(30deg);
}

.theme-toggle i {
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(90deg) scale(1.1);
}

.light-theme .theme-toggle:hover {
    background: rgba(0, 102, 204, 0.1);
}

/* 用户状态区域样式 */
.user-status {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 40px !important;
}

.light-theme .user-status {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.user-status:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.light-theme .user-status:hover {
    background: rgba(0, 0, 0, 0.05);
}

.user-avatar-wrapper {
    position: relative;
    margin-right: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    border: 2px solid transparent;
    background: linear-gradient(var(--primary-dark), var(--primary-dark)) padding-box,
                linear-gradient(to right, var(--primary-accent), var(--secondary-accent)) border-box;
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-accent);
    animation: spin-border 3s linear infinite;
    opacity: 0.7;
}

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

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

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

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

.user-nickname {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.vip-level {
    padding: 0 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
    position: absolute;
    bottom: -3px;
    left: 2px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vip-level-0 { background-color: #999; }
.vip-level-1 { background-color: #4299e1; }
.vip-level-2 { background-color: #38b2ac; }
.vip-level-3 { background-color: #48bb78; }
.vip-level-4 { background-color: #f6ad55; }
.vip-level-5 { background-color: #ed8936; }
.vip-level-6 { background: linear-gradient(45deg, #9f7aea, #667eea); }
.vip-level-7 { background: linear-gradient(45deg, #ed64a6, #9f7aea); }
.vip-level-8 { background: linear-gradient(45deg, #ffc107, #ff9800); }
.vip-level-9 { background: linear-gradient(45deg, #e53e3e, #ed8936); }

.user-balance {
    font-size: 0.8rem; /* 手机端优化：缩小文字 */
    line-height: 1.2;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-balance i {
    margin-right: 5px;
    color: #ffd700;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary-dark);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    margin-top: 8px;
    border: 1px solid rgba(0, 208, 255, 0.15);
}

.light-theme .user-dropdown {
    background: var(--secondary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    gap: 12px;
}

.user-dropdown a:hover {
    background: rgba(0, 208, 255, 0.1);
    color: var(--primary-accent);
    padding-left: 28px;
}

.light-theme .user-dropdown a:hover {
    background: rgba(0, 102, 204, 0.05);
}

.user-dropdown a#logoutBtn {
    color: #ff8a80;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    padding-top: 12px;
}

.light-theme .user-dropdown a#logoutBtn {
    color: #e53e3e;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}


/* 手机端移除.page-container的padding-top */
@media (max-width: 768px) {
    .page-container {
        padding-top: 0 !important;
    }
}


/* API Token 区域样式 */
.user-token-section {
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
}

.light-theme .user-token-section {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.token-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.token-label i {
    color: var(--primary-accent);
    font-size: 0.9rem;
}

.token-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.token-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: text;
    user-select: all;
    transition: var(--transition);
}

.light-theme .token-input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.token-input:hover {
    border-color: rgba(0, 208, 255, 0.3);
}

.token-buttons {
    display: flex;
    gap: 8px;
}

.token-btn {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.copy-btn {
    background: rgba(0, 208, 255, 0.1);
    color: var(--primary-accent);
    border: 1px solid transparent;
}

.copy-btn:hover {
    background: rgba(0, 208, 255, 0.2);
    border-color: var(--primary-accent);
}

.refresh-btn {
    background: rgba(0, 255, 200, 0.1);
    color: var(--secondary-accent);
    border: 1px solid transparent;
}

.refresh-btn:hover {
    background: rgba(0, 255, 200, 0.2);
    border-color: var(--secondary-accent);
}

.light-theme .copy-btn {
    background: rgba(0, 102, 204, 0.05);
}

.light-theme .copy-btn:hover {
    background: rgba(0, 102, 204, 0.1);
}

.light-theme .refresh-btn {
    background: rgba(0, 153, 204, 0.05);
}

.light-theme .refresh-btn:hover {
    background: rgba(0, 153, 204, 0.1);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .user-token-section {
        padding: 10px 20px;
    }
    
    .token-btn {
        padding: 5px 0;
        font-size: 0.75rem;
    }
    
    .token-input {
        padding: 7px 10px;
        font-size: 0.8rem;
    }
}



// 提示消息样式（需要添加到CSS中）
.token-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.token-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.token-toast.toast-success {
    background: #48bb78;
}

.token-toast.toast-error {
    background: #f56565;
}

.token-toast.toast-info {
    background: #3182ce;
}



.layui-layer-dialog .layui-layer-padding{
    color:#333!important;
}




/*白天风格配色重置*/
.light-theme {
    --primary-dark: #f8fafc;
    --secondary-dark: #ffffff;
    --tertiary-dark: #f1f5f9;
    --primary-accent: #475569;
    --secondary-accent: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.9);
    --primary-accent-light: rgba(71, 85, 105, 0.08);
    scrollbar-color: rgba(0, 0, 0, 0.1) var(--tertiary-dark);
}

/* 在灰色基础上添加蓝色渐变点缀 */
.light-theme .logo-text {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .nav-links a::after {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.light-theme .nav-links a:hover {
    color: #3b82f6;
}

.light-theme .nav-links a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.light-theme .cta-button {
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.light-theme .cta-button:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.light-theme .theme-toggle {
    color: #3b82f6;
}

.light-theme .theme-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}


.light-theme .pagination li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.light-theme .pagination li.active span {
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.light-theme .common-history-button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.light-theme body::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 20%);
}

/* 用户相关元素的点缀色 */
.light-theme .user-avatar {
    background: linear-gradient(var(--primary-dark), var(--primary-dark)) padding-box,
                linear-gradient(to right, #3b82f6, #06b6d4) border-box;
}

.light-theme .user-dropdown a:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.light-theme .user-status:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* API Token 区域 */
.light-theme .token-input:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.light-theme .copy-btn {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.light-theme .copy-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.light-theme .refresh-btn {
    background: rgba(6, 182, 212, 0.05);
    color: #06b6d4;
}

.light-theme .refresh-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
}



/* 左上角图标渐变配色 */
.logo-icon {
    /* 使用线性渐变作为背景 */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #ffda79);
    background-size: 400% 400%;
    /* 将渐变应用到文字颜色 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* 添加呼吸动画效果 */
    animation: gradientShift 8s ease infinite;
}

/* 渐变动画关键帧 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 鼠标悬停时加速动画 */
.logo:hover .logo-icon {
    animation: gradientShift 3s ease infinite;
}




/* ======================================
   Layer 弹窗主题适配（暗黑/白色双主题兼容）
====================================== */

/* 1. 弹窗外层遮罩 */
.layui-layer-shade {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

.light-theme .layui-layer-shade {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* 2. 弹窗容器 */
.layui-layer {
    background: var(--secondary-dark) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 208, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 208, 255, 0.15) !important;
    overflow: hidden !important;
}

.light-theme .layui-layer {
    border-color: rgba(59, 130, 246, 0.1) !important;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.08) !important;
}

/* 3. 弹窗标题栏 */
.layui-layer-title {
    background: var(--tertiary-dark) !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(0, 208, 255, 0.1) !important;
}

.light-theme .layui-layer-title {
    background: var(--tertiary-dark) !important;
    border-bottom-color: rgba(59, 130, 246, 0.08) !important;
}

/* 4. 弹窗内容区 */
.layui-layer-content {
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* 修复图片/视频预览内容居中 */
.layui-layer-content .video-container,
.layui-layer-content .image-preview-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 5. 弹窗按钮区 */
.layui-layer-btn {
    padding: 10px 20px !important;
    background: var(--tertiary-dark) !important;
    border-top: 1px solid rgba(0, 208, 255, 0.1) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.light-theme .layui-layer-btn {
    border-top-color: rgba(59, 130, 246, 0.08) !important;
}

/* 按钮样式适配 */
.layui-layer-btn a {
    padding: 6px 18px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    border: none !important;
}

/* 取消按钮 */
.layui-layer-btn .layui-layer-btn1 {
    background: var(--tertiary-dark) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.layui-layer-btn .layui-layer-btn1:hover {
    background: rgba(0, 208, 255, 0.1) !important;
    color: var(--primary-accent) !important;
    border-color: rgba(0, 208, 255, 0.2) !important;
}

.light-theme .layui-layer-btn .layui-layer-btn1 {
    background: var(--tertiary-dark) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.light-theme .layui-layer-btn .layui-layer-btn1:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

/* 确认按钮（如果需要） */
.layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent)) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(0, 208, 255, 0.3) !important;
}

.layui-layer-btn .layui-layer-btn0:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 208, 255, 0.4) !important;
}

.light-theme .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(45deg, #3b82f6, #06b6d4) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.light-theme .layui-layer-btn .layui-layer-btn0:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3) !important;
}

/* 6. 关闭按钮样式 */
.layui-layer-close {
    color: var(--text-secondary) !important;
    font-size: 1.2rem !important;
    line-height: 36px !important;
    text-align: center !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
}

.layui-layer-close:hover {
    color: var(--primary-accent) !important;
    background: rgba(0, 208, 255, 0.1) !important;
    transform: rotate(90deg) !important;
}

.light-theme .layui-layer-close:hover {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

/* 7. 适配预览弹窗中的媒体元素 */
.layui-layer-content img,
.layui-layer-content video,
.layui-layer-content audio {
    border-radius: 8px !important;
}

/* 8. 提示框（msg）样式适配 */
.layui-layer-dialog {
    background: var(--secondary-dark) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 208, 255, 0.15) !important;
    box-shadow: 0 8px 30px rgba(0, 208, 255, 0.15) !important;
}

.light-theme .layui-layer-dialog {
    border-color: rgba(59, 130, 246, 0.1) !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08) !important;
}

.layui-layer-dialog .layui-layer-padding {
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    padding: 20px !important;
    text-align: center !important;
}

/* 提示框图标颜色 */
.layui-layer-dialog .layui-layer-ico {
    color: var(--primary-accent) !important;
    font-size: 1.8rem !important;
}

.light-theme .layui-layer-dialog .layui-layer-ico {
    color: #3b82f6 !important;
}

/* 9. 修复 Layer 弹窗滚动问题 */
.layui-layer-page,
.layui-layer-dialog {
    overflow: hidden !important;
}

/* 10. 适配你的预览弹窗内容样式 */
.layui-layer-content .preview-empty,
.layui-layer-content .preview-unsupported {
    color: var(--text-secondary) !important;
}

.layui-layer-content .preview-unsupported i {
    color: var(--text-secondary) !important;
}

.light-theme .layui-layer-content .preview-empty,
.light-theme .layui-layer-content .preview-unsupported {
    color: var(--text-secondary) !important;
}



/* 暗黑主题下弹窗操作按钮颜色 */
.layui-layer-setwin a {
    color: var(--text-secondary) !important; /* 使用次要文本色 */
    transition: color 0.3s ease !important;
}

/* 白色主题下弹窗操作按钮颜色 */
.light-theme .layui-layer-setwin a {
    color: var(--text-secondary) !important; /* 白色主题的次要文本色 */
}

.layui-layer-setwin{background:linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));}
.layui-layer-setwin a{margin-left:0;}




/* 按钮样式适配 */
.layui-layer-btn a {
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    border: none !important;
    /* 核心修复：垂直居中关键属性 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* 清除默认行高影响 */
    height: auto !important; /* 让高度由 padding 自动撑开 */
    vertical-align: middle !important; /* 解决 inline 元素对齐问题 */
}


/* ========== 下拉菜单算力余额样式（新增） ========== */
/* 算力余额容器 */
.dropdown-power-balance {
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 白色主题下的边框适配 */
.light-theme .dropdown-power-balance {
    border-top-color: rgba(0, 0, 0, 0.03);
}

/* 算力标签样式 */
.power-label {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight:bold;
}

.power-label i {
    font-size: 1rem;
}

/* 算力数值+充值按钮容器 */
.power-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 充值按钮（A标签版）核心样式 - 还原Button精致效果 */
.power-recharge-btn {
    /* 关键调整：缩小内边距+固定高度，还原button尺寸 */
    padding: 0 10px !important;
    height: 22px !important;
    line-height: 22px !important;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: var(--primary-dark) !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 208, 255, 0.2) !important;
    /* 清除A标签默认样式 */
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    /* 防止被其他样式覆盖 */
    min-width: 40px !important;
}

/* 充值按钮hover效果 - 还原Button动效 */
.power-recharge-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 208, 255, 0.4) !important;
    text-decoration: none !important; /* 清除A标签hover下划线 */
    color: #fff !important;
}

/* 白色主题下充值按钮样式 */
.light-theme .power-recharge-btn {
    background: linear-gradient(45deg, #3b82f6, #06b6d4) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2) !important;
}

.light-theme .power-recharge-btn:hover {
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3) !important;
    color: #fff !important;
}

/* ========== 移动端适配（768px以下） ========== */
@media (max-width: 768px) {
    .dropdown-power-balance {
        padding: 10px 24px;
    }
    .power-recharge-btn {
        padding: 0 8px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 0.65rem !important;
    }
}

/* ========== 小屏手机适配（480px以下） ========== */
@media (max-width: 480px) {
    .power-value {
        font-size: 0.85rem;
    }
    .power-recharge-btn {
        padding: 0 6px !important;
        height: 18px !important;
        line-height: 18px !important;
        font-size: 0.6rem !important;
        min-width: 35px !important;
    }
}


.hot-tag {
    display: inline-block;
    background-color: #ff3838;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 2px;
    vertical-align: top;
    position: relative;
    top:0;
}

/* 手机端（768px以下）隐藏整个漫剧系统导航栏目 */
@media (max-width: 768px) {
    .nav-links li.movie-nav-item {
        display: none !important;
    }
}




/* ========================================
   Footer 样式 - 写在文件底部确保最高优先级
   ======================================== */

/* 主 footer 容器 */
footer.footer {
    background: #0a0e17 !important;
    padding: 50px 5% 20px;
    position: relative;
    overflow: hidden;
}

/* 网格背景 */
footer.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* 亮色主题 */
body.light-theme footer.footer {
    background: #f5f7fa !important;
}

body.light-theme footer.footer::before {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

/* Footer 内容区 */
footer.footer .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Footer 列 */
footer.footer .footer-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

footer.footer .footer-column:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

body.light-theme footer.footer .footer-column {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme footer.footer .footer-column:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Footer 标题 */
footer.footer .footer-column h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

footer.footer .footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    border-radius: 1px;
}

body.light-theme footer.footer .footer-column h3 {
    color: #1a1a1a;
}

/* Footer 段落 */
footer.footer .footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

body.light-theme footer.footer .footer-column p {
    color: rgba(0, 0, 0, 0.6);
}

/* 友情链接 */
footer.footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.footer .footer-links li {
    margin-bottom: 8px;
}

footer.footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

footer.footer .footer-links a i {
    color: #06b6d4;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

footer.footer .footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

footer.footer .footer-links a:hover i {
    color: #3b82f6;
}

body.light-theme footer.footer .footer-links a {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme footer.footer .footer-links a:hover {
    color: #1a1a1a;
}

body.light-theme footer.footer .footer-links a i {
    color: #3b82f6;
}

/* 社交链接 */
footer.footer .social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

footer.footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer.footer .social-links a:hover {
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

body.light-theme footer.footer .social-links a {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme footer.footer .social-links a:hover {
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* 二维码 */
footer.footer .qrcode {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

footer.footer .qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer.footer .qrcode-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.7rem;
    text-align: center;
}

/* 版权信息 */
footer.footer .copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

footer.footer .copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.footer .copyright a:hover {
    color: #3b82f6;
}

body.light-theme footer.footer .copyright {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme footer.footer .copyright a {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme footer.footer .copyright a:hover {
    color: #3b82f6;
}

/* 联系我们列表 */
footer.footer .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.footer .contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer.footer .contact-list li i {
    color: #06b6d4;
    width: 16px;
    text-align: center;
}

body.light-theme footer.footer .contact-list li {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme footer.footer .contact-list li i {
    color: #3b82f6;
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    footer.footer {
        padding: 30px 5% 15px;
    }
    
    footer.footer .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    footer.footer .footer-column {
        padding: 16px 18px;
    }
    
    footer.footer .footer-column h3 {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 14px;
    }
    
    footer.footer .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer.footer .footer-links a {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    footer.footer .social-links {
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
    }
    
    footer.footer .social-links a {
        width: 34px;
        height: 34px;
    }
    
    footer.footer .footer-column:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 响应式 - 手机 */
@media (max-width: 480px) {
    footer.footer .footer-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    footer.footer .footer-column:not(:first-child) {
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    body.light-theme footer.footer .footer-column:not(:first-child) {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    footer.footer .qrcode {
        width: 110px;
        height: 110px;
    }
    
    footer.footer .qrcode-placeholder {
        width: 90px;
        height: 90px;
        font-size: 0.65rem;
    }
    
    footer.footer .copyright {
        font-size: 0.8rem;
        padding-top: 20px;
        margin-top: 24px;
    }
}

/* 二维码列居中适配 */
@media (max-width: 768px) {
    footer.footer .footer-column:has(.qrcode) {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    footer.footer .footer-column:has(.qrcode) .qrcode {
        margin-left: auto;
        margin-right: auto;
    }
    
    footer.footer .footer-column:has(.qrcode) p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer.footer .footer-column:has(.qrcode) {
        padding: 20px 16px;
    }
    
    footer.footer .footer-column:has(.qrcode) h3 {
        margin-bottom: 12px;
    }
}

/* V1样式隐藏，V2样式显示 */
.v1-nav {
    display: none !important;
}
.v2-nav {
    display: block !important;
}
