/* Banner样式 */
.banner {
    padding: 100px 0;
    background-color: #f8fafc;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 0 98px;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* 左侧预览区 */
.banner-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-preview-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: block;
    object-fit: contain;
}

/* 无图片时的占位样式 */
.banner-preview-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background: linear-gradient(145deg, #eef2f7 0%, #dfe6ee 100%);
    border: 1px solid #d0d8e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
}

.banner-preview-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.banner-preview-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

/* 右侧内容区 */
.banner-right {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.banner-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.7;
    max-width: 440px;
}

.banner-update {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-update::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
}

/* 按钮区 */
.banner-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-help {
    padding: 11px 28px;
    background-color: #fff;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid #d0d8e2;
}

.btn-help:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-download {
    padding: 11px 28px;
    background-color: #1a73e8;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid #1a73e8;
}

.btn-download:hover {
    background-color: #1565c0;
    border-color: #1565c0;
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.25);
}

/* 暗色模式 */
body.dark-mode .banner {
    background-color: #161b22;
    border-bottom-color: #2a3140;
}

body.dark-mode .banner-preview-img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: #2a3140;
}

body.dark-mode .banner-preview-placeholder {
    background: linear-gradient(145deg, #1e2530 0%, #252d3a 100%);
    border-color: #2a3140;
    color: #4a5568;
}

body.dark-mode .banner-title {
    color: #e2e8f0;
}

body.dark-mode .banner-desc {
    color: #8b9ab5;
}

body.dark-mode .banner-update {
    color: #64748b;
}

body.dark-mode .btn-help {
    background-color: #1e2530;
    color: #c8d1dc;
    border-color: #2a3140;
}

body.dark-mode .btn-help:hover {
    background-color: #252d3a;
    border-color: #3a4563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 小屏幕预览图移到文字下方 */
@media (max-width: 970px) {
    .banner-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 24px;
    }

    .banner-left {
        flex: none;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .banner-right {
        width: 100%;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-update {
        justify-content: center;
    }

    .banner-desc {
        max-width: none;
    }
}

/* 响应式 */
@media (max-width: 968px) {
    .banner-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 24px;
    }

    .banner-left {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .banner-right {
        width: 100%;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-title {
        font-size: 26px;
    }

    .banner-desc {
        max-width: none;
    }

    .banner-update {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 40px 0 56px;
    }

    .banner-container {
        padding: 0 20px;
        gap: 28px;
    }

    .banner-title {
        font-size: 22px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .banner-preview-img {
        max-height: 45vh;
        object-fit: contain;
    }

    .btn-help,
    .btn-download {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 32px 0 48px;
    }

    .banner-container {
        padding: 0 16px;
        gap: 24px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-desc {
        font-size: 13px;
    }

    .banner-preview-img {
        max-height: 38vh;
        object-fit: contain;
    }

    .btn-help,
    .btn-download {
        padding: 9px 16px;
        font-size: 13px;
    }

    .banner-buttons {
        gap: 10px;
    }
}

/* 极小屏幕 */
@media (max-width: 360px) {
    .banner {
        padding: 28px 0 40px;
    }

    .banner-container {
        padding: 0 16px;
        gap: 0;
    }

    .banner-title {
        font-size: 18px;
    }

    .banner-desc {
        font-size: 12px;
    }

    .banner-preview-img {
        max-height: 32vh;
        object-fit: contain;
    }

    .btn-help,
    .btn-download {
        padding: 8px 14px;
        font-size: 12px;
    }
}
