:root {
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --accent-color: #8b5cf6;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --background-color: #f0f9ff;
    --card-background: #ffffff;
    --border-radius: 16px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-hero: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

html {
    scroll-behavior: smooth;
}

/* 公共返回按钮 */
.go-back { display:inline-block; margin-bottom:24px; color:var(--primary-color); text-decoration:none; font-weight:600; font-size:0.95rem; }
.go-back:hover { text-decoration:underline; }

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

body {
    background-color: var(--background-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航栏样式 */
header {
    height: 72px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    transition: var(--transition);
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
}

/* 登录框 start */
.login-modal {
    background-color: rgba(15, 23, 42, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-container {
    background: white;
    border-radius: 20px;
    width: 480px;
    min-height: 450px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.login-header {
    background: var(--gradient-primary);
    color: white;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.login-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.qr-section,
.phone-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.qr-code:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.qr-refresh {
    color: var(--gray-color);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.qr-refresh:hover {
    color: var(--primary-color);
}

.input-group {
    width: 100%;
    margin-bottom: 24px;
}

.input-field {
    width: 100%;
    margin-bottom: 16px;
}

.code-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.el-input__inner {
    border-color: var(--light-gray);
    border-radius: 12px;
    font-size: 14px;
    padding: 12px 16px;
    transition: var(--transition);
}

.el-input__inner:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.el-button--primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.el-button--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3) !important;
}

.login-btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    font-size: 16px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--gray-color);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--light-gray);
    position: relative;
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

.login-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-color);
    padding: 12px;
    border-radius: 12px;
}

.method-btn:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
    background-color: rgba(14, 165, 233, 0.05);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    margin-bottom: 12px;
    font-size: 24px;
    transition: var(--transition);
}

.method-btn:hover .method-icon {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 24px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-color);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-item:hover {
    color: var(--primary-color);
}
/* 登录框 end */

/* 悬浮按钮容器 */
.floating-buttons {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

/* 基础悬浮按钮样式 */
.floating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

/* 按钮悬停效果 */
.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.4);
}

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

/* 返回顶部按钮的背景色 */
.back-to-top-button {
    background: var(--gradient-accent);
}

/* 客服信息弹出框 */
.contact-info {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 16px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

/* 弹出框显示状态 */
.contact-info.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 弹出框标题 */
.contact-info h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--dark-color);
    font-size: 18px;
    font-weight: 600;
}

/* 二维码图片样式 */
.contact-info .qr-code {
    width: 100%;
    height: auto;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: none;
    transition: none;
}

/* 联系电话样式 */
.contact-phone {
    font-size: 16px;
    color: var(--gray-color);
    text-align: center;
    font-weight: 500;
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 32px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

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

.footer-section {
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

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

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 16px;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    transform: translateX(8px);
}

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

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .login-container {
        width: 90%;
        max-width: 400px;
    }
    
    .floating-buttons {
        bottom: 24px;
        right: 24px;
    }
    
    .floating-button {
        width: 50px;
        height: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ========================================
   新版页脚 - 暗色科技主题 (覆盖旧 footer 样式)
   ======================================== */

/* 重置旧 footer 标签的全局样式 */
footer.site-footer,
footer {
    background: #0a0f1e !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 64px 0 0 !important;
    margin-top: 0 !important;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    --dark-color: #0a0f1e;
}

/* 覆盖旧 footer::before */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px !important;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #22d3ee) !important;
    z-index: 1;
}

/* 背景光晕装饰 */
footer.site-footer::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

/* 覆盖旧 .footer-content 网格 */
.footer-container,
.footer-content {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
    gap: 48px !important;
}

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 160px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0;
}

/* 覆盖旧 .footer-section h3 */
.footer-heading,
.footer-section h3 {
    font-size: 15px !important;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin: 0 0 16px !important;
    padding-bottom: 10px !important;
    position: relative;
    letter-spacing: 0.3px;
}

.footer-heading::after,
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #6366f1, #06b6d4) !important;
    border-radius: 2px;
}

.footer-heading-sub {
    margin-top: 24px;
}

/* 覆盖旧 .footer-section a 样式 (移除旧 → 箭头) */
.footer-links,
.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
}

.footer-links li,
.footer-section ul li {
    margin-bottom: 8px !important;
}

.footer-links a,
.footer-section a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    display: inline-block !important;
    padding: 3px 0 !important;
    padding-left: 0 !important;
    transition: all 0.3s ease;
    position: relative;
}

/* 移除旧 a::before 箭头 */
.footer-links a::before,
.footer-section a::before {
    content: '' !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transition: width 0.3s ease;
    top: auto;
}

.footer-links a:hover,
.footer-section a:hover {
    color: #e2e8f0 !important;
    transform: translateX(6px) !important;
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.3) !important;
}

.footer-links a:hover::before {
    width: 100%;
}

/* 覆盖旧 .copyright */
.footer-copyright,
.copyright {
    margin-top: 48px !important;
    padding: 20px 40px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: center !important;
}

.footer-copyright p,
.copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35) !important;
    margin: 0;
}

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

.footer-copyright a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* 页脚响应式 */
@media (max-width: 1024px) {
    .footer-container,
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
    .footer-about {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-container,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 640px) {
    .site-footer,
    footer {
        padding-top: 48px !important;
    }
    .footer-container,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 0 24px !important;
    }
    .footer-logo { width: 140px; }
    .footer-title { font-size: 18px; }
    .footer-heading,
    .footer-section h3 { font-size: 14px !important; }
    .footer-copyright,
    .copyright { padding: 16px 24px !important; margin-top: 32px !important; }
}