
/* 基础重置样式 */
* {
    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;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 导航样式 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 0;
    position: relative;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: block;
    padding: 6px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1002;
}

.dropdown-toggle:hover {
    opacity: 1;
}

.dropdown-menu {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    background-color: #000;
    border-radius: 0;
    overflow: hidden;
    visibility: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, visibility 0.3s;
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 搜索和购物车图标 */
.nav-search {
    display: flex;
    gap: 20px;
}

.nav-search a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-search a:hover {
    opacity: 1;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/abc.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -2;
    transition: transform 0.5s ease-out;
}

/* 媒体查询 - 中屏幕 (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-background {
        background-image: url('../img/abc.jpg');
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-10%);
    width: 100%;
    box-sizing: border-box;
}

/* 中等屏幕 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* 英雄区域按钮容器 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 1%;
}

/* 英雄区域按钮 */
.hero-learn,
.hero-cta {
    display: inline-block;
    padding: 10px 28px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 9999px;
    opacity: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.hero-learn {
    background-color: #0071e3;
    color: white;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-learn:hover {
    background-color: #0071e3;
    color: white;
}

.hero-cta {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-cta:hover {
    background-color: #0056b3;
    color: white;
}

/* 添加渐变叠加层增强对比度 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 5%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-learn,
    .hero-cta {
        width: 80%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .hero-background {
        background-image: url('../img/abc.jpg');
    }
}

/* 超小屏幕 (375px 以下) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-learn,
    .hero-cta {
        width: 90%;
    }
    
    .hero-content {
        padding: 0 15px;
        transform: translateY(-8%); /* 小屏幕上轻微调整位置 */
    }
}



