/* ====== 单卡片基础样式（通用外框） ====== */
.pcm-card {
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    max-width: 100%;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    position: relative;
    overflow: hidden;
}

.pcm-card-inner {
    position: relative;
    z-index: 1;
}

/* Hover 效果：轻微提升，不浮夸 */
.pcm-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #dedede;
}

/* 通用图片与文本 */
.pcm-card-thumb img.pcm-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pcm-card-thumb-placeholder {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 8px;
}

.pcm-card-title {
    font-size: 14px;           /* 按你要求：14px */
    margin: 0 0 6px;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
}

.pcm-card-price {
    font-size: 13px;
    font-weight: 600;
    color: #e27a2b;
    margin-bottom: 4px;
}

.pcm-card-content {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.pcm-card-content p {
    margin: 0 0 4px;
}



 

/* 让 card body 支持“上内容，下按钮” */
.pcm-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 按钮区域：贴到底部、靠右对齐 */
.pcm-card-footer {
    margin-top: auto;                 /* 把 footer 推到最下面 */
    display: flex;
    justify-content: flex-end;        /* 整体靠右 */
    align-items: center;
    gap: 4px;                         /* 图标和按钮之间的间距 */
}








/* 按钮左侧的小图标（官网 / Amazon / 京东等） */
.pcm-card-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

 

/* 按钮左侧的小图标（官网 / Amazon / 京东等） */
.pcm-card-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pcm-card-footer-icon-img {
    width: 28px !important;
    height: 26px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 26px !important;
    max-height:26px !important;
    object-fit: contain;
    display: inline-block;
}

/* 避免被主题覆盖 max-width:100% */
.pcm-card-footer-icon img {
    max-width: none !important;
}






/* 统一按钮样式：橙色、小矩形、圆角 4px */
.pcm-card-btn {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 4px;                 /* 按你要求：4 */
    border: 1px solid #e9652d;
    background: #e9652d;                /* 橙红 B */
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: box-shadow 0.12s ease, transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.pcm-card-btn.is-preview {
    cursor: default;
    box-shadow: none;
}

.pcm-card-btn:hover {
    background: #f17a42;                /* 稍亮一点的橙色 */
    border-color: #f17a42;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}



/* 按钮图标 + 文本排版 */
.pcm-card-btn-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}
 

.pcm-card-btn-text {
    display: inline-block;
    vertical-align: middle;
}















/* ========== 风格1：左图右文，专业内容风 ========== */
.pcm-style1 .pcm-card-inner {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.pcm-style1 .pcm-card-thumb {
    flex: 0 0 34%;
    min-width: 110px;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    justify-content: center;
}



.pcm-style1 .pcm-card-body {
    flex: 1 1 0;
    min-width: 0;
}

/* 小屏下改成上下排，避免挤 */
@media (max-width: 640px) {
    .pcm-style1 .pcm-card-inner {
        flex-direction: column;
    }
    .pcm-style1 .pcm-card-thumb {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        height: 0;
        padding-bottom: 56%;
    }
}

/* ========== 风格2：上图下文，博客卡片风 ========== */
.pcm-style2 .pcm-card-inner {
    display: flex;
    flex-direction: column;
}

.pcm-style2 .pcm-card-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 62%;               /* 稍接近 3:2 */
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 10px;
    position: relative;
}

.pcm-style2 .pcm-card-thumb img.pcm-card-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcm-style2 .pcm-card-body {
    flex: 1 1 auto;
}

/* ========== 风格3：专业评测卡片，小图 + 信息密度高 ========== */
.pcm-style3 {
    border-radius: 8px;
    border: 1px solid #f0d5c5;
    background: #fffaf6;              /* 轻微橙调背景 */
}

.pcm-style3 .pcm-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcm-style3 .pcm-card-thumb {
    flex: 0 0 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcm-style3 .pcm-card-thumb img.pcm-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcm-style3 .pcm-card-body {
    flex: 1 1 0;
    min-width: 0;
}

.pcm-style3 .pcm-card-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.pcm-style3 .pcm-card-price {
    color: #e27a2b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pcm-style3 .pcm-card-content {
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

.pcm-style3 .pcm-card-footer {
    margin-top: 2px;
}

.pcm-style3 .pcm-card-btn {
    padding: 5px 13px;
    font-size: 13px;
    border-radius: 4px;
    background: #e9652d;
    border-color: #e9652d;
}

.pcm-style3 .pcm-card-btn:hover {
    background: #f17a42;
    border-color: #f17a42;
}

/* 小屏下风格3 竖排显示，避免太挤 */
@media (max-width: 640px) {
    .pcm-style3 .pcm-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pcm-style3 .pcm-card-thumb {
        width: 100%;
        max-width: 220px;
        height: 0;
        padding-bottom: 56%;
    }
}

/* ====== 多列卡片栅格布局 ====== */
.pcm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.pcm-card-grid.pcm-columns-1 {
    grid-template-columns: 1fr;
}

.pcm-card-grid.pcm-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcm-card-grid.pcm-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pcm-card-grid.pcm-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pcm-card-grid .pcm-card {
    margin: 0;
}

/* 移动端优化栅格 */
@media (max-width: 768px) {
    .pcm-card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pcm-card-grid.pcm-columns-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pcm-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Block editor placeholder */
.pcm-block-placeholder {
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
    font-size: 13px;
    color: #666;
}


/* Gutenberg 侧边栏风格提示 */
.pcm-block-help {
    font-size: 12px;
    color: #666;
    margin: 6px 0 0;
    line-height: 1.5;
}





/* ========== Prompt 弹窗覆盖层 ========== */
#productcard_prompt_modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

/* 背景遮罩 */
#productcard_prompt_modal .productcard_prompt_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* 弹窗主体 */
#productcard_prompt_modal .productcard_prompt_dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    max-width: 900px;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0px 10px 50px rgba(0,0,0,0.25);
    border: 1px solid #e3e3e3;
}

/* 弹窗标题 */
#productcard_prompt_modal h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Prompt 文本框 */
#productcard_prompt_text {
    width: 100% !important;
    box-sizing: border-box;
    font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px;
}

/* 复制提示信息 */
#productcard_prompt_copy_status {
    font-size: 12px;
    text-align: right;
    margin-top: 6px;
}



















