/**
 * 推广卡片 — 科技风格主题
 * 深色背景，赛博朋克霓虹，数据感十足
 * 适合数码、科技、极客类商品推荐
 */

.jingkapian-card {
    display: flex; max-width: 100%; width: 100%; margin: 16px auto; padding: 0;
    border: 1px solid rgba(0,255,255,0.15); border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,255,0.06), inset 0 0 30px rgba(0,255,255,0.02);
    background: linear-gradient(145deg, #0a0e27 0%, #1a1a3e 100%);
    overflow: hidden; box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.jingkapian-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #7b68ee, #00ffff, transparent);
    border-radius: 12px 12px 0 0;
}
.jingkapian-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
}
.jingkapian-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0,255,255,0.12), 0 8px 32px rgba(0,0,0,0.3);
    border-color: rgba(0,255,255,0.3);
}

/* 图片区域 */
.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: 10px; overflow: hidden; border: 1px solid rgba(0,255,255,0.15); }
.jingkapian-card .card-image img { width: 120px; height: 120px; border-radius: 10px; flex-shrink: 0; object-fit: cover; transition: transform 0.4s ease; }
.jingkapian-card .card-image a:hover img { transform: scale(1.05); }

/* 图片占位框 */
.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: 10px;
    background: rgba(0,255,255,0.03); border: 1px dashed rgba(0,255,255,0.15);
    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: #e0e0ff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none; display: block; letter-spacing: 0.5px; transition: color 0.2s, text-shadow 0.2s;
}
.jingkapian-card .card-title:hover {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0,255,255,0.4);
}

/* 描述 */
.jingkapian-card .card-desc {
    margin: 0 0 8px 0; color: #8888aa; 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; color: #00ff88;
    text-shadow: 0 0 6px rgba(0,255,136,0.3);
    flex-shrink: 0; margin-right: 12px;
}
.jingkapian-card .card-price::before { content: '¥'; font-size: 14px; font-weight: 600; margin-right: 1px; color: #00ff88; opacity: 0.7; }

/* 按钮容器 */
.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: 4px;
    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: #00ffff;
    background: transparent;
    border: 1px solid rgba(0,255,255,0.5);
    border-radius: 6px; cursor: pointer; text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,255,255,0.1), inset 0 0 10px rgba(0,255,255,0.05);
    margin-left: auto; flex-shrink: 0;
}
.jingkapian-card .btn-go:hover {
    background: rgba(0,255,255,0.1);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.25), inset 0 0 15px rgba(0,255,255,0.1);
    color: #00ffff; transform: translateY(-1px);
}
.jingkapian-card .btn-go::after { content: '≫'; font-size: 14px; margin-left: 6px; transition: transform 0.3s ease; letter-spacing: -1px; }
.jingkapian-card .btn-go:hover::after { transform: translateX(3px); }
.jingkapian-card .btn-go.disabled { opacity: 0.3; 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: 10px; }
    .jingkapian-card::before { height: 2px; }
    .jingkapian-card .card-image { padding: 10px; padding-right: 0; }
    .jingkapian-card .card-image img { width: 80px; height: 80px; border-radius: 8px; }
    .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: 8px; }
    .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; }
    .jingkapian-card .platform-badge svg { width: 10px; height: 10px; }
}
@media (max-width: 375px) {
    .jingkapian-card { border-radius: 8px; }
    .jingkapian-card::before { height: 1px; }
    .jingkapian-card .card-image { padding: 8px; padding-right: 0; }
    .jingkapian-card .card-image img { width: 68px; height: 68px; border-radius: 6px; }
    .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: 6px; }
    .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; border-radius: 4px; }
    .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: 11px; margin-left: 4px; }
}
