/*
 * bbsapp.css — 论坛 APP 下载页专用样式
 * 依赖：home.css（:root 变量）、nav.css、footer.css、hero-common.css
 */

/* ── 主体容器 ── */
.bbsapp-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ── 章节通用 ── */
.bbsapp-section {
    margin-bottom: 48px;
}

/* ── 卡片 ── */
.bbsapp-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(22, 93, 255, 0.07);
    border: 1px solid rgba(22, 93, 255, 0.08);
    overflow: hidden;
}

/* ── 应用介绍卡片 ── */
.bbsapp-intro {
    padding: 44px 48px;
}

.bbsapp-intro-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.bbsapp-intro-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color, #165DFF);
    flex-shrink: 0;
    border: 1px solid rgba(22, 93, 255, 0.12);
}

.bbsapp-intro-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 14px;
}

.bbsapp-intro-body p {
    font-size: 15px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.8;
    margin-bottom: 8px;
}

.bbsapp-intro-body p:last-child {
    margin-bottom: 0;
}

/* ── 功能特性卡片 ── */
.bbsapp-features {
    padding: 44px 48px;
}

.bbsapp-features h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px 20px;
    background: var(--bg-light, #f8faff);
    border-radius: 14px;
    border: 1px solid rgba(22, 93, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(22, 93, 255, 0.12);
    border-color: rgba(22, 93, 255, 0.2);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color, #165DFF);
    border: 1px solid rgba(22, 93, 255, 0.1);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.6;
    margin: 0;
}

/* ── 下载主体卡片 ── */
.bbsapp-download {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.download-preview {
    background: linear-gradient(160deg, #1e3a6e 0%, #2d5bbf 60%, #3d82e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.download-preview::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.download-preview::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.download-preview img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.download-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    text-align: center;
    gap: 20px;
}



/* 版本信息 */
.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.download-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light, #f8faff);
    border: 1px solid rgba(22, 93, 255, 0.12);
    color: var(--primary-color, #165DFF);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

/* 大下载按钮 */
.download-btn-wrap {
    position: relative;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #34A853 0%, #27ae60 100%);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(52, 168, 83, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-download i {
    font-size: 20px;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(52, 168, 83, 0.45);
    filter: brightness(1.06);
    color: #ffffff;
}

.btn-download:hover i {
    transform: translateY(2px);
}

/* 注意事项 */
.download-notice {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-notice i {
    color: #f59e0b;
    font-size: 14px;
}

/* ── 注意事项区块 ── */
.bbsapp-notes {
    padding: 36px 48px;
}

.bbsapp-notes h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbsapp-notes h3 i {
    color: #f59e0b;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.7;
}

.notes-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #165DFF);
    margin-top: 8px;
    flex-shrink: 0;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
    .bbsapp-download {
        grid-template-columns: 1fr;
    }

    .download-preview {
        min-height: 260px;
        padding: 32px;
    }

    .download-preview img {
        max-height: 220px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }

    .feature-icon-wrap {
        flex-shrink: 0;
    }

    .feature-item .feature-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .bbsapp-main {
        padding: 40px 16px 60px;
    }

    .bbsapp-intro,
    .bbsapp-features,
    .bbsapp-notes {
        padding: 32px 24px;
    }

    .bbsapp-intro-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .download-action {
        padding: 36px 24px;
    }

    .bbsapp-section {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .bbsapp-features {
        padding: 28px 16px;
    }

    .download-meta {
        gap: 8px;
    }

    .btn-download {
        padding: 14px 36px;
        font-size: 15px;
    }
}