/* ===================================
   操作指南页面样式
   与主站风格统一 - 高端极简
   =================================== */

/* --- 页面标题区域 --- */
.guide-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.guide-hero .section-description {
    max-width: 640px;
}

/* --- 搜索栏 --- */
.guide-search-wrap {
    max-width: 560px;
    margin: 0 auto 0;
    position: relative;
}

.guide-search-input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--card-bg);
    outline: none;
    transition: all 0.3s ease;
}

.guide-search-input::placeholder {
    color: var(--text-muted);
}

.guide-search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.1);
}

.guide-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* --- 分类导航标签 --- */
.guide-nav {
    padding: 40px 0 0;
}

.guide-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.guide-nav-tab {
    padding: 10px 24px;
    border: 1px solid var(--card-border);
    background: transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-nav-tab:hover {
    background: var(--card-bg);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.15);
}

.guide-nav-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- 内容区域 --- */
.guide-content {
    padding: 60px 0 120px;
}

.guide-panel {
    display: none;
    animation: guideFadeIn 0.4s ease;
}

.guide-panel.active {
    display: block;
}

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

/* --- 章节卡片 --- */
.guide-section {
    margin-bottom: 48px;
}

.guide-section-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-section-title .guide-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.guide-section-title .guide-section-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-main);
}

/* --- 步骤卡片列表 --- */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    transition: all 0.3s ease;
    position: relative;
}

.guide-step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guide-step-number {
    position: absolute;
    top: 28px;
    left: 32px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.guide-step-card.has-number {
    padding-left: 76px;
}

.guide-step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.guide-step-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.guide-step-desc code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-main);
}

.guide-step-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

/* --- 提示框样式 --- */
.guide-tip {
    background: rgba(197, 165, 90, 0.06);
    border: 1px solid rgba(197, 165, 90, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.guide-tip-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    margin-top: 2px;
}

.guide-warning {
    background: rgba(255, 95, 87, 0.05);
    border-color: rgba(255, 95, 87, 0.2);
}

.guide-warning .guide-tip-icon {
    color: #ff5f57;
}

.guide-info {
    background: rgba(0, 122, 255, 0.04);
    border-color: rgba(0, 122, 255, 0.15);
}

.guide-info .guide-tip-icon {
    color: #007AFF;
}

/* --- FAQ 手风琴（指南页专用） --- */
.guide-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-faq-item {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.guide-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.guide-faq-question:hover {
    background: var(--primary-light);
}

.guide-faq-question svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.guide-faq-item.open .guide-faq-question svg {
    transform: rotate(45deg);
}

.guide-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.guide-faq-item.open .guide-faq-answer {
    max-height: 600px;
}

.guide-faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.guide-faq-answer-inner a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

/* --- 功能网格 --- */
.guide-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.guide-feature-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: all 0.3s ease;
}

.guide-feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guide-feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-feature-item h4 .gf-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-feature-item h4 .gf-icon svg {
    width: 14px;
    height: 14px;
    color: var(--text-main);
}

.guide-feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- 视频链接卡片 --- */
.guide-video-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.guide-video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.guide-video-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-video-icon svg {
    width: 24px;
    height: 24px;
    color: #ff0000;
}

.guide-video-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.guide-video-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- 搜索结果高亮 --- */
.guide-highlight {
    background: rgba(197, 165, 90, 0.2);
    padding: 0 2px;
    border-radius: 2px;
}

/* --- 搜索无结果 --- */
.guide-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 16px;
    display: none;
}

.guide-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* --- 返回区域 --- */
.guide-back {
    padding: 0 0 80px;
    text-align: center;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .guide-hero {
        padding: 140px 0 60px;
    }

    .guide-feature-grid {
        grid-template-columns: 1fr;
    }

    .guide-nav-tabs {
        gap: 6px;
    }

    .guide-nav-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .guide-step-card {
        padding: 20px;
    }

    .guide-step-card.has-number {
        padding-left: 56px;
    }

    .guide-step-number {
        top: 20px;
        left: 20px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .guide-section-title {
        font-size: 20px;
    }

    .guide-video-card {
        flex-direction: column;
        text-align: center;
    }

    .guide-content {
        padding: 40px 0 80px;
    }
}

@media (max-width: 480px) {
    .guide-search-input {
        padding: 14px 20px 14px 44px;
        font-size: 14px;
    }

    .guide-search-icon {
        left: 16px;
    }
}

/* --- 步骤卡片内缩略图 --- */
.guide-step-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: stretch;
}

.guide-step-thumb {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    max-width: 280px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

/* 多图并排时统一高度 */
.guide-step-thumbs .guide-step-thumb {
    height: 180px;
}

.guide-step-thumbs .guide-step-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.guide-step-thumb:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.guide-step-thumb img {
    width: 100%;
    display: block;
}

/* 放大提示角标 */
.guide-step-thumb::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.55);
    border-radius: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='14' y1='10' x2='21' y2='3'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='10' y1='14' x2='3' y2='21'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s;
}

.guide-step-thumb:hover::after {
    opacity: 1;
}

/* --- Lightbox 全屏弹窗 --- */
.guide-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.guide-lightbox.open {
    display: flex;
}

.guide-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.guide-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.guide-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.guide-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.guide-lightbox-close svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* 响应式缩略图 */
@media (max-width: 768px) {
    .guide-step-thumb {
        max-width: 200px;
    }
}
