/**
 * 体验页 - 左侧产品切换 + 右侧演示详情
 */
.experience-bg {
    background: #f0f4ff url(//cdn.shopxo.net/static/images/experience/experience-bg.png) no-repeat center top;
    background-size: cover;
    min-height: 100vh;
}

.experience-page {
    padding: 1rem 0 3rem;
}

.experience-panel {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(102, 154, 255, 0.12);
    overflow: visible;
    min-height: 32rem;
}

/* 左侧导航 */
.experience-sidebar {
    flex: 0 0 220px;
    padding: 1.5rem 1rem;
    background: #f8faff;
    border-right: 1px solid #e8eeff;
    border-radius: 1rem 0 0 1rem;
}

.sidebar-label {
    font-size: 0.875rem;
    color: #8c9ab5;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.product-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.product-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: #fff;
}

.product-nav-item:hover {
    border-color: #c7d7ff;
    box-shadow: 0 2px 8px rgba(59, 96, 255, 0.08);
}

.product-nav-item.active {
    background: linear-gradient(135deg, #3b60ff 0%, #6b4dff 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59, 96, 255, 0.35);
}

.product-nav-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    object-fit: contain;
}

.product-nav-item.active .product-nav-icon {
    filter: brightness(0) invert(1);
}

.product-nav-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-nav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.product-nav-desc {
    font-size: 0.75rem;
    color: #8c9ab5;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-nav-item.active .product-nav-title,
.product-nav-item.active .product-nav-desc {
    color: #fff;
}

.product-nav-item.active .product-nav-desc {
    opacity: 0.85;
}

/* 右侧内容 */
.experience-main {
    flex: 1;
    padding: 2rem 2rem 2.5rem;
    min-width: 0;
    border-radius: 0 1rem 1rem 0;
}

.product-detail {
    display: none;
}

.product-detail.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.detail-header-text {
    flex: 1;
    min-width: 0;
}

.btn-experience-buy {
    flex-shrink: 0;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.detail-subtitle {
    font-size: 0.9375rem;
    color: #8c9ab5;
    margin: 0;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #5a6a85;
    margin-bottom: 1rem;
}

/* 移动端演示：左二维码 + 右 H5 预览 */
.mobile-demo-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #eef2fb;
}

.mobile-demo-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.mobile-demo-left {
    flex: 0 0 auto;
}

.mobile-demo-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    padding-right: 2.5rem;
}

.mini-program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
    width: 24rem;
}

.mini-program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mini-program-card img {
    width: 11rem;
    height: 11rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(199, 215, 255, 0.5);
    object-fit: contain;
}

.mini-program-card span {
    font-size: 0.8125rem;
    color: #5a6a85;
    text-align: center;
    line-height: 1.3;
}

/* H5 手机框预览 */
.h5-model iframe {
    width: 100%;
    height: 100%;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.h5-model {
    padding: 2rem 0.875rem 1.75rem;
    width: 16rem;
    height: 30rem;
    background-image: url(//cdn.shopxo.net/static/images/experience/phone.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

@media (min-width: 1200px) {
    .h5-model {
        padding: 3.5rem 1.4rem 3.125rem 1.35rem;
        width: 20.75rem;
        height: 39.375rem;
    }
}

/* 访问信息表格 */
.access-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.access-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #8c9ab5;
    font-size: 0.8125rem;
    border-bottom: 1px solid #eef2fb;
    white-space: nowrap;
}

.access-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f5f7fc;
    color: #333;
    vertical-align: middle;
}

.access-table tbody tr:last-child td {
    border-bottom: none;
}

.access-table tbody tr:hover {
    background: #f8faff;
}

.access-table a {
    color: #1677ff;
    text-decoration: none;
    word-break: break-all;
}

.access-table a:hover {
    text-decoration: underline;
}

/* 无账号密码时的占位横线 */
.access-table .cred-empty {
    color: #999;
}

.platform-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #eef4ff;
    color: #3b60ff;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* 平台标题 + 二维码悬停预览 */
.platform-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.platform-tip {
    margin: 0.2rem 0 0;
    font-size: 0.65rem;
    line-height: 1.6;
    color: #999;
}

.platform-cell .qrcode-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.qr-trigger {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
}

.platform-cell .qr-popup {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    bottom: auto;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(4px);
    transition: all 0.25s ease;
    z-index: 20;
    white-space: nowrap;
}

.platform-cell .qrcode-preview:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.platform-cell .qr-popup img {
    width: 7rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.platform-cell .qr-popup-scan img {
    width: 9rem;
    height: 9rem;
    padding: 0.375rem;
    background: #fff;
    object-fit: contain;
}

.access-table tbody td:first-child {
    overflow: visible;
}

/**
 * 加入qq群
 */
.join-qq .content {
    border-radius: 1.25rem;
    font-size: 1.25rem;
}

.join-qq .content .title {
    padding: 1.5rem 1.5625rem;
    background-color: rgba(255, 255, 255, 0.6);
}

.join-qq .content .desc {
    padding: 1.5rem 1.5625rem;
    background: #fff;
}

/* 平板：侧栏略窄 */
@media (max-width: 991.98px) {
    .experience-panel {
        flex-direction: column;
    }

    .experience-sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e8eeff;
        border-radius: 1rem 1rem 0 0;
        padding: 1rem;
    }

    .product-nav-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .product-nav-list::-webkit-scrollbar {
        display: none;
    }

    .product-nav-item {
        flex: 0 0 auto;
        min-width: 10rem;
        padding: 0.75rem 1rem;
    }

    .experience-main {
        padding: 1.5rem 1.25rem 2rem;
        border-radius: 0 0 1rem 1rem;
    }

    .mini-program-grid {
        gap: 1.5rem 2rem;
    }
}

/* 手机 */
@media (max-width: 767.98px) {
    .experience-page {
        padding: 1rem 0 2rem;
    }

    .detail-title {
        font-size: 1.25rem;
    }

    .access-table thead {
        display: none;
    }

    .access-table tbody tr {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eef2fb;
    }

    .access-table tbody td {
        display: block;
        padding: 0.25rem 0;
        border: none;
    }

    .access-table tbody td::before {
        content: attr(data-label);
        display: inline-block;
        font-size: 0.75rem;
        color: #8c9ab5;
        min-width: 4.5rem;
        margin-right: 0.5rem;
    }

    .access-table tbody td:first-child::before {
        content: none;
    }

    .mobile-demo-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-demo-left {
        width: 100%;
    }

    .mobile-demo-right {
        justify-content: center;
    }

    .mini-program-grid {
        width: 100%;
        max-width: 24rem;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .mini-program-card img {
        width: 9rem;
        height: 9rem;
    }

    .h5-model {
        width: 14rem;
        height: 26rem;
        padding: 1.75rem 0.75rem 1.5rem;
    }

    .join-qq .content {
        font-size: 1rem;
    }

    .join-qq .content .title,
    .join-qq .content .desc {
        padding: 0.75rem;
    }

    .platform-cell .qr-popup {
        left: 50%;
        top: auto;
        bottom: calc(100% + 0.5rem);
        transform: translateX(-50%) translateY(4px);
    }

    .platform-cell .qrcode-preview:hover .qr-popup {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 575.98px) {
    .product-nav-item {
        min-width: 8.5rem;
    }

    .product-nav-desc {
        display: none;
    }
}
