/* 基础变量与全局重置 */
* {
    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;
    --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;
    --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);
}

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

/* 页脚样式 */
.footer {
    background: var(--primary-dark);
    padding: 60px 5% 30px; /* 手机端优化：减小 padding */
    position: relative;
    transition: background 0.5s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* 手机端优化：减小间距 */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 1.2rem; /* 手机端优化：缩小文字 */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px; /* 手机端优化：减小间距 */
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.9rem; /* 手机端优化：缩小文字 */
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--primary-accent);
}

.footer-links a:hover {
    color: var(--primary-accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary-dark);
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    transform: translateY(-5px);
}

.qrcode {
    background: white;
    padding: 10px;
    border-radius: 10px;
    width: 130px; /* 手机端优化：缩小二维码 */
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.qrcode-placeholder {
    width: 110px; /* 手机端优化：缩小占位符 */
    height: 110px;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #999;
    font-size: 0.7rem; /* 手机端优化：缩小文字 */
    text-align: center;
    padding: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px; /* 手机端优化：减小间距 */
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem; /* 手机端优化：缩小文字 */
    max-width: 1200px;
    margin: 30px auto 0;
}

.light-theme .copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 1.5rem; /* 手机端优化：减小间距 */
    font-size: 0.85rem; /* 手机端优化：缩小文字 */
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    margin: 0 6px; /* 手机端优化：减小间距 */
}

/* 分页组件样式 */
.pager {
    margin-top: 1.5rem; /* 手机端优化：减小间距 */
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin-top:20px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* 手机端优化：缩小按钮 */
    height: 32px;
    border-radius: 6px;
    padding: 0;
    margin: 0;
    font-size: 0.85rem; /* 手机端优化：缩小文字 */
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.pagination li a {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.light-theme .pagination li a {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.pagination li a:hover {
    background: rgba(0, 208, 255, 0.1);
    color: var(--primary-accent);
    border-color: rgba(0, 208, 255, 0.2);
    transform: translateY(-1px);
}

.pagination li.active span {
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 208, 255, 0.3);
}

.light-theme .pagination li.active span {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.pagination li.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px; /* 手机端优化：缩小滚动条 */
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--tertiary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 208, 255, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary-accent);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 204, 0.3);
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* 头部区域布局调整 */
.common-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* 手机端优化：减小间距 */
}

.common-hero h1 {
    font-size: 1.5rem !important; /* 手机端优化：缩小文字 */
    margin-bottom: 0 !important;
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left !important;
}

.common-history-button {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 14px; /* 手机端优化：缩小按钮 */
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem; /* 手机端优化：缩小文字 */
    text-decoration: none;
}

.light-theme .common-history-button {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.common-history-button:hover {
    background: rgba(0, 208, 255, 0.1);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.common-hero p {
    text-align: left !important;
    margin: 0 0 20px 0 !important; /* 手机端优化：减小间距 */
    max-width: 100% !important;
    font-size: 1rem; /* 手机端优化：缩小文字 */
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
    }

    .light-theme .mobile-menu-btn {
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-links {
        position: fixed;
        top: 65px; /* 手机端优化：调整菜单位置 */
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        border-radius: 0 0 20px 20px;
        border-top: 1px solid rgba(0, 208, 255, 0.1);
    }

    .light-theme .nav-links {
        background: var(--primary-dark);
        border-top: 1px solid rgba(0, 102, 204, 0.08);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li {
        margin: 10px 0; /* 手机端优化：减小间距 */
    }

    .nav-links li a {
        padding: 10px 25px; /* 手机端优化：调整按钮大小 */
        font-size: 1rem;
        width: 160px;
        justify-content: center;
    }

    .navbar {
        padding: 10px 5%;
    }

    .navbar-actions {
        gap: 8px;
    }

    .user-status {
        padding: 5px 10px !important;
    }
    
    .user-avatar {
        width: 35px !important;
        height: 35px !important;
        margin-right: 8px !important;
    }
    
    .user-info {
        display: none !important; /* 移动端隐藏详细信息 */
    }
    
    .user-dropdown {
        right: -10px !important;
    }

    .vip-level {
        bottom: -2px;
        left: 0;
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .common-hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .common-hero h1 {
        font-size: 1.3rem !important;
    }
    
    .common-history-button {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* 手机端footer专项适配 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 5% 15px; /* 减少上下内边距 */
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 平板/大屏手机显示2列 */
        gap: 25px; /* 缩小间距 */
    }
    
    /* 所有列标题居中 */
    .footer-column h3 {
        text-align: center;
        font-size: 1.1rem; /* 缩小标题 */
        margin-bottom: 15px;
    }
    
    /* 标题下划线居中 */
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 链接文字和图标整体居中 */
    .footer-links a {
        justify-content: center;
        font-size: 0.85rem; /* 缩小文字 */
    }
    
    /* 社交图标居中排列 */
    .social-links {
        justify-content: center;
        gap: 12px; /* 缩小图标间距 */
        margin-top: 15px;
    }
    
    /* 社交图标缩小 */
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    /* 二维码区域居中 */
    .footer-column:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr; /* 小屏手机单列布局 */
        gap: 20px;
    }
    
    /* 列之间添加分隔线 */
    .footer-column:not(:first-child) {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .light-theme .footer-column:not(:first-child) {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* 二维码进一步缩小 */
    .qrcode {
        width: 110px;
        height: 110px;
    }
    
    .qrcode-placeholder {
        width: 90px;
        height: 90px;
        font-size: 0.65rem;
    }
    
    /* 版权信息缩小 */
    .copyright {
        font-size: 0.8rem;
        padding-top: 20px;
        margin-top: 20px;
    }
}



/* 手机端footer中"关于我们"的二维码和文字居中适配 */
@media (max-width: 768px) {
    /* "关于我们"列整体居中 */
    .footer-column:has(.qrcode) {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* 确保二维码容器居中 */
    .footer-column:has(.qrcode) .qrcode {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 二维码下方文字居中（如果有） */
    .footer-column:has(.qrcode) p {
        text-align: center;
        margin-top: 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* 小屏手机进一步优化 */
    .footer-column:has(.qrcode) {
        padding: 0 10px; /* 增加左右内边距避免边缘紧贴 */
    }
    
    .footer-column:has(.qrcode) h3 {
        margin-bottom: 12px; /* 缩小标题与内容间距 */
    }
}


/* 手机端移除.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 .footer-column h3::after {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

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

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

.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;
    padding: 14px 20px !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;
    margin-bottom: 10px !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:#fff;}
.layui-layer-setwin a{margin-left:0;}

