/* 基础样式重置 */
* {
    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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用样式 */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.btn-outline:hover {
    background-color: #e74c3c;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #e74c3c;
    font-size: 24px;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e74c3c;
    background-color: #fdf2f1;
}

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

.breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
}

/* 首页样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

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

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.intro {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 40px;
}

.intro h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.news {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.news h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

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

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

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

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

.news-item .date {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
}

.services {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 40px;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

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

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: #fdf2f1;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.service-item i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.service-item:hover i {
    color: white;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.cases {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.cases h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

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

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

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

.case-icon {
    width: 80px;
    height: 80px;
    background-color: #fdf2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.case-icon i {
    font-size: 36px;
    color: #e74c3c;
}

.case-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 公司简介页面样式 */
.page-about {
    padding: 40px 0;
}

.about-intro h2,
.culture h2,
.development h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdf2f1;
    border-radius: 8px;
    color: #e74c3c;
}

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

.culture-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.culture-item i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.culture-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e74c3c;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 20px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* 产品中心页面样式 */
.page-products {
    padding: 40px 0;
}

.product-categories h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

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

.category-btn {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.product-item {
    background-color: #fff;
    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(-10px);
}

.product-image {
    height: 200px;
    background-color: #fdf2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

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

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* 新闻动态页面样式 */
.page-news {
    padding: 40px 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

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

.news-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-tags a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f1f1f1;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-tags a:hover {
    background-color: #e74c3c;
    color: white;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sidebar-widget {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #e74c3c;
    padding-bottom: 10px;
    border-bottom: 2px solid #fdf2f1;
}

.recent-news li {
    list-style: none;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.recent-news li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-news a {
    text-decoration: none;
    color: #333;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.recent-news a:hover {
    color: #e74c3c;
}

.recent-news span {
    font-size: 12px;
    color: #999;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1f1f1;
    color: #666;
    text-decoration: none;
    border-radius: 30px;
    margin: 0 5px 10px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #e74c3c;
    color: white;
}

/* 成功案例页面样式 */
.page-cases {
    padding: 40px 0;
}

.cases-intro h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.cases-filter {
    text-align: center;
    margin: 40px 0;
}

.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.case-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-image {
    height: 180px;
    background-color: #fdf2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
}

.case-content {
    padding: 25px;
}

.case-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.case-desc {
    margin-bottom: 20px;
    color: #666;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #fdf2f1;
    color: #e74c3c;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 5px;
}

.cases-testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

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

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 40px;
    color: #e74c3c;
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    margin-right: 15px;
    color: #ccc;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.author-info p {
    color: #777;
    font-size: 14px;
}

/* 知识库页面样式 */
.page-knowledge {
    padding: 40px 0;
}

.knowledge-header h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.knowledge-search {
    max-width: 600px;
    margin: 40px auto;
}

.search-box {
    display: flex;
}

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

.search-box button {
    padding: 0 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

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

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

.category-icon {
    width: 80px;
    height: 80px;
    background-color: #fdf2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 36px;
    color: #e74c3c;
}

.category-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

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

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.article-image {
    height: 180px;
    background-color: #fdf2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 48px;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #777;
}

.article-excerpt {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #c0392b;
}

.faq-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #e74c3c;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

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

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

.faq-answer p {
    padding: 20px 0;
    color: #666;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 联系我们页面样式 */
.page-contact {
    padding: 40px 0;
}

.contact-header h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-card {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #fdf2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #e74c3c;
    font-size: 24px;
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.departments h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #e74c3c;
}

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

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

.department-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.department-header i {
    font-size: 24px;
    color: #e74c3c;
    margin-right: 15px;
}

.department-header h4 {
    font-size: 18px;
}

.map-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e74c3c;
}

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

/* 页脚样式 */
footer {
    background-color: #333;
    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: 50px;
    height: 2px;
    background-color: #e74c3c;
}

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

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

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

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

.footer-section p {
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 14px;
}

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

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

    nav ul li {
        margin: 5px;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .news-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row-reverse;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .timeline-year {
        left: 30px;
        transform: none;
    }

    .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left !important;
    }
}