/**
 * 全局样式文件
 * 合并了 base.css、navigation.css、styles.css、components.css
 * 包含：CSS变量、重置样式、基础元素样式、导航栏、按钮组件等
 */

/* ==================== CSS变量 ==================== */
:root {
    /* 主色调 */
    --primary-color: #0891b2;
    --primary-light: #22d3ee;
    --primary-dark: #0e7490;
    
    /* 辅助色 */
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* 边框颜色 */
    --border-color: #e5e7eb;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3.5rem;
    --spacing-3xl: 4rem;
    
    /* 字体 */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== HTML基础样式 ==================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ==================== 容器样式 ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== 文本样式 ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ==================== 章节通用样式 ==================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gradient-primary);
    color: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 滚动进度指示器 ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(8, 145, 178, 0.5);
}

/* ==================== 头部样式 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(8, 145, 178, 0.08);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 8px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(8, 145, 178, 0.12);
    padding: 0.5rem 0;
}

.header.scrolled .navbar {
    padding: 0.75rem 0;
}

/* ==================== 导航栏样式 ==================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 0;
    position: relative;
}

/* ==================== Logo样式 ==================== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: all var(--transition-normal);
}

.logo::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height var(--transition-normal);
}

.logo:hover::before {
    height: 80%;
}

.logo i {
    font-size: 1.875rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(8, 145, 178, 0.3));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(8, 145, 178, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(8, 145, 178, 0.5));
    }
}

/* ==================== 导航链接 ==================== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

/* ==================== 头部操作区 ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.phone-btn:hover::before {
    left: 100%;
}

.phone-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.phone-btn i {
    font-size: 1.125rem;
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

/* ==================== 移动端菜单按钮 ==================== */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.mobile-menu-btn:hover::before {
    width: 150%;
    height: 150%;
}

.mobile-menu-btn:hover {
    color: white;
    transform: scale(1.05);
}

.mobile-menu-btn i {
    position: relative;
    z-index: 1;
}

/* ==================== 移动端菜单 ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    transition: left var(--transition-normal);
    z-index: 1001;
    padding: var(--spacing-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 优化移动端菜单滚动条样式 */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 2px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mobile-nav-links a i {
    font-size: 1.125rem;
    color: var(--primary-light);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

/* 移动端菜单页脚 */
.mobile-menu-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

.mobile-menu-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-phone i {
    font-size: 1.25rem;
}

/* ==================== 遮罩层 ==================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== 按钮组件样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

/* 按钮变体 */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-secondary);
    color: var(--primary-dark);
}

/* 按钮尺寸 */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* 按钮状态 */
.btn:active {
    transform: translateY(0);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==================== 工具类 ==================== */
/* 文本对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 文本颜色 */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--text-white); }

/* 间距工具类 */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* 显示/隐藏 */
.d-none { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

/* Flex工具类 */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* 宽度 */
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-links {
        display: none;
    }

    .phone-btn {
        display: none;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
}

/* ==================== Hero区域样式 ==================== */
/* Hero 样式已移至各页面的独立样式文件中，以避免样式冲突 */

/* ==================== 底部栏样式 ==================== */
/**
 * 底部栏主容器
 * 包含装饰背景、渐变效果和响应式布局
 * 优化：减少内边距，使底部栏更紧凑
 */
.footer {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    overflow: hidden;
}

/**
 * 底部栏顶部装饰条
 * 渐变色装饰，增强视觉效果
 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--secondary-color) 50%, var(--primary-light) 100%);
}

/**
 * 底部栏背景装饰
 * 右侧圆形渐变装饰，增加层次感
 */
.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/**
 * 底部栏内容容器
 * 使用 Grid 布局，自适应列宽
 * 优化：减少底部间距，调整列宽比例
 */
.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/**
 * 底部栏区块标题
 * 优化：减少底部间距
 */
.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

/**
 * 底部栏描述文本
 */
.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/**
 * 底部栏 Logo
 * 优化：减少底部间距和字体大小
 */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-logo i {
    color: var(--primary-light);
    font-size: 1.5rem;
}

/**
 * 底部栏描述
 * 优化：减少底部间距和行高
 */
.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/**
 * 底部栏链接列表
 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

.footer-links a i {
    font-size: 0.875rem;
}

/**
 * 底部栏联系方式
 * 优化：减少联系方式项的间距
 */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-contact-item i {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-contact-item p,
.footer-contact-item span {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.9375rem;
}

/**
 * 底部栏社交媒体链接
 */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/**
 * 底部栏二维码区域
 * 优化：缩小二维码图片尺寸，减少间距
 */
.qr-codes {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-code-img {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    padding: 4px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qr-code-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.qr-code-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    text-align: center;
    font-weight: 500;
}

/**
 * 底部栏底部区域
 * 优化：减少顶部和底部间距
 */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/**
 * 返回顶部按钮
 */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.5);
}

/**
 * 底部栏响应式设计
 * 优化：移动端保持紧凑布局
 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* 平板设备 (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .qr-codes {
        justify-content: center;
    }
    
    .qr-code-img {
        width: 80px;
        height: 80px;
    }
    
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 45px;
        height: 45px;
    }
}

/* 手机设备 (480px及以下) - 进一步优化 */
@media (max-width: 480px) {
    /* 减少整体内边距 */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    /* 调整内容间距 - 改为2列布局，节省空间 */
    .footer-content {
        gap: var(--spacing-sm);
        grid-template-columns: 1fr 1fr;
    }

    /* Logo和描述占满整行 */
    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    /* 优化Logo和描述 */
    .footer-logo {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }

    .footer-logo i {
        font-size: 1.25rem;
    }

    .footer-description {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
        /* 限制显示行数 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 隐藏社交媒体链接，减少视觉干扰 */
    .social-links {
        display: none;
    }

    /* 优化区块标题 */
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }

    /* 优化链接列表 */
    .footer-links li {
        margin-bottom: var(--spacing-xs);
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    /* 优化联系方式 */
    .footer-contact li {
        margin-bottom: var(--spacing-xs);
    }

    .footer-contact i {
        font-size: 0.875rem;
    }

    .footer-contact span {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    /* 简化地址显示 */
    .footer-contact li:nth-child(3) span {
        /* 限制地址显示行数 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 优化二维码区域 */
    .qr-codes {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xs);
    }

    .qr-code-img {
        width: 70px;
        height: 70px;
    }

    .qr-code-label {
        font-size: 0.75rem;
    }

    /* 优化底部版权信息 */
    .footer-bottom {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* 优化返回顶部按钮 */
    .back-to-top {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/**
 * 二维码弹窗模态框样式
 */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: var(--spacing-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

.qr-modal-overlay.active .qr-modal {
    transform: scale(1) translateY(0);
}

.qr-modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.qr-modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.qr-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.qr-modal-image {
    width: 200px;
    height: 200px;
    margin: var(--spacing-md) auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.qr-modal-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.qr-modal-description i {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
}

/**
 * 二维码弹窗响应式设计
 */
@media (max-width: 480px) {
    .qr-modal {
        padding: var(--spacing-lg);
        max-width: 320px;
    }

    .qr-modal-title {
        font-size: 1.25rem;
    }

    .qr-modal-image {
        width: 180px;
        height: 180px;
    }

    .qr-modal-description {
        font-size: 0.875rem;
    }

    .qr-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.125rem;
    }
}