/* 全局样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏 */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #0071e3;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('static/bg1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

/* 主要内容 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 通用部分样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

/* 视频区域 */
.videos-section {
    margin-bottom: 100px;
}

.video-grid {
    display: flex;
    justify-content: center;
}

.apple-video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #000;
    max-width: 600px;
    width: 100%;
}

.apple-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.apple-video {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
}

/* 产品展示 */
.products-section {
    margin-bottom: 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #1d1d1f;
}

.product-description {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 20px;
    padding: 0 20px;
}

.product-details {
    padding: 0 20px 25px;
}

.product-detail-image {
    max-width: 100%;
    height: auto;
}

/* 扫码区域 */
.scan-section {
    margin-bottom: 100px;
    text-align: center;
}

.scan-container {
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f7;
    border-radius: 15px;
}

.scan-image {
    width: 100%;
    height: auto;
}

/* 联系我们 */
.contact-section {
    margin-bottom: 100px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-card {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f7;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.contact-text {
    font-size: 0.9rem;
    color: #86868b;
}

/* 页脚 */
.apple-footer {
    background-color: #f5f5f7;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    color: #86868b;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .products-grid {
        gap: 30px;
    }
    
    .main-content {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav-links {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}