/**
 * Post Card Display - 卡片样式
 * Version: 1.5.0 - 适配Modown主题 + 新布局
 * 
 * 适配Modown主题的日间/夜间模式
 * 
 * 日间模式 (默认):
 * - 背景色: #f9f9f9
 * - 卡片背景: #fff
 * - 文字颜色: #333
 * - 主题色: #f04494
 * 
 * 夜间模式 (body.night):
 * - 背景色: #18191a
 * - 卡片背景: #242526
 * - 文字颜色: #e4e6eb
 * - 主题色: #f04494
 */

/* 容器样式 - 增强整体对比度 */
.pcd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 为容器添加轻微的背景遮罩，增强卡片对比 */
.pcd-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.02) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* 夜间模式下的容器背景 */
body.night .pcd-container::before {
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.01) 0%,
            transparent 70%);
}

/* 卡片基础样式 - 增强对比度 */
.pcd-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: visible;
    /* transition 已移除，卡片完全静态 */
    /* 增强阴影效果，提高层次感 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    /* 不设置z-index，避免创建层叠上下文导致下拉菜单被遮挡 */
}

/* 夜间模式下的卡片 */
body.night .pcd-card {
    background: #242526;
    border-color: #3a3b3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 为卡片添加更强的背景层 */
.pcd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 1) 100%);
    z-index: -1;
    pointer-events: none;
    border-radius: 12px;
}

/* 光晕效果已移除 */

/* 夜间模式下的卡片背景强化 */
body.night .pcd-card::before {
    background: linear-gradient(135deg,
            rgba(36, 37, 38, 0.98) 0%,
            rgba(36, 37, 38, 1) 100%);
}

/* 悬停效果已完全禁用 */

/* 卡片头部 - 简洁设计，无渐变 */
.pcd-card-header {
    background: transparent;
    border-bottom: 2px solid #e5e5e5;
    padding: 15px 20px;
    color: #333;
    border-radius: 12px 12px 0 0;
}

/* 夜间模式下的卡片头部 */
body.night .pcd-card-header {
    background: transparent;
    border-color: #3a3b3c;
    color: #e4e6eb;
}

.pcd-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.pcd-card-header h3 i {
    margin-right: 8px;
}

/* SVG图标样式 */
.pcd-header-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.pcd-header-icon path {
    fill: currentColor;
}

body.night .pcd-header-icon path {
    fill: currentColor;
}

/* 卡片主体 - 增强背景 */
.pcd-card-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 12px 12px;
}

/* 夜间模式下的卡片主体 */
body.night .pcd-card-body {
    background: rgba(36, 37, 38, 0.4);
}

/* ========================================
   基本信息 + 图片合并卡片（新布局）
   ======================================== */

/* 合并卡片容器 - 使用卡片基础样式 */

.pcd-info-images-card .pcd-card-body {
    padding: 0;
    background: transparent;
}

/* 主包装器 - 统一上下布局（PC端和移动端） */
.pcd-info-images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 图片部分 - 上方 */
.pcd-images-section {
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px 12px 0 0;
    position: relative;
}

body.night .pcd-images-section {
    background: linear-gradient(to bottom, #2d2e31 0%, #28292c 100%);
}

/* 图片容器包装器 - 包含滚动区域和按钮 */
.pcd-images-container {
    position: relative;
    width: 100%;
}

/* 滚动按钮样式 */
.pcd-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.pcd-scroll-btn svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.pcd-scroll-btn:hover {
    background: rgba(236, 72, 153, 0.95);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.pcd-scroll-btn:hover svg {
    color: #fff;
}

.pcd-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.pcd-scroll-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.pcd-scroll-btn:disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

.pcd-scroll-left {
    left: -20px;
}

.pcd-scroll-right {
    right: -20px;
}

/* 夜间模式按钮 */
body.night .pcd-scroll-btn {
    background: rgba(36, 37, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

body.night .pcd-scroll-btn svg {
    color: #e4e6eb;
}

body.night .pcd-scroll-btn:hover {
    background: rgba(236, 72, 153, 0.95);
    border-color: rgba(236, 72, 153, 0.3);
}

body.night .pcd-scroll-btn:hover svg {
    color: #fff;
}

/* 图片网格 - 横向滚动，不换行 */
.pcd-image-grid-inline {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* 隐藏滚动条但保持滚动功能 */
.pcd-image-grid-inline::-webkit-scrollbar {
    display: none;
}

/* 单个图片项 - 适配竖图 */
.pcd-image-item-inline {
    flex: 0 0 auto;
    width: 240px;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcd-image-item-inline a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.pcd-image-item-inline img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    -webkit-user-drag: none;
    user-select: none;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
}

.pcd-image-item-inline:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12),
                0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(236, 72, 153, 0.3);
}

.pcd-image-item-inline:active {
    transform: translateY(-2px);
}

body.night .pcd-image-item-inline {
    background: #242526;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                0 1px 4px rgba(0, 0, 0, 0.2);
}

body.night .pcd-image-item-inline:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(236, 72, 153, 0.4);
}

/* 信息部分 - 下方 */
.pcd-info-section {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

body.night .pcd-info-section {
    background: #242526;
}

/* 信息项 - 简洁布局 */
.pcd-info-images-card .pcd-info-item {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pcd-info-images-card .pcd-info-item:last-child {
    border-bottom: none;
}

body.night .pcd-info-images-card .pcd-info-item {
    border-bottom-color: #3a3b3c;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .pcd-image-grid-inline {
        gap: 8px;
        padding: 2px 0;
    }
    
    .pcd-image-item-inline {
        width: 160px;
        height: 240px;
        border-radius: 8px;
    }
    
    .pcd-image-item-inline:hover {
        transform: none;
    }
    
    .pcd-image-item-inline:active {
        transform: scale(0.98);
    }
    
    .pcd-images-section {
        padding: 16px;
    }
    
    .pcd-info-section {
        padding: 15px 20px;
    }
    
    /* 移动端按钮调整 */
    .pcd-scroll-btn {
        width: 32px;
        height: 32px;
    }
    
    .pcd-scroll-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .pcd-scroll-left {
        left: -16px;
    }
    
    .pcd-scroll-right {
        right: -16px;
    }
}

/* ========================================
   旧版基本信息卡片样式（保留兼容）
   ======================================== */

.pcd-info-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-bottom: 8px;
    /* transition 已移除 */
}

.pcd-info-item:last-child {
    border-bottom: 1px solid #f0f0f0;
}

/* 悬停效果已禁用 */

/* 夜间模式下的信息项 */
body.night .pcd-info-item {
    background: rgba(40, 41, 43, 0.4);
    border-bottom-color: #3a3b3c;
}

body.night .pcd-info-item:last-child {
    border-bottom-color: #3a3b3c;
}

.pcd-label {
    font-weight: 600;
    color: #333;
    min-width: 60px;
    display: inline-block;
    font-size: 14px;
    flex-shrink: 0;
}

/* 夜间模式下的标签 */
body.night .pcd-label {
    color: #e4e6eb;
}

.pcd-value {
    color: #555;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

body.night .pcd-value {
    color: #b0b3b8;
}

.pcd-service-item .pcd-value {
    color: #333;
    font-weight: 400;
}

body.night .pcd-service-item .pcd-value {
    color: #e4e6eb;
}

/* 价格项样式 */
.pcd-price-item {
    background: linear-gradient(135deg,
            rgba(240, 68, 148, 0.05) 0%,
            rgba(240, 68, 148, 0.08) 100%);
    padding: 15px !important;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid rgba(240, 68, 148, 0.2) !important;
    box-shadow: 0 2px 8px rgba(240, 68, 148, 0.1);
}

/* 新布局中的价格项 - 无需特殊背景 */
.pcd-info-images-card .pcd-info-item .pcd-price {
    color: #f04494;
    font-size: 20px;
    font-weight: 700;
}

/* 夜间模式下的价格项 */
body.night .pcd-price-item {
    background: linear-gradient(135deg,
            rgba(240, 68, 148, 0.1) 0%,
            rgba(240, 68, 148, 0.15) 100%);
    border-color: rgba(240, 68, 148, 0.3) !important;
}

.pcd-price {
    color: #f04494;
    font-size: 18px !important;
    font-weight: 600;
}

/* 图标样式 - 简洁版，不使用emoji */
.pcd-icon {
    display: none;
}

/* 联系方式卡片 */
.pcd-contact-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    padding: 20px;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.06) 0%,
            rgba(102, 126, 234, 0.1) 100%);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

/* 夜间模式下的联系方式内容 */
body.night .pcd-contact-content {
    color: #e4e6eb;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.12) 0%,
            rgba(102, 126, 234, 0.18) 100%);
    border-color: rgba(102, 126, 234, 0.25);
}

/* 联系方式包装器 */
.pcd-contact-wrapper {
    width: 100%;
}

/* VIP会员权限提示 */
.pcd-contact-permission {
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    padding: 0;
    margin-bottom: 10px;
    color: #333;
}

/* 夜间模式下的权限提示 */
body.night .pcd-contact-permission {
    color: #e4e6eb;
}

/* 联系项目列表容器 */
.pcd-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 联系项包装器 */
.pcd-contact-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.pcd-contact-item-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}

body.night .pcd-contact-item-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 单个联系项 */
.pcd-contact-item {
    flex: 1;
    padding: 0;
    font-size: 14px;
    color: #666;
    text-align: left;
    line-height: 1.8;
}

body.night .pcd-contact-item {
    color: #b0b3b8;
}

/* 复制按钮 */
.pcd-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 4px;
    color: #667eea;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    outline: none;
}

.pcd-copy-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.pcd-copy-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.pcd-copy-btn.pcd-copy-success {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.pcd-copy-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pcd-copy-text {
    font-weight: 500;
}

/* 夜间模式复制按钮 */
body.night .pcd-copy-btn {
    background: #374151;
    border-color: #4b5563;
    color: #818cf8;
}

body.night .pcd-copy-btn:hover {
    background: #818cf8;
    color: #fff;
    border-color: #818cf8;
}

body.night .pcd-copy-btn.pcd-copy-success {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .pcd-contact-item-wrapper {
        gap: 8px;
    }
    
    .pcd-copy-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .pcd-copy-icon {
        width: 12px;
        height: 12px;
    }
    
    .pcd-contact-item-wrapper:hover {
        padding-left: 4px;
        padding-right: 4px;
        margin-left: -4px;
        margin-right: -4px;
    }
}

/* erphpdown联系方式特殊处理 */
.pcd-contact-erphpdown {
    text-align: left !important;
}

.pcd-contact-erphpdown .pcd-contact-list {
    text-align: left !important;
}

.pcd-contact-erphpdown .pcd-contact-item {
    text-align: left !important;
    padding: 6px 0;
}

/* ===== 解锁容器 - 新版布局 ===== */
.pcd-contact-wrapper .pcd-unlock-container {
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 1. 头部：按钮和价格说明 */
.pcd-contact-wrapper .pcd-unlock-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: nowrap;
}

/* 点击解锁按钮 */
.pcd-contact-wrapper .pcd-unlock-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b8b 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.pcd-contact-wrapper .pcd-unlock-btn:hover {
    background: linear-gradient(135deg, #ff5a8f 0%, #b83d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* 未登录用户的登录触发按钮 */
.pcd-contact-wrapper .pcd-login-trigger {
    cursor: pointer;
}

/* 价格说明 */
.pcd-contact-wrapper .pcd-unlock-price {
    color: #fbb715;
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcd-contact-wrapper .pcd-unlock-price .pcd-vip-link {
    color: #fbb715;
    text-decoration: none;
    border-bottom: 1px dashed #fbb715;
    transition: all 0.3s ease;
}

.pcd-contact-wrapper .pcd-unlock-price .pcd-vip-link:hover {
    color: #e5a614;
    border-bottom-color: #e5a614;
}

/* 2. 金币获取方式 */
.pcd-contact-wrapper .pcd-unlock-guide {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.pcd-contact-wrapper .pcd-guide-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}

.pcd-contact-wrapper .pcd-guide-list {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

.pcd-contact-wrapper .pcd-guide-item {
    padding-left: 10px;
    margin-bottom: 4px;
    text-align: left;
}

.pcd-contact-wrapper .pcd-guide-item.pcd-highlight {
    color: #ff6666;
    font-weight: 600;
}

/* 3. 温馨提示 */
.pcd-contact-wrapper .pcd-unlock-tips {
    padding: 15px 20px;
    background: #fff;
    text-align: left;
}

.pcd-contact-wrapper .pcd-tips-title {
    color: #ff6666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}

.pcd-contact-wrapper .pcd-tips-list {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

.pcd-contact-wrapper .pcd-tips-item {
    padding-left: 10px;
    margin-bottom: 4px;
    text-align: left;
}

.pcd-contact-wrapper .erphpdown-see a:hover {
    background: #e5a614;
    border-color: #e5a614;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 183, 21, 0.3);
}

.pcd-contact-wrapper .erphpdown-see .erphpdown-price {
    color: #fbb715;
    font-weight: bold;
    font-size: 20px;
    margin: 0 4px;
}

/* ===== 夜间模式适配 ===== */

/* 解锁容器 */
body.night .pcd-contact-wrapper .pcd-unlock-container {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 头部 */
body.night .pcd-contact-wrapper .pcd-unlock-header {
    background: linear-gradient(135deg, #374151 0%, #2d3748 100%);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* 按钮在夜间模式保持原样（粉色渐变） */
body.night .pcd-contact-wrapper .pcd-unlock-btn {
    background: linear-gradient(135deg, #e94d7f 0%, #b83d6d 100%);
    box-shadow: 0 2px 8px rgba(233, 77, 127, 0.3);
}

body.night .pcd-contact-wrapper .pcd-unlock-btn:hover {
    background: linear-gradient(135deg, #d43d6f 0%, #a32d5d 100%);
    box-shadow: 0 4px 12px rgba(233, 77, 127, 0.4);
}

/* 价格说明 */
body.night .pcd-contact-wrapper .pcd-unlock-price {
    color: #fbb715;
}

body.night .pcd-contact-wrapper .pcd-unlock-price .pcd-vip-link {
    color: #fbb715;
    border-bottom-color: #fbb715;
}

body.night .pcd-contact-wrapper .pcd-unlock-price .pcd-vip-link:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* 金币获取方式 */
body.night .pcd-contact-wrapper .pcd-unlock-guide {
    background: #374151;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.night .pcd-contact-wrapper .pcd-guide-title {
    color: #e2e8f0;
}

body.night .pcd-contact-wrapper .pcd-guide-list {
    color: #9ca3af;
}

body.night .pcd-contact-wrapper .pcd-guide-item.pcd-highlight {
    color: #ff6666;
}

/* 温馨提示 */
body.night .pcd-contact-wrapper .pcd-unlock-tips {
    background: #2d3748;
}

body.night .pcd-contact-wrapper .pcd-tips-title {
    color: #ff6666;
}

body.night .pcd-contact-wrapper .pcd-tips-list {
    color: #9ca3af;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    /* 头部按钮和价格在手机上可以换行 */
    .pcd-contact-wrapper .pcd-unlock-header {
        flex-wrap: wrap;
    }
    
    .pcd-contact-wrapper .pcd-unlock-price {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
    
    .pcd-contact-wrapper .pcd-unlock-btn {
        width: 100%;
        text-align: center;
    }
    
    /* 减少内边距 */
    .pcd-contact-wrapper .pcd-unlock-guide,
    .pcd-contact-wrapper .pcd-unlock-tips {
        padding: 12px 15px;
    }
    
    /* 字体稍微小一点 */
    .pcd-contact-wrapper .pcd-guide-title,
    .pcd-contact-wrapper .pcd-tips-title {
        font-size: 13px;
    }
    
    .pcd-contact-wrapper .pcd-guide-list,
    .pcd-contact-wrapper .pcd-tips-list {
        font-size: 13px;
    }
}

/* 体验卡片 */
.pcd-experience-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding: 20px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(245, 245, 245, 0.9) 100%);
    border-radius: 8px;
    text-indent: 2em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 夜间模式下的体验内容 */
body.night .pcd-experience-content {
    color: #b0b3b8;
    background: linear-gradient(135deg,
            rgba(40, 41, 43, 0.8) 0%,
            rgba(35, 36, 38, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 详情卡片（隐藏内容） - 使用和图片卡片一样的彩色渐变 */

.pcd-details-card .pcd-card-header {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.08) 0%,
            rgba(240, 68, 148, 0.08) 100%);
}

/* 夜间模式下的详情卡片头部 */
body.night .pcd-details-card .pcd-card-header {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.12) 0%,
            rgba(240, 68, 148, 0.12) 100%);
}

.pcd-details-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: block;
}

body.night .pcd-details-content {
    color: #b0b3b8;
}

/* 详情包装器 - 去掉绿色，使用简洁风格 */
.pcd-details-wrapper {
    width: 100%;
    padding: 20px;
    display: block;
}

/* VIP会员权限提示（详情卡片） */
.pcd-details-permission {
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    padding: 12px 20px;
    margin-bottom: 20px !important;
    display: block !important;
    width: 100%;
    color: #333;
}

/* 夜间模式下的详情权限提示 */
body.night .pcd-details-permission {
    color: #e4e6eb;
}

/* 详情文本内容 - 简洁风格，去掉青色/绿色 */
.pcd-details-text {
    display: block !important;
    margin-top: 0 !important;
    width: 100%;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    text-align: left;
}

/* 夜间模式下的详情文本 */
body.night .pcd-details-text {
    color: #b0b3b8;
}

/* 图片卡片 */
.pcd-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.pcd-image-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: linear-gradient(135deg,
            rgba(240, 240, 240, 1) 0%,
            rgba(250, 250, 250, 1) 100%);
    border: 3px solid rgba(0, 0, 0, 0.1);
    /* 增强图片框的阴影，提高对比度 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    /* transition 已移除 */
}

/* 夜间模式下的图片框 */
body.night .pcd-image-item {
    background: linear-gradient(135deg,
            rgba(45, 46, 49, 1) 0%,
            rgba(40, 41, 44, 1) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 图片悬停效果已禁用 */

.pcd-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    cursor: default;
    /* 增强图片对比度和亮度 */
    filter: brightness(1.02) contrast(1.08) saturate(1.05);
}

/* 灯箱样式 */
.pcd-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(8px);
    overflow: auto;
}

.pcd-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.05) contrast(1.08);
}

.pcd-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pcd-close:hover,
.pcd-close:focus {
    color: #f04494;
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.pcd-prev,
.pcd-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 100000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pcd-prev {
    left: 20px;
}

.pcd-next {
    right: 20px;
}

.pcd-prev:hover,
.pcd-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: #f04494;
    color: #f04494;
    transform: scale(1.1);
}

.pcd-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pcd-container {
        padding: 10px;
    }

    .pcd-card {
        margin-bottom: 15px;
    }

    .pcd-card-header h3 {
        font-size: 16px;
    }

    .pcd-card-body {
        padding: 15px;
    }

    .pcd-label {
        min-width: 80px;
        font-size: 13px;
    }

    .pcd-value {
        font-size: 13px;
    }

    .pcd-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .pcd-price {
        font-size: 18px !important;
    }

    .pcd-prev,
    .pcd-next {
        font-size: 30px;
        padding: 10px;
    }

    .pcd-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}

/* 动画效果 - 简化版 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pcd-card {
    animation: fadeIn 0.3s ease-out;
}

/* 全局优化：增强所有卡片文字的清晰度 */
.pcd-container * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 为所有卡片内容添加轻微的背景隔离 */
/* .pcd-card-body > * {
    position: relative;
} */

/* 夜间模式卡片悬停效果已禁用 */

/* 
 * 下拉菜单层叠问题解决方案：
 * 1. 卡片不设置z-index，避免创建独立的层叠上下文
 * 2. 卡片头部和主体使用static定位，不创建新的层叠上下文
 * 3. 下拉菜单保持默认的z-index（主题已设置为1000），足够显示在卡片上方
 */
.pcd-card-header,
.pcd-card-body {
    position: static;
}

/* 将分类图标改为位置图标 */
.item-cats .icon-cat:before {
    content: "\e67f" !important; /* icon-navigation 位置图标 */
}

/* 删除按钮样式 */
.post-delete-link {
    color: #ff4444;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.post-delete-link:hover {
    color: #cc0000;
    text-decoration: none;
}

.post-delete-link:active {
    color: #990000;
}

/* 夜间模式 */
body.night .post-delete-link {
    color: #ff6666;
}

body.night .post-delete-link:hover {
    color: #ff4444;
}