/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* LCP image */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* overlay */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
}

/* content */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 54px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* =========================================
   HERO BUTTONS
========================================= */

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.25s ease;
    white-space: nowrap;
}

/* 主按钮 */
.hero-actions .btn-primary {
    background: #1677ff;
    color: #fff;
    border: 1px solid #1677ff;
}

.hero-actions .btn-primary:hover {
    background: #0f5bd6;
    border-color: #0f5bd6;
}

/* 次按钮 */
.hero-actions .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.7);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #ffffff;
}


/* =========================================
   POLL BOX
========================================= */

.poll-box {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.poll-box h2 {
    margin-bottom: 15px;
}

.poll-box label {
    display: block;
    margin: 15px 0;
}

.poll-box button {
    margin-top: 20px;
    background: #1677ff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
}


/* =========================================
   CONTENT BOX
========================================= */

.content-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}

.content-box h2 {
    margin-bottom: 20px;
}

.content-box li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }
}


/* =========================================
   CARD SYSTEM (CORE FIXED)
========================================= */

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}


/* 图片容器 */
.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f5f7;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}


/* 内容区 */
.card-body {
    padding: 14px 12px;
    text-align: center;
}

.card-body h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1f2d3d;
}


/* =========================================
   CARD HOVER
========================================= */

.product-card,
.industry-card {
    transition: all 0.25s ease;
}

.product-card:hover,
.industry-card:hover {
    transform: translateY(-5px);
}

.product-card:hover img,
.industry-card:hover img {
    transform: scale(1.06);
}


/* =========================================
   ASPECT RATIO BY TYPE
========================================= */

.product-card .card-image {
    aspect-ratio: 4 / 3;   /* 800×600 */
}

.industry-card .card-image {
    aspect-ratio: 10 / 7;  /* 1000×700 */
}


/* =========================================
   DOWNLOAD BOX
========================================= */

.download-box {
    background: #fff;
}

.download-box ul {
    padding: 12px 16px;
}

.download-box ul li {
    margin: 10px 0;
}

.download-box ul li a {
    font-size: 14px;
    color: #1f2d3d;
}

.download-box ul li a:hover {
    color: #1677ff;
}


/* =========================================
   LAYOUT GRID (BOTTOM SECTION)
========================================= */

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.bottom-grid .card {
    width: 100%;
    height: 100%;
}
/* =========================================
   LIST CARD
========================================= */

.list-card ul {
    padding: 12px 16px;
}

.list-card ul li {
    margin: 8px 0;
}

.poll-box,
.download-box {
    padding: 22px;
}

@media (max-width: 768px) {

    .bottom-grid {
        grid-template-columns: 1fr !important;
    }

}

.section {
    padding: 10px 0;
}



/* 1. 清 container 空隙（关键） */
.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. 清标题默认空白 */
h2 {
    margin: 0 0 10px 0 !important;
}

/* 3. 清 grid 上下空白 */
.grid {
    margin: 0 !important;
}

/* 4. 卡片不额外拉开 */
.card {
    margin: 0 !important;
}
/* =========================================
   MOBILE PRODUCT CENTER
   手机端产品中心两列
========================================= */

@media (max-width: 768px) {

    .home-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .home-product-grid .product-card {
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 12px;
    }

    .home-product-grid .card-image {
        aspect-ratio: 4 / 3;
    }

    .home-product-grid .card-body {
        padding: 8px 4px 10px;
    }

    .home-product-grid .card-body h3 {
        font-size: 13px;
        line-height: 1.35;
        font-weight: 500;
    }

}

/* =========================================
   MOBILE TOOL GRID
   首页工程师工具：手机端两列
========================================= */

@media (max-width: 768px) {

    .tool-card {
        min-width: 0;
    }

    .grid:has(.tool-card) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .tool-card .card-body {
        min-height: 36px;
        padding: 14px 8px;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
        font-size: 14px;
        line-height: 1.4;
    }

}

/* =========================================
   MOBILE HOME LIST CLEAN
   首页手机端：隐藏文章/案例日期和点击次数
========================================= */

@media (max-width: 768px) {

    #homeArticles li,
    #homeCasesList li {
        display: block !important;
        padding: 7px 0 !important;
        border-bottom: 1px solid #f0f2f5;
    }

    #homeArticles li:last-child,
    #homeCasesList li:last-child {
        border-bottom: none;
    }

    #homeArticles li span,
    #homeCasesList li span {
        display: none !important;
    }

    #homeArticles li a,
    #homeCasesList li a {
        display: block;
        font-size: 15px;
        line-height: 1.55;
        color: #0f172a;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}

/* =========================================
   MOBILE HERO IMAGE
   手机端使用小尺寸 banner
========================================= */

.hero-section {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
}