/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #e94840;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo h2 {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

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

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f0f0f0;
}

.contact-phone {
    display: flex;
    align-items: center;
    color: #e94840;
    font-weight: 500;
}

.contact-phone i {
    margin-right: 10px;
    font-size: 18px;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 75px;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 40px;
    color: #e94840;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background-color: #e94840;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #d63c34;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 12px 30px;
    border: 2px solid #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* 通用部分样式 */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #e94840;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

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

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #e94840;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 16px;
    color: #666;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 微信小程序 */
.wechat-app {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.wechat-app-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 50px;
    align-items: center;
    margin-top:60px;
}

.wechat-app-qrcode {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.wechat-app-qrcode img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
}

.wechat-app-info {
    flex: 1;
    min-width: 300px;
}

.wechat-app-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.wechat-app-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 服务项目 */
.services {
    padding: 100px 0;
    background-color: #f5f5f5;
}

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

.service-item {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #e94840;
}

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

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

/* 成功案例 */
.cases {
    padding: 100px 0;
    background-color: #fff;
}

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

.case-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
}

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

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

.case-content {
    padding: 0;
}

.case-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.case-content p {
    color: #666;
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    width: 100%;
    padding: 100px 0;
    background-color: #f5f5f5;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

.contact-info {
    width: 100%;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-methods {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-methods h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-method-item i {
    font-size: 24px;
    color: #e94840;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-method-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.contact-method-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

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

.contact-item i {
    font-size: 24px;
    color: #e94840;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

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

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 博客 */
.blog {
    padding: 80px 0;
    background-color: #f9f9f9;
    margin-top: 80px;
}

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

.blog-post-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-item-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.post-meta i {
    margin-right: 5px;
}

.post-item-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.post-item-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-item-content h3 a:hover {
    color: #e94840;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    color: #e94840;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #e94840;
    color: #fff;
    border-color: #e94840;
}

.pagination a.active {
    background-color: #e94840;
    color: #fff;
    border-color: #e94840;
}

/* 博客文章 */
.blog-post {
    padding: 60px 0;
    background-color: #f5f5f5;
    margin-top: 80px;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.post-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.post-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta i {
    margin-right: 5px;
}

.post-content {
    padding: 30px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-content h2 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    border-top: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

.post-nav a {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.post-nav a:hover {
    color: #e94840;
}

.post-nav i {
    margin: 0 5px;
}

/* 公众号风格的文章卡片 */
.blog-post-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.post-item-content {
    padding: 25px;
}

.post-item-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.post-item-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #e94840;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    transform: translateX(4px);
}

.read-more i {
    margin-left: 4px;
    font-size: 12px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #e94840;
}

.footer-logo p {
    color: #ccc;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links li {
    flex: 0 0 calc(20% - 16px); /* 每排5个，考虑间距 */
    margin-bottom: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-links li {
        flex: 0 0 calc(33.333% - 13.333px); /* 移动端每排3个 */
    }
}

@media (max-width: 480px) {
    .footer-links li {
        flex: 0 0 calc(50% - 10px); /* 小屏幕每排2个 */
    }
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e94840;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #ccc;
}

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

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

    .nav-menu li {
        margin: 0 10px;
    }

    .contact-phone {
        margin-top: 15px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 30px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 20px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }

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

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

    .section-title {
        font-size: 24px;
    }

    .service-item,
    .case-item {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .post-header h1 {
        font-size: 24px;
    }

    .post-content {
        padding: 15px;
    }

    .post-content h2 {
        font-size: 20px;
    }
}