/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fc;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    transition: opacity 0.35s ease;
    opacity: 1;
    pointer-events: none;
}


#mainContainer {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.header-image {
    width: 100%;
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.header-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-body {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 0;
}

.sidebar {
    width: 250px;
    background-color: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    padding: 20px 35px;
    font-size: 26px;
    font-weight: bold;
    color: #0bb1b1;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 左侧目录项 */
.product-tab {
    padding: 18px 35px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: transparent;
}

.product-tab:hover {
    color: #0bb1b1 !important;
    background-color: #f0f0f0;
}

.product-tab.active {
    color: #0bb1b1 !important;
    font-weight: 500;
    border-left: 4px solid #0bb1b1;
    background-color: #e0f2f2;
}

/*右侧内容区域 */
#contentContainer {
    flex: 1;
    background-color: #ffffff;
    position: relative;
    overflow: visible;
    min-height: 400px;
}

.content-area {
    position: relative;
    padding: 30px 50px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    visibility: hidden;
    display: none;
}

.content-area.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    display: block;
}

.content-area.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    visibility: hidden;
    display: none;
}

/* 内容内部样式 */
.content-area h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.content-area .content-inner {
    max-width: 700px;
    line-height: 1.8;
    color: #666;
    margin: 0 auto;

}

.content-area .content-inner p {
    text-indent: 0;
    margin-bottom: 10px;
}

.content-area .content-inner ul {
    padding-left: 20px;
    margin: 10px 0;
    list-style: disc;
}

.content-area .content-inner ul li {
    margin-bottom: 10px;
    text-align: left;
}

/* 右侧悬浮按钮 */
.float-contact {
    position: fixed;
    right: 10px;
    bottom: 20%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-item {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(67, 212, 223, 0.85) 0%, rgba(21, 163, 168, 0.85) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(60, 179, 200, 0.25),
                inset 0 -3px 8px rgba(20, 137, 150, 0.3),
                inset 0 4px 10px rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 高光装饰 */
.float-item::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 10px;
    width: 2px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    transform: rotate(-30deg);
    filter: blur(1px);
    opacity: 0.8;
}

.float-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: 18px;
    pointer-events: none;
}

.float-item:hover {
    background: linear-gradient(135deg, rgba(122, 184, 255, 0.85) 0%, rgba(60, 121, 200, 0.85) 100%);
    transform: scale(1.05) translateX(-3px);
    box-shadow: 0 4px 15px rgba(60, 81, 200, 0.25),
                inset 0 -3px 8px rgba(20, 65, 150, 0.3),
                inset 0 4px 10px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.xtb {
    width: 32px;
    height: 32px;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ----- 悬浮弹窗 ----- */
.popup-wrapper {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    min-width: 180px;
}

.float-item:hover .popup-wrapper {
    display: block;
    animation: fadeIn 0.3s ease;
}

.popup-box {
    background: #ffffff;
    padding: 16px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.popup-phone-box {
    min-width: 260px;
}

.popup-qr-box {
    min-width: 220px;
    padding: 20px 24px;
}

/* 三角箭头 */
.popup-box::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    margin-top: -8px;
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.popup-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.popup-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.popup-qr {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.popup-phone {
    font-size: 16px;
    color: #135beb;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.phone-number {
    color: #135beb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}


@media (max-width: 768px) {
    .sidebar {
        width: 180px;
    }

    .sidebar-title {
        font-size: 20px;
        padding: 15px 20px;
    }

    .product-tab {
        padding: 14px 20px;
        font-size: 14px;
    }

    .content-area {
        padding: 20px 24px;
    }

    .content-area .content-inner {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .main-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .product-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .product-tab {
        padding: 10px 18px;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        flex: 0 0 auto;
        font-size: 13px;
    }

    .product-tab.active {
        border-left: none !important;
        border-bottom: 3px solid #0bb1b1;
        background-color: transparent !important;
    }

    #contentContainer {
        min-height: 350px;
    }

    .content-area {
        padding: 16px 18px;
    }

    .float-contact {
        right: 6px;
        gap: 10px;
    }

    .float-item {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .xtb {
        width: 26px;
        height: 26px;
    }

    .popup-wrapper {
        right: 52px;
        min-width: 140px;
    }

    .popup-box {
        padding: 12px 14px;
    }

    .popup-qr {
        width: 70px;
        height: 70px;
    }

    .popup-phone-box {
        min-width: 200px;
    }

    .popup-title {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .sidebar-title {
        font-size: 16px;
        padding: 12px 16px;
    }

    .product-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .content-area h2 {
        font-size: 18px;
    }

    .content-area .content-inner {
        font-size: 13px;
    }
}