/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switch {
    display: flex;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.lang-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.lang-btn:hover:not(.active) {
    background: #e0e0e0;
    color: #333;
}

/* 主内容样式 */
main {
    flex: 1;
    padding: 60px 40px;
}

.content-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.contact-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
}

.email-link {
    display: inline-block;
    font-size: 1.2rem;
    color: #667eea;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid #667eea;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.email-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* 二维码部分 */
.qr-section {
    text-align: center;
    margin-bottom: 60px;
}

.qr-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#qr-image:hover {
    transform: scale(1.05);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
}

.qr-placeholder p {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    padding: 20px;
    line-height: 1.4;
}

/* 功能特性部分 */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
}

/* 页脚样式 */
footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    header {
        padding: 15px 20px;
    }
    
    main {
        padding: 40px 20px;
    }
    
    .content-section h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .contact-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .lang-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    #qr-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
    
    footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .content-section h1 {
        font-size: 1.5rem;
    }
    
    .contact-section h2,
    .qr-section h2,
    .features-section h2 {
        font-size: 1.5rem;
    }
    
    .email-link {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

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

.content-section > * {
    animation: fadeIn 0.6s ease-out;
}

.contact-section {
    animation-delay: 0.2s;
}

.qr-section {
    animation-delay: 0.4s;
}

.features-section {
    animation-delay: 0.6s;
}