/* 全站共用：横幅轮播（首页 / 产品 / 联系 / 空间） */
.space-banner-carousel-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

.space-full-img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.space-carousel {
    width: 100%;
}

.space-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.space-banner-carousel .space-carousel-arrow {
    display: none;
}

@media (min-width: 801px) {
    .space-banner-carousel .space-carousel-wrapper {
        max-width: 1920px;
        margin: 0 auto;
    }

    .space-banner-carousel .space-carousel-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.35);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.25s ease, background 0.2s ease;
    }

    .space-banner-carousel .space-carousel-arrow img {
        display: block;
        width: auto;
        height: auto;
        max-width: 28px;
        max-height: 28px;
        object-fit: contain;
    }

    .space-banner-carousel .space-carousel-arrow--prev {
        left: 20px;
    }

    .space-banner-carousel .space-carousel-arrow--next {
        right: 20px;
    }

    .space-banner-carousel:hover .space-carousel-arrow {
        opacity: 1;
    }

    .space-banner-carousel .space-carousel-arrow:hover {
        background: rgba(0, 0, 0, 0.55);
    }
}

.space-carousel-slide {
    display: none;
    width: 100%;
}

.space-carousel-slide.is-active {
    display: block;
}

.space-carousel-controls {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    z-index: 10;
}

.space-carousel-indicators {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.space-indicator-img {
    width: auto;
    height: 50px;
    cursor: default;
    display: none;
    transition: opacity 0.3s;
    user-select: none;
}

.space-indicator-img.is-active {
    display: block;
    opacity: 1;
}

.space-indicator-fixed {
    display: block;
    width: auto;
    height: 50px;
    object-fit: contain;
}

.space-banner-carousel {
    width: 100%;
}

@media (min-width: 801px) {
    .space-indicator-img {
        height: 60px;
    }
}

/* ---------- 关于茶馆：标签 + 双图轮播 + 正文（space.html） ---------- */
.space-intro-section {
    width: 100%;
    background: #fff;
}

.space-intro-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* 与下方双图同宽、同列宽与同 gap，标题分别居中对齐左图 / 右图 */
.space-intro-pair-block {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 0;
    box-sizing: border-box;
}

.space-intro-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: flex-end;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 14px;
    padding-bottom: 0;
    box-sizing: border-box;
}

.space-intro-tab-cell {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-width: 0;
}

.space-intro-tab {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 18px;
    color: #333;
    padding: 10px 4px 14px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: default;
    text-align: center;
}

.space-intro-tab.is-active {
    font-weight: 700;
    color: #8B0000;
    border-bottom-color: #8B0000;
}

.space-intro-tab--muted {
    color: #999;
    font-weight: 400;
}

a.space-intro-tab--link {
    text-decoration: none;
    color: #999;
    font-weight: 400;
    border-bottom-color: transparent;
    cursor: pointer;
}

a.space-intro-tab--link:hover {
    color: #555;
}

.space-pair-carousel {
    width: 100%;
    margin: 0;
}

.space-pair-viewport {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.space-pair-slides {
    position: relative;
    z-index: 0;
    width: 100%;
    min-width: 0;
}

.space-pair-slide {
    display: none;
}

.space-pair-slide.is-active {
    display: block;
}

.space-pair-images {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 14px;
    align-items: stretch;
}

.space-pair-frame {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.space-pair-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease, filter 0.35s ease;
}

@keyframes spacePairHeartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.06); }
    28% { transform: scale(1.02); }
    42% { transform: scale(1.08); }
    70% { transform: scale(1.03); }
    100% { transform: scale(1.06); }
}

.space-pair-img:hover {
    animation: spacePairHeartBeat 0.9s ease-in-out infinite;
    filter: brightness(1.03);
}

.space-pair-nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.2s ease;
    z-index: 3;
    transform: translateY(-50%);
}

.space-pair-nav--prev {
    left: 10px;
}

.space-pair-nav--next {
    right: 10px;
}

.space-pair-nav img {
    display: block;
    width: auto;
    height: auto;
    max-width: 22px;
    max-height: 22px;
}

.space-pair-viewport:hover .space-pair-nav {
    opacity: 1;
    pointer-events: auto;
}

.space-pair-nav:hover {
    background: rgba(0, 0, 0, 0.55);
}

.space-pair-nav:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
    outline: 2px solid rgba(139, 0, 0, 0.5);
    outline-offset: 2px;
}

/* 触屏设备无 hover：始终显示箭头便于切换 */
@media (hover: none) {
    .space-pair-viewport .space-pair-nav {
        opacity: 0.88;
        pointer-events: auto;
    }
}

.space-pair-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.space-pair-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c9c9c9;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.space-pair-dot.is-active {
    background: #8B0000;
    transform: scale(1.15);
}

.space-intro-article {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 0 4px;
    box-sizing: border-box;
}

.space-intro-heading {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 1.6em 0 0.75em;
    text-align: left;
}

.space-intro-article .space-intro-heading:first-child {
    margin-top: 0.35em;
}

.space-intro-body {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 2;
    color: #333;
    text-align: justify;
    text-justify: inter-ideograph;
    margin: 0 0 1.25em;
}

@media (max-width: 800px) {
    .space-intro-section {
        padding: 20px 0 40px;
    }

    .space-intro-tabs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .space-intro-tab {
        font-size: 16px;
        padding: 8px 2px 12px;
    }

    .space-pair-images {
        gap: 8px;
    }

    .space-pair-nav {
        width: 38px;
        height: 38px;
    }

    .space-pair-nav--prev {
        left: 6px;
    }

    .space-pair-nav--next {
        right: 6px;
    }

    .space-pair-nav img {
        max-width: 18px;
        max-height: 18px;
    }

    .space-intro-heading {
        font-size: 26px;
        margin: 1.35em 0 0.65em;
    }

    .space-intro-body {
        font-size: 17px;
        line-height: 1.9;
    }

    .space-indicator-fixed {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .space-intro-heading {
        font-size: 22px;
    }

    .space-intro-body {
        font-size: 16px;
    }
}
