/* ==================== 机器人页 robot.html ====================
   页面骨架（banner、.corcon 简介、.line-wrapper 栏目标题）沿用全站样式，这里只写机器人页特有的部分 */

.rb-wrapper {
    padding-bottom: 120px;
}

.rb-hint p {
    float: none;
    max-width: 640px;
}

/* 栏目标题较长（如“机械臂与复合机器人”）时不折行：标题按内容宽度，两侧装饰线均分剩余空间 */
.rb-wrapper .line-wrapper {
    max-width: 1200px;
}

.rb-wrapper .line_view li:not(.title) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    overflow: hidden;
}

.rb-wrapper .line_view li.title {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

@media screen and (min-width: 769px) {
    .rb-wrapper .line-wrapper {
        padding-top: 130px;
        padding-bottom: 70px;
    }
}

.rb-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* ---------- 产品卡片 ---------- */
.rb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.rb-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(48, 99, 166, 0.12);
    transition: transform .3s ease-out, box-shadow .3s ease-out;
    text-align: left;
}

.rb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(48, 99, 166, 0.22);
}

.rb-card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #0b1640;
}

.rb-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease-out;
}

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

.rb-card-body {
    padding: 22px 22px 24px;
}

.rb-card-body h3 {
    font-size: 22px;
    line-height: 30px;
    font-weight: bold;
    color: #1f2d3d;
}

.rb-card-body p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 26px;
    color: #5a6675;
}

.rb-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rb-tags span {
    font-size: 13px;
    line-height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    color: #3063A6;
    background: rgba(48, 99, 166, 0.09);
    white-space: nowrap;
}

/* ---------- 技术同源 ---------- */
.rb-lead {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 20px;
    line-height: 36px;
    color: #000000;
}

.rb-tech {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.rb-tech li {
    position: relative;
    padding: 34px 26px 30px;
    border-radius: 16px;
    background: linear-gradient(160deg, #f3f7fd 0%, #e6eefb 100%);
    text-align: left;
    overflow: hidden;
}

.rb-tech-num {
    position: absolute;
    right: 18px;
    top: 6px;
    font-size: 66px;
    line-height: 80px;
    font-weight: bold;
    color: rgba(48, 99, 166, 0.12);
}

.rb-tech h3 {
    position: relative;
    font-size: 22px;
    line-height: 30px;
    font-weight: bold;
    color: #3063A6;
    padding-top: 26px;
}

.rb-tech h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 3px;
    background: #0069ED;
}

.rb-tech p {
    position: relative;
    margin-top: 12px;
    font-size: 15px;
    line-height: 26px;
    color: #5a6675;
}

.rb-link {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 40px auto 0;
    font-size: 18px;
    line-height: 30px;
    color: #0069ED;
}

.rb-link:hover {
    text-decoration: underline;
}

/* ---------- 应用场景 ---------- */
.rb-scenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.rb-scenes li {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0b1640;
}

.rb-scenes img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease-out;
}

.rb-scenes li:hover img {
    transform: scale(1.04);
}

.rb-scene-txt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 30px 24px;
    text-align: left;
    background: linear-gradient(to top, rgba(6, 16, 48, 0.85) 0%, rgba(6, 16, 48, 0) 100%);
}

.rb-scene-txt h3 {
    font-size: 26px;
    line-height: 36px;
    font-weight: bold;
    color: #ffffff;
}

.rb-scene-txt p {
    margin-top: 4px;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.85);
}


/* ---------- 合作咨询 ---------- */
.rb-contact {
    max-width: 1380px;
    margin: 120px auto 0;
    padding: 60px 40px;
    box-sizing: border-box;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(120deg, #4a32c8 0%, #2a27a8 55%, #1f3fb0 100%);
    position: relative;
    z-index: 2;
}

.rb-contact h3 {
    font-size: 34px;
    line-height: 46px;
    font-weight: bold;
    color: #ffffff;
}

.rb-contact p {
    margin-top: 12px;
    font-size: 18px;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.rb-contact-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 0 34px;
    font-size: 18px;
    line-height: 48px;
    border-radius: 24px;
    color: #2a27a8;
    background: #ffffff;
    transition: transform .3s ease-out;
}

.rb-contact-btn:hover {
    transform: translateY(-2px);
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1500px) {
    .rb-contact {
        margin-left: 60px;
        margin-right: 60px;
    }
}

@media screen and (max-width: 1240px) {
    .rb-grid,
    .rb-tech {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .rb-wrapper {
        padding-bottom: 50px;
    }

    /* 手机端 banner 右侧是插图，文字限制在左侧约一半宽度内，避免压到插图上 */
    html[lang] .banner_index_txt .car-hint.rb-hint {
        max-width: 52vw;
    }

    .rb-hint p {
        max-width: none;
    }

    html[lang="en"] .banner_index_txt .rb-h2 {
        max-width: 56vw;
        white-space: normal;
        line-height: 1.3;
    }

    .rb-wrapper .line_view li.title {
        padding: 0 16px;
    }

    .rb-section {
        padding: 0 16px;
    }

    .rb-grid,
    .rb-tech,
    .rb-scenes {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rb-card-body {
        padding: 16px 16px 18px;
    }

    .rb-card-body h3,
    .rb-tech h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .rb-card-body p,
    .rb-tech p {
        font-size: 14px;
        line-height: 24px;
    }

    .rb-lead {
        margin-bottom: 24px;
        font-size: 14px;
        line-height: 24px;
        text-align: left;
    }

    .rb-tech li {
        padding: 24px 18px 20px;
    }

    .rb-tech-num {
        font-size: 48px;
        line-height: 60px;
    }

    .rb-link {
        margin-top: 24px;
        font-size: 15px;
    }

    .rb-scene-txt {
        padding: 40px 16px 14px;
    }

    .rb-scene-txt h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .rb-scene-txt p {
        font-size: 13px;
        line-height: 20px;
    }


    .rb-contact {
        margin: 50px 16px 0;
        padding: 32px 18px;
        border-radius: 14px;
    }

    .rb-contact h3 {
        font-size: 20px;
        line-height: 30px;
    }

    .rb-contact p {
        font-size: 14px;
        line-height: 24px;
    }

    .rb-contact-btn {
        margin-top: 18px;
        font-size: 15px;
        line-height: 40px;
        padding: 0 24px;
    }
}
