/* 基础样式重置 */
* {
    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;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #c00 0%, #d00 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.section {
    background: white;
    margin-bottom: 30px;
    padding: 40px 0;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section.bg-light {
    background-color: #f9f9f9;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #c00;
    font-size: 28px;
    position: relative;
}

.section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c00;
    margin: 10px auto;
}

/* 首页特定样式 */
.slogan-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.slogan-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.slogan-item .icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #c00;
}

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

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

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.service-item {
    padding: 25px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.case-item {
    padding: 20px;
    border-left: 4px solid #c00;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

#careers p.desc {
    text-align: center;
    margin-bottom: 20px;
}

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

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

/* 新闻页面样式 */
.news-articles {
    max-width: 800px;
    margin: 0 auto;
}

.news-article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.news-article:last-child {
    border-bottom: none;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
    margin: 10px 0;
}

.news-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 产品中心样式 */
.product-categories {
    margin-bottom: 30px;
}

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

.category-list li a {
    display: block;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-list li a:hover,
.category-list li.active a {
    background: #c00;
    color: white;
}

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

.product-item {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.product-desc {
    margin: 15px 0;
    color: #666;
}

.product-spec {
    color: #999;
    font-size: 14px;
}

/* 服务中心样式 */
.service-tabs {
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #c00;
    border-bottom-color: #c00;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.service-list {
    padding-left: 20px;
}

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

.service-commitment {
    margin-top: 40px;
}

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

.commitment-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.commitment-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

/* 知识库样式 */
.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.knowledge-list {
    list-style: none;
    margin-top: 15px;
}

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

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

.knowledge-list a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

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

.knowledge-detail {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

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

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

/* 常见问题样式 */
.faq-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px;
}

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

.faq-search button {
    padding: 12px 20px;
    background: #c00;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-search button:hover {
    background: #b00;
}

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

.faq-question {
    padding: 20px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #c00;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
}

.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;
}

/* 联系我们样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.company-info,
.departments {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

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

.department-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #c00;
}

.department-item h4 {
    margin-bottom: 15px;
    color: #c00;
}

.department-item p {
    margin-bottom: 8px;
}

.department-item a {
    color: #c00;
    text-decoration: none;
}

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

.map-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
    height: 300px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

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

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    header {
        padding: 10px 0;
    }

    .logo {
        font-size: 20px;
        margin-bottom: 8px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 3px 0;
    }

    .section {
        padding: 30px 0;
    }

    .section h2 {
        font-size: 24px;
    }

    .slogan-content,
    .services-grid,
    .cases-list,
    .careers-content,
    .product-grid,
    .knowledge-categories,
    .commitment-items,
    .department-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .faq-search {
        flex-direction: column;
    }

    .faq-search input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .faq-search button {
        border-radius: 4px;
    }
}