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

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

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

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

a:hover {
    color: #004499;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.btn:hover {
    background-color: #004499;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #0066cc;
    color: #0066cc;
}

.btn-outline:hover {
    background-color: #0066cc;
    color: white;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

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

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

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #0066cc;
    color: white;
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 首页介绍区域 */
.intro {
    padding: 60px 0;
    background-color: white;
}

.intro h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0066cc;
}

.intro p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 首页新闻区域 */
.news {
    padding: 60px 0;
    background-color: #f0f8ff;
}

.news h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0066cc;
}

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

.news-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0066cc;
}

.date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.more-link {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* 首页服务区域 */
.services {
    padding: 60px 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0066cc;
}

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

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.service-item:hover {
    background-color: #0066cc;
    color: white;
    transform: scale(1.05);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 首页案例区域 */
.cases {
    padding: 60px 0;
    background-color: #f0f8ff;
}

.cases h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0066cc;
}

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

.case-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.case-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 36px;
}

/* 公司简介页面 */
.about-content {
    padding: 60px 0;
    background-color: white;
}

.about-text h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #0066cc;
}

.timeline {
    list-style-type: none;
    padding-left: 20px;
    border-left: 2px solid #0066cc;
}

.timeline li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.timeline li:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0066cc;
    left: -27px;
    top: 5px;
}

/* 新闻页面 */
.news-content {
    padding: 60px 0;
    background-color: white;
}

.news-content .news-item {
    margin-bottom: 30px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
}

.pagination a.active,
.pagination a:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* 产品页面 */
.products-content {
    padding: 60px 0;
    background-color: white;
}

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

.product-categories h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.product-categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.product-categories ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.product-categories ul li a {
    display: block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #333;
}

.product-categories ul li a.active,
.product-categories ul li a:hover {
    background-color: #0066cc;
    color: white;
}

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

.product-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    color: #999;
    font-size: 14px;
}

.product-item h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    padding: 0 15px;
}

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

/* 服务中心页面 */
.services-content {
    padding: 60px 0;
    background-color: white;
}

.services-intro {
    text-align: center;
    margin-bottom: 50px;
}

.services-intro h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

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

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.service-card ul {
    list-style-position: inside;
    margin-top: 15px;
}

.service-card li {
    margin-bottom: 8px;
    color: #666;
}

.service-process h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    color: #0066cc;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0066cc;
}

/* 知识库页面 */
.knowledge-content {
    padding: 60px 0;
    background-color: white;
}

.knowledge-categories {
    margin-bottom: 40px;
}

.knowledge-categories h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.knowledge-categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.knowledge-categories ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.knowledge-categories ul li a {
    display: block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #333;
}

.knowledge-categories ul li a.active,
.knowledge-categories ul li a:hover {
    background-color: #0066cc;
    color: white;
}

.knowledge-list {
    margin-bottom: 40px;
}

.knowledge-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.knowledge-item:last-child {
    border-bottom: none;
}

.knowledge-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0066cc;
}

/* 常见问题页面 */
.faq-content {
    padding: 60px 0;
    background-color: white;
}

.faq-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
}

.faq-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.faq-search button {
    padding: 12px 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.faq-categories {
    margin-bottom: 40px;
}

.faq-categories h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.faq-categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.faq-categories ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.faq-categories ul li a {
    display: block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #333;
}

.faq-categories ul li a.active,
.faq-categories ul li a:hover {
    background-color: #0066cc;
    color: white;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f0f8ff;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    color: #0066cc;
}

.faq-answer {
    padding: 20px;
    background-color: #fafafa;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 联系我们页面 */
.contact-content {
    padding: 60px 0;
    background-color: white;
}

.contact-info h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #0066cc;
}

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

.contact-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0066cc;
}

/* 新闻详情页面 */
.news-detail-content {
    padding: 60px 0;
    background-color: white;
}

.news-article {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.news-article h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0066cc;
}

.article-meta {
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 产品详情页面 */
.product-detail-content {
    padding: 60px 0;
    background-color: white;
}

.product-detail-content .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #0066cc;
}

.product-id,
.product-price {
    font-size: 18px;
    margin-bottom: 15px;
}

.product-specs h3,
.product-description h3,
.product-features h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #0066cc;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.product-specs td:first-child {
    font-weight: bold;
    width: 20%;
}

.product-features ul {
    list-style-position: inside;
}

.product-features li {
    margin-bottom: 8px;
}

.product-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* 知识库详情页面 */
.knowledge-detail-content {
    padding: 60px 0;
    background-color: white;
}

.knowledge-article {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.knowledge-article h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0066cc;
}

.knowledge-article h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #004499;
}

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

.article-content strong {
    color: #0066cc;
}

/* 相关产品 */
.related-products {
    padding: 60px 0;
    background-color: #f0f8ff;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #0066cc;
}

/* 侧边栏 */
.sidebar {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0066cc;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px 0;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px;
    }

    .hero h2 {
        font-size: 32px;
    }

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

    .product-detail-content .container {
        flex-direction: column;
    }

    .faq-search {
        flex-direction: column;
        gap: 10px;
    }

    .faq-search input,
    .faq-search button {
        border-radius: 4px;
        width: 100%;
    }

    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
}