/* 全局样式 */
* {
    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: #0d47a1;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

nav li {
    margin-right: 20px;
}

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

nav a:hover,
nav a.active {
    background-color: #1976d2;
}

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

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

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

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

.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1976d2;
    margin: 10px auto;
}

/* 首页特定样式 */
.slogan-content blockquote {
    font-style: italic;
    text-align: center;
    padding: 20px;
    border-left: 4px solid #1976d2;
    background-color: #e3f2fd;
    margin: 20px 0;
}

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

.news-item {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    background-color: #f5f9ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #0d47a1;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.news-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

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

.business-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.business-item:hover {
    border-color: #1976d2;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.1);
}

.business-item h3 {
    color: #0d47a1;
    margin-bottom: 15px;
}

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

.case-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.case-item h3 {
    color: #0d47a1;
    margin-bottom: 10px;
}

/* 新闻详情页样式 */
.news-list.detailed .news-item {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

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

.category-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

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

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

.products-list {
    margin-top: 30px;
}

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

.product-category h3 {
    color: #0d47a1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1976d2;
}

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

.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.product-image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-item h4 {
    color: #0d47a1;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 60px;
}

.btn-details {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background-color: #0d47a1;
    transform: scale(1.05);
}

/* 服务中心样式 */
.service-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
}

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

.service-item {
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #1976d2;
    box-shadow: 0 10px 20px rgba(25, 118, 210, 0.15);
    transform: translateY(-5px);
}

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

.service-item h3 {
    color: #0d47a1;
    margin-bottom: 15px;
}

.service-details {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

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

.service-process h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #0d47a1;
}

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

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.step-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #0d47a1;
}

/* 知识库样式 */
.knowledge-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.search-btn {
    padding: 12px 20px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0d47a1;
}

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

.category-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.category-item h4 {
    color: #0d47a1;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-item ul {
    list-style-type: none;
}

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

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

.category-item a:hover {
    color: #1976d2;
    text-decoration: underline;
}

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

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

.knowledge-item h4 a {
    color: #0d47a1;
    text-decoration: none;
}

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

.knowledge-meta {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

/* 成功案例样式 */
.cases-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 15px;
    margin: 0 5px 10px;
    background-color: #e3f2fd;
    color: #0d47a1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #1976d2;
    color: white;
}

.cases-grid {
    display: grid;
    gap: 30px;
}

.case-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.case-image {
    flex: 1;
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 20px;
    flex: 2;
}

.case-content h3 {
    color: #0d47a1;
    margin-bottom: 10px;
}

.case-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.case-summary {
    margin-bottom: 15px;
    color: #555;
}

.case-results h4 {
    color: #0d47a1;
    margin-bottom: 10px;
}

.case-results ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.case-results li {
    margin-bottom: 5px;
}

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

.faq-categories {
    text-align: center;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 15px;
    margin: 0 5px 10px;
    background-color: #e3f2fd;
    color: #0d47a1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #1976d2;
    color: white;
}

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

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

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

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
}

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

/* 联系我们样式 */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-detail {
    padding: 20px;
    background-color: #f5f9ff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info-detail p {
    margin-bottom: 10px;
    font-size: 16px;
}

.departments-contact {
    margin-bottom: 30px;
}

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

.contact-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #1976d2;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.1);
    transform: translateY(-3px);
}

.contact-card h4 {
    color: #0d47a1;
    margin-bottom: 15px;
}

.contact-card a {
    color: #1976d2;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-notes {
    padding: 20px;
    background-color: #fff3e0;
    border-radius: 8px;
}

.contact-notes h3 {
    color: #0d47a1;
    margin-bottom: 15px;
}

.contact-notes ul {
    padding-left: 20px;
}

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

/* 页脚样式 */
footer {
    background-color: #0d47a1;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

footer h3 {
    margin-bottom: 15px;
}

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

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav li {
        margin-right: 0;
    }

    .business-list,
    .cases-list,
    .product-grid,
    .services-grid,
    .category-grid,
    .cases-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .case-item {
        flex-direction: column;
    }

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

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