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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f3c1ab;
}

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

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 80px;
    width: 160px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e74c3c;
}

/* 轮播图样式 */
.slider {
    margin-top: 80px;
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #f3c1ab;
}

.slide-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* 轮播图按钮样式 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 轮播图指示器样式 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: #fff;
}

/* 产品优势样式 */
.advantages {
    padding: 80px 0;
    background: #f3c1ab;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.advantage-item i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.advantage-item:hover i {
    transform: scale(1.1);
}

.advantage-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
}

/* 产品展示样式 */
.products {
    padding: 80px 0;
    background: #f3c1ab;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn:hover {
    background: #c0392b;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
}

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

.footer-item h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e74c3c;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
    }

    .nav li {
        margin: 10px 0;
    }

    .slider {
        height: 400px;
        margin-top: 120px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .advantage-item {
        padding: 30px 20px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        transform: none;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* 顶部栏样式 */
.top-bar {
    background: #f8f8f8;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a {
    color: #666;
    text-decoration: none;
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switch a {
    color: #666;
    text-decoration: none;
    padding: 0 5px;
}

.language-switch a.active {
    color: #e74c3c;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    padding: 5px 10px;
    background: #e74c3c;
    border: none;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 主导航样式更新 */
.main-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.nav .has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: #333;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f8f8;
    color: #e74c3c;
    padding-left: 25px;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.header-buttons a {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.shop-btn {
    background: #e74c3c;
    color: white;
}

.dealer-btn {
    background: #f8f8f8;
    color: #333;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .main-header .container {
        flex-direction: column;
    }
    
    .header-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* 快速购买入口样式 */
.quick-access {
    padding: 40px 0;
    background: #f3c1ab;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.access-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.access-item i {
    font-size: 36px;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* 产品系列展示样式 */
.product-series {
    padding: 80px 0;
    background: #f3c1ab;
}

.series-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #e74c3c;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.tag {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.tag.hot {
    background: #e74c3c;
}

.product-info {
    padding: 20px;
}

.price {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-detail, .btn-buy {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
}

.btn-detail {
    background: #f8f8f8;
    color: #333;
}

.btn-buy {
    background: #e74c3c;
    color: white;
}

/* 新品预告样式 */
.new-products {
    padding: 80px 0;
    background: #f3c1ab;
}

.new-product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.showcase-image img {
    width: 100%;
    border-radius: 8px;
}

.showcase-content {
    padding: 20px;
}

.launch-date {
    color: #666;
    margin: 15px 0;
}

.features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-item i {
    color: #e74c3c;
}

.btn-subscribe {
    display: inline-block;
    padding: 12px 30px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background: #c0392b;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .new-product-showcase {
        grid-template-columns: 1fr;
    }
    
    .series-tabs {
        padding: 0 15px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* 在.tag样式后添加 */
.tag.new {
    background: #2ecc71;
}

.tag.season {
    background: #f39c12;
}

.tag.recommend {
    background: #3498db;
}

.tag.spicy {
    background: #c0392b;
}