/* 基础样式重置 */
* {
    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, #8B0000, #B22222);
    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: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

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

nav li {
    margin: 0 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

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

.section {
    padding: 60px 0;
}

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

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #8B0000;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #8B0000, #B22222);
    margin: 15px auto;
}

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

.slogan-content {
    text-align: center;
}

.slogan-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #8B0000;
    border-left: 4px solid #B22222;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(139, 0, 0, 0.05);
}

.slogan-content cite {
    display: block;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

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

.news-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-item h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

.news-item .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

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

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

.service-item h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

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

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

.case-item h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

.careers-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 新闻详情页样式 */
.news-articles {
    display: grid;
    gap: 40px;
}

.news-article {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-article h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

.news-article .date {
    color: #888;
    margin-bottom: 20px;
}

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

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

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

.category-list li {
    padding: 10px 20px;
    background: #8B0000;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-list li:hover,
.category-list li.active {
    background: #B22222;
}

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

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #8B0000, #B22222);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    color: #8B0000;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    margin-bottom: 10px;
}

.product-spec {
    color: #888;
    font-size: 0.9rem;
}

/* 服务中心样式 */
.services-intro p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #8B0000;
}

.service-card h3 {
    color: #8B0000;
    margin-bottom: 15px;
}

.service-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.service-content li {
    margin-bottom: 8px;
}

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

.category-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-card h3 {
    color: #8B0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-card ul {
    list-style: none;
}

.category-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.category-card a:hover {
    color: #8B0000;
}

.featured-articles h3 {
    margin-bottom: 25px;
    text-align: center;
}

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

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

.article-item h4 {
    color: #8B0000;
    margin-bottom: 15px;
}

/* 常见问题样式 */
.faq-container {
    display: grid;
    gap: 40px;
}

.faq-category h3 {
    color: #8B0000;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B0000;
}

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

.faq-question {
    background: #8B0000;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #B22222;
}

.faq-answer {
    padding: 20px;
    display: none;
}

.faq-answer p {
    line-height: 1.8;
}

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

/* 联系我们样式 */
.contact-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info h3,
.departments h3,
.contact-notes h3 {
    color: #8B0000;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

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

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

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

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

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

.contact-notes ul {
    list-style-type: disc;
    padding-left: 20px;
}

.contact-notes li {
    margin-bottom: 10px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .cases-list,
    .products-grid,
    .knowledge-categories,
    .articles-list,
    .department-list {
        grid-template-columns: 1fr;
    }
    
    .slogan-content blockquote {
        font-size: 1.2rem;
    }
    
    .contact-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-list,
    .cases-list,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        flex-direction: column;
        align-items: center;
    }
    
    .category-list li {
        width: 80%;
        text-align: center;
    }
}