/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1B2A4A;
}

.section-title p {
    color: #777;
    margin-top: 0.5rem;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-block;
    background: #1B2A4A;
    color: #fff;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #2C4A6A;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid #1B2A4A;
    color: #1B2A4A;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #1B2A4A;
    color: #fff;
}

.btn-outline-small {
    display: inline-block;
    border: 1.5px solid #1B2A4A;
    color: #1B2A4A;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 0.5rem;
}

.btn-outline-small:hover {
    background: #1B2A4A;
    color: #fff;
}

/* ===== 头部 ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    max-height: 50px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.25s;
}

.nav a:hover,
.nav a.active {
    color: #1B2A4A;
    border-bottom-color: #1B2A4A;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #1B2A4A;
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   ✅ 轮播样式（完整版）
   ============================================================ */

.banner-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    max-height: 700px;
    overflow: hidden;
    background: #0F1A2E;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ----- 每张幻灯片 ----- */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 当前激活的幻灯片 */
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ----- 图片上的半透明遮罩层 ----- */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ----- 文字内容 ----- */
.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ----- 轮播指示器（圆点） ----- */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dots .dot.active {
    background: #ffffff;
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ----- 左右箭头 ----- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 2.8rem;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    padding: 0;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev {
    left: 24px;
}

.carousel-arrow.next {
    right: 24px;
}

/* ============================================================
   首页：集团简介
   ============================================================ */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1rem;
    color: #444;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    background: #d0d7de;
}

/* ============================================================
   下属公司
   ============================================================ */

.subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.subsidiary-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.subsidiary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.subsidiary-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.subsidiary-card h3 {
    color: #1B2A4A;
    margin-bottom: 0.3rem;
}

.subsidiary-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== 下属公司完整页 ===== */
.subsidiary-grid-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.subsidiary-card-full {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.subsidiary-card-full .subsidiary-icon {
    font-size: 2.4rem;
    min-width: 50px;
    text-align: center;
}

.subsidiary-card-full h3 {
    color: #1B2A4A;
    margin-bottom: 0.3rem;
}

.subsidiary-card-full p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

/* ============================================================
   产品中心
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #1B2A4A;
}

.product-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   案例中心
   ============================================================ */

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.case-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.case-card h3 {
    font-size: 1.1rem;
    color: #1B2A4A;
    margin-bottom: 0.3rem;
}

.case-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   新闻资讯
   ============================================================ */

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
    color: #333;
}

.news-item:hover {
    color: #1B2A4A;
    padding-left: 0.5rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 100px;
}

.news-list-full {
    max-width: 860px;
    margin: 0 auto;
}

.news-item-full {
    padding: 1.8rem 0;
    border-bottom: 1px solid #eee;
}

.news-item-full .news-date {
    color: #999;
    font-size: 0.9rem;
}

.news-item-full h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.3rem;
}

.news-item-full h3 a {
    color: #1B2A4A;
}

.news-item-full h3 a:hover {
    text-decoration: underline;
}

.news-item-full p {
    color: #555;
    line-height: 1.7;
}

/* ============================================================
   页脚
   ============================================================ */

.footer {
    background: #0F1A2E;
    color: #ccc;
    padding: 3rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-info p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
    color: #aaa;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin: 0.4rem 0;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-wechat h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   联系我们
   ============================================================ */

.qrcode-placeholder {
    background: #fff;
    border: 2px solid #e0e4ea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.page-banner {
    padding: 4rem 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

    .nav.open {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }

    .logo-img {
        height: 36px;
    }

    .banner-carousel {
        height: 55vh;
        min-height: 300px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 0.95rem;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dots {
        bottom: 18px;
        gap: 10px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .intro-grid {
        grid-template-columns: 1fr !important;
    }

    .subsidiary-grid-full {
        grid-template-columns: 1fr;
    }

    .subsidiary-card-full {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2.5rem 0;
    }

    .news-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .news-date {
        min-width: auto;
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .page-banner h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .banner-carousel {
        height: 50vh;
        min-height: 260px;
    }

    .carousel-content h1 {
        font-size: 1.6rem;
    }

    .carousel-content p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }

    .carousel-content .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dots {
        bottom: 12px;
        gap: 8px;
    }

    .btn-primary {
        padding: 10px 24px;
    }

    .page-banner h1 {
        font-size: 1.6rem;
    }
}