/* ============================================================
   home.css — 首页独占样式（企业优势/三大承诺/实力卡片/产品推荐等）
   通用样式（header/footer/nav/modal/form等）仍在 style.css
   ============================================================ */

/* ===== Banner ===== */
.banner-box {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
}

.banner-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

/* ===== 关于我们简介卡 ===== */
.about-card {
    background: linear-gradient(#fff, #f8fbff);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 100%;
}

.about-video-box {
    overflow: hidden;
    flex: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.about-video-box video {
    width: 100%;
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn i {
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
}

.about-text-box {
    display: block;
}

/* 移动端默认：只显示第一段介绍，隐藏第二段及PC端链接 */
.about-text-box .pc-only {
    display: none;
}

.about-text-box .more-pc {
    display: none;
}

.about-text-box .more-mobile {
    display: inline;
}

.tag-blue {
    display: inline-block;
    background: #e6f0ff;
    color: #0080ff;
    font-size: 15px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.about-text-box h3 {
    font-size: 24px;
    color: #164fbd;
    margin-bottom: 12px;
}

.about-scroll-text {
    padding-right: 8px;
    margin-bottom: 10px;
}

.about-scroll-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2px;
}

/* ===== 实力卡片（4卡片：专业团队/专利/认证/服务）===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.card-item {
    background: linear-gradient(#fff, #f8fbff);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 12px 10px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 110px;
}

.title-text {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.desc-text {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

.card-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    position: static;
    margin-bottom: 8px;
    transform: none;
}

/* ===== 企业优势 ===== */
.adv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.adv-card {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(#fff, #f8fbff);
    box-shadow: var(--shadow);
}

.adv-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
}

.adv-content {
    padding: 16px;
}

.adv-content h4 {
    font-size: 18px;
    color: var(--color-title);
    margin-bottom: 12px;
}

.adv-content ul li {
    font-size: 14px;
    color: #222;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.adv-content ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 10px;
}

/* ===== 三大承诺 ===== */
.promise-wrap {
    padding: 18px 0;
}

.promise-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.promise-card {
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: var(--shadow);
    border-left: 5px solid transparent;
}

.promise-card:nth-child(1) {
    background: linear-gradient(#fff, #fff7f7);
    border-left-color: #e53e3e;
}

.promise-card:nth-child(2) {
    background: linear-gradient(#fff, #f7fbff);
    border-left-color: var(--color-primary);
}

.promise-card:nth-child(3) {
    background: linear-gradient(#fff, #f7fff9);
    border-left-color: #28a745;
}

.promise-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.promise-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.promise-card:nth-child(1) .promise-icon {
    color: #e53e3e;
}

.promise-card:nth-child(2) .promise-icon {
    color: var(--color-primary);
}

.promise-card:nth-child(3) .promise-icon {
    color: #28a745;
}

.promise-card h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.promise-card:nth-child(1) h4 {
    color: #c53030;
}

.promise-card:nth-child(2) h4 {
    color: var(--color-title);
}

.promise-card:nth-child(3) h4 {
    color: #1e7e34;
}

.promise-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* ===== 产品推荐 ===== */
.product-wrap {
    background: linear-gradient(#fff, #f8fbff);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0, 80, 200, 0.06);
}

.product-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 22px;
}

.product-tab-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-item {
    padding: 7px 16px;
    border-radius: 24px;
    border: 1px solid #dde8f8;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: var(--transition);
}

.tab-item.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.prod-card {
    border: 1px solid #e8f0fc;
    border-radius: var(--radius);
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 80, 200, 0.06);
}

.prod-card img {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
    border-radius: var(--radius);
}

.prod-card h4 {
    font-size: 14px;
    margin-bottom: 0;
    color: #222;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
}

/* ===== 资质证书 ===== */
.cert-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 28px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.cert-card {
    border: 1px solid #e8f0fc;
    border-radius: 16px;
    padding: 10px 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 80, 200, 0.06);
}

.cert-img-box {
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cert-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.cert-card h4 {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

/* ===== 首页新闻 ===== */
.news-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 28px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 32px;
}

.news-item {
    display: flex;
    gap: 10px;
    border: none;
    border-bottom: 1px solid #e8f0fc;
    border-radius: 0;
    padding: 10px 0;
    transition: var(--transition);
    align-items: center;
    min-width: 0;
    margin-bottom: 8px;
}

.news-date {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
}

.news-date .day {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    padding-top: 8px;
}

.news-date .ym {
    font-size: 11px;
    color: #fff;
    background: var(--color-primary);
    text-align: center;
    padding: 4px 0;
    margin-top: 0;
}

.news-text {
    flex: 1;
    min-width: 0;
}

.news-text h4 {
    font-size: 15px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.news-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== 合作伙伴轮播 ===== */
.swiper-wrap {
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

.swiper-track {
    display: flex;
    width: max-content;
    animation: swipeLeft 25s linear infinite;
}

.swiper-item {
    width: 160px;
    margin-right: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 80, 200, 0.06);
}

.swiper-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

@keyframes swipeLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== 团队风采大图 ===== */
.team-img-box {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 59, 114, 0.08);
}

.team-img-box img {
    width: 100%;
    display: block;
}

/* ==================================================================
   媒体查询 — 平板（769-992px）
   ================================================================== */
@media (min-width:769px) {

    .banner-box {
        max-height: 400px;
    }

    .banner-box img {
        height: 100%;
    }

    .about-card {
        gap: 16px;
        padding: 10px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .tab-item {
        padding: 9px 22px;
        font-size: 15px;
    }

    .advantage-section {
        display: block;
    }

    .product-wrap {
        padding: 30px;
    }

    .product-tab-group {
        margin-bottom: 28px;
    }

    .prod-card {
        padding: 20px 15px;
    }

    .prod-card img {
        height: 220px;
        margin-bottom: 16px;
    }

    .prod-card h4 {
        font-size: 16px;
    }

    .cert-card {
        padding: 20px 15px;
    }

    .cert-img-box {
        height: 240px;
        margin-bottom: 16px;
    }

    .cert-card h4 {
        font-size: 18px;
    }

    .news-grid {
        gap: 16px;
    }

    .news-item {
        border: 1px solid #e8f0fc;
        border-bottom: 1px solid #e8f0fc;
        border-radius: var(--radius);
        padding: 16px;
        gap: 16px;
        margin-bottom: 0;
    }

    .news-date {
        width: 58px;
        height: 58px;
    }

    .news-date .day {
        font-size: 20px;
    }

    .news-text h4 {
        font-size: 17px;
    }

    .news-text p {
        font-size: 14px;
    }

    .adv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .adv-card img {
        height: 180px;
    }

    .adv-content {
        padding: 18px;
    }

    .adv-content h4 {
        font-size: 20px;
    }

    .adv-content ul li {
        font-size: 15px;
    }

    .adv-content ul li::before {
        top: 12px;
    }

    .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .card-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 16px 12px 16px 58px;
        min-height: 72px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        margin-bottom: 0;
    }

    .title-text {
        font-size: 15px;
    }

    .desc-text {
        font-size: 12px;
    }

    .promise-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promise-card {
        padding: 28px 22px;
    }

    .swiper-item {
        width: 220px;
    }

    .swiper-item img {
        height: 160px;
    }
}

/* ==================================================================
   媒体查询 — 小桌面（993-1100px）：三列优势、四列产品
   ================================================================== */
@media (min-width:993px) {

    .banner-box {
        max-height: 600px;
    }

    .adv-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .adv-card img {
        height: 220px;
    }

    .adv-content {
        padding: 24px;
    }

    .adv-content h4 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .adv-content ul li {
        font-size: 16px;
        line-height: 2;
        padding-left: 20px;
        margin-bottom: 6px;
    }

    .adv-content ul li::before {
        top: 12px;
    }

    .product-grid,
    .cert-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cert-img-box {
        height: 260px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promise-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ==================================================================
   媒体查询 — 大桌面（≥1101px）：四列实力卡片、桌面显示关于我们
   ================================================================== */
@media (min-width:1101px) {

    .container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 20px 16px 20px 60px;
        min-height: 80px;
    }

    .card-icon {
        width: 43px;
        height: 43px;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        margin-bottom: 0;
    }

    .title-text {
        font-size: 16px;
    }

    .desc-text {
        font-size: 14px;
    }

    .about-text-box .pc-only {
        display: block;
    }

    .about-text-box .more-pc {
        display: inline;
    }

    .about-text-box .more-mobile {
        display: none;
    }
}
