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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    text-decoration: none;
    color: #0066c0;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* 免责声明横幅 */
.disclaimer-banner {
    background-color: #f0f0f0;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
}

.disclaimer-banner p {
    margin: 0;
}

/* 头部样式 */
header {
    background-color: #232f3e;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #ccc;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ff9900;
    text-decoration: none;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x600') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 产品区域样式 */
.products,
.categories {
    padding: 60px 0;
}

.products h2,
.categories h2,
.related-products h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.products h2:after,
.categories h2:after,
.related-products h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff9900;
    margin: 15px auto 0;
}

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

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #B12704;
    margin-bottom: 10px;
}

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.btn {
    display: inline-block;
    background-color: #ff9900;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #e88a00;
    text-decoration: none;
}

/* 分类区域样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.category-card i {
    font-size: 40px;
    color: #ff9900;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 18px;
}

/* 页脚样式 */
footer {
    background-color: #232f3e;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff9900;
}

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

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s;
}

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

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact p i {
    margin-right: 10px;
    color: #ff9900;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* 商品详情页样式 */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.product-detail {
    padding: 30px 0 60px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
    text-align: center;
}

.product-detail-image img {
    max-height: 400px;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

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

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #B12704;
}

.product-rating {
    margin-bottom: 20px;
}

.stars {
    color: #ff9900;
}

.rating-count {
    color: #666;
    margin-left: 5px;
}

.product-description,
.product-features {
    margin-bottom: 25px;
}

.product-description h3,
.product-features h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-features ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.product-features ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9900;
}

.product-actions {
    margin-top: 30px;
}

.btn-primary {
    background-color: #ff9900;
    padding: 12px 25px;
    font-size: 16px;
}

.related-products {
    padding: 60px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .product-grid,
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p i {
        display: block;
        margin: 0 auto 5px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .product-detail-content {
        padding: 20px;
    }
    
    .product-detail-info h1 {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 24px;
    }
}