:root {
    --bar-bg: #eaeaea;
    --bar-ink: #333333;
    --bar-sep: #c7c7c7;

    --nav-ink: #4a4a4a;
    --nav-ink-hover: #111111;

    --panel-ink: #1f1f1f;
    --link-ink: #6b6b6b;
    --line: #e9e9e9;

    --solution-bg: #f5f6f8;
    --solution-line: #e1e3e7;
    --accent: #00adb2;

    --side-pad: clamp(24px, 4vw, 72px);
    --mega-pad-left: clamp(40px, 8vw, 120px);

    --nav-height: 64px;
    --bar-height: 30px;
}

/* 轮播容器：每屏 6 个（2 行 3 列），横向滑动 */
.solution-carousel {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    margin-top: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.solution-viewport {
    width: 100%;
    overflow: hidden;
    /* 支持横向拖拽翻页，同时保留页面纵向滚动 */
    touch-action: pan-y;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.solution-viewport.is-dragging {
    cursor: grabbing;
}

.solution-viewport .solution-card img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.solution-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.solution-page {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    min-width: 100%;
}

.solution-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3 / 2;
    background: #dfe2e6;
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.solution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.62) 100%);
    pointer-events: none;
}

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

.solution-card__text {
    position: absolute;
    left: 16px;
    bottom: 13px;
    z-index: 2;
    color: #fff;
}

.solution-card__text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.5px;
}

.solution-card__text em {
    display: block;
    font-size: 12px;
    font-style: normal;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.3px;
}

/* 轮播进度（每段为一个小进度条，当前页进度缓慢填满） */
.solution-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 20px;
}

.solution-progress__item {
    display: block;
    width: 36px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 1.5px;
    background: #b7bbbb;
    overflow: hidden;
    cursor: pointer;
}

.solution-progress__item:hover {
    background: #a9adad;
}

.solution-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

/* 当前页：进度从 0 填到 100%，时长与自动播放间隔一致 */
.solution-progress__item.is-active .solution-progress__bar {
    animation: solution-progress-fill var(--progress-duration, 5000ms) linear forwards;
}

/* 悬停暂停自动播放时，进度条同步暂停 */
.solution-carousel:hover .solution-progress__item.is-active .solution-progress__bar {
    animation-play-state: paused;
}

@keyframes solution-progress-fill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.solution-progress__item:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}