/* ========================================
   iTop Screen Recorder - 教程页面样式
   主题色: #E22940 (红色)
======================================== */

/* ========== 教程页面布局 ========== */
.tutorial-page {
    background: #ffffff;
}

.tutorial-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.tutorial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(226, 41, 64, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.tutorial-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tutorial-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.tutorial-breadcrumb a {
    color: #888888;
    transition: color 0.3s ease;
}

.tutorial-breadcrumb a:hover {
    color: #E22940;
}

.tutorial-breadcrumb span {
    color: #555555;
}

.tutorial-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: #666666;
}

.tutorial-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(226, 41, 64, 0.15);
    color: #E22940;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    white-space: nowrap;
}

.tutorial-category svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tutorial-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.tutorial-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #888888;
    font-size: 14px;
}

.tutorial-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tutorial-meta-item svg {
    width: 16px;
    height: 16px;
}

/* ========== 教程内容区域 ========== */
.tutorial-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.tutorial-main {
    min-width: 0;
}

.tutorial-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* ========== 文章内容样式 ========== */
.tutorial-article {
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
}

.tutorial-article > *:first-child {
    margin-top: 0;
}

.tutorial-article p {
    margin-bottom: 20px;
}

.tutorial-article h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(226, 41, 64, 0.2);
    position: relative;
}

.tutorial-article h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #E22940;
}

.tutorial-article h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 36px 0 16px;
}

.tutorial-article h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 28px 0 12px;
}

.tutorial-article strong {
    color: #1a1a1a;
    font-weight: 600;
}

.tutorial-article a {
    color: #E22940;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.tutorial-article a:hover {
    color: #c41e35;
}

.tutorial-article ul,
.tutorial-article ol {
    margin: 20px 0;
    padding-left: 24px;
}

.tutorial-article li {
    margin-bottom: 12px;
    position: relative;
}

.tutorial-article ul li::marker {
    color: #E22940;
}

.tutorial-article ol li::marker {
    color: #E22940;
    font-weight: 600;
}

/* ========== 图片样式 ========== */
.tutorial-image {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tutorial-image img {
    width: 100%;
    display: block;
}

.tutorial-image-caption {
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666666;
    text-align: center;
    font-style: italic;
}

/* ========== 步骤样式 ========== */
.tutorial-step {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(226, 41, 64, 0.04) 0%, rgba(226, 41, 64, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 41, 64, 0.15);
}

.tutorial-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #E22940;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.tutorial-step-content {
    flex: 1;
}

.tutorial-step-content p {
    margin: 0;
}

/* ========== 提示框样式 ========== */
.tutorial-tip {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff8e6 0%, #fffdf5 100%);
    border-radius: 12px;
    border-left: 4px solid #f5a623;
    font-size: 15px;
}

.tutorial-tip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #b8860b;
    margin-bottom: 8px;
}

.tutorial-tip-title svg {
    width: 18px;
    height: 18px;
}

.tutorial-note {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f5faff 100%);
    border-radius: 12px;
    border-left: 4px solid #2196f3;
    font-size: 15px;
}

.tutorial-note-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 8px;
}

.tutorial-note-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========== 产品推荐卡片 ========== */
.tutorial-product-card {
    margin: 32px 0;
    padding: 28px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-radius: 16px;
    color: #ffffff;
}

.tutorial-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tutorial-product-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.tutorial-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tutorial-product-name {
    font-size: 20px;
    font-weight: 700;
}

.tutorial-product-desc {
    font-size: 15px;
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tutorial-product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.tutorial-product-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #cccccc;
}

.tutorial-product-feature svg {
    width: 16px;
    height: 16px;
    color: #E22940;
    flex-shrink: 0;
}

.tutorial-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #E22940 0%, #c41e35 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(226, 41, 64, 0.3);
}

.tutorial-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(226, 41, 64, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* ========== FAQ 样式 ========== */
.tutorial-faq {
    margin: 48px 0;
}

.tutorial-faq-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(226, 41, 64, 0.2);
    position: relative;
}

.tutorial-faq-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #E22940;
}

.tutorial-faq-item {
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.tutorial-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tutorial-faq-question:hover {
    background: #f0f1f2;
}

.tutorial-faq-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.tutorial-faq-question svg {
    width: 20px;
    height: 20px;
    color: #666666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tutorial-faq-item.active .tutorial-faq-question svg {
    transform: rotate(180deg);
}

.tutorial-faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tutorial-faq-item.active .tutorial-faq-answer {
    padding: 20px 24px;
    max-height: 500px;
}

.tutorial-faq-answer p {
    margin: 0;
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
}

/* ========== 侧边栏样式 ========== */
.tutorial-toc {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
}

.tutorial-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tutorial-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-toc-list li {
    margin-bottom: 8px;
}

.tutorial-toc-list a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #555555;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tutorial-toc-list a:hover,
.tutorial-toc-list a.active {
    background: rgba(226, 41, 64, 0.1);
    color: #E22940;
}

/* ========== 相关文章 ========== */
.tutorial-related {
    margin-top: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
}

.tutorial-related-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tutorial-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-related-list li {
    margin-bottom: 12px;
}

.tutorial-related-list a {
    display: block;
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-decoration: none;
}

.tutorial-related-list a:hover {
    color: #E22940;
}

/* ========== 底部 CTA ========== */
.tutorial-cta {
    margin-top: 48px;
    padding: 48px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 50%, #1a1a2e 100%);
    border-radius: 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* 装饰性背景元素 */
.tutorial-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(226, 41, 64, 0.25) 0%, transparent 70%);
    animation: ctaGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.tutorial-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(226, 41, 64, 0.2) 0%, transparent 70%);
    animation: ctaGlow 6s ease-in-out infinite 3s;
    pointer-events: none;
}

@keyframes ctaGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 波浪装饰 */
.tutorial-cta-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.tutorial-cta-grid::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(226, 41, 64, 0.08) 0%, transparent 50%);
    animation: waveMove 10s ease-in-out infinite;
}

.tutorial-cta-grid::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(226, 41, 64, 0.06) 0%, transparent 50%);
    animation: waveMove 10s ease-in-out infinite 5s;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(10px) translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateX(0) translateY(5px) rotate(0deg);
    }
    75% {
        transform: translateX(-10px) translateY(-5px) rotate(-2deg);
    }
}

/* 浮动装饰圆点 */
.tutorial-cta-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.tutorial-cta-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(226, 41, 64, 0.4);
    border-radius: 50%;
    animation: floatDot 8s ease-in-out infinite;
}

.tutorial-cta-dot:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.tutorial-cta-dot:nth-child(2) { top: 60%; left: 5%; animation-delay: 1s; }
.tutorial-cta-dot:nth-child(3) { top: 30%; right: 15%; animation-delay: 2s; }
.tutorial-cta-dot:nth-child(4) { top: 70%; right: 10%; animation-delay: 3s; }
.tutorial-cta-dot:nth-child(5) { top: 15%; left: 30%; animation-delay: 4s; }
.tutorial-cta-dot:nth-child(6) { top: 80%; left: 25%; animation-delay: 5s; }

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.8;
    }
}

.tutorial-cta-content {
    position: relative;
    z-index: 1;
}

.tutorial-cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #E22940 0%, #ff5252 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

.tutorial-cta-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(226, 41, 64, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(226, 41, 64, 0.6);
    }
}

.tutorial-cta h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-cta p {
    font-size: 16px;
    color: #aaaaaa;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: #ffffff;
    color: #E22940;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tutorial-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tutorial-cta-btn:hover::before {
    left: 100%;
}

.tutorial-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: #c41e35;
    text-decoration: none;
}

.tutorial-cta-btn svg {
    width: 20px;
    height: 20px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .tutorial-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tutorial-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .tutorial-hero {
        padding: 80px 0 48px;
    }
    
    .tutorial-title {
        font-size: 28px;
    }
    
    .tutorial-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .tutorial-content-wrapper {
        padding: 40px 20px 60px;
    }
    
    .tutorial-article {
        font-size: 16px;
    }
    
    .tutorial-article h2 {
        font-size: 24px;
    }
    
    .tutorial-article h3 {
        font-size: 20px;
    }
    
    .tutorial-product-features {
        grid-template-columns: 1fr;
    }
    
    .tutorial-cta {
        padding: 32px 24px;
    }
    
    .tutorial-cta h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tutorial-hero {
        padding: 70px 0 40px;
    }
    
    .tutorial-title {
        font-size: 24px;
    }
    
    .tutorial-step {
        flex-direction: column;
        gap: 12px;
    }
    
    .tutorial-image {
        margin: 24px -20px;
        border-radius: 0;
    }
}
