/* 全局样式 */
:root {
    --primary-color: #ff5722;
    --secondary-color: #f9f9f9;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --hover-color: #e64a19;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: var(--hover-color);
    color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.view-more {
    color: var(--light-text);
    font-size: 14px;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions a {
    margin-left: 20px;
    font-size: 20px;
}

/* 主横幅样式 */
.hero-banner {
    background-color: var(--secondary-color);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.banner-text {
    flex: 0 0 45%;
}

.banner-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-text);
}

.banner-image {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
}

/* 产品卡片样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.product-info {
    flex: 1;
    padding: 20px;
}

.product-image {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
}

.add-to-cart-btn i {
    margin-right: 5px;
}

.add-to-cart-btn:hover {
    background-color: var(--hover-color);
    color: white;
}

/* 推荐产品样式 */
.recommended-products {
    padding: 60px 0;
}

.product-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item .product-image {
    padding: 20px;
    background-color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.product-item .add-to-cart-btn {
    padding: 6px 15px;
    font-size: 14px;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #fff;
    padding-top: 60px;
}

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

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-section ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.qrcode-img {
    text-align: center;
}

.qrcode-img img {
    width: 120px;
    margin-bottom: 10px;
}

.qrcode-img p {
    font-size: 12px;
    color: #aaa;
}

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

.footer-bottom p {
    font-size: 12px;
    color: #666;
}

.footer-bottom img {
    vertical-align: middle;
    height: 16px;
}

/* 聊天按钮 */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.chat-btn:hover {
    background-color: var(--hover-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-text {
        margin-bottom: 40px;
    }
    
    .product-card,
    .product-card:nth-child(even) {
        flex-direction: column;
    }
    
    .footer-section {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .header-actions {
        margin-top: 15px;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .banner-text h1 {
        font-size: 24px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        margin-bottom: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
} 