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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0071e3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0071e3;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn, .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.search-btn:hover, .cart-btn:hover {
    color: #0071e3;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    transition: 0.3s;
    border-radius: 2px;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6e6e73;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #0071e3;
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0071e3;
    border: 2px solid #0071e3;
}

.btn-secondary:hover {
    background: #0071e3;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-outline:hover {
    background: #1d1d1f;
    color: white;
}

/* 产品模型样式 */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 180px;
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.earbuds-mockup {
    position: relative;
    width: 300px;
    height: 200px;
}

.earbud {
    width: 40px;
    height: 60px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 20px 20px 10px 10px;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.earbud.left {
    top: 20px;
    left: 80px;
    animation: float 4s ease-in-out infinite;
}

.earbud.right {
    top: 20px;
    right: 80px;
    animation: float 4s ease-in-out infinite 2s;
}

.case {
    width: 120px;
    height: 60px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 30px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 产品展示区域 */
.products {
    padding: 100px 0;
    background: #fbfbfd;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #d2d2d7;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1d1d1f;
    color: white;
    border-color: #1d1d1f;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.phone-preview {
    width: 80px;
    height: 160px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.phone-preview::after {
    content: '';
    width: 70px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    position: absolute;
    top: 5px;
    left: 5px;
}

.phone-preview.variant::after {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.earbuds-preview {
    display: flex;
    gap: 20px;
    align-items: center;
}

.earbuds-preview::before,
.earbuds-preview::after {
    content: '';
    width: 20px;
    height: 30px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 10px 10px 5px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.earbuds-preview.pro::before,
.earbuds-preview.pro::after {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
}

.product-info {
    padding: 30px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.product-description {
    color: #6e6e73;
    margin-bottom: 15px;
    font-size: 16px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

/* 文章区域 */
.articles {
    padding: 100px 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-image.tech {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.article-image.design {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.article-content {
    padding: 30px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.article-excerpt {
    color: #6e6e73;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #86868b;
}

.article-category {
    background: #f5f5f7;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* 新闻区域 */
.news {
    padding: 100px 0;
    background: #fbfbfd;
}

.news-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-date {
    text-align: center;
    min-width: 80px;
}

.day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
}

.month {
    display: block;
    font-size: 14px;
    color: #6e6e73;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.news-summary {
    color: #6e6e73;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f5f5f7;
    color: #1d1d1f;
}

.news-tag.hot {
    background: #ff3b30;
    color: white;
}

/* 页脚 */
.footer {
    background: #1d1d1f;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #a1a1a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #424245;
    color: #a1a1a6;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-slide {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .products,
    .articles,
    .news {
        padding: 60px 0;
    }
}