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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', 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: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 22px;
    color: #dc143c;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.nav ul li {
    margin-left: 32px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav ul li a:hover {
    color: #dc143c;
}

.nav ul li a.active {
    color: #dc143c;
    font-weight: 600;
}

.nav ul li a.active::after {
    width: 100%;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #dc143c;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
}

/* 首屏 Banner */
.banner {
    background: url('../img/banner1.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 20, 60, 0.6);
    z-index: 0;
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.banner p {
    font-size: 20px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #dc143c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    background-color: #b91030;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: #fff;
}

/* 核心服务板块 */
.services {
    padding: 100px 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.services p.subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-item {
    background-color: #f8f9fa;
    padding: 48px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc143c, #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.2);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    margin-bottom: 24px;
    position: relative;
}

.service-icon img {
    width: 135px;
    height: 90px;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transform: scale(1.1);
}

.service-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.service-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 服务区域板块 */
.areas {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.areas h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.areas p.subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.area-item {
    background-color: #fff;
    padding: 36px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
}

.area-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.2);
}

.area-item h3 {
    font-size: 20px;
    color: #dc143c;
    margin-bottom: 16px;
    font-weight: 600;
}

.area-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 核心优势 */
.advantages {
    padding: 100px 0;
    background-color: #fff;
}

.advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.advantages p.subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.advantage-item {
    text-align: center;
    padding: 48px 24px;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.2);
}

.advantage-icon {
    margin-bottom: 24px;
    position: relative;
}

.advantage-icon img {
    width: 70px;
    height: 70px;
    transition: transform 0.3s ease;
}

.advantage-item:hover .advantage-icon img {
    transform: scale(1.1);
}

.advantage-item h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 16px;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 案例展示区 */
.cases {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.cases h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cases p.subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.case-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.2);
}

.case-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(220, 20, 60, 0.1), rgba(220, 20, 60, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-item:hover .case-image::before {
    opacity: 1;
}

.case-content {
    padding: 24px;
}

.case-item h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.case-item:hover h3 {
    color: #dc143c;
}

.case-location {
    color: #dc143c;
    font-weight: 500;
    font-size: 14px;
}

.case-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-more {
    text-align: center;
    margin-top: 48px;
}

.case-more .btn {
    display: inline-block;
}

.case-category {
    margin-bottom: 48px;
}

.case-category h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #dc143c;
    display: inline-block;
}

/* 常见问题 FAQ */
.faq {
    padding: 100px 0;
    background-color: #fff;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.faq p.subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.faq-item {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(220, 20, 60, 0.1);
    padding-bottom: 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-bottom-color: rgba(220, 20, 60, 0.3);
}

.faq-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
    padding-left: 24px;
}

.faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #dc143c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    padding-left: 24px;
}

.faq-more {
    text-align: center;
    margin-top: 48px;
}

.faq-more .btn {
    display: inline-block;
}

/* 底部版权 */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc143c, #ff6b6b);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-contact p {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.footer-contact p strong {
    color: #ff6b6b;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 24px;
    width: 100%;
}

.footer-copyright p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

.footer-copyright p:first-child {
    color: #e0e0e0;
    font-weight: 500;
}

.footer-copyright a {
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav ul li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    #menu-toggle {
        background-color: #dc143c;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
    }

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

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

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

    .services h2,
    .areas h2,
    .advantages h2,
    .cases h2,
    .faq h2 {
        font-size: 28px;
    }

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

    .footer-logo {
        margin-bottom: 20px;
    }
}

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

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

    .services,
    .areas,
    .advantages,
    .cases,
    .faq {
        padding: 60px 0;
    }

    .services h2,
    .areas h2,
    .advantages h2,
    .cases h2,
    .faq h2 {
        font-size: 24px;
    }

    .services-grid,
    .areas-grid,
    .advantages-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 图片懒加载 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 速度优化 */
/* 预加载关键CSS */

/* 减少重排和重绘 */
* {
    box-sizing: border-box;
}

/* 优化字体加载 */
body {
    font-display: swap;
}

/* 优化图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 减少HTTP请求 */
/* 合并CSS和JS文件（实际项目中） */

/* 启用浏览器缓存 */
/* 在服务器端配置 */

/* 压缩文件 */
/* 在构建过程中配置 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-item,
.area-item,
.advantage-item,
.case-item,
.faq-item {
    animation: fadeIn 0.6s ease-out;
}

/* 确保按钮在移动设备上有足够的点击区域 */
.btn {
    min-width: 150px;
    text-align: center;
}

/* 确保链接在移动设备上有足够的点击区域 */
.nav ul li a {
    display: inline-block;
    padding: 5px 0;
}
/* 隐藏首页h1大标题 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}