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

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 品牌展示区 - 头部 */
.brand-section {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.brand-logo h1 {
    color: #2c5aa0;
    font-size: 28px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2c5aa0;
}

/* 核心价值宣传区 - Hero */
.hero-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #3a7bd5 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.app-preview {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 20px;
}

/* 通用 section 样式 */
.section-title {
    font-size: 36px;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
}

/* 下载引导区 */
.download-section {
    padding: 80px 0;
    background-color: white;
}

.download-content {
    max-width: 1000px;
    margin: 0 auto;
}

.download-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.qrcode-section {
    flex: 1;
    min-width: 280px;
}

.qrcode-container {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.qrcode-container:hover {
    transform: translateY(-5px);
}

#qrcode {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qrcode-tip {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.device-buttons {
    flex: 1;
    min-width: 350px;
}

.device-buttons {
    text-align: center;
}

.download-button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.android-btn {
    background: linear-gradient(135deg, #3ddc8d 0%, #28a745 100%);
    color: white;
}

.android-btn:hover {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.ios-btn {
    background: linear-gradient(135deg, #ffd478 0%, #ff9800 100%);
    color: white;
}

.ios-btn:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.btn-icon {
    font-size: 30px;
}

.btn-text {
    text-align: left;
}

.btn-main {
    font-size: 22px;
}

.btn-sub {
    font-size: 14px;
    opacity: 0.9;
}

.cancel-link {
    text-align: center;
    color: #666;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.cancel-link:hover {
    color: #3a7bd5;
}

.cancel-link.hidden {
    display: none;
}

.download-progress {
    margin-bottom: 20px;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5aa0 0%, #3a7bd5 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0;
}

.progress-text {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.download-status {
    padding: 15px;
    border-radius: 8px;
    margin: 0 20px;
    font-weight: 500;
}

.download-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.download-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* 安装指南区 */
#guide {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.guide-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.guide-card {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-title {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 30px;
    font-weight: 700;
}

.guide-list {
    list-style: decimal;
    padding-left: 20px;
    font-size: 16px;
    line-height: 2;
}

.guide-list li {
    margin-bottom: 15px;
    color: #555;
}

.guide-list li:last-child {
    margin-bottom: 0;
}

/* 安全保障区 */
.security-section {
    padding: 80px 0;
    background-color: white;
}

.security-content {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.security-item {
    text-align: center;
    max-width: 350px;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.security-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #2c5aa0;
}

.security-title {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 15px;
    font-weight: 700;
}

.security-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* FAQ区域 */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
}

.faq-question:hover {
    background-color: #f0f4f8;
}

.faq-toggle {
    background-color: #2c5aa0;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background-color: #3a7bd5;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px 25px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    background-color: white;
}

.faq-answer p {
    margin: 0;
}

/* 页脚区 */
.footer-section {
    background-color: #2c5aa0;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 36px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: #f0f4f8;
    color: #2c5aa0;
}

.modal-body {
    padding: 30px;
}

.modal-progress {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .qrcode-container {
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .brand-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .download-button {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .btn-main {
        font-size: 20px;
    }
    
    .guide-card {
        padding: 30px;
    }
    
    .faq-question {
        padding: 20px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    #qrcode {
        width: 200px;
        height: 200px;
    }
    
    .download-button {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .btn-text {
        text-align: center;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-section, .download-section, #guide, .security-section, .faq-section {
    animation: fadeInUp 0.6s ease;
}

.download-button {
    animation: pulse 2s infinite;
    animation-delay: 1s;
}

/* 懒加载样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.visible {
    opacity: 1;
}