/* ===== Scraped Detail Page Styles ===== */

.scraped-section {
    margin: 0;
}

/* ===== Part 1: Form Detail ===== */
.scraped-form-detail .app-banner {
    background: #f8f9fb;
    padding: 56px 0;
    color: #1a1a2e;
}

.scraped-form-detail .bnr-heading {
    margin-bottom: 28px;
}

.scraped-form-detail .bnr-heading-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.scraped-form-detail .app-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.scraped-form-detail .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scraped-form-detail .app-details h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 5px;
    line-height: 1.3;
}

.scraped-form-detail .app-details p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ===== Content Wrap - Main Container ===== */
.scraped-form-detail .content-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Desktop Layout (Wide Screen) ===== */
/* 使用 CSS Grid 实现左右分栏：
   左侧列（bnr-heading + detail-body）占 70%，右侧列（bnr-right）占 30% */
@media (min-width: 769px) {
    .scraped-form-detail .content-wrap {
        display: grid;
        grid-template-columns: 70% 30%;
        grid-template-rows: auto auto;
        gap: 48px;
        align-items: start;
    }

    /* bnr-heading：左上角 */
    .scraped-form-detail .bnr-heading {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    /* detail-body：左下角，紧接 bnr-heading 下方 */
    .scraped-form-detail .detail-body {
        grid-column: 1;
        grid-row: 2;
    }

    /* bnr-right：右侧，跨两行垂直居中 */
    .scraped-form-detail .bnr-right {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: start;
        position: sticky;
        top: 88px;
    }

    .scraped-form-detail .qr-code-box {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        overflow: hidden;
        padding: 24px 32px;
        text-align: center;
    }
}

/* ===== Mobile / Tablet Layout (Narrow Screen) ===== */
@media (max-width: 768px) {
    .scraped-form-detail .content-wrap {
        display: block;
        padding: 0 16px;
    }

    /* 三个区块垂直排列，每个占满全宽 */
    .scraped-form-detail .bnr-heading,
    .scraped-form-detail .detail-body,
    .scraped-form-detail .bnr-right {
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .scraped-form-detail .bnr-right {
        position: static;
        margin-top: 32px;
    }

    .scraped-form-detail .qr-code-box {
        padding: 20px;
    }

    .scraped-form-detail .qr-code-img {
        width: 120px;
        height: 120px;
    }

    .scraped-form-detail .app-banner {
        padding: 40px 0;
    }

    .scraped-form-detail .bnr-heading-flex {
        gap: 12px;
    }

    .scraped-form-detail .app-icon {
        width: 56px;
        height: 56px;
    }

    .scraped-form-detail .app-details h1 {
        font-size: 1.25rem;
    }

    .scraped-form-detail .app-details p {
        font-size: 0.85rem;
    }

    .scraped-form-detail .bnr-left h2 {
        font-size: 1.25rem;
    }

    .scraped-form-detail .bnr-left p {
        font-size: 0.875rem;
    }
}

/* ===== Common Styles (applied across all screen sizes) ===== */
.scraped-form-detail .bnr-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a2e;
    line-height: 1.3;
}

.scraped-form-detail .bnr-left p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.qr-code-box {
    text-align: center;
}

.qr-code-img {
    width: 140px;
    height: 140px;
    display: block;
    margin: 0 auto 8px;
    border-radius: 8px;
}

.qr-code-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* ===== Part 2: App Preview ===== */
.scraped-app-preview .app-preview {
    padding: 50px 0;
    background: #fff;
}

.section-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 36px;
}

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

.preview-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
}

.preview-card img {
    width: 100%;
    display: block;
}

/* ===== Part 3: Admin Tasks ===== */
.scraped-admin-tasks .admistrative-tasks {
    padding: 50px 0;
    background: #f8f9fb;
}

.scraped-admin-tasks .flex-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.scraped-admin-tasks .flex-part-three {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.scraped-admin-tasks .flex-part-three h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.scraped-admin-tasks .flex-part-three p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 8px;
}

.scraped-admin-tasks .flex-part-three p:last-child {
    margin-bottom: 0;
}

.scraped-admin-tasks .flex-part-three .list-item {
    padding-left: 0;
}

/* ===== Related Softwares ===== */
.related-softwares {
    padding: 50px 0;
    background: #fff;
}

.related-softwares h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 36px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.related-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #e8ecf1;
}

.related-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.related-info p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Original Layout ===== */
.detail-hero {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    padding: 60px 0;
    color: #fff;
}

.detail-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.detail-hero-left h1 {
    font-size: 2.2rem;
    margin: 0 0 12px;
}

.detail-hero-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    margin: 0;
}

.detail-hero-right img {
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.detail-description,
.detail-screenshots,
.detail-features {
    padding: 50px 0;
}

.detail-description { background: #fff; }
.detail-screenshots { background: #f8f9fb; }
.detail-features { background: #fff; }

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

.screenshot-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.screenshot-item img {
    width: 100%;
    display: block;
}

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

.feature-card {
    text-align: center;
    padding: 24px;
}

.feature-icon img {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

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

@media (max-width: 992px) {
    .detail-hero-content {
        flex-direction: column;
    }
    .preview-slider,
    .screenshot-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-slider,
    .screenshot-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .scraped-admin-tasks .flex-part-three {
        min-width: 100%;
    }
}