html,
body {
    margin: 0;
    min-height: 100%;
    background: #f5f8fc;
}

.royal-timeline-tech,
.royal-timeline-tech * {
    box-sizing: border-box;
}

.royal-timeline-tech {
    --tech-blue: #126dff;
    --tech-cyan: #31c8ff;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 26vw) minmax(0, 1fr);
    color: #0c1b33;
    background:
        radial-gradient(circle at 18% 18%, rgba(49, 200, 255, .12), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
    font-family: Arial, "Microsoft YaHei", sans-serif;
    overflow: hidden;
}

.royal-timeline-tech-side {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: clamp(48px, 8vh, 86px) clamp(24px, 3.4vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(27, 70, 120, .08);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)),
        linear-gradient(180deg, rgba(18, 109, 255, .06), transparent 42%);
    backdrop-filter: blur(18px);
}

.royal-timeline-tech-main {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
}

.royal-timeline-tech-controls {
    position: absolute;
    left: clamp(24px, 4vw, 58px);
    right: clamp(24px, 4vw, 58px);
    bottom: clamp(24px, 5vh, 52px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.royal-timeline-tech-prev,
.royal-timeline-tech-next {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(18, 109, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 32px rgba(12, 27, 51, .08);
    cursor: pointer;
    pointer-events: auto;
}

.royal-timeline-tech-prev::before,
.royal-timeline-tech-next::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 14px auto;
    border-top: 2px solid #126dff;
    border-right: 2px solid #126dff;
}

.royal-timeline-tech-prev::before {
    transform: rotate(-135deg);
}

.royal-timeline-tech-next::before {
    transform: rotate(45deg);
}

.royal-timeline-tech-prev:disabled,
.royal-timeline-tech-next:disabled {
    opacity: .32;
    cursor: default;
}

.royal-timeline-tech-dots {
    display: flex;
    gap: 9px;
    pointer-events: auto;
}

.royal-timeline-tech-dots button {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 27, 51, .16);
    cursor: pointer;
}

.royal-timeline-tech-dots button.royal-active {
    background: linear-gradient(90deg, #126dff, #31c8ff);
}

.royal-timeline-tech-kicker {
    margin-bottom: 16px;
    color: var(--tech-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.royal-timeline-tech-side h2 {
    margin: 0;
    color: #07162c;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: 0;
}

.royal-timeline-tech-side p {
    margin: 20px 0 0;
    max-width: 420px;
    color: rgba(12, 27, 51, .66);
    font-size: 16px;
    line-height: 1.8;
}

.royal-timeline-tech-stats {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.royal-timeline-tech-stats article {
    padding-top: 14px;
    border-top: 1px solid rgba(18, 109, 255, .16);
}

.royal-timeline-tech-stats strong {
    display: block;
    color: #0b62de;
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
}

.royal-timeline-tech-stats span {
    display: block;
    margin-top: 8px;
    color: rgba(12, 27, 51, .56);
    font-size: 13px;
}

.royal-timeline-tech-scroll {
    position: relative;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 109, 255, .42) rgba(12, 27, 51, .08);
}

.royal-timeline-tech-scroll::-webkit-scrollbar {
    height: 10px;
}

.royal-timeline-tech-scroll::-webkit-scrollbar-track {
    background: rgba(12, 27, 51, .06);
}

.royal-timeline-tech-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(18, 109, 255, .36);
}

.royal-timeline-tech-canvas {
    position: relative;
    width: var(--tech-canvas-width, 3200px);
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(18, 109, 255, .055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(18, 109, 255, .045) 1px, transparent 1px),
        radial-gradient(circle at 34% 46%, rgba(49, 200, 255, .08), transparent 26%),
        radial-gradient(circle at 72% 58%, rgba(18, 109, 255, .07), transparent 28%);
    background-size: 96px 96px, 96px 96px, auto, auto;
}

.royal-timeline-tech-line,
.royal-timeline-tech-flow {
    position: absolute;
    left: 96px;
    right: 96px;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.royal-timeline-tech-line {
    background: linear-gradient(90deg, transparent, rgba(15, 72, 135, .16) 6%, rgba(15, 72, 135, .24) 50%, rgba(15, 72, 135, .16) 94%, transparent);
}

.royal-timeline-tech-flow {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(18, 109, 255, .1) 12%, rgba(49, 200, 255, .75) 48%, rgba(18, 109, 255, .14) 84%, transparent 100%);
    filter: drop-shadow(0 0 12px rgba(49, 200, 255, .28));
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.royal-timeline-tech-node {
    position: absolute;
    left: calc(110px + (var(--i, 0) * var(--tech-node-gap, 148px)));
    top: 50%;
    width: 186px;
    color: #0c1b33;
    opacity: .3;
    transform-origin: 0 50%;
    transition: opacity .24s ease, filter .24s ease, transform .24s ease;
}

.royal-timeline-tech-node.is-current-page {
    opacity: 1;
}

.royal-timeline-tech-node.is-side-page {
    opacity: .46;
}

.royal-timeline-tech-node.is-top {
    transform: translateY(-100%) scale(.96);
    padding-bottom: 44px;
}

.royal-timeline-tech-node.is-bottom {
    transform: scale(.96);
    padding-top: 44px;
}

.royal-timeline-tech-node.is-current-page.is-top {
    transform: translateY(-100%) scale(1);
}

.royal-timeline-tech-node.is-current-page.is-bottom {
    transform: scale(1);
}

.royal-timeline-tech-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(18, 109, 255, .12), 0 0 18px rgba(18, 109, 255, .36);
    cursor: pointer;
}

.royal-timeline-tech-node.is-top .royal-timeline-tech-dot {
    bottom: -7px;
    top: auto;
}

.royal-timeline-tech-node.is-bottom .royal-timeline-tech-dot {
    top: -7px;
}

.royal-timeline-tech-stem {
    position: absolute;
    left: 6px;
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, rgba(18, 109, 255, .34), rgba(18, 109, 255, 0));
}

.royal-timeline-tech-node.is-top .royal-timeline-tech-stem {
    bottom: 0;
}

.royal-timeline-tech-node.is-bottom .royal-timeline-tech-stem {
    top: 0;
}

.royal-timeline-tech-info {
    max-width: 176px;
}

.royal-timeline-tech-info time {
    display: block;
    color: #0b62de;
    font-size: 26px;
    line-height: 1;
    font-weight: 850;
}

.royal-timeline-tech-info h3 {
    margin: 10px 0 0;
    color: #07162c;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 780;
}

.royal-timeline-tech-info p {
    margin: 8px 0 0;
    color: rgba(12, 27, 51, .58);
    font-size: 13px;
    line-height: 1.65;
}

.royal-timeline-tech-node:not(.is-current-page) .royal-timeline-tech-info p {
    display: none;
}

.royal-timeline-tech-node.royal-active .royal-timeline-tech-dot {
    background: #eaf8ff;
    box-shadow: 0 0 0 7px rgba(18, 109, 255, .16), 0 0 28px rgba(18, 109, 255, .48);
}

.royal-timeline-tech-node.royal-active .royal-timeline-tech-info time,
.royal-timeline-tech-node.royal-active .royal-timeline-tech-info h3 {
    color: #004fc4;
}

.royal-timeline-tech-empty {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f5f8fc;
    color: #0c1b33;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.royal-timeline-tech-empty > div {
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid rgba(18, 109, 255, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}

@media (max-width: 900px) {
    .royal-timeline-tech {
        display: block;
        overflow: visible;
    }

    .royal-timeline-tech-side {
        min-height: auto;
        padding: 44px 20px 28px;
        border-right: 0;
        border-bottom: 1px solid rgba(27, 70, 120, .08);
    }

    .royal-timeline-tech-scroll {
        overflow: visible;
    }

    .royal-timeline-tech-main {
        min-height: auto;
        overflow: visible;
    }

    .royal-timeline-tech-controls {
        display: none;
    }

    .royal-timeline-tech-canvas {
        width: auto;
        min-height: auto;
        padding: 34px 20px 44px;
    }

    .royal-timeline-tech-line,
    .royal-timeline-tech-flow {
        left: 27px;
        right: auto;
        top: 34px;
        bottom: 44px;
        width: 2px;
        height: auto;
        transform: none;
    }

    .royal-timeline-tech-node,
    .royal-timeline-tech-node.is-top,
    .royal-timeline-tech-node.is-bottom {
        position: relative;
        left: auto !important;
        top: auto;
        width: auto;
        margin: 0 0 24px 36px;
        padding: 0;
        transform: none;
    }

    .royal-timeline-tech-dot,
    .royal-timeline-tech-node.is-top .royal-timeline-tech-dot,
    .royal-timeline-tech-node.is-bottom .royal-timeline-tech-dot {
        left: -30px;
        top: 5px;
        bottom: auto;
    }

    .royal-timeline-tech-stem {
        display: none;
    }

    .royal-timeline-tech-info {
        max-width: none;
    }
}
