/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 链接样式 */
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* 标题样式 */
h1, h2, h3, h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
}

h3 {
    font-size: 1.5rem;
}

/* 页面头部 */
header {
    background: #fff;
    box-shadow: 0 2px 10px 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 {
    color: #007bff;
    font-size: 1.8rem;
}

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

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

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

nav ul li a:hover,
nav ul li a.active {
    background: #007bff;
    color: #fff;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

.section {
    padding: 60px 0;
}

.section.bg-light {
    background: #fff;
}

.section:first-child {
    padding-top: 20px;
}

/* 首页样式 */
.tagline {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin: 20px 0 40px;
}

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

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.feature h3 {
    color: #007bff;
    margin-bottom: 15px;
}

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

.news-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-item h3 a {
    color: #333;
}

.news-item h3 a:hover {
    color: #007bff;
}

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

.business-list {
    list-style: none;
    padding: 20px 0;
}

.business-list li {
    padding: 15px 0 15px 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.business-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 15px;
    color: #28a745;
    font-weight: bold;
}

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

.case-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 新闻页面样式 */
.news-detail {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-detail h3 {
    margin-top: 0;
}

.meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail ul,
.news-detail ol {
    padding-left: 30px;
    margin: 20px 0;
}

.news-detail li {
    margin-bottom: 10px;
}

/* 产品页面样式 */
.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.category img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 8px;
    margin: 15px 0;
}

.category ul {
    list-style: none;
    text-align: left;
}

.category ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.category ul li:before {
    content: '▶';
    color: #007bff;
    margin-right: 10px;
}

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

.feature-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-box h4 {
    color: #007bff;
    margin-bottom: 15px;
}

/* 服务页面样式 */
.services-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

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

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px dashed #eee;
}

.service-item li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #28a745;
    font-weight: bold;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.step {
    flex: 0 0 calc(20% - 20px);
    text-align: center;
    margin-bottom: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 知识库页面样式 */
.knowledge-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

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

.category ul {
    list-style: none;
    padding-left: 0;
}

.category li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.category li a {
    color: #333;
    display: block;
}

.category li a:hover {
    color: #007bff;
    padding-left: 5px;
}

.knowledge-details {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.knowledge-detail:last-child {
    margin-bottom: 0;
}

.knowledge-detail ul,
.knowledge-detail ol {
    padding-left: 30px;
    margin: 20px 0;
}

.knowledge-detail li {
    margin-bottom: 10px;
}

/* FAQ页面样式 */
.faq-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 30px;
    margin: 15px 0;
}

.faq-answer li {
    margin-bottom: 10px;
}

/* 联系我们页面样式 */
.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

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

.contact-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.department {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.department h4 {
    margin-top: 0;
    color: #007bff;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .features,
    .news-list,
    .cases-list,
    .product-categories,
    .services-list,
    .knowledge-categories,
    .contact-info,
    .departments {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}