/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}
a:hover {
    color: #004499;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background-color: #0066cc;
    color: #fff;
}
.btn-primary:hover {
    background-color: #004499;
}
.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-width: 100%;
    height: auto;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-menu li a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0066cc;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #ccc;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

/* 首页样式 */
.hero {
    background-color: #0066cc;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.hero .btn {
    margin: 0 10px;
}
.core-values {
    padding: 60px 0;
}
.core-values h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    color: #333;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.value-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}
.value-card img {
    margin-bottom: 20px;
}
.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
.featured-products {
    padding: 60px 0;
    background-color: #fff;
}
.featured-products h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    color: #333;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.product-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
    color: #333;
}
.product-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 14px;
}
.product-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}
.view-all {
    display: block;
    width: 200px;
    margin: 0 auto;
}

/* 产品详情页样式 */
.product-breadcrumb {
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.product-breadcrumb a {
    color: #666;
    margin: 0 5px;
}
.product-breadcrumb a.active-breadcrumb {
    color: #0066cc;
    font-weight: 600;
}
.product-details {
    padding: 40px 0;
    background-color: #fff;
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.product-images .main-product-img {
    margin-bottom: 20px;
}
.product-images .main-product-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.product-img-thumbs {
    display: flex;
    gap: 10px;
}
.product-img-thumbs img {
    width: 25%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.product-img-thumbs img:hover {
    border-color: #0066cc;
}
.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}
.product-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e6f0ff;
    color: #0066cc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}
.product-price {
    margin-bottom: 20px;
}
.original-price {
    color: #999;
    margin-right: 10px;
    font-size: 16px;
}
.our-price {
    color: #e63946;
    font-size: 20px;
    font-weight: 600;
}
.product-desc-short {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}
.product-options {
    margin-bottom: 30px;
}
.option-group {
    margin-bottom: 20px;
}
.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.option-group select, .option-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.product-actions .btn {
    flex: 1;
}
.product-badges {
    display: flex;
    gap: 15px;
}
.product-badges img {
    height: 80px;
    width: auto;
}
.product-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}
.tab-btn:hover {
    color: #0066cc;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}
.tab-content p {
    margin-bottom: 15px;
    color: #666;
}
.specs-table, .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.specs-table th, .specs-table td, .compare-table th, .compare-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}
.specs-table th, .compare-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}
.installation-list {
    margin-bottom: 20px;
    padding-left: 20px;
}
.installation-list li {
    margin-bottom: 10px;
    color: #666;
}
.related-products {
    padding: 40px 0;
    background-color: #f9f9f9;
}
.related-products h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

/* 产品列表页样式 */
.products-page {
    padding: 40px 0;
    background-color: #fff;
}
.products-page h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}
.products-page .page-desc {
    margin-bottom: 40px;
    color: #666;
    font-size: 16px;
}

/* 通用页面样式（解决方案、资源、关于我们等） */
.generic-page {
    padding: 40px 0;
    background-color: #fff;
}
.generic-page h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}
.generic-page .page-desc {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}
.generic-page h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}
.generic-page h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #333;
}
.generic-page p {
    margin-bottom: 15px;
    color: #666;
}
.generic-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.generic-page ul li {
    margin-bottom: 10px;
    color: #666;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.resource-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.resource-card h3 {
    margin-bottom: 15px;
}
.resource-card a {
    display: inline-block;
    margin-top: 10px;
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 250px;
        height: 100vh;
        padding: 80px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    .nav-menu.active {
        right: 0;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .core-values h2, .featured-products h2 {
        font-size: 24px;
    }
    .generic-page h1 {
        font-size: 24px;
    }
    .generic-page h2 {
        font-size: 20px;
    }
}

/* 隐私政策、服务条款页面样式 */
.policy-page {
    padding: 40px 0;
    background-color: #fff;
}
.policy-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}
.policy-page h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #333;
}
.policy-page h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #333;
}
.policy-page p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}
.policy-page ul {
    margin-bottom: 20px;
    padding-left: 25px;
}
.policy-page ul li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.8;
}