/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #000000;
    background: #ffffff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 顶部导航 ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    gap: 10px;
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: #c9252b;
}
.logo img { height: 40px; width: auto; max-width: 160px; margin-right: 0; }
.logo > div { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.nav ul { display: flex; gap: 5px; }
.nav ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: #000000;
    border-radius: 4px;
    transition: all 0.3s;
}
.nav ul li a:hover,
.nav ul li a.active { background: #c9252b; color: #fff; }

/* ===== Banner 轮播 ===== */
.banner {
    margin-top: 70px;
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
.banner-overlay h2 { font-size: 42px; margin-bottom: 15px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.banner-overlay p { font-size: 18px; max-width: 700px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.banner-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 35px;
    background: #c9252b;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    transition: background 0.3s;
}
.banner-btn:hover { background: #a00000; }
.banner-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.3);
    border: none; border-radius: 50%;
    color: #fff; font-size: 24px;
    cursor: pointer; transition: background 0.3s; z-index: 10;
}
.banner-arrow:hover { background: rgba(255,255,255,0.6); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }
.banner-dots {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.banner-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none; cursor: pointer;
    transition: background 0.3s;
}
.banner-dot.active { background: #fff; }

/* ===== 通用板块 ===== */
.section { padding: 60px 0; background: #fff; }
.section-gray { background: #ffffff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 {
    font-size: 30px; color: #c9252b;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: #c9252b;
}
.section-title p { color: #a9a9a9; margin-top: 10px; font-size: 14px; }

/* ===== 公司简介 ===== */
.about-section { padding: 60px 0; }
.about-content { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-text h3 { font-size: 22px; color: #c9252b; margin-bottom: 20px; }
.about-text p { color: #000000; margin-bottom: 15px; text-indent: 2em; }
.about-text .more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 28px;
    background: #c9252b;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s;
}
.about-text .more-btn:hover { background: #a00000; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* ===== 新闻中心 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.news-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.news-card-img {
    width: 200px; min-height: 150px;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9a9a9;
    font-size: 13px;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 15px 15px 15px 0; flex: 1; }
.news-card-body h3 { font-size: 16px; margin-bottom: 10px; }
.news-card-body .news-date { font-size: 13px; color: #a9a9a9; margin-bottom: 8px; }
.news-card-body .news-summary { font-size: 14px; color: #a9a9a9; }

/* ===== 产品展示 ===== */
.product-tabs { display: flex; justify-content: center; gap: 5px; margin-bottom: 30px; }
.product-tab {
    padding: 10px 30px;
    border: 2px solid #c9252b;
    background: #fff;
    color: #c9252b;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}
.product-tab.active { background: #c9252b; color: #fff; }
.product-slider-wrap { position: relative; overflow: hidden; }
.product-slider { display: flex; gap: 20px; transition: transform 0.4s ease; }
.product-item {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-item-img {
    width: 100%; height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center; justify-content: center;
    color: #a9a9a9; font-size: 13px;
}
.product-item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-item-body { padding: 15px; text-align: center; }
.product-item-body h4 { font-size: 15px; color: #000000; }
.slider-controls { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.slider-btn {
    width: 40px; height: 40px;
    border: 2px solid #c9252b;
    background: #fff;
    color: #c9252b;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}
.slider-btn:hover { background: #c9252b; color: #fff; }

/* ===== 案例展示 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-item {
    position: relative;
    border-radius: 8px; overflow: hidden; cursor: pointer;
}
.case-item-img {
    width: 100%; height: 220px;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    color: #a9a9a9;
}
.case-item-img img { width: 100%; height: 100%; object-fit: cover; }
.case-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(201,37,43,0.85);
    color: #fff;
    padding: 12px; text-align: center; font-size: 14px;
}

/* ===== 页脚 ===== */
.footer {
    background: #000000;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}
.footer p { margin-bottom: 8px; font-size: 14px; }
.footer a { color: #ccc; }
.footer a:hover { color: #fff; }

/* ===== 手机端自适应 ===== */

/* ===== 页脚网格 ===== */
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: left; margin-bottom: 30px; }
.footer-col h3 { font-size: 16px; color: #fff; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.footer-col h3::after { content: ""; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #c9252b; }
.footer-col p { font-size: 13px; line-height: 1.8; color: #aaa; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 13px; color: #aaa; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }

/* ===== 子页面横幅 ===== */
.page-banner {
    margin-top: 70px;
    height: 70px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.page-banner h1 { font-size: 24px; font-weight: normal; }
/* ===== 首页欢迎区域 ===== */
.welcome { padding: 40px 0; }
.welcome-content { display: flex; gap: 40px; align-items: flex-start; }
.welcome-image { flex: 0 0 380px; }
.welcome-image img { width: 100%; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.welcome-text { flex: 1; }
.welcome-text p { line-height: 1.9; color: #444; font-size: 15px; }
@media (max-width: 768px) {
    .welcome { padding: 30px 0; }
    .welcome-content { flex-direction: column; gap: 20px; }
    .welcome-image { flex: none; }
    .welcome-image img { max-height: 250px; object-fit: cover; }
    .welcome-text p { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .container { width: 100%; padding: 0 12px; }

    .header-inner { height: 56px; }

    .logo { gap: 8px; }
    .logo img { height: 32px; max-width: 100px; }
    .logo > div { font-size: 0; }
    .logo > div > div:first-child { font-size: 15px !important; letter-spacing: 1px !important; }
    .logo > div > div:last-child { font-size: 10px !important; line-height: 1.2 !important; }

    .nav ul { gap: 2px; }
    .nav ul li a { padding: 8px 10px; font-size: 13px; }

    .banner { margin-top: 56px; height: 220px; }
    .banner-overlay h2 { font-size: 22px; }
    .banner-overlay p { font-size: 14px; max-width: 90%; }
    .banner-btn { padding: 10px 24px; font-size: 14px; }
    .banner-arrow { width: 36px; height: 36px; font-size: 18px; }
    .banner-arrow.prev { left: 8px; }
    .banner-arrow.next { right: 8px; }
    .banner-dot { width: 10px; height: 10px; }

    .section { padding: 30px 0; }
    .section-title h2 { font-size: 22px; }
    .section-title p { font-size: 13px; }

    .about-content { flex-direction: column; gap: 20px; }
    .about-text h3 { font-size: 18px; }
    .about-text p { font-size: 14px; }
    .about-image img { max-height: 250px; object-fit: cover; }

    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .news-card { flex-direction: column; }
    .news-card-img { width: 100%; height: 180px; }
    .news-card-body { padding: 12px; }
    .news-card-body h3 { font-size: 15px; }

    .product-tabs { gap: 4px; flex-wrap: wrap; }
    .product-tab { padding: 8px 16px; font-size: 13px; }
    .product-item { flex: 0 0 calc(50% - 10px); }
    .product-item-img { height: 140px; }
    .product-item-body h4 { font-size: 13px; }

    .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .case-item-img { height: 140px; }
    .case-item-overlay { font-size: 12px; padding: 8px; }

    .footer { padding: 30px 0 0 0; }
    .footer p { font-size: 12px; }

    .page-banner { margin-top: 56px !important; height: 56px !important; }
    .page-banner h1 { font-size: 18px !important; }
    .page-content { padding: 30px 16px !important; font-size: 14px !important; }

    .service-grid { grid-template-columns: 1fr !important; gap: 16px !important; padding: 30px 12px !important; }

    .contact-section { padding: 30px 12px !important; }
    .contact-item { flex-direction: column; text-align: center; gap: 10px; }

    .media-section { padding: 30px 12px !important; }
    .media-section h2 { font-size: 20px !important; margin-bottom: 20px !important; }
    .media-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .media-card { padding: 20px 12px !important; }
    .media-card-icon { width: 50px; height: 50px; font-size: 22px; }
    .media-card h3 { font-size: 14px !important; }
    .media-card p { font-size: 12px !important; }

    .calc-container { padding: 16px !important; border-radius: 12px !important; }
    .back-link { margin: 12px 0 !important; }

    .page-content .value-grid { grid-template-columns: 1fr !important; }
}

/* ===== 手机端汉堡菜单 ===== */
.hamburger {
    display: none; flex-direction: column; gap: 4px;
    cursor: pointer; padding: 4px; background: none; border: none;
    min-width: 28px; min-height: 28px; align-items: center; justify-content: center;
}
.hamburger span {
    display: block; width: 22px; height: 2.5px; background: #000000;
    border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

@media (max-width: 768px) {
    .welcome { padding: 30px 0; }
    .welcome-content { flex-direction: column; gap: 20px; }
    .welcome-image { flex: none; }
    .welcome-image img { max-height: 250px; object-fit: cover; }
    .welcome-text p { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hamburger { display: flex; }
    .nav ul { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 8px 0; border-radius: 0 0 8px 8px; z-index: 50; gap: 0; }
    .nav ul.show { display: flex; }
    .nav ul li a { display: block; padding: 14px 20px; font-size: 15px; color: #000; border-bottom: 1px solid #f0f0f0; }
    .nav ul li:last-child a { border-bottom: none; }
    .nav ul li a:hover { background: #f5f5f5; }
    .nav ul li a.active { color: #c9252b; font-weight: bold; }
}

/* ===== 业务范围网格 ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===== 业务卡片 ===== */
.service-card { background: #fff; border-radius: 8px; padding: 30px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-card .service-icon { font-size: 48px; margin-bottom: 15px; }
.service-card h3 { font-size: 20px; margin-bottom: 15px; color: #c9252b; }
.service-card p { color: #666; font-size: 14px; line-height: 1.8; }
