/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    color: #333;
    line-height: 1.5;
    background-color: #f8f8f8;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #e60012;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 顶部导航 */
.top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar-left a, .top-bar-right a {
    margin-right: 15px;
    color: #666;
}

.top-bar-left a:hover, .top-bar-right a:hover {
    color: #e60012;
}

.top-bar-right {
    display: flex;
}

.shopping-cart {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: 36px;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
}

.shopping-cart:hover .cart-dropdown {
    display: block;
}

.checkout-btn {
    display: block;
    background-color: #e60012;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    margin-top: 10px;
}

.checkout-btn:hover {
    background-color: #d40010;
    color: #fff;
}

/* 主导航 */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex: 0 0 300px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #e60012;
}

.logo a {
    text-decoration: none;
}

.search-box {
    flex: 0 0 450px;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 40px;
    border: 2px solid #e60012;
    padding: 0 15px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 80px;
    background: #e60012;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.search-box button:hover {
    background-color: #d40010;
}

.hotline {
    flex: 0 0 250px;
    text-align: right;
}

.hotline p {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.hotline h3 {
    font-size: 18px;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 5px;
}

.customer-service-btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 3px;
    font-size: 12px;
}

.customer-service-btn:hover {
    background-color: #e60012;
    color: #fff;
}

/* 主菜单导航 */
.main-menu {
    background-color: #4a90e2;
    color: #fff;
}

.main-menu .container {
    display: flex;
    align-items: center;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 0;
    position: relative;
}

.main-nav a {
    font-size: 16px;
    font-weight: bold;
    padding: 15px 25px;
    display: block;
    color: #fff;
}

.main-nav a.active, .main-nav a:hover {
    background-color: rgba(0,0,0,0.1);
    color: #fff;
}

.categories {
    display: flex;
    padding: 15px 0;
}

.categories a {
    margin: 0 15px;
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
}

.categories a:hover {
    opacity: 1;
    color: #fff;
}

/* 轮播图 */
.banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner h3 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.banner h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 16px;
    margin-bottom: 30px;
}

.slogan {
    border-top: 1px solid rgba(255,255,255,0.5);
    padding-top: 20px;
}

.slogan p {
    font-size: 18px;
    letter-spacing: 2px;
}

/* 产品分类 */
.product-categories {
    padding: 60px 0;
    background-color: #fff;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.category-header h3 {
    font-size: 24px;
    color: #666;
    font-weight: 300;
}

.category-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.category-item {
    flex: 0 0 30%;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
}

.category-image {
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.category-item p {
    color: #666;
}

.category-types {
    flex: 0 0 65%;
    display: flex;
    flex-wrap: wrap;
}

.type-item {
    flex: 0 0 calc(50% - 15px);
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
}

.type-item:nth-child(odd) {
    margin-right: 30px;
}

.type-image {
    height: 150px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.type-item:hover .type-image img {
    transform: scale(1.05);
}

.type-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.type-item p {
    color: #999;
    font-size: 14px;
}

/* 产品展示 */
.product-showcase {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.product-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.product-card {
    flex: 0 0 calc(25% - 15px);
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.featured-product {
    display: flex;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.featured-image {
    flex: 0 0 70%;
    overflow: hidden;
    height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    flex: 0 0 30%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured-info p {
    color: #666;
    margin-bottom: 5px;
}

.price {
    font-size: 18px;
    color: #e60012;
    font-weight: bold;
    margin-top: 10px;
}

/* 品质保证 */
.quality-guarantee {
    padding: 60px 0;
    background-color: #fff;
}

.quality-items {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.quality-item {
    flex: 0 0 calc(33.333% - 20px);
    text-align: center;
}

.quality-image {
    margin-bottom: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
}

.quality-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.quality-item p {
    color: #666;
    line-height: 1.6;
}

.quality-slogan {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
}

/* 产品系列 */
.product-series {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.series-header {
    text-align: center;
    margin-bottom: 40px;
}

.series-header h3 {
    font-size: 24px;
    color: #e60012;
    margin-bottom: 5px;
}

.series-header h4 {
    font-size: 30px;
    margin-bottom: 10px;
}

.series-header h5 {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
}

.series-header p {
    color: #999;
    font-size: 14px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-item {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px 30px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item .product-image {
    height: 240px;
    overflow: hidden;
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-item .product-info {
    padding: 15px;
}

.product-item h4 {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

/* 关于我们 */
.about-us {
    padding: 60px 0;
    background-color: #fff;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-header h3 {
    font-size: 24px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-header h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #e60012;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

.about-image {
    flex: 0 0 40%;
    margin-right: 30px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 0 0 55%;
}

.about-content p {
    margin-bottom: 15px;
    text-align: left;
}

/* 服务保障 */
.service-guarantee {
    padding: 60px 0;
    background-color: #f8f8f8;
    border-top: 1px solid #e5e5e5;
}

.service-items {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.service-item {
    flex: 0 0 calc(20% - 20px);
    text-align: center;
}

.service-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.service-item p {
    color: #999;
    font-size: 12px;
}

.payment-methods {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.payment-item h4 {
    font-size: 16px;
    color: #666;
}

.merchant-services {
    display: flex;
    justify-content: space-around;
}

.service-column {
    flex: 0 0 calc(50% - 30px);
}

.service-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.service-column a {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

.footer-contact {
    text-align: center;
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: normal;
}

.footer-contact h4 {
    font-size: 24px;
    color: #e60012;
    margin-bottom: 10px;
}

.footer-contact p {
    color: #999;
    margin-bottom: 15px;
}

.customer-service {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #e60012;
    color: #e60012;
    border-radius: 3px;
}

.customer-service:hover {
    background-color: #e60012;
    color: #fff;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-copyright a {
    color: #999;
}

.footer-copyright a:hover {
    color: #e60012;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e60012;
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 20px;
    opacity: 0.8;
}

.back-to-top:hover {
    background-color: #d40010;
    color: #fff;
    transform: translateY(-5px);
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

/* 修复图片显示问题 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .main-header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    .main-nav {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .search-box {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .hotline {
        position: static;
        text-align: center;
        margin-top: 20px;
    }
    
    .category-list,
    .product-row,
    .quality-items,
    .service-items {
        flex-direction: column;
    }
    
    .category-item,
    .category-types,
    .product-card,
    .quality-item,
    .service-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .featured-product {
        flex-direction: column;
    }
    
    .featured-image,
    .featured-info {
        flex: 0 0 100%;
    }
    
    .product-item {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        align-items: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories {
        flex-wrap: wrap;
    }
    
    .categories a {
        margin-bottom: 10px;
    }
    
    .product-item {
        flex: 0 0 calc(100% - 30px);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .about-text {
        flex: 0 0 100%;
    }
    
    .merchant-services {
        flex-direction: column;
    }
    
    .service-column {
        flex: 0 0 100%;
        margin-bottom: 30px;
        text-align: center;
    }
} 