/* 基础样式重置与布局 */
body {
    font-family: "Microsoft YaHei", "Heiti SC", Arial, sans-serif; /* 搜狗偏好中文字体 */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

a { text-decoration: none; color: #333; transition: color 0.3s; }
a:hover { color: #007bff; }

header { background: #fff; border-bottom: 1px solid #ddd; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.container { width: 95%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.nav-bar { display: flex; justify-content: space-between; align-items: center; }
nav ul { list-style: none; display: flex; padding: 0; margin: 0; }
nav ul li { margin-left: 20px; }
nav ul li a { font-weight: bold; font-size: 16px; }

.breadcrumbs { margin: 20px 0; font-size: 14px; color: #666; }
.breadcrumbs a { color: #666; }

.main-content { background: #fff; padding: 30px; border-radius: 5px; min-height: 400px; }
h1 { border-bottom: 2px solid #007bff; padding-bottom: 10px; font-size: 24px; margin-bottom: 20px; }
h2 { font-size: 20px; margin-top: 30px; color: #444; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.card { border: 1px solid #eee; padding: 15px; border-radius: 5px; background: #fff; transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card h3 { margin-top: 0; font-size: 18px; }

footer { background: #333; color: #ccc; text-align: center; padding: 20px 0; margin-top: 40px; }
footer p { margin: 5px 0; font-size: 14px; }

/* 增强版首页样式 */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./images/index/banner.avif');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
    border-radius: 5px;
}
.hero-banner h1 { border-bottom: none; font-size: 42px; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-banner p { font-size: 20px; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }
.btn { display: inline-block; padding: 12px 30px; background: #007bff; color: #fff; border-radius: 5px; font-weight: bold; transition: background 0.3s; }
.btn:hover { background: #0056b3; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid #fff; margin-left: 10px; }
.btn-outline:hover { background: #fff; color: #333; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: #333; display: inline-block; border-bottom: 3px solid #007bff; padding-bottom: 10px; }
.section-title p { color: #666; margin-top: 10px; }

.features { display: flex; justify-content: space-around; flex-wrap: wrap; margin-bottom: 50px; text-align: center; }
.feature-item { flex-basis: 22%; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.feature-icon { font-size: 40px; color: #007bff; margin-bottom: 15px; }

.about-section { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 5px; }
.about-text { flex: 1; }

.contact-bar { background: #007bff; color: #fff; padding: 40px 0; text-align: center; border-radius: 5px; margin-top: 40px; }
.contact-bar h2 { color: #fff; margin-top: 0; border: none; }
.contact-bar .btn { background: #fff; color: #007bff; margin-top: 20px; }
.contact-bar .btn:hover { background: #f0f0f0; }

.clients { text-align: center; padding: 40px 0; }
.client-logos { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; opacity: 0.6; }
.client-logo { font-size: 24px; font-weight: bold; color: #999; border: 2px solid #eee; padding: 10px 20px; border-radius: 5px; }

/* 产品详情增强样式 */
.product-detail-layout { display: flex; gap: 40px; margin-bottom: 40px; }
.product-gallery { flex: 1; }
.product-gallery img { width: 100%; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.product-info { flex: 1; }
.product-price { font-size: 24px; color: #e53935; font-weight: bold; margin: 15px 0; }
.product-params { margin: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; }
.product-params table { width: 100%; border-collapse: collapse; }
.product-params td { padding: 8px 0; color: #666; }
.product-params td:first-child { width: 100px; font-weight: bold; color: #333; }

/* 产品分类页增强 */
.category-banner {
    background-image: url('./images/index/banner.avif');
    background-size: cover;
    background-position: center;
    /* background: #007bff; */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 30px;
}
.category-banner h1 { border: none; color: #fff; text-shadow: none; }
.filter-bar { background: #fff; padding: 15px; margin-bottom: 20px; border-radius: 5px; border: 1px solid #eee; display: flex; gap: 20px; align-items: center; }
.filter-label { font-weight: bold; }
.filter-options a { margin-right: 15px; color: #666; padding: 5px 10px; border-radius: 15px; }
.filter-options a.active { background: #007bff; color: #fff; }

@media (max-width: 768px) {
    .product-detail-layout { flex-direction: column; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
}