/* ======================================
  专题页 + 详情页+代码块+复制按钮+底部热门专题 独立样式文件
  存放路径：/static/css/custom-pages.css
====================================== 
*/

/* 详情页双栏布局 */
.article-layout-two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}
.article-image-col {
    flex: 0 0 550px;
    max-width: 550px;
}
.article-image-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.article-image-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.image-title {
    margin:0 0 10px;
    font-weight:600;
    font-size:16px;
    color:#222;
}
.article-content-col {
    flex: 1;
    min-width: 320px;
}
.article-content-scroll {
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;
}
.article-content-scroll::-webkit-scrollbar {
    width: 6px;
}
.article-content-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.article-content-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* 提示词内容框 */
.prompt-content-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}
.prompt-header-bar, .article-tips {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color:#222;
}

/* VIP 模块 */
.vip-hook-new {
    display: flex;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d9 100%);
    border: 1px solid #ffd591;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255,183,0,0.1);
}
.vip-hook-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}
.vip-hook-content {
    flex: 1;
}
.vip-hook-content h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #d97706;
    font-weight:700;
}
.vip-hook-content p {
    margin:0 0 12px;
    font-size:14px;
    color:#6b7280;
    line-height:1.6;
}
.vip-hook-btn {
    display:inline-block;
    background:#f59e0b;
    color:#fff;
    padding:8px 18px;
    border-radius:6px;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    transition:all .2s ease;
}
.vip-hook-btn:hover {
    background:#d97706;
    transform:translateY(-1px);
    box-shadow:0 4px 8px rgba(245,158,11,0.2);
}

/* 代码块样式 */
pre[class*="language-"] {
    position: relative;
    white-space: pre-wrap;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 100%;
}
pre[class*="language-"]:hover {
    border-color: #165DFF;
    box-shadow: 0 6px 12px rgba(22,93,255,0.12);
    transform: translateY(-2px);
}
code.language-plaintext {
    font-size: 14px;
    line-height: 2.0;
    color: #2d3748;
    white-space: pre-wrap;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

/* 复制按钮 */
.prompt-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff0000 !important;
    color: #fff !important;
    font-size: 16px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 999;
}
.prompt-copy-btn.success {
    background: #00b961 !important;
}

/* 底部热门专题 */
.footer-topics {
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
    color: #666;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.footer-topics strong {
    display: inline-block;
    margin-bottom: 6px;
}
.footer-topics-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
}
.footer-topics-links a {
    color: #666;
    white-space: nowrap;
    text-decoration: none;
}
.footer-topics-links a:hover {
    color: #165DFF;
}

/* 通用辅助样式 */
.negative-page-link {
    font-size:14px;
}
.negative-page-link a {
    color:#165DFF;
    text-decoration:none;
    font-weight:500;
}
.negative-page-link a:hover {
    text-decoration:underline;
}
.article-copyright {
    color:#666;
    font-size:12px;
    line-height:1.8;
    padding:14px 18px;
    background:#fafafa;
    border-radius:8px;
    margin-top:20px;
    border:1px solid #f0f0f0;
}
.article-copyright a {
    color:#165DFF;
    text-decoration:none;
}
.article-copyright a:hover {
    text-decoration:underline;
}

/* 移动端适配 */
@media (max-width: 768px){
    .article-layout-two-col{display:block;margin-bottom:20px;}
    .article-image-col{width:100%;max-width:100%;margin:0 auto 20px;}
    .article-content-col{width:100%!important;min-width:auto;padding:0 10px!important;}
    .article-content-scroll{max-height:none!important;overflow-y:visible;padding-right:0;}
    .vip-hook-new{flex-direction:column;text-align:center;gap:8px;padding:16px;}
    .vip-hook-icon{margin:0 auto 8px;}
    .prompt-content-box{padding:14px;}
    pre[class*="language-"] {padding: 50px 15px 15px;}
}
@media (max-width: 480px){
    .vip-hook-new{padding:12px 14px;}
    .vip-hook-content h4{font-size:15px;}
    .vip-hook-content p{font-size:13px;}
}

