/* 全局样式 */
* {
    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;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* 页头样式 */
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: 15px 20px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 0;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: #2c3e50;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

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

/* 面包屑导航 */
.breadcrumb {
    background-color: #e9ecef;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #007bff;
}

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

.section {
    padding: 50px 0;
}

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

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

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

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #007bff, #00b4ff);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    background-color: #fff;
    color: #007bff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #fff;
}

.btn:hover {
    background-color: transparent;
    color: #fff;
}

.banner {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.banner h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

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

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

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

.news-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

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

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

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

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

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.cases-grid {
    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 3px 10px rgba(0, 0, 0, 0.1);
}

.case-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.careers-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

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

.text-center {
    text-align: center;
    margin-top: 30px;
}

.btn-secondary {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #007bff;
}

/* 新闻页面样式 */
.news-list {
    margin-bottom: 40px;
}

.news-article {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.meta {
    display: flex;
    margin-bottom: 20px;
}

.date,
.category {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    margin-right: 10px;
}

.category {
    background: #007bff;
    color: #fff;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.pagination a.active,
.pagination a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

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

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-item {
    display: inline-block;
    padding: 10px 20px;
    background: #e9ecef;
    border-radius: 30px;
    color: #333;
    transition: all 0.3s;
}

.category-item:hover,
.category-item.active {
    background: #007bff;
    color: #fff;
}

.product-section {
    margin-bottom: 50px;
}

.product-section h3 {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

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

.product-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

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

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

.product-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-desc {
    color: #7f8c8d;
    margin-bottom: 20px;
    min-height: 60px;
}

.product-features {
    text-align: left;
    margin-bottom: 20px;
}

.product-features li {
    margin-bottom: 10px;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.product-features li:before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
}

.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #0056b3;
    color: #fff;
}

/* 服务中心样式 */
.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
}

.service-process {
    margin-bottom: 50px;
}

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

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

.step-number {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin: 0 auto 20px;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 25px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.step h4 {
    margin-bottom: 10px;
}

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

.package-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

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

.package-card.featured {
    border: 2px solid #007bff;
    transform: scale(1.05);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.package-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.package-card ul {
    margin: 25px 0;
}

.package-card li {
    margin-bottom: 10px;
    padding: 5px 0;
}

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

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

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

.feature-item h4 {
    margin-bottom: 15px;
}

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

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

.search-btn {
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0056b3;
}

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

.category-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

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

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

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

.article-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.summary {
    color: #7f8c8d;
    margin-bottom: 15px;
    min-height: 80px;
}

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

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: #e9ecef;
    border-radius: 30px;
    color: #333;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #007bff;
    color: #fff;
}

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

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

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

.faq-question h4 {
    margin-bottom: 0;
    color: #2c3e50;
}

.toggle {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

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

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

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

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

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

.company-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

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

.contact-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.map-section {
    text-align: center;
}

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

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

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

.footer-section h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.footer-section ul li {
    margin-bottom: 10px;
    float: left;
    width: 33%;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.main-news .category {
    margin-bottom: 15px;
}

.main-services .service-features {
    margin-top: 2rem;
}

.main-knowledge .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.main-knowledge .knowledge-section {
    margin-top: 2rem;
}

.main-knowledge .summary {
    min-height: auto;
}

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

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .process-steps {
        flex-direction: column;
    }

    .step:not(:last-child):after {
        display: none;
    }

    .package-card.featured {
        transform: scale(1);
    }

    .package-card.featured:hover {
        transform: translateY(-5px);
    }

    .search-input,
    .search-btn {
        border-radius: 30px;
    }

    .search-input {
        margin-bottom: 10px;
    }

    .faq-categories {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 30px 0;
    }

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

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
    }
}