/* ===== Page Banner - Guide ===== */
.page-banner {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 64px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.page-banner-wrap {
    position: relative;
    z-index: 2;
    width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page-banner-content {
    animation: fadeInUp 0.8s ease-out;
    text-align: left;
}

.page-banner-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-banner-desc {
    font-size: var(--text-base);
    color:#ffffff;
    max-width: 560px;
}

.banner-guide {
    background: #53A1F2 url('../images/banner-guide.png') no-repeat center center;
}

.banner-guide .page-banner-title {
    color: #ffffff;
}

/* ===== Steps ===== */
.guide-steps {
    padding: 48px 0;
    background: #fff;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

.steps-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.step-item {
    text-align: center;
    padding: 0 8px;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-md);
    color: #fff;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-tag {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.step-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-action {
    text-align: center;
    margin-top: 40px;
}

.btn-steps {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.btn-steps:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Videos ===== */
.guide-videos {
    padding: 48px 0;
    background: var(--bg-gray);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.video-card:hover .video-play {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.video-play svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

.video-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin: 16px 16px 8px;
}

.video-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    padding: 0 16px 16px;
    line-height: 1.5;
}

/* ===== Downloads ===== */
.guide-downloads {
    padding: 80px 0;
    background: #fff;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.download-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
}

.download-icon svg {
    width: 24px;
    height: 24px;
}

.download-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.download-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Video Modal ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.is-visible {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 1001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    z-index: 1002;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-modal-close svg {
    width: 20px;
    height: 20px;
}

.video-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-modal-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-title {
    padding: 16px 20px;
    font-size: var(--text-base);
    font-weight: 500;
    color: #fff;
    background: #1a1a1a;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-line {
        display: none;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-banner-title {
        font-size: var(--text-2xl);
    }

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

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

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