/* 基础样式重置 */
* {
    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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #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 {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    text-transform: uppercase;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 15px;
    border-radius: 8px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e74c3c;
    background-color: #fdf2f2;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 140px);
}

.section-padding {
    padding: 60px 0;
}

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

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
    margin: 15px auto 0;
}

h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 首页样式 */
.intro-content p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slogan-content {
    text-align: center;
    padding: 40px 20px;
}

.slogan-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.slogan-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

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

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.date {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
}

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

.service-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

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

.case-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

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

.careers-content ul {
    max-width: 800px;
    margin: 20px auto;
    padding-left: 30px;
}

.careers-content li {
    margin-bottom: 10px;
}

/* 新闻页面样式 */
.news-article {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.news-article h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 产品页面样式 */
.product-categories {
    margin-bottom: 40px;
}

.category-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.category-list li {
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    background-color: #ecf0f1;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-list li:hover,
.category-list li.active {
    background-color: #e74c3c;
    color: #fff;
}

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

.product-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

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

.icon-placeholder {
    font-size: 64px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-desc {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 18px;
}

/* 服务页面样式 */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.services-intro p {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.service-detail {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.service-content {
    display: flex;
    align-items: flex-start;
}

.service-icon {
    font-size: 48px;
    margin-right: 20px;
}

.service-text ul {
    padding-left: 20px;
}

.service-text li {
    margin-bottom: 10px;
}

/* 知识库页面样式 */
.knowledge-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.knowledge-intro p {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.category {
    margin-bottom: 40px;
}

.knowledge-list {
    list-style: none;
}

.knowledge-list li {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.knowledge-list h4 a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
}

.knowledge-list h4 a:hover {
    color: #e74c3c;
}

.summary {
    color: #7f8c8d;
    margin: 10px 0;
}

.meta {
    color: #95a5a6;
    font-size: 14px;
}

/* FAQ页面样式 */
.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.faq-intro p {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-intro a {
    color: #e74c3c;
    text-decoration: none;
}

.faq-intro a:hover {
    text-decoration: underline;
}

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

.faq-section h3 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    background-color: #fdf2f2;
    padding: 20px;
    color: #c0392b;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

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

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

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

/* 联系我们页面样式 */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.contact-intro p {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

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

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-top: 30px;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.department-list {
    display: grid;
    gap: 20px;
}

.department {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.department h4 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.department a {
    color: #3498db;
    text-decoration: none;
}

.department a:hover {
    text-decoration: underline;
}

.contact-note {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-note h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

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

/* 响应式设计 */
@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 10px;
    }

    .section-padding {
        padding: 40px 0;
    }

    h2 {
        font-size: 28px;
    }

    .service-content {
        flex-direction: column;
    }

    .service-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}