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

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    background-image: url('../images/background_pattern.png');
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
}

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

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

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

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

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

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

nav ul li a:hover,
nav ul li a.active {
    color: #3498db;
}

/* 主体样式 */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #34495e;
    margin-top: 30px;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #34495e;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* 首页样式 */
.hero {
    background-color: #3498db;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: none;
}

.hero p {
    font-size: 18px;
    margin-bottom: 0;
}

.intro,
.products-preview {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background-color: #2980b9;
}

/* 关于我们页面样式 */
.about-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-content ul li {
    margin-bottom: 8px;
}

/* 产品页面样式 */
.products-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.product-category {
    margin-bottom: 40px;
}

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

.product-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #ffffff;
    padding: 10px;
    transition: transform 0.3s ease;
}

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

/* 联系我们页面样式 */
.contact-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info ul {
    list-style: none;
    margin-left: 0;
}

.contact-info ul li {
    margin-bottom: 12px;
    font-size: 16px;
}

.map-container {
    margin-top: 40px;
}

.map-placeholder {
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* 网站地图页面样式 */
.sitemap-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.sitemap-tree {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.sitemap-tree > li {
    margin-bottom: 20px;
    font-size: 18px;
}

.sitemap-tree li a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.sitemap-tree li a:hover {
    text-decoration: underline;
}

.sitemap-tree ul {
    list-style: none;
    margin-left: 30px;
    margin-top: 10px;
}

.sitemap-tree ul li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #555;
}

/* 底部样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
}

.company-info {
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 10px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-tree ul {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .intro,
.products-preview,
.about-section,
.products-section,
.contact-section,
.sitemap-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    backdrop-filter: blur(5px);
}
}