/* 帮助中心页面样式 */
.help-banner {
    height: 320px;
    background: linear-gradient(180deg, #EBF3FF 0%, #F7FAFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.help-banner-content {
    text-align: center;
}

.help-banner-content h1 {
    font-size: 48px;
    color: #1D2129;
    margin-bottom: 40px;
    font-weight: 600;
}

.help-search {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.help-search input {
    flex: 1;
    height: 50px;
    border: 1px solid #E5E6EB;
    border-radius: 6px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.help-search input:focus {
    border-color: #1677FF;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

.help-search button {
    width: 120px;
    height: 50px;
    background: #1677FF;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-search button:hover {
    background: #0E5FD8;
}

.help-section {
    padding: 60px 0;
    background: #fafcff;
    scroll-margin-top: 110px; /* 导航栏高度(80px) + 额外偏移(30px) */
}

.help-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.help-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.help-menu {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item.active {
    background: #1677FF;
    color: #fff;
}

.menu-item:not(.active):hover {
    background: #F7F8FA;
}

.menu-item span {
    font-size: 16px;
}

.arrow {
    width: 16px;
    height: 16px;
    background: url('../assets/arrow.png') no-repeat center;
    background-size: contain;
}

.help-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
}

.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #86909C;
}

.help-category {
    margin-bottom: 40px;
}

.help-category h2 {
    font-size: 20px;
    color: #1D2129;
    margin-bottom: 20px;
    font-weight: 500;
}

.help-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.help-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F7F8FA;
    border-radius: 8px;
    text-decoration: none;
    color: #4E5969;
    transition: all 0.3s ease;
}

.help-item:hover {
    background: #EBF3FF;
    color: #1677FF;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .help-container {
        flex-direction: column;
    }

    .help-sidebar {
        width: 100%;
    }

    .help-items {
        grid-template-columns: 1fr;
    }
} 
/* banner部分 */
.banner-section {
    margin-top: 0;
    height: 720px;
    position: relative;
    overflow: hidden;
}

.banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-title {
    font-size: 36px;
    color: #1D2129;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.help-grid-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 160px;
}

.help-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.help-grid-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.help-grid-item span {
    font-size: 16px;
    color: #1D2129;
    font-weight: 500;
}

/* 适配移动端 */
@media screen and (max-width: 1024px) {
    .help-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
}

/* 视频教程部分样式 */
.video-slider {
    position: relative;
    padding: 0 40px;
    width: 1200px;
    box-sizing: content-box;
}

.video-container {
    display: flex;
    gap: 27px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.video-item {
    flex: 0 0 280px;
    text-decoration: none;
    cursor: pointer;
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumb img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #1677FF;
    margin-left: 4px; /* 稍微偏右一点，视觉上更居中 */
}

/* 鼠标悬浮效果 */
.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 添加视频缩略图遮罩 */
.video-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}

.video-item:hover .video-thumb::after {
    background: rgba(0, 0, 0, 0.1);
}

/* 优化视频缩略图 */
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-item:hover .video-thumb video {
    transform: scale(1.05);
}

/* 播放图标点击效果 */
.play-icon:active {
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 1);
}

.video-item h3 {
    font-size: 16px;
    color: #1D2129;
    font-weight: 500;
    line-height: 1.5;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 18px;
    color: #1D2129;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: #1677FF;
    color: #FFFFFF;
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}
.slider-arrow img {
    width: 16px;
    height: 16px;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .video-container {
        gap: 16px;
    }
    
    .video-item {
        flex: 0 0 240px;
    }
}

/* 添加视频播放时的样式 */
.video-thumb.playing .play-icon {
    opacity: 0;
}

.video-thumb.playing video {
    transform: scale(1);
}

/* 视频弹框样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 800px;
    max-width: 90vw;
    position: relative;
}

.video-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    font-size: 18px;
    color: #1D2129;
    margin: 0;
}

.close-video-modal {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-video-modal:hover {
    color: #333;
}

.video-modal-body {
    padding: 20px;
}

.video-modal-body video {
    width: 100%;
    max-height: 600px;
    border-radius: 8px;
    background: #000;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .video-modal-content {
        width: 95vw;
        margin: 20px;
    }
}

html {
    scroll-behavior: smooth; /* 添加平滑滚动效果 */
}
