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

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

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

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #e63946;
    font-size: 24px;
    font-weight: bold;
}

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

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

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

.nav ul li a:hover {
    color: #e63946;
}

/* 首页横幅 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=modern%20business%20banner%20with%20professional%20corporate%20style&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 80px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.banner-content p {
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e63946;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn:hover {
    background-color: #c1121f;
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #e63946;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    margin-right: 50px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.about-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e63946;
    font-size: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 业务服务 */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #e63946;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-item:hover .service-icon {
    background-color: #e63946;
    color: #fff;
    transform: rotateY(180deg);
}

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

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

/* 产品中心 */
.products {
    padding: 100px 0;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.product-item h3 {
    font-size: 18px;
    margin: 20px;
    color: #333;
}

.product-item p {
    margin: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* 商城 */
.shop {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.shop-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.shop-item-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-item:hover .shop-item-image img {
    transform: scale(1.1);
}

.shop-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-item:hover .shop-item-overlay {
    opacity: 1;
}

.add-to-cart {
    padding: 12px 30px;
    background-color: #fff;
    color: #e63946;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #e63946;
    color: #fff;
}

.shop-item-info {
    padding: 20px;
}

.shop-item-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.shop-item-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.shop-item-price {
    margin-bottom: 15px;
}

.shop-item-price .price {
    font-size: 24px;
    color: #e63946;
    font-weight: bold;
}

.shop-item-price .unit {
    font-size: 14px;
    color: #999;
}

.buy-now {
    width: 100%;
    padding: 12px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now:hover {
    background-color: #c1121f;
}

/* 购物车图标 */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    margin-left: 20px;
}

.cart-icon:hover {
    color: #e63946;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e63946;
    color: #fff;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 购物车侧边栏 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 20px;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #e63946;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 18px;
    color: #e63946;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

.quantity-num {
    width: 40px;
    text-align: center;
    font-size: 16px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #e63946;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.total-price {
    font-size: 24px;
    color: #e63946;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #c1121f;
}

/* 新闻动态 */
.news {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

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

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c1121f;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    margin-right: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.contact-info ul li i {
    position: absolute;
    left: 0;
    color: #e63946;
    font-size: 18px;
}

.social-media {
    margin-top: 30px;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-media a:hover {
    background-color: #e63946;
    color: #fff;
}

.contact-form {
    flex: 1;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e63946;
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-logo p {
    color: #999;
    line-height: 1.6;
}

.footer-links {
    flex: 1;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-links ul li a {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e63946;
}

.footer-contact {
    flex: 1;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-contact ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: #999;
}

.footer-contact ul li i {
    position: absolute;
    left: 0;
    color: #e63946;
    font-size: 18px;
}

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

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-text,
    .contact-info {
        margin-right: 0;
        margin-bottom: 50px;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: none;
    }
    
    .nav ul li {
        margin: 10px 0;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        margin-bottom: 40px;
    }
}