.xr-hero,
.xr-detail-hero {
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.xr-hero::before,
.xr-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 39, 0.96) 0%, rgba(16, 47, 77, 0.84) 50%, rgba(232, 67, 147, 0.12) 100%);
}

.xr-hero {
    min-height: 585px;
    display: flex;
    align-items: center;
    padding: 140px 0 76px;
}

.xr-hero-inner,
.xr-detail-hero .container {
    position: relative;
    z-index: 1;
}

.xr-hero-copy {
    max-width: 860px;
    min-width: 0;
}

.xr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #ffd8ec;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.xr-kicker::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--primary);
}

.xr-hero h1,
.xr-detail-hero h1 {
    max-width: 840px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 2.85rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.xr-hero p,
.xr-detail-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.xr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.xr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    transition: var(--transition);
}

.xr-btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 14px 28px rgba(232, 67, 147, 0.26);
}

.xr-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.xr-btn-light {
    color: var(--primary-dark);
    background: #fff;
}

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

.xr-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 790px;
    margin-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.xr-metric {
    padding: 18px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.xr-metric:last-child {
    border-right: 0;
}

.xr-metric strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
}

.xr-metric span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.xr-anchor {
    position: sticky;
    top: 70px;
    z-index: 25;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
}

.xr-anchor-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-left: 1px solid #edf0f5;
}

.xr-anchor a {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px solid #edf0f5;
    color: #344055;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.xr-anchor a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.xr-section {
    padding: 76px 0;
    background: #fff;
}

.xr-section:nth-of-type(even) {
    background: var(--bg-gray);
}

.xr-title-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 34px;
}

.xr-title-row > span,
.xr-title-inline > span,
.xr-dark-content > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.xr-title-row > span::before,
.xr-title-inline > span::before,
.xr-dark-content > span::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--primary);
}

.xr-title-row h2,
.xr-title-inline h2 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.xr-title-row p,
.xr-title-inline p {
    max-width: 820px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.8;
}

.xr-service-stack {
    display: grid;
    gap: 14px;
}

.xr-service-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(176, 30, 106, 0.06);
    transition: var(--transition);
}

.xr-service-row:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 67, 147, 0.36);
    box-shadow: var(--shadow-hover);
}

.xr-row-num {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 1.18rem;
    font-weight: 900;
}

.xr-row-body strong {
    display: block;
    margin-bottom: 6px;
    color: #142033;
    font-size: 1.16rem;
    line-height: 1.35;
}

.xr-row-body em {
    display: block;
    color: var(--text-secondary);
    font-style: normal;
    line-height: 1.7;
}

.xr-row-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.xr-row-tags i {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    background: #f5f7fb;
    color: #344055;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.xr-dark-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    color: #fff;
    background: #081827;
}

.xr-dark-media {
    min-height: 520px;
    background:
        linear-gradient(180deg, rgba(8, 24, 39, 0.10), rgba(8, 24, 39, 0.42)),
        url('https://www.xp-robot.com/upload/portal/20260618/robot-reducer-structure.webp') center / cover no-repeat;
}

.xr-dark-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px max(40px, calc((100vw - 1200px) / 2)) 72px 56px;
}

.xr-dark-content h2 {
    margin: 16px 0;
    color: #fff;
    font-size: 2.05rem;
    line-height: 1.28;
}

.xr-dark-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.85;
}

.xr-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.xr-review-grid div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.xr-review-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #ffd8ec;
}

.xr-review-grid span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
}

.xr-capability {
    background: var(--bg-gray);
}

.xr-capability-grid,
.xr-process-grid,
.xr-object-grid,
.xr-case-grid {
    display: grid;
    gap: 16px;
}

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

.xr-capability-card,
.xr-process-card {
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(176, 30, 106, 0.05);
}

.xr-capability-card strong,
.xr-process-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 1.08rem;
    line-height: 1.4;
}

.xr-capability-card span,
.xr-process-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.xr-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: serviceStep;
}

.xr-process-card::before {
    counter-increment: serviceStep;
    content: '0' counter(serviceStep);
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.xr-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 34px;
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(176, 30, 106, 0.94), rgba(8, 24, 39, 0.94)),
        url('https://www.xp-robot.com/upload/default/20260528/033eb9d2079cd87a893bac392dded0b1.webp') center / cover no-repeat;
}

.xr-cta h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.35rem;
}

.xr-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.xr-detail-hero {
    padding: 132px 0 62px;
}

.xr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.86rem;
}

.xr-breadcrumb a {
    color: rgba(255, 255, 255, 0.90);
}

.xr-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 42px;
    align-items: end;
    min-width: 0;
}

.xr-hero-card {
    padding: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.xr-hero-card h2 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 1.12rem;
}

.xr-hero-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.xr-hero-card dl div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.xr-hero-card dt {
    color: var(--primary-dark);
    font-weight: 900;
}

.xr-hero-card dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

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

.xr-object-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(176, 30, 106, 0.05);
}

.xr-object-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #fff;
}

.xr-object-card div {
    padding: 18px;
}

.xr-object-card h3 {
    margin: 0 0 7px;
    color: #142033;
    font-size: 1rem;
    line-height: 1.35;
}

.xr-object-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.65;
}

.xr-split-section {
    background: var(--bg-gray);
}

.xr-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 42px;
    align-items: start;
}

.xr-title-inline {
    margin-bottom: 24px;
}

.xr-problem-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.xr-problem-list li {
    padding: 18px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.xr-problem-list strong {
    display: block;
    margin-bottom: 5px;
    color: #142033;
    font-size: 1rem;
}

.xr-problem-list span {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

.xr-side-note {
    position: sticky;
    top: 152px;
    padding: 30px;
    border-radius: 8px;
    background: #081827;
    color: #fff;
}

.xr-side-note h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.36rem;
}

.xr-side-note p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
}

.xr-note-tags,
.xr-material-table {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xr-note-tags span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.xr-material-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.xr-material-table div {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

.xr-material-table strong,
.xr-material-table span,
.xr-material-table em {
    display: block;
}

.xr-material-table strong {
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1.04rem;
}

.xr-material-table span {
    color: #142033;
    font-size: 0.92rem;
    font-weight: 700;
}

.xr-material-table em {
    margin-top: 7px;
    color: var(--text-secondary);
    font-style: normal;
    font-size: 0.86rem;
    line-height: 1.7;
}

.xr-case-section {
    background: #fff;
}

.xr-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xr-case-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(176, 30, 106, 0.05);
    transition: var(--transition);
}

.xr-case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.xr-case-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.xr-case-card div {
    padding: 18px;
}

.xr-case-card h3 {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1.42;
}

.xr-case-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.65;
}

@media (max-width: 1080px) {
    .xr-title-row,
    .xr-dark-band,
    .xr-detail-hero-grid,
    .xr-split-grid,
    .xr-cta {
        grid-template-columns: 1fr;
    }

    .xr-service-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .xr-row-tags {
        grid-column: 2;
        justify-content: flex-start;
    }

    .xr-capability-grid,
    .xr-process-grid,
    .xr-object-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xr-dark-content {
        padding: 52px 24px;
    }

    .xr-dark-media {
        min-height: 360px;
    }

    .xr-side-note {
        position: static;
    }
}

@media (max-width: 760px) {
    .xr-hero .container,
    .xr-detail-hero .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        overflow: hidden;
    }

    .xr-hero-copy,
    .xr-detail-hero-grid,
    .xr-detail-hero-grid > div,
    .xr-breadcrumb {
        min-width: 0;
        width: 100%;
        max-width: calc(100vw - 40px);
    }

    .xr-kicker {
        max-width: 100%;
        flex-wrap: wrap;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .xr-hero,
    .xr-detail-hero {
        padding-top: 112px;
    }

    .xr-hero h1,
    .xr-detail-hero h1 {
        font-size: 1.72rem;
        line-height: 1.22;
        max-width: calc(100vw - 40px);
        word-break: break-all;
    }

    .xr-hero p,
    .xr-detail-hero p {
        font-size: 0.92rem;
        max-width: 100%;
        word-break: break-all;
    }

    .xr-anchor {
        position: static;
    }

    .xr-anchor-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
    }

    .xr-anchor a {
        min-height: 52px;
    }

    .xr-section {
        padding: 48px 0;
    }

    .xr-title-row {
        gap: 12px;
        margin-bottom: 24px;
    }

    .xr-title-row h2,
    .xr-title-inline h2,
    .xr-dark-content h2 {
        font-size: 1.55rem;
    }

    .xr-metrics,
    .xr-capability-grid,
    .xr-process-grid,
    .xr-object-grid,
    .xr-review-grid,
    .xr-material-table,
    .xr-case-grid {
        grid-template-columns: 1fr;
    }

    .xr-metric {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .xr-metric:last-child {
        border-bottom: 0;
    }

    .xr-service-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .xr-row-tags {
        grid-column: auto;
    }

    .xr-hero-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .xr-actions,
    .xr-cta {
        display: grid;
    }

    .xr-btn {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }
}
