/* ========== 通用区块标题 ========== */

/* 通用区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e9fff;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }
}


/* =========================================
   1. 顶部 Banner
   ========================================= */
.hero-swiper-wrap {
    width: 100%;
    height: 480px;
    position: relative;
}

.hero-swiper-wrap .layui-carousel,
.hero-swiper-wrap .layui-carousel > [carousel-item],
.hero-swiper-wrap .layui-carousel > [carousel-item] > div {
    height: 100% !important;
    width: 100% !important;
}

.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
}

.slide-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);*/
    z-index: 2;
}

.slide-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 3;
}

.slide-content {
    text-align: left;
    color: #ffffff;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide-content h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content .hero-subhead {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.01em;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 0 32px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-badge-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 40px;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-badge i {
    margin-right: 6px;
    font-size: 16px;
}

.hero-swiper-wrap .layui-carousel-ind {
    z-index: 10;
    bottom: 24px !important;
}

.hero-swiper-wrap .layui-carousel-ind ul {
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-swiper-wrap .layui-carousel-ind li.layui-this {
    background-color: #fff;
}

.hero-swiper-wrap .layui-carousel-arrow {
    z-index: 10;
}

.hero-swiper-wrap .layui-carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 1024px) {
    .hero-swiper-wrap {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 46px;
    }

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

@media (max-width: 768px) {
    .hero-swiper-wrap {
        height: 320px;
    }

    .slide-content h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .slide-content .hero-subhead {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .pill-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .hero-swiper-wrap .layui-carousel-arrow {
        display: none !important;
    }

    .hero-swiper-wrap .layui-carousel-ind {
        bottom: 16px !important;
    }
}

/* =========================================
   2. 多应用解决方案
   ========================================= */

/* 通用区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e9fff;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }
}

/* =========================================
   多应用解决方案 (一行4列，绝对等高)
   ========================================= */
.solutions-section {
    background: #ffffff;
    padding: 80px 0;
}

/* 1. 外层容器利用 Flex 实现列等高 */
.solution-row {
    display: flex;
    flex-wrap: wrap;
}

/* 2. Layui 列本身自适应宽度，但在 Flex 容器中需保证其占满高度 */
.solution-row .layui-col-md3 {
    display: flex; /* 仅为了让内部的卡片能 100% 撑开 */
    flex-direction: column;
}

/* 3. 卡片本身 */
.solution-card {
    display: flex;
    flex-direction: column;
    background: #fbfbfd;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f2;
    transition: all 0.3s ease;
    flex: 1; /* 撑满整个父级列的高度 */
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 156, 245, 0.2);
}

/* 顶部图片区域 */
.solution-image {
    width: 100%;
    height: 160px; /* 固定图片高度，保证视觉统一 */
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.solution-image img {
    /*width: 100%;*/
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

/* 底部文字区域 */
.solution-content {
    padding: 24px;
    flex: 1; /* 核心：自动撑满剩余高度，实现对齐 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

/* 描述文字 */
.solution-content p {
    font-size: 14px;
    color: #86868b;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .solution-image {
        height: 140px;
    }

    .solution-content {
        padding: 20px;
    }

    .solution-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .solutions-section {
        padding: 48px 0;
    }

    .solution-image {
        height: 180px;
    }

    .solution-content {
        padding: 24px;
    }

    .solution-content h3 {
        font-size: 18px;
    }
}


/* =========================================
   3. 智能毫米波传感器应用场景
   ========================================= */

.scenarios-section {
    background: #fbfbfd;
    padding: 72px 0;
}

/* 使用 Layui 栅格系统实现一行2列 */
.scenario-grid {
    display: flex;
    margin-top: 20px;

}

/* 单个场景卡片 */
.scenario-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f2;
    transition: all 0.3s ease;
    height: 100%; /* 保证两列卡片等高 */
}

.scenario-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 156, 245, 0.2);
    transform: translateY(-4px);
}

/* 顶部大图 */
.scenario-image {
    width: 100%;
    height: 240px;
    background: #e8f2ff;
    overflow: hidden;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.scenario-card:hover .scenario-image img {
    transform: scale(1.03);
}

/* 底部文字内容 */
.scenario-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scenario-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.scenario-content p {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1; /* 让描述占据剩余空间，把标签推到底部 */
}

/* 标签与链接 */
.scenario-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.scenario-tag {
    background: #ffffff;
    color: #2d9cf5;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 40px;
    border: 1px solid rgba(45, 156, 245, 0.2);
}

.scenario-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d9cf5;
    font-size: 14px;
    font-weight: 500;
    margin-top: auto; /* 贴底对齐 */
}

.scenario-link i {
    font-size: 12px;
    transition: transform 0.2s;
}

.scenario-card:hover .scenario-link i {
    transform: translateX(4px);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .scenario-image {
        height: 200px;
    }

    .scenario-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .scenarios-section {
        padding: 48px 0;
    }

    .scenario-image {
        height: 180px;
    }

    .scenario-content h3 {
        font-size: 18px;
    }

    .scenario-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .scenario-content {
        padding: 20px;
    }
}


/* =========================================
   4. 公司新闻 (带封面)
   ========================================= */
.news-section {
    background: #ffffff;
    padding: 80px 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 新闻卡片：左图右文 */
.news-card {
    display: flex;
    gap: 32px;
    padding: 24px;
    background: #fbfbfd;
    border-radius: 20px;
    border: 1px solid #f0f0f2;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: rgba(45, 156, 245, 0.2);
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* 封面图区域 */
.news-cover {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e8e8ed;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-cover img {
    transform: scale(1.05);
}

/* 新闻文字区域 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 日期元数据 */
.news-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #86868b;
}

.news-category {
    background: #e8f2ff;
    color: #2d9cf5;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-card:hover .news-content h3 {
    color: #2d9cf5;
}

.news-content p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部标签 */
.news-meta-bottom {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #b0b0b5;
}

@media (max-width: 992px) {
    .news-cover {
        width: 240px;
        height: 160px;
    }

    .news-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 48px 0;
    }

    .news-list {
        gap: 20px;
    }

    /* 移动端改为上下结构 */
    .news-card {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 16px;
    }

    .news-cover {
        width: 100%;
        height: 180px;
    }

    .news-content h3 {
        font-size: 17px;
    }

    .news-content p {
        font-size: 13px;
    }

    .news-meta-top {
        margin-bottom: 8px;
    }

    .scenario-grid {
        display: block;
    }
}


/* =========================================
   5. 联系我们
   ========================================= */
.contact-section {
    background: #fbfbfd;
    padding: 80px 0;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.office-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #f0f0f2;
    transition: all 0.3s;
}

.office-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border-color: rgba(45, 156, 245, 0.2);
}

.office-card .city {
    font-size: 22px;
    font-weight: 700;
    color: #2d9cf5;
    margin-bottom: 16px;
}

.office-card .address {
    font-size: 14px;
    color: #4a4a4f;
    line-height: 1.6;
    margin-bottom: 16px;
}

.office-card .phone {
    font-size: 14px;
    color: #86868b;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    justify-content: center;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: #ffffff;
    border: 1px solid #f0f0f2;
    border-radius: 16px;
    transition: all 0.2s;
}

.contact-item:hover {
    border-color: rgba(45, 156, 245, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #2d9cf5;
}

.contact-left i {
    font-size: 22px;
}

.contact-right {
    font-size: 15px;
    color: #4a4a4f;
    font-weight: 500;
}

.map-container {
    width: 100%;
    /*height: 320px;*/
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f2;
    background: #f5f5f7;
}

@media (max-width: 992px) {
    .office-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .office-card {
        padding: 24px;
    }

    .map-container {
        height: 240px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 48px 0;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }

    .contact-left {
        font-size: 16px;
    }

    .contact-right {
        font-size: 14px;
    }
}

/* =========================================
   6. 深色页脚
   ========================================= */
.site-footer {
    background: #2a2a2e;
    color: #a1a1a6;
    padding: 64px 0 32px;
    font-size: 14px;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #a1a1a6;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #ffffff;
}

.footer-contact-text {
    font-size: 13px;
    color: #86868b;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: #86868b;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 0 24px;
    }

    .footer-title {
        margin-bottom: 16px;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}
