/* 自定义文章页面顶部布局样式 */
.article-top-layout {
    display: flex;
    /* 紫蓝渐变：柔和的紫调+蓝调，比纯蓝更有记忆点 */
    background: linear-gradient(135deg, #bfbff354 0%, #b6e34c4a 100%);
    border: 1px solid #d9d9ff; /* 淡紫色边框，与背景协调 */
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(217, 217, 255, 0.2); /* 淡紫阴影，提升精致度 */
}

.article-featured-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    margin-right: 20px;
    border: none; /* 去除灰色描边线 */
    border-radius: 15px; /* 与图片保持一致圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保持比例，完整显示，可能留白 */
  display: block;
  background: #f5f5f5; /* 可选：留白背景色 */
  border-radius:15px;
}

.article-top-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title-area {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    border-bottom: 1px solid #eee; /* 添加分割线 */
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 12px;
    color: #554d2d;
}

.badge-5g { background: #67c59930;color: #269b46; }
.badge-unlimited { background: #c8ab1c30; color: #a5480f;}
.badge-nationwide { background: #a88beb21;color:#6351ed; }
.badge-monthly { background: #f6593e29; color: #db2c2c; }

.article-desc {
    margin-top: 12px;
    color: #6c757d;
    font-size: 14px;
}

.article-buttons-area {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: nowrap; /* 保持按钮同一行 */
}

.article-custom-button {
    padding: 8px 5px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    display: flex; /* 保证内部按钮/链接垂直居中 */
    align-items: center;
    
    min-width: 0; /* 防止在小屏溢出换行 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-top-layout {
        flex-direction: column;
    }
    
    .article-featured-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .article-buttons-area {
        margin-top: 12px;
        flex-wrap: nowrap; /* 移动端保持同一行 */
    }
    
    .article-custom-button {
        font-size: 16px;
        padding: 6px 12px;
        flex: 1 1 0; /* 修复语法错误并保持均分 */
    }
}
