section {
    padding: 140px 0 40px 0 !important;
}
.related-guides {
    padding-top: 60px;
    padding-bottom: 60px;
}
.news-category-badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}
.news-category-badge i {
    margin-right: 5px;
    color: white;
}
.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.page-header-text {
    flex: 1;
    padding-right: 50px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark);
}

.page-header h1 span {
    color: var(--primary);
}

.page-header p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray);
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 10px;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.meta-item i {
    margin-right: 10px;
    color: var(--primary);
}

.guide-illustration i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* 指南内容 */
.guide-content {
    background: white;
    position: relative;
    padding: 40px 0 0px 0!important;
}

.guide-toc {
    flex: 0 0 300px;
    position: sticky;
    top: 150px;
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.toc-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 600;
}

.toc-list {
    list-style: none;
    border-left: 3px solid var(--primary-light);
    padding-left: 20px;
}

.toc-item {
    margin-bottom: 15px;
}

.toc-item a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc-item a:hover, .toc-item a.active {
    color: var(--primary);
    font-weight: 600;
}

.toc-subitem {
    margin-left: 15px;
    margin-top: 10px;
}

.guide-main {
    flex: 1;
}

.content-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 25px;
}

.content-text p {
    margin-bottom: 20px;
}

.content-highlight {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.content-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.content-image {
    text-align: center;
    margin: 30px 0;
}

.content-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-image figcaption {
    margin-top: 10px;
    color: var(--gray);
    font-style: italic;
}

/* 视频显示样式 */
.content-video {
    margin: 30px 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#helpVideo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #000;
}

/* 步骤显示样式 */
.content-steps {
    margin: 30px 0;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.step-item {
    counter-increment: step-counter;
    margin-bottom: 30px;
    padding-left: 60px;
    position: relative;
}

.step-item:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
    padding-top: 5px;
}

.step-image {
    margin-top: 15px;
}

.step-image-clickable {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.step-image-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 图片放大预览模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-modal-close i {
    font-size: 24px;
}

.image-modal-caption {
    margin: 20px auto;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    max-width: 90%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
}

/* 相关指南 */
.related-guides {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6f7ff 100%);
    position: relative;
    overflow: hidden;
}

.section-title-centered {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.section-title-centered h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title-centered h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title-centered p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 30px auto 0;
    line-height: 1.8;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.guide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.guide-icon {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

.guide-icon i {
    font-size: 4rem;
    color: var(--primary);
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-icon i {
    transform: scale(1.1);
}

.guide-level {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.guide-info {
    padding: 25px;
}

.guide-time {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.guide-time i {
    margin-right: 8px;
    color: var(--primary);
}

.guide-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.4;
}

.guide-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.guide-meta-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.guide-stats {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.guide-stats span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.guide-stats i {
    margin-right: 5px;
    color: var(--primary);
}

.guide-readmore {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.guide-readmore:hover {
    color: var(--primary-dark);
}

.guide-readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.guide-readmore:hover i {
    transform: translateX(5px);
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.content-body h1, .content-body h2, .content-body h3, .content-body h4, .content-body h5, .content-body h6 {
    color: var(--dark);
    margin-top: 2em;
    margin-bottom: 1em;
}

.content-body p {
    margin-bottom: 1.5em;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
}
/* 响应式设计 */
@media (max-width: 992px) {
    .page-header-content {
        flex-direction: column;
        text-align: center;
    }

    .page-header-text {
        padding-right: 0;
        margin-bottom: 50px;
    }


    .guide-toc {
        position: static;
        margin-bottom: 40px;
    }


    .guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 130px 0 0px 0 !important;
    }

    .page-header h1 {
        font-size: 2.2rem;
        text-align: left;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title-centered h2 {
        font-size: 2.2rem;
    }

    .step-item {
        padding-left: 50px;
    }

    .step-item:before {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-image-clickable {
        max-width: 80%;
    }

    .image-modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .image-modal-close i {
        font-size: 20px;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 85%;
        margin-top: 10%;
    }

    .image-modal-caption {
        font-size: 1rem;
        padding: 8px 15px;
    }
}
