/* ========== 使用教程页面 - 高端专业风格 ========== */

/* Hero Section */
.tut-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1929 0%, #0f2137 40%, #0a1628 100%);
    padding-top: 70px;
}

.tut-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tut-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.tut-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.tut-hero-glow--1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

.tut-hero-glow--2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.12) 0%, transparent 70%);
}

.tut-hero-particles {
    position: absolute;
    inset: 0;
}

.tut-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px 50px;
    max-width: 800px;
}

.tut-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 100px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tut-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tut-hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(148, 163, 184, 0.9);
    margin: 0 0 40px;
    line-height: 1.7;
}

.tut-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tut-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tut-hero-stat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

.tut-hero-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22d3ee;
    line-height: 1.2;
}

.tut-hero-stat-label {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.7);
    margin-top: 4px;
    font-weight: 500;
}

/* Body Layout */
.tut-body {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 400px);
}

/* Sidebar */
.tut-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 32px 0;
    border-right: 1px solid var(--gray-100);
    background: var(--white);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.tut-sidebar::-webkit-scrollbar { width: 3px; }
.tut-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.tut-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding: 0 24px;
    margin-bottom: 16px;
}

.tut-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.tut-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
}

.tut-sidebar-link:hover {
    color: var(--gray-800);
    background: var(--gray-50);
    text-decoration: none;
}

.tut-sidebar-link.active {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.06);
    font-weight: 600;
}

.tut-sidebar-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-300);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.tut-sidebar-link.active .tut-sidebar-num {
    color: #0891b2;
}

.tut-sidebar-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 12px 12px;
}

/* Content */
.tut-content {
    flex: 1;
    min-width: 0;
    padding: 48px 56px 80px;
    max-width: 860px;
    background: var(--white);
}

/* Section */
.tut-section {
    margin-bottom: 64px;
    scroll-margin-top: 90px;
}

.tut-section-header {
    margin-bottom: 28px;
}

.tut-step-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    border: 1px solid rgba(8, 145, 178, 0.15);
    border-radius: 100px;
    color: #0891b2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tut-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.tut-section-desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
    margin: 0;
}

.tut-subsection-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 16px;
}

/* Cards Grid */
.tut-cards-grid {
    display: grid;
    gap: 16px;
}

.tut-cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.tut-cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Feature Card */
.tut-card {
    position: relative;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.tut-card:hover {
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
    transform: translateY(-2px);
}

.tut-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tut-card-icon--cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0891b2;
}

.tut-card-icon--blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
}

.tut-card-icon--teal {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0d9488;
}

.tut-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.tut-card-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

.tut-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
}

/* Flow Steps */
.tut-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 24px;
}

.tut-flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.tut-flow-step:hover {
    border-color: rgba(8, 145, 178, 0.25);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tut-flow-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.tut-flow-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 4px;
}

.tut-flow-body p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.tut-flow-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-200), rgba(8, 145, 178, 0.3), var(--gray-200));
    flex-shrink: 0;
    margin-top: 46px;
}

/* Example Box */
.tut-example-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.tut-example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.tut-example-header svg {
    color: var(--gray-400);
}

.tut-example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tut-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
}

.tut-tag:hover {
    border-color: #0891b2;
    color: #0891b2;
    background: rgba(8, 145, 178, 0.04);
}

/* Tip Box */
.tut-tip {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    align-items: flex-start;
}

.tut-tip--info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.tut-tip--info .tut-tip-icon {
    color: #0284c7;
}

.tut-tip--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.tut-tip--warning .tut-tip-icon {
    color: #d97706;
}

.tut-tip-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.tut-tip-text strong {
    font-weight: 600;
}

/* Info Table */
.tut-info-table {
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    overflow: hidden;
}

.tut-info-row {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-50);
    gap: 20px;
    transition: background 0.2s;
}

.tut-info-row:last-child {
    border-bottom: none;
}

.tut-info-row:hover {
    background: var(--gray-50);
}

.tut-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.tut-info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tut-info-dot--1 { background: #06b6d4; }
.tut-info-dot--2 { background: #0ea5e9; }
.tut-info-dot--3 { background: #0891b2; }
.tut-info-dot--4 { background: #14b8a6; }
.tut-info-dot--5 { background: #0d9488; }

.tut-info-value {
    flex: 1;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Action Card */
.tut-action-card {
    padding: 28px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.tut-action-card:hover {
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.tut-action-icon {
    width: 52px;
    height: 52px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #0891b2;
    transition: all 0.3s ease;
}

.tut-action-card:hover .tut-action-icon {
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.1);
}

.tut-action-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.tut-action-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* Tips List */
.tut-tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tut-tips-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    transition: all 0.2s;
}

.tut-tips-item:hover {
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tut-tips-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.tut-tips-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 4px;
}

.tut-tips-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* FAQ */
.tut-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tut-faq-item {
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.tut-faq-item[open] {
    border-color: rgba(8, 145, 178, 0.2);
}

.tut-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    list-style: none;
    transition: background 0.2s;
    user-select: none;
}

.tut-faq-question::-webkit-details-marker {
    display: none;
}

.tut-faq-question:hover {
    background: var(--gray-50);
}

.tut-faq-arrow {
    color: var(--gray-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tut-faq-item[open] .tut-faq-arrow {
    transform: rotate(180deg);
}

.tut-faq-answer {
    padding: 0 20px 16px;
}

.tut-faq-answer p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.8;
    margin: 0;
}

/* CTA */
.tut-cta {
    margin-top: 16px;
    padding: 48px 40px;
    background: linear-gradient(135deg, #0c1929 0%, #0f2137 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tut-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.tut-cta-content {
    position: relative;
    z-index: 1;
}

.tut-cta h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.tut-cta p {
    font-size: 15px;
    color: rgba(148, 163, 184, 0.8);
    margin: 0 0 28px;
}

.tut-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff !important;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.tut-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
    color: #fff !important;
    text-decoration: none;
}

/* Mobile Toggle */
.tut-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.4);
    cursor: pointer;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.tut-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.tut-overlay.show {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tut-section {
    animation: fadeInUp 0.5s ease both;
}

.tut-hero-content {
    animation: fadeInUp 0.6s ease both;
}

/* Responsive */
@media (max-width: 1024px) {
    .tut-content {
        padding: 36px 32px 60px;
    }
}

@media (max-width: 900px) {
    .tut-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: none;
        padding-top: 80px;
        background: var(--white);
    }

    .tut-sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .tut-content {
        padding: 28px 20px 60px;
    }

    .tut-mobile-toggle {
        display: flex;
    }

    .tut-cards-grid--3 {
        grid-template-columns: 1fr;
    }

    .tut-cards-grid--2 {
        grid-template-columns: 1fr;
    }

    .tut-flow {
        flex-direction: column;
        gap: 0;
    }

    .tut-flow-connector {
        width: 2px;
        height: 24px;
        margin: 0 auto;
    }

    .tut-info-row {
        flex-direction: column;
        gap: 6px;
    }

    .tut-info-label {
        width: auto;
    }

    .tut-hero-title {
        font-size: 1.8rem;
    }

    .tut-hero-stats {
        gap: 12px;
    }

    .tut-hero-stat {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .tut-hero {
        min-height: 340px;
    }

    .tut-hero-content {
        padding: 40px 16px 36px;
    }

    .tut-section-title {
        font-size: 20px;
    }

    .tut-cta {
        padding: 36px 24px;
        border-radius: 14px;
    }

    .tut-cta h2 {
        font-size: 20px;
    }

    .tut-tips-item {
        padding: 16px;
    }
}
