/* ============================================
   文包定时发布助手 - 前端文章美化样式 v2
   ============================================ */

/* 整体容器 */
.wbsa-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.8;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wbsa-intro p {
    margin: 0;
    color: #fff !important;
}

.wbsa-intro a {
    color: #ffd700 !important;
    text-decoration: underline;
}

/* 区域区块 */
.wbsa-section {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.wbsa-section-yanqing {
    border: 2px solid #ff6b6b;
}

.wbsa-section-danmei {
    border: 2px solid #9b59b6;
}

/* 区域头部 */
.wbsa-section-header {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wbsa-section-yanqing .wbsa-section-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.wbsa-section-danmei .wbsa-section-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.wbsa-section-icon {
    font-size: 24px;
    line-height: 1;
}

.wbsa-section-header h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.4em !important;
    font-weight: 600;
    border: none !important;
    padding: 0 !important;
}

/* 区域内容 */
.wbsa-section-body {
    padding: 20px 25px;
    background: #fafbfc;
}

/* 文包卡片 */
.wbsa-card-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wbsa-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.wbsa-card-item:last-child {
    margin-bottom: 0;
}

/* 卡片头部 */
.wbsa-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
}

.wbsa-card-title {
    margin: 0 !important;
    font-size: 1.15em !important;
    color: #2c3e50 !important;
    font-weight: 600;
}

/* 卡片内容 */
.wbsa-card-content {
    padding: 20px;
}

/* 链接行 */
.wbsa-link-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.wbsa-link-label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 14px;
}

.wbsa-link-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 500;
    word-break: break-all;
    transition: all 0.2s;
    font-size: 14px;
}

.wbsa-link-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 描述行 */
.wbsa-desc-row {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.wbsa-desc-row p {
    margin: 0 !important;
    color: #666 !important;
    line-height: 1.7;
    font-size: 14px;
}

/* 图片行 */
.wbsa-image-row {
    margin-top: 15px;
}

.wbsa-image-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

/* PC端图片适配 - 限制最大宽度 */
.wbsa-file-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: block;
    margin: 0 auto;
}

.wbsa-file-image:hover {
    transform: scale(1.02);
}

/* 底部 */
.wbsa-footer {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 1px dashed #dee2e6;
}

.wbsa-footer p {
    margin: 0 !important;
    color: #868e96 !important;
    font-size: 14px;
}

/* ============================================
   响应式 - 手机端
   ============================================ */

@media (max-width: 768px) {
    .wbsa-intro {
        padding: 18px 20px;
        font-size: 14px;
    }

    .wbsa-section-header {
        padding: 14px 18px;
    }

    .wbsa-section-header h2 {
        font-size: 1.2em !important;
    }

    .wbsa-section-body {
        padding: 15px 18px;
    }

    .wbsa-card-content {
        padding: 15px;
    }

    .wbsa-link-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .wbsa-link-btn {
        width: 100%;
        text-align: center;
    }

    /* 手机端图片保持全宽 */
    .wbsa-file-image {
        max-width: 100%;
    }
}
