/**
 * 推广卡片 — 多彩主题
 * 活泼鲜明的渐变配色，多彩点缀，充满活力与年轻感
 */

.jingkapian-card {
    display: flex; max-width: 100%; width: 100%; margin: 16px auto; padding: 0;
    border: none; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #fff5f5 0%, #f0f4ff 50%, #f5f0ff 100%);
    overflow: hidden; box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    position: relative;
}
.jingkapian-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
    border-radius: 20px 20px 0 0;
}
.jingkapian-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(255,107,107,0.15); }

/* 图片区域 */
.jingkapian-card .card-image { display: flex; align-items: center; height: auto; flex-shrink: 0; padding: 16px; padding-right: 0; }
.jingkapian-card .card-image a { display: block; line-height: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(255,107,107,0.12); }
.jingkapian-card .card-image img { width: 120px; height: 120px; border-radius: 14px; flex-shrink: 0; object-fit: cover; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.jingkapian-card .card-image a:hover img { transform: scale(1.06); }

/* 图片占位框 */
.jingkapian-card .card-image a.img-fallback,
.jingkapian-card .card-image .img-fallback,
.jingkapian-card .card-image .card-image-placeholder {
    width: 120px; height: 120px; border-radius: 14px;
    background: linear-gradient(135deg, #ffe8e8, #e8f0ff);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.jingkapian-card .card-image a.img-fallback::after,
.jingkapian-card .card-image .img-fallback::after,
.jingkapian-card .card-image .card-image-placeholder::after { content: '🎨'; font-size: 24px; opacity: 0.4; }

/* 内容区域 */
.jingkapian-card .card-content { flex: 1; min-width: 0; padding: 18px 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; }

/* 标题 */
.jingkapian-card .card-title {
    margin: 0 0 8px 0; font-size: 16px; font-weight: 600; color: #2d3436;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none; display: block; letter-spacing: 0.2px; transition: color 0.2s;
}
.jingkapian-card .card-title:hover {
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* 描述 */
.jingkapian-card .card-desc {
    margin: 0 0 8px 0; color: #636e72; font-size: 14px; line-height: 1.55;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; text-overflow: ellipsis; word-break: break-all;
}

/* 价格 */
.jingkapian-card .card-price {
    font-size: 18px; font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    flex-shrink: 0; margin-right: 12px;
}
.jingkapian-card .card-price::before { content: '¥'; font-size: 14px; font-weight: 600; margin-right: 1px; }

/* 按钮容器 */
.jingkapian-card .button-container { margin-top: auto; display: flex; align-items: center; gap: 0; }

/* 平台标识徽章 */
.jingkapian-card .platform-badge {
    display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 6px;
    font-style: normal; font-size: 10px; font-weight: 600; color: #fff; line-height: 1.3;
    flex-shrink: 0; margin-right: 6px; letter-spacing: 0.3px;
}
.jingkapian-card .platform-badge svg { flex-shrink: 0; display: block; }
.jingkapian-card .platform-badge em { font-style: normal; font-weight: 600; }

/* 去看看按钮 */
.jingkapian-card .btn-go {
    display: inline-flex; align-items: center; padding: 6px 16px; color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    border: none; border-radius: 25px; cursor: pointer; text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    margin-left: auto; flex-shrink: 0;
}
.jingkapian-card .btn-go:hover {
    background: linear-gradient(135deg, #feca57 0%, #48dbfb 50%, #ff6b6b 100%);
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,107,0.4); color: #fff;
}
.jingkapian-card .btn-go::after { content: '✨'; font-size: 12px; margin-left: 6px; transition: transform 0.3s ease; }
.jingkapian-card .btn-go:hover::after { transform: rotate(15deg); }
.jingkapian-card .btn-go.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* 对齐 */
.jingkapian-card.alignwide, .jingkapian-card.alignfull { max-width: 100%; width: 100%; }

/* 移动设备适配 */
@media (max-width: 576px) {
    .jingkapian-card { border-radius: 14px; }
    .jingkapian-card::before { height: 3px; }
    .jingkapian-card .card-image { padding: 10px; padding-right: 0; }
    .jingkapian-card .card-image img { width: 80px; height: 80px; border-radius: 10px; }
    .jingkapian-card .card-image a.img-fallback,
    .jingkapian-card .card-image .img-fallback,
    .jingkapian-card .card-image .card-image-placeholder { width: 80px; height: 80px; border-radius: 10px; }
    .jingkapian-card .card-content { padding: 10px 12px 10px 10px; }
    .jingkapian-card .card-title { font-size: 13px; margin-bottom: 4px; }
    .jingkapian-card .card-desc { font-size: 11px; margin-bottom: 4px; -webkit-line-clamp: 2; line-clamp: 2; }
    .jingkapian-card .card-price { font-size: 14px; }
    .jingkapian-card .card-price::before { font-size: 11px; }
    .jingkapian-card .btn-go { padding: 4px 10px; font-size: 11px; }
    .jingkapian-card .platform-badge { padding: 1px 5px; font-size: 9px; margin-right: 4px; border-radius: 4px; }
    .jingkapian-card .platform-badge svg { width: 10px; height: 10px; }
}
@media (max-width: 375px) {
    .jingkapian-card { border-radius: 12px; }
    .jingkapian-card::before { height: 2px; }
    .jingkapian-card .card-image { padding: 8px; padding-right: 0; }
    .jingkapian-card .card-image img { width: 68px; height: 68px; border-radius: 8px; }
    .jingkapian-card .card-image a.img-fallback,
    .jingkapian-card .card-image .img-fallback,
    .jingkapian-card .card-image .card-image-placeholder { width: 68px; height: 68px; border-radius: 8px; }
    .jingkapian-card .card-content { padding: 8px 10px 8px 8px; }
    .jingkapian-card .card-title { font-size: 12px; margin-bottom: 2px; }
    .jingkapian-card .card-desc { font-size: 10px; margin-bottom: 2px; -webkit-line-clamp: 1; line-clamp: 1; }
    .jingkapian-card .card-price { font-size: 13px; }
    .jingkapian-card .card-price::before { font-size: 10px; }
    .jingkapian-card .btn-go { padding: 3px 8px; font-size: 10px; }
    .jingkapian-card .platform-badge { padding: 1px 4px; font-size: 8px; margin-right: 3px; }
    .jingkapian-card .platform-badge svg { width: 8px; height: 8px; }
    .jingkapian-card .btn-go::after { font-size: 10px; margin-left: 4px; }
}
