/* ========== index.css - 首页专属样式 ========== */

/* 主背景容器 */
.hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 70px 0 0;
    overflow: hidden;
}

/* 轮播图容器 */
#digital-scroll-container {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* 轮播图包装器 */
#image-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* 轮播项 */
#image-wrapper .group {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

/* 轮播项内容区 */
#image-wrapper .group>div {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* 轮播图片 */
#image-wrapper .group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播箭头通用样式 */
#prev-btn,
#next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

/* 箭头位置 */
#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

/* 箭头 hover —— 不变色、不改变背景、只做轻微放大 */
#prev-btn:hover,
#next-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
    color: #165DFF;
}

/* 轮播圆点容器 */
#scroll-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    user-select: none;
}

/* 轮播圆点 */
.scroll-dot {
    cursor: pointer;
    border: none;
    outline: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
    transition: all 0.3s ease;
}

/* 激活圆点 */
.scroll-dot.active {
    background: #165DFF;
    transform: scale(1.2);
}

/* ========== 头部导航固定样式 ========== */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    height: 70px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#mainHeader>.container {
    height: 100%;
}

/* 导航链接 */
.nav-link {
    color: #1D2129;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    background-color: rgba(22, 93, 255, 0.08);
    color: #165DFF;
}

#logo-text {
    color: #1D2129;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ========== 首页 Banner ========== */
.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('image/娴锋姤-02.jpg') center/cover no-repeat;
    margin-top: 70px;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    color: #1D2129;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.hero-desc {
    color: #4E5969;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.hero-btn {
    display: inline-block;
    background-color: #E0F2FF;
    color: #165DFF;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background-color: #c8e7ff;
    transform: translateY(-2px);
}

/* ========== 解决方案标签 ========== */
.solution-tab {
    cursor: pointer;
    position: relative;
    user-select: none;
    z-index: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 20px;
    padding: 8px 12px;
}

.solution-tab.active {
    color: #165DFF;
    font-weight: 600;
}

.solution-tab.active span {
    width: 100%;
    opacity: 1;
}

.solution-tab span {
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.solution-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.solution-tabs-container::-webkit-scrollbar {
    display: none;
}

/* ========== 解决方案图片统一大小 ========== */
.solution-content>div>div:first-of-type {
    height: auto !important;
    overflow: visible;
}

.solution-content img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* 成功案例图片统一 */
#index-page section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    #mainHeader {
        height: 60px;
    }

    .hero-container {
        margin-top: 60px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-desc {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    #digital-scroll-container {
        height: 50vh;
    }

    #prev-btn,
    #next-btn {
        width: 40px;
        height: 40px;
    }

    #prev-btn {
        left: 10px;
    }

    #next-btn {
        right: 10px;
    }

    .solution-tab {
        white-space: nowrap;
        margin: 0 4px;
        font-size: 16px;
    }
}


/* 去掉点击高亮框 */
.solution-tab {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.solution-tab:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}