/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff7f50;
}

.navbar-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #ff7f50;
    background-color: #fff0e6;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
}

/* 英雄区域 */
.hero-section {
    background-color: #ff7f50;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-logo {
        display: none;
    }

    .miniprogram-logo-img {
        width: 150px;
        height: 150px;
        border-radius: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }

    .miniprogram-logo-img:hover {
        transform: scale(1.05);
    }

    .hero-actions {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #fff;
    color: #ff7f50;
}

.btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-download {
    background-color: #ff7f50;
    color: #fff;
    margin-top: 10px;
}

.btn-download:hover {
    background-color: #ff6347;
    transform: translateY(-2px);
}

/* 功能特点区域 */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-description {
    color: #666;
    font-size: 16px;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.download-item {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.download-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.download-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.download-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
    border: 1px solid #eee;
    padding: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qrcode-img:hover {
    transform: scale(1.05);
}

/* 二维码放大样式 */
.qrcode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.qrcode-zoom-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.qrcode-zoomed-img {
    max-width: 80%;
    max-height: 80%;
    border: 10px solid #fff;
    background-color: #fff;
    opacity: 0;
    animation: zoomIn 0.3s ease forwards;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 联系我们区域 */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff7f50;
}

.contact-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.contact-value {
    color: #666;
    font-size: 18px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    font-size: 14px;
    opacity: 0.8;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-info a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav {
        gap: 10px;
    }

    .nav-item {
        font-size: 14px;
        padding: 6px 10px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .download-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
}