/* CSS变量定义 - 支持明暗主题 */
:root {
    /* 明亮主题 */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #00C6FF;
    
    /* 文本颜色 */
    --text-color: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    
    /* 边框和分割线 */
    --border-color: #e2e8f0;
    --divider-color: rgba(0, 0, 0, 0.1);
    
    /* 阴影 */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 暗色主题 */
@media (prefers-color-scheme: dark) {
    :root {
        /* 暗色主题颜色调整 */
        --primary-color: #7c3aed;
        --primary-dark: #6d28d9;
        --secondary-color: #8b5cf6;
        --accent-color: #06b6d4;
        
        /* 文本颜色 */
        --text-color: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-light: #cbd5e0;
        --text-white: #ffffff;
        
        /* 背景颜色 */
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --bg-tertiary: #4a5568;
        --bg-overlay: rgba(45, 55, 72, 0.95);
        
        /* 边框和分割线 */
        --border-color: #4a5568;
        --divider-color: rgba(255, 255, 255, 0.1);
        
        /* 阴影 */
        --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
        
        /* 渐变 */
        --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
        --gradient-bg: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    }
}

/* 强制暗色模式类 */
.dark-theme {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    
    --text-color: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-light: #cbd5e0;
    --text-white: #ffffff;
    
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    --bg-overlay: rgba(45, 55, 72, 0.95);
    
    --border-color: #4a5568;
    --divider-color: rgba(255, 255, 255, 0.1);
    
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-bg: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 1001;
    padding: 20px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

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

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin-top: 60px;
}

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

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-menu-links a i {
    margin-right: 12px;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.overlay.active {
    display: block;
}

/* 主要内容区域 */
.main {
    padding: 80px 0 20px 0;
    background: var(--gradient-bg);
    min-height: 100vh;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
}

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

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 50px 30px;
    background: var(--gradient-hero);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 40px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 2.5rem;
    color: #ffffff !important;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ffffff !important;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    text-transform: none;
}

.btn::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: left 0.5s;
    border-radius: inherit;
}

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

.btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 35px;
}

/* 信息区块 */
.info-section {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.info-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 25px;
    border-radius: 20px;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    background: var(--bg-primary);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    color: var(--text-white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.feature-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 使用指南 */
.usage-guide .feature-item {
    text-align: left;
}

.usage-guide h3 {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.usage-guide h3 i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.usage-guide ol {
    padding-left: 20px;
    color: var(--text-secondary);
}

.usage-guide li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 扫码区域 */
.scan-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.scan-container {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.scan-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.scan-title i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.5em;
}

.scan-steps {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.scan-steps ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-color) !important;
}

.scan-steps li {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color) !important;
    font-weight: 500;
    position: relative;
}

.scan-steps li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

/* 二维码样式 */
#qrcode {
    display: none;
    position: relative;
    width: 300px;
    height: 300px;
    margin: 30px auto;
}

.qrcode-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 8px rgba(255, 255, 255, 0.8),
        0 0 0 12px var(--primary-color);
    border: 4px solid var(--bg-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-theme .qrcode-container {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(45, 55, 72, 0.8),
        0 0 0 12px var(--primary-color);
}

.qrcode-container:hover {
    transform: scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(255, 255, 255, 0.9),
        0 0 0 12px var(--primary-color);
}

.qrcode-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#miniproQrCode {
    max-width: 220px;
    max-height: 220px;
    border-radius: 12px;
}

/* 进度环 */
.progress-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    z-index: 2;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    fill: transparent;
    stroke: var(--primary-color);
    stroke-width: 6px;
    stroke-dasharray: 890;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
    stroke-linecap: round;
}

/* 状态蒙版 */
.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
}

.qrcode-overlay img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--bg-primary);
    padding: 15px;
}

.qrcode-overlay span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dark-theme .qrcode-overlay span {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.overlay-cancel span {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.overlay-scan span {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.overlay-success span {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.overlay-expire span {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* 状态蒙版动画 */
.qrcode-overlay.show {
    animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 生成按钮特殊样式 */
#createQrcode {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    margin: 20px 0;
}

#createQrcode:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

#createQrcode:active {
    transform: translateY(-1px);
}

#createQrcode:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 状态文本 */
#status {
    display: none;
    margin-top: 25px;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-theme #status {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--primary-color);
}

/* 用户信息区域 */
#userinfo {
    display: none;
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

#userinfo h3 {
    display: flex;
    align-items: center;
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

#userinfo h3 i {
    margin-right: 12px;
    color: var(--primary-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: block;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.user-item:last-child {
    border-bottom: none;
}

.user-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.user-item span:last-child {
    color: var(--text-color);
    font-weight: 600;
}

/* 底部区域 */
.footer {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    gap: 40px;
}

.footer-about, .footer-contact {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer h3 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.copyright p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 加载动画 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* 导航链接样式 */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.nav-links a span {
    position: relative;
    z-index: 1;
}

.nav-links a:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 40px 20px;
        margin: 0 10px 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .info-section {
        padding: 30px 20px;
        margin: 0 10px 30px;
    }
    
    .info-section h2 {
        font-size: 1.6rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .scan-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .scan-container, #userinfo {
        max-width: 100%;
        min-width: auto;
    }
    
    /* 移动端二维码适配 */
    #qrcode {
        width: 280px;
        height: 280px;
        margin: 25px auto;
    }
    
    .qrcode-container {
        width: 280px;
        height: 280px;
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.1),
            0 0 0 6px rgba(255, 255, 255, 0.8),
            0 0 0 10px var(--primary-color);
    }
    
    .dark-theme .qrcode-container {
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.3),
            0 0 0 6px rgba(45, 55, 72, 0.8),
            0 0 0 10px var(--primary-color);
    }
    
    .progress-ring {
        top: -6px;
        left: -6px;
        width: 292px;
        height: 292px;
    }
    
    .progress-ring__circle {
        stroke-width: 5px;
        stroke-dasharray: 890;
        r: 140;
        cx: 146;
        cy: 146;
    }
    
    #miniproQrCode {
        max-width: 200px;
        max-height: 200px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .scan-container {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .scan-title {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-about, .footer-contact {
        min-width: auto;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 30px 15px;
        margin: 0 5px 25px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .info-section {
        padding: 25px 15px;
        margin: 0 5px 25px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    /* 小屏幕二维码适配 */
    #qrcode {
        width: 260px;
        height: 260px;
        margin: 20px auto;
    }
    
    .qrcode-container {
        width: 260px;
        height: 260px;
        box-shadow: 
            0 12px 25px rgba(0, 0, 0, 0.1),
            0 0 0 5px rgba(255, 255, 255, 0.8),
            0 0 0 8px var(--primary-color);
    }
    
    .dark-theme .qrcode-container {
        box-shadow: 
            0 12px 25px rgba(0, 0, 0, 0.3),
            0 0 0 5px rgba(45, 55, 72, 0.8),
            0 0 0 8px var(--primary-color);
    }
    
    .progress-ring {
        top: -5px;
        left: -5px;
        width: 270px;
        height: 270px;
    }
    
    .progress-ring__circle {
        stroke-width: 4px;
        stroke-dasharray: 820;
        r: 130;
        cx: 135;
        cy: 135;
    }
    
    #miniproQrCode {
        max-width: 180px;
        max-height: 180px;
        border-radius: 12px;
    }
    
    .scan-steps {
        padding: 20px;
        border-radius: 16px;
    }
    
    .scan-container {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .scan-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
        border-radius: 30px;
    }
    
}


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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-white);
}

/* 焦点样式 */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }
    
    .dark-theme {
        --text-color: #ffffff;
        --text-secondary: #cccccc;
        --bg-primary: #000000;
        --border-color: #ffffff;
    }
}

/* 打印样式 */
@media print {
    .mobile-menu,
    .mobile-menu-btn,
    .overlay,
    .theme-toggle,
    #qrcode,
    .btn {
        display: none !important;
    }
    
    .hero,
    .info-section,
    .footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
