/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 保留一些旧的变量名作为别名，以保持兼容性 */
    --pure-blue: var(--primary-color);
    --pure-green: var(--success-color);
    --pure-purple: #7c4dff;
    --pure-orange: var(--warning-color);
    --pure-red: var(--error-color);
    
    /* 渐变色 - 保留变量名但使用纯色（向后兼容） */
    --gradient-blue: var(--primary-color);
    --gradient-green: var(--success-color);
    --gradient-cyan: var(--primary-color);
    --gradient-purple: #7c4dff;
    --gradient-orange: var(--warning-color);
    --gradient-red: var(--error-color);
    
    /* 兼容旧的变量名 */
    --gray-black: var(--dark-color);
    --gray-dark: var(--text-primary);
    --gray-medium: var(--text-secondary);
    --gray-light: var(--border-color);
    --gray-lighter: var(--bg-secondary);
    --text-color: var(--text-primary);
    --danger-color: var(--error-color);
    --bg-color: var(--bg-secondary);
    --white: var(--text-white);
    --shadow: var(--shadow-sm);
    --shadow-hover: var(--shadow-md);
    
    /* 强调色兼容（之前使用的accent现在没有了，映射到secondary） */
    --accent-color: var(--secondary-color);
    --accent-hover: var(--secondary-hover);
    --accent-light: var(--secondary-light);
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333; /* 固定的文字颜色，不随主题变化 */
    background-color: var(--bg-secondary); /* 背景色跟随主题变化 */
    transition: background-color 0.3s ease; /* 移除color的过渡，因为文字色不变 */
}

/* 公共导航栏 - 默认白色背景 */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

/* 透明状态的导航栏 */
.navbar.transparent {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

/* 白色logo(用于透明背景) */
.navbar-logo .logo-white {
    display: none;
}

/* 深色logo(用于白色背景) */
.navbar-logo .logo-dark {
    display: block;
}

/* 透明状态时切换logo */
.navbar.transparent .navbar-logo .logo-white {
    display: block;
}

.navbar.transparent .navbar-logo .logo-dark {
    display: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.navbar-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 0;
    display: block;
    position: relative;
}

/* 透明状态时菜单文字为白色 */
.navbar.transparent .navbar-menu a {
    color: var(--white);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

/* 透明状态时下划线也为白色 */
.navbar.transparent .navbar-menu a::after {
    background: var(--white);
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

/* 透明状态时悬停保持白色 */
.navbar.transparent .navbar-menu a:hover {
    color: var(--white);
    opacity: 0.8;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    transform: scaleX(1);
}

/* ==================== 导航栏激活状态样式 ==================== */
/* 激活状态的导航链接 */
.navbar-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 透明状态时激活的菜单项 */
.navbar.transparent .navbar-menu a.active {
    color: var(--white);
    font-weight: 600;
}

/* 激活状态不受悬停影响 */
.navbar-menu a.active:hover {
    color: var(--primary-color);
}

.navbar.transparent .navbar-menu a.active:hover {
    color: var(--white);
    opacity: 1;
}

.navbar-login {
    padding: 10px 28px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    font-weight: 500;
}

/* 透明状态时登录按钮为白色边框样式 - 边框变细 */
.navbar.transparent .navbar-login {
    background: transparent;
    border: 1px solid var(--white); /* 从2px改为1px */
    color: var(--white);
}

.navbar-login:hover {
    background: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 144, 255, 0.25);
}

.navbar.transparent .navbar-login:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
    transition: color 0.3s;
}

/* 透明状态时汉堡菜单为白色 */
.navbar.transparent .navbar-toggle {
    color: var(--white);
}

/* ==================== 用户菜单样式(修改后 - 去掉边框) ==================== */
.user-menu {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0; /* 去掉padding */
    background: transparent;
    border: none; /* 去掉边框 */
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-color);
}

/* 透明状态时用户按钮样式 */
.navbar.transparent .user-avatar-btn {
    color: var(--white);
}

.user-avatar-btn:hover {
    opacity: 0.8; /* 悬停时降低透明度 */
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* 导航栏头像占位符（字母显示） */
.user-avatar-placeholder-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.navbar.transparent .user-avatar {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar.transparent .user-avatar-placeholder-nav {
    border-color: rgba(255, 255, 255, 0.5);
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.user-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

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

/* 用户下拉菜单头部 */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-dropdown-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* 下拉菜单中的头像占位符 */
.user-avatar-placeholder-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.user-name-compact {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.user-email-compact {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 用户下拉菜单项 */
.user-dropdown-menu {
    padding: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.user-dropdown-item .icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

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

.logout-item:hover {
    color: var(--danger-color);
}

/* 退出表单样式 */
.logout-form {
    margin: 0;
    padding: 0;
}

.logout-form button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    border-radius: 0 0 8px 8px;
}

.logout-form button:hover {
    background: #f5f7fa;
    color: var(--danger-color);
}

/* 公共底部 */
.footer {
    background: linear-gradient(180deg, #001529 0%, #000d1a 100%);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 20px 30px;
    margin-top: 0;
    position: relative;
}

/* 底部装饰元素 - 移除紫色线条 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section ul li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px; 
}

/* 公众号二维码区域 */
.footer-qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.footer-qrcode-section h3 {
    margin-bottom: 15px;
}

.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
    margin-top: auto;
}

.footer-qrcode:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.footer-qrcode:hover img {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.qrcode-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
}

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

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    /* 移除这里的animation，改为通过类名控制 */
}

/* 只在模态框首次打开时添加滑入动画 */
.modal-content.modal-slide-in {
    animation: modalSlideIn 0.3s ease-out;
}

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

/* ==================== 登录框晃动动画 ==================== */
@keyframes modalShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

.modal-content.shake {
    animation: modalShake 0.3s ease-in-out;
}

/* ==================== 微信扫码提示样式 ==================== */
.wechat-scan-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wechat-scan-tip::before {
    content: '📱';
    font-size: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-title {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input.error {
    border-color: var(--danger-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
    padding: 12px;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 卡片 */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
    color: #333333;  /* 固定颜色，不随主题变化 */
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    align-items: center;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    min-width: 40px;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

/* 客服悬浮窗(标签式) */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1500;
}

.service-toggle {
    width: 60px;
    height: 60px;
    background: var(--chat-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    color: var(--white);
}

.service-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    background: var(--primary-hover);
}

.service-toggle span:first-child {
    font-size: 24px;
    line-height: 1;
}

.service-toggle-text {
    font-size: 12px;
    margin-top: 2px;
    font-weight: 500;
}

.service-panel {
    position: absolute;
    right: 0;
    bottom: 75px;
    width: 340px;
    background: var(--chat-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.customer-service.active .service-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.service-panel-header {
    background: var(--chat-primary);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

/* 标签导航 */
.service-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.service-tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.service-tab:hover {
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.service-tab.active {
    color: var(--primary-color);
    background: var(--chat-bg);
}

.service-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* 标签内容区 */
.service-content {
    max-height: 420px;
    overflow-y: auto;
}

.service-tab-pane {
    display: none;
    padding: 25px;
    animation: fadeIn 0.3s;
}

.service-tab-pane.active {
    display: block;
}

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

/* 微信公众号样式 */
.service-official {
    text-align: center;
}

.service-official-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-official-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
}

.service-official-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.service-official-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 12px 0;
    text-align: center;
    letter-spacing: 1px;
}

.service-official-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* 客服样式 */
.service-agent-card {
    text-align: center;
}

.service-agent-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-agent-qr {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    background: var(--primary-lighter);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
}

.service-agent-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.service-agent-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0 auto;
    max-width: 200px;
}

.service-agent-wechat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.service-agent-wechat-id {
    font-size: 14px;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.service-agent-tip {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== 平板端底部优化 (481px - 768px) ==================== */
@media (min-width: 481px) and (max-width: 768px) {
    .footer {
        padding: 50px 20px 25px;
        margin-top: 60px;
    }

    /* 平板端显示2栏 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 25px;
        margin-bottom: 35px;
    }

    .footer-section {
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 10px;
        border-left: 3px solid transparent;
        transition: all 0.3s;
    }

    .footer-section:hover {
        background: rgba(255, 255, 255, 0.05);
        border-left-color: #667eea;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }

    .footer-section a,
    .footer-section ul li:not(:has(a)) {
        font-size: 13px;
    }

    /* 二维码区域平板端优化 */
    .footer-qrcode {
        padding: 8px;
        gap: 6px;
    }

    .footer-qrcode img {
        width: 130px;
        height: 130px;
    }

    .qrcode-text {
        font-size: 11px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }
}

/* ==================== 移动端底部优化 (最大 480px) ==================== */
@media (max-width: 480px) {
    .footer {
        padding: 40px 15px 20px;
        margin-top: 50px;
    }

    /* 小屏手机显示2栏 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
        margin-bottom: 30px;
    }

    .footer-section {
        background: rgba(255, 255, 255, 0.03);
        padding: 15px 12px;
        border-radius: 8px;
        border-top: 2px solid transparent;
        transition: all 0.3s;
    }

    .footer-section:hover {
        background: rgba(255, 255, 255, 0.05);
        border-top-color: #667eea;
    }

    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .footer-section h3::after {
        width: 20px;
        height: 2px;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-section ul li {
        margin-bottom: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-section a,
    .footer-section ul li:not(:has(a)) {
        font-size: 12px;
    }

    /* 联系方式特殊处理 - 图标缩小 */
    .footer-section:last-child ul li {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        line-height: 1.6;
    }

    /* 二维码区域移动端优化 */
    .footer-qrcode {
        padding: 10px;
        gap: 6px;
    }

    .footer-qrcode img {
        width: 110px;
        height: 110px;
    }

    .qrcode-text {
        font-size: 11px;
    }

    .footer-bottom {
        padding-top: 15px;
        font-size: 11px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.5);
    }

    .footer-bottom p {
        margin: 0;
    }
}

/* ==================== 移动端快捷联系按钮 ==================== */
.footer-quick-contact {
    display: none;
}

@media (max-width: 768px) {
    .footer-quick-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 30px;
        padding: 0;
    }

    .footer-quick-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 10px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        transition: all 0.3s;
    }

    .footer-quick-btn:hover,
    .footer-quick-btn:active {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        color: white;
    }

    .footer-quick-btn span:first-child {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-quick-contact {
        gap: 10px;
        margin-bottom: 25px;
    }

    .footer-quick-btn {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    .footer-quick-btn span:first-child {
        font-size: 16px;
    }
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 150px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-hover);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        height: 70px;
    }

    .navbar-logo {
        font-size: 22px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
    }

    .navbar-menu.active {
        display: flex;
    }

    /* ==================== 修复:移动端菜单文字显示问题 ==================== */
    /* 移动端菜单展开时文字颜色强制为深色 */
    .navbar-menu.active a {
        color: var(--text-color) !important;
    }

    /* 移动端激活状态样式 */
    .navbar-menu.active a.active {
        color: var(--primary-color) !important;
        font-weight: 600;
    }

    /* 修复:透明状态下移动端展开菜单的文字颜色 */
    .navbar.transparent .navbar-menu.active a {
        color: var(--text-color) !important;
    }

    .navbar.transparent .navbar-menu.active a.active {
        color: var(--primary-color) !important;
        font-weight: 600;
    }

    .navbar-menu a {
        font-size: 15px;
        padding: 10px 0;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-login {
        padding: 8px 20px;
        font-size: 14px;
    }

    /* 移动端用户菜单 */
    .user-avatar-btn {
        gap: 8px;
        font-size: 13px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .user-name {
        max-width: 80px;
        font-size: 13px;
    }

    .user-dropdown {
        right: -10px;
        min-width: 180px;
    }

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

    /* 移动端底部导航栏改为2栏2行显示 */
    .footer-content { 
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }

    /* 移动端底部section样式优化 */
    .footer-section {
        background: rgba(255, 255, 255, 0.03);
        padding: 18px 15px;
        border-radius: 10px;
        border-left: 3px solid transparent;
        transition: all 0.3s;
    }

    .footer-section:hover {
        background: rgba(255, 255, 255, 0.05);
        border-left-color: #667eea;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .footer-section a {
        font-size: 13px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination button {
        padding: 8px 10px;
        min-width: 36px;
        font-size: 13px;
    }

    .pagination button:first-child::before {
        content: '‹';
        font-size: 18px;
    }

    .pagination button:last-child::before {
        content: '›';
        font-size: 18px;
    }

    .pagination button:first-child,
    .pagination button:last-child {
        font-size: 0;
        padding: 8px 12px;
    }

    .pagination button:first-child::before,
    .pagination button:last-child::before {
        font-size: 18px;
    }

    /* 移动端客服悬浮窗 */
    .customer-service {
        right: 15px;
        bottom: 60px;
    }

    .service-toggle {
        width: 55px;
        height: 55px;
    }

    .service-toggle span:first-child {
        font-size: 22px;
    }

    .service-toggle-text {
        font-size: 11px;
    }

    .service-panel {
        width: calc(100vw - 40px);
        max-width: 340px;
        right: -10px;
    }

    .service-tab {
        padding: 10px 8px;
        font-size: 13px;
    }

    .service-tab-pane {
        padding: 20px;
    }

    .back-to-top {
        right: 15px;
        bottom: 130px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .navbar-container {
        height: 75px;
    }

    .navbar-logo {
        font-size: 24px;
    }

    .navbar-menu {
        gap: 25px;
    }

    .navbar-menu a {
        font-size: 15px;
    }

    .navbar-login {
        padding: 9px 24px;
        font-size: 14px;
    }

    .user-avatar-btn {
        gap: 9px;
        font-size: 13px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 12px;
        bottom: 120px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* ==================== 主题切换器样式 ==================== */
.theme-switcher {
    position: relative;
    margin-right: 20px;
}

.theme-switcher-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.theme-switcher-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--border-color);
}

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

.theme-dropdown-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.theme-option:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.theme-option.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(40, 120, 255, 0.2);
}

.theme-preview {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.theme-preview span {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .theme-switcher {
        margin-right: 10px;
    }
    
    .theme-dropdown {
        min-width: 240px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .theme-switcher-btn {
        width: 36px;
        height: 36px;
    }
    
    .theme-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: auto;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
}
