/* ==================== About ==================== */
.about {
    position: relative;
    width: 100%;
    height: 846px;
    padding: 90px 0 70px;
    background: #f2f5f8;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.about-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.about-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.about > .container {
    position: relative;
    z-index: 1;
    width: 1200px;
    max-width: 94%;
    margin: 0 auto;
}
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-content {
    max-width: 560px;
}
.about-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d78bd;
    margin-bottom: 22px;
    line-height: 1.85;
}
.about-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
    line-height: 2;
    text-align: justify;
}
.about-more {
    margin-top: 18px;
    padding: 10px 28px;
    border-radius: 4px;
    background: rgba(29, 120, 189, 0.08);
    border: 1px solid #1d78bd;
    color: #1d78bd;
    font-size: 14px;
}
.about-more:hover {
    background: #1d78bd;
    color: #fff;
}
.about-media {
    position: relative;
    height: 520px;
}
.about-badge {
    position: absolute;
    right: 8%;
    top: 42%;
    transform: translateY(-50%);
    background: #1d78bd;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(29, 120, 189, 0.35);
    z-index: 2;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}
.about-badge:hover {
    background: #1868a6;
    color: #fff;
    box-shadow: 0 10px 28px rgba(29, 120, 189, 0.45);
}

/* ==================== Manufacturers ==================== */
.manufacturers {
    padding: 70px 0;
    background: var(--white);
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.logo-item,
.logo-more {
    width: 100%;
    height: 110px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fcff;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}
.logo-item:hover,
.logo-more:hover {
    box-shadow: 0 6px 20px rgba(29, 120, 189, 0.12);
    transform: translateY(-2px);
}
.logo-item img {
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
}
.logo-more {
    color: #1d78bd;
    font-size: 16px;
    gap: 8px;
    text-decoration: none;
}
.logo-more:hover {
    text-decoration: none;
    color: #1d78bd;
}

/* ==================== Download ==================== */
.download {
    padding: 70px 0;
    background: var(--bg-gray);
}
.download-list {
    max-width: 900px;
    margin: 0 auto;
}
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 14px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    color: var(--text);
}
.download-item:hover {
    background: #1d78bd;
    color: #fff;
    box-shadow: 0 6px 20px rgba(29, 120, 189, 0.2);
}
.download-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}
.download-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}
.download-item:hover .download-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.download-text {
    min-width: 0;
}
.download-text h4 {
    font-size: 15px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-text p {
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-item:hover .download-text p {
    color: rgba(255, 255, 255, 0.8);
}
.download-btn {
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 14px;
    font-size: 13px;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}
.download-item:hover .download-btn {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

/* ==================== Contact ==================== */
.contact {
    height: 358px;
    padding: 0;
    color: #fff;
    background: #1d78bd url("../../images/concactBG.png") center / cover
        no-repeat;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.contact-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}
.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #fff;
}
.form-group {
    margin-bottom: 12px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    background: none;
    border-radius: 0;
}
/* 九宫格拉伸：中间拉伸，四角保持原图圆角不变形 */
.form-group input {
    min-height: 48px;
    padding: 10px 20px;
    border: 0 solid transparent;
    border-image-source: url("../../images/input1-bg.png");
    border-image-slice: 42 60 fill;
    border-image-width: 18px 24px;
    border-image-repeat: stretch;
}
.form-group textarea {
    height: 120px;
    resize: none;
    padding: 14px 20px 28px;
    border: 0 solid transparent;
    border-image-source: url("../../images/input2-bg.png");
    border-image-slice: 48 60 fill;
    border-image-width: 20px 24px;
    border-image-repeat: stretch;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}
.form-group-area {
    position: relative;
}
.char-count {
    position: absolute;
    right: 18px;
    bottom: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}
.contact-submit {
    margin-top: 4px;
    min-width: 120px;
    padding: 8px 36px;
    border-radius: 28px;
    background: #e8f4fc;
    border: none;
    color: #1d78bd;
    font-size: 15px;
    font-weight: 600;
}
.contact-submit:hover {
    background: #fff;
    color: #1d78bd;
    transform: translateY(-1px);
}
.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.contact-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-info-item {
    font-size: 15px;
    color: #fff;
    line-height: 1.5;
    white-space: nowrap;
}
.contact-qr {
    flex-shrink: 0;
}
.qr-box {
    text-align: center;
}
.qr-box img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    background: #fff;
    padding: 5px;
    display: block;
}
.qr-box p {
    font-size: 12px;
    margin-top: 8px;
    color: #fff;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-wrap {
        grid-template-columns: 1fr;
    }
    .news-feature {
        height: 320px;
        min-height: 320px;
    }
    .news-list {
        max-width: 668px;
    }
    .about {
        height: auto;
        min-height: 0;
        padding: 70px 0;
        display: block;
        overflow: visible;
    }
    .about-wrap {
        grid-template-columns: 1fr;
    }
    .about-content {
        max-width: none;
    }
    .about-media {
        height: 280px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    .about-badge {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 24px;
        transform: translateX(-50%);
        font-size: 12px;
        letter-spacing: 1px;
        padding: 8px 14px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: calc(100% - 32px);
    }
    .logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .about-media {
        display: none;
    }

    /* 首页轮播约 2/3 屏高，减少 cover 横向裁切 */
    .hero {
        height: 66.666vh;
        height: 66.666dvh;
        min-height: 360px;
        max-height: 560px;
    }
    .carousel-slide .media-fill {
        display: none;
    }
    .carousel-slide .media-fit {
        object-fit: cover;
        object-position: center center;
    }
    .carousel-slide.active .media-fit {
        transform: scale(1.08);
    }
    .hero-content {
        top: calc(var(--header-h, 64px) + 12px);
        bottom: 48px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }
    .hero-content.is-left {
        align-items: flex-start;
        text-align: left;
    }
    .hero-content.is-right {
        align-items: flex-end;
        text-align: right;
    }
    .hero-content.is-right .hero-btns {
        justify-content: flex-end;
    }
    .hero-tag {
        font-size: 12px;
        margin-bottom: 12px;
        padding: 4px 12px;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 12px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .hero-desc {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 18px;
        line-height: 1.6;
    }
    .hero-rich-content {
        --hero-rich-scale: clamp(0.64, calc(100vw / 3200px + 0.54), 0.78);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        zoom: var(--hero-rich-scale);
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .hero-rich-content p,
    .hero-rich-content span,
    .hero-rich-content div,
    .hero-rich-content h1,
    .hero-rich-content h2,
    .hero-rich-content h3,
    .hero-rich-content h4,
    .hero-rich-content h5,
    .hero-rich-content h6,
    .hero-rich-content a,
    .hero-rich-content strong,
    .hero-rich-content em {
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .hero-btns {
        flex-wrap: wrap;
        gap: 10px;
        zoom: clamp(0.75, calc(100vw / 3200px + 0.54), 0.78);
    }
    .hero-content.is-left .hero-anim,
    .hero-content.is-right .hero-anim {
        transform: translateX(-16px);
    }
    .carousel-slide.active .hero-anim {
        transform: translateX(0);
    }
    .carousel-dots {
        bottom: 18px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .about {
        padding: 48px 0;
    }
    .about-media {
        height: 220px;
    }
    .download-item {
        padding: 14px 12px;
        gap: 10px;
    }
    .download-info {
        gap: 10px;
    }
    .download-btn {
        padding: 6px 14px;
    }
    .contact {
        height: auto;
        min-height: 358px;
        padding: 40px 0;
        display: block;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-side {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .contact-form h3 {
        font-size: 22px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-info-item {
        white-space: normal;
    }
}
@media (max-width: 480px) {
    .hero {
        min-height: 320px;
        max-height: 480px;
    }
    .hero-content {
        top: calc(var(--header-h, 58px) + 10px);
        bottom: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .hero-desc {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.55;
    }
    .hero-tag {
        margin-bottom: 8px;
        font-size: 11px;
    }
    .stats-item .num {
        font-size: 36px;
        width: auto;
        height: auto;
        line-height: 1;
    }
    .stats-item .label {
        font-size: 16px;
        width: auto;
        height: auto;
        line-height: 1.2;
    }
    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .logo-item,
    .logo-more {
        width: 100%;
        max-width: none;
    }
}
