<?php /* 51web网站设计 - 51web.cc 版权所有 (C) 2025 */ ?>
 * 51web网站设计 - 51web.cc
 * 版权所有 (C) 2025
 */ ?>
/*
 * 51web网站设计 - 51web.cc
 * 版权所有 (C) 2025
 */

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

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

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

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

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

header .logo h1 {
    font-size: 24px;
    font-weight: bold;
}

header .logo a {
    color: #333;
    text-decoration: none;
}

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

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

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

header nav ul li a:hover {
    color: #007bff;
}

header nav ul li .cart-count {
    background-color: #007bff;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 轮播图 */
.banner {
    background-color: #007bff;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

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

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* 产品展示 */
.products {
    padding: 50px 0;
}

.products h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

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

.product-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.product-item p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.product-item .product-price {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

/* 企业新闻 */
.news {
    padding: 50px 0;
}

.news h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

/* 关于我们 */
.about {
    padding: 50px 0;
}

.about h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* 底部 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0;
}

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

footer .footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

footer .footer-section p {
    font-size: 14px;
    margin-bottom: 10px;
}

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

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

footer .footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

footer .footer-section ul li a:hover {
    color: #007bff;
}

footer .footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    header nav ul {
        margin-top: 20px;
    }
    
    header nav ul li {
        margin-left: 10px;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    footer .footer-content {
        grid-template-columns: 1fr;
    }
}