/* 基础样式重置 */
* {
    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: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

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

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

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

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

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

/* 首页样式 */
.hero {
    background: linear-gradient(rgba(30, 87, 153, 0.8), rgba(41, 137, 216, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%231e5799" opacity="0.3"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

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

.btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #28a745;
}

.btn:hover {
    background: transparent;
    color: #28a745;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 内容区域通用样式 */
section {
    margin-bottom: 50px;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #1e5799;
    position: relative;
}

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

/* 公司简介 */
.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    color: #1e5799;
}

/* 新闻动态 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

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

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

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e5799;
}

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

.news-item p {
    margin-bottom: 15px;
    color: #555;
}

.read-more {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

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

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    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 i {
    color: #1e5799;
    margin-bottom: 20px;
}

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

.service-item p {
    color: #666;
}

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

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

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

.case-item i {
    color: #28a745;
    margin-bottom: 20px;
}

.case-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e5799;
}

.case-item p {
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: #1e5799;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: #1e5799;
    color: white;
    border-color: #1e5799;
}

/* 页面头部（子页面） */
.page-header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.page-header h2 {
    font-size: 36px;
    margin: 0;
    color: white;
}

.page-header h2:after {
    background: #28a745;
}

/* 公司简介页面 */
.about-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1e5799;
}

.timeline li {
    position: relative;
    margin-bottom: 30px;
}

.timeline-year {
    position: absolute;
    margin-left: -70px;
    top: 0;
    width: 60px;
    height: 30px;
    background: #1e5799;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: bold;
}

.timeline-content h3 {
    color: #1e5799;
    margin-bottom: 10px;
}

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

.honor-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.honor-item i {
    color: #ffc107;
    margin-bottom: 15px;
}

.honor-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1e5799;
}

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

.product-categories ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

.product-categories ul li a {
    display: block;
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.product-categories ul li a:hover,
.product-categories ul li.active a {
    background: #1e5799;
    color: white;
    border-color: #1e5799;
}

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

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

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e5799;
}

.product-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 服务中心页面 */
.services-intro {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services-intro h2 {
    text-align: center;
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.service-icon {
    color: #1e5799;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e5799;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-process {
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-process h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e5799;
}

.service-commitment {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-commitment h2 {
    text-align: center;
    margin-bottom: 30px;
}

.service-commitment ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.service-commitment li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.service-commitment li:last-child {
    border-bottom: none;
}

.service-commitment li i {
    color: #28a745;
    margin-right: 15px;
    font-size: 20px;
}

/* 成功案例页面 */
.cases-filter {
    margin-bottom: 30px;
}

.cases-filter ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

.cases-filter ul li a {
    display: block;
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.cases-filter ul li a:hover,
.cases-filter ul li.active a {
    background: #1e5799;
    color: white;
    border-color: #1e5799;
}

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

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.case-image {
    height: 200px;
    background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e5799;
}

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

.case-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.knowledge-search input {
    flex: 1;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.knowledge-search button {
    padding: 15px 25px;
    background: #1e5799;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.knowledge-search button:hover {
    background: #0d3a70;
}

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

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

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

.category-item i {
    color: #1e5799;
    margin-bottom: 20px;
}

.category-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e5799;
}

.category-item p {
    color: #666;
}

.articles-list {
    margin-bottom: 30px;
}

.article-item {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.article-item h3 a {
    color: #1e5799;
    text-decoration: none;
}

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

.article-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-item p {
    color: #666;
    line-height: 1.6;
}

/* 联系我们页面 */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #1e5799;
    min-width: 50px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e5799;
}

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

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

.contact-card {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.contact-card i {
    color: #1e5799;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e5799;
}

.contact-card p {
    margin-bottom: 10px;
}

.contact-card a {
    color: #28a745;
    text-decoration: none;
}

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

.map-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.map-placeholder {
    height: 400px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 10px;
}

.map-placeholder i {
    margin-bottom: 20px;
    color: #1e5799;
}

/* 常见问题页面 */
.faq-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search input {
    flex: 1;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.faq-search button {
    padding: 15px 25px;
    background: #1e5799;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

.faq-categories ul li a {
    display: block;
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.faq-categories ul li a:hover,
.faq-categories ul li.active a {
    background: #1e5799;
    color: white;
    border-color: #1e5799;
}

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

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

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

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

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

.faq-question i {
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: #1e5799;
    color: white;
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

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

.faq-contact {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-contact h2 {
    text-align: center;
    margin-bottom: 20px;
}

.faq-contact p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #666;
}

.faq-contact a {
    color: #28a745;
    text-decoration: none;
}

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

/* 页面底部 */
footer {
    background: #343a40;
    color: #fff;
    padding: 50px 0 20px;
}

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

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

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #28a745;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

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

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #495057;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #1e5799;
    transform: translateY(-3px);
}

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

.homepage .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.homepage .news-list {
    grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
}

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

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px;
    }

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

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

    section h2 {
        font-size: 28px;
    }

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

    .news-list,
    .services-grid,
    .cases-grid,
    .products-grid,
    .contacts-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

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

    .step {
        margin-bottom: 30px;
    }

    .step:last-child {
        margin-bottom: 0;
    }

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

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

    .knowledge-search button,
    .faq-search button {
        border-radius: 30px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .map-placeholder {
        height: 250px;
    }
}

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

    .hero {
        padding: 50px 15px;
    }

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

    section h2 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
    }

    .news-list,
    .products-grid,
    .cases-grid {
        gap: 20px;
    }
}