.woocommerce div.product .product_title {
    font-size: 2.8rem !important;
}

/* === 代码块核心美化样式（深色主题，推荐） === */
/* 基础容器样式 */
pre {
    position: relative; /* 为复制提示/行号定位 */
    padding: 20px !important; /* 左侧留出行号空间 */
    margin: 25px 0 !important;
    border-radius: 12px !important;
    background: #1e1e2f !important; /* 深色背景（高级灰紫调） */
    overflow-x: auto !important; /* 移动端横向滚动 */
    font-family: Consolas, Monaco, 'Courier New', monospace !important; /* 等宽字体 */
    font-size: 14px !important;
    line-height: 1.8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; /* 轻微阴影增加层次感 */
    border: none !important; /* 去掉默认边框 */
}

/* 代码文字基础样式 */
pre code {
    color: #e0e0e0 !important; /* 基础文字色 */
    background: transparent !important; /* 取消 code 标签默认背景 */
    padding: 0 !important;
    border: none !important;
}



/* === 移动端适配 === */
@media (max-width: 768px) {
    pre {
        padding: 16px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

}


/* === 代码块复制按钮样式 === */
pre {
    padding-top: 50px !important; /* 顶部留出按钮空间（原20px改为50px） */
}

/* 复制按钮容器 */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* 按钮hover效果 */
.code-copy-btn:hover {
    background: #00669b;
}

/* 复制成功提示 */
.code-copy-toast {
    position: absolute;
    top: 10px;
    right: 90px;
    padding: 4px 12px;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* 提示显示状态 */
.code-copy-toast.show {
    opacity: 1;
}

/* 临时textarea样式（避免闪屏） */
textarea[style*="opacity: 0"] {
    pointer-events: none !important;
    z-index: -9999 !important;
}