:root {
    --primary-color: #e60012;
    --secondary-color: #ffd700;
    --text-color: #333;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.products {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f8f8f8;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-card img {
    width: 380px;
    height: 380px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.product-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.about, .contact {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .products, .about, .contact {
        padding: 2rem 1rem;
    }

    .product-card {
        flex-direction: column;
        padding: 1rem;
    }

    .product-card img {
        width: 100%;
        height: auto;
    }

    .product-content {
        width: 100%;
    }
} 

/* 聊天窗口样式 */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-icon {
    font-size: 1.2rem;
}

.chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
}

.message {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.message.service {
    background-color: #f0f0f0;
    margin-right: auto;
}

.message.user {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
} 

/* 首页按钮样式 */
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 产品分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 产品详情 */
.product-details {
    margin-top: 0;
    text-align: left;
}

.volume {
    color: #666;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

/* 品牌优势 */
.features {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 关于我们统计数据 */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
} 

.contact-info .slogan {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
} 

/* 产品详情扩展样式 */
.product-specs {
    background: #f9f9f9;
    padding: 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    margin-top: 0.3rem;
    list-style: none;
}

.specs-list li {
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 0.6rem;
    line-height: 1.3;
}

.specs-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #666;
    font-size: 1.2rem;
    line-height: 1;
    top: -1px;
}

.package-info, .usage-info {
    #padding: 0.4rem 0;
    border-top: 1px solid #eee;
}

.package-info p, .usage-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

/* 使用说明样式 */
.usage-info {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.usage-info p {
    margin: 0.3rem 0;
    line-height: 1.5;
}

/* 调整产品描述样式 */
.product-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 调整规格列表样式 */
.specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.8rem;
}

@media (max-width: 1024px) {
    .product-card {
        padding: 1.5rem;
        gap: 2rem;
    }

    .product-card img {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
        padding: 1rem;
    }
    
    .product-card img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .product-content {
        width: 100%;
    }
} 

/* 关于我们区域样式优化 */
.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

/* 统计数据样式微调 */
.about-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
} 