/* 主内容区域 - 两栏布局 */
.main-content {
    display: flex;
    max-width: 970px;
    margin: 0px auto;
    padding: 0 5px;
    gap: 20px;
    box-sizing: border-box;
}

/* 文章内容容器 - 左侧主栏 */
.article-container {
    width: 640px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 右侧边栏 - 别人正在看 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 别人正在看栏目 */
.watching-now {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    padding: 20px;
    margin: 10px 0;
}

.watching-now h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4cad46;
}

.watching-now-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.watching-now-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.watching-now-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.watching-now-item a {
    display: block;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制最多显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watching-now-item a:hover {
    color: #4cad46;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .article-container {
        max-width: 100%;
    }
}

.read,
.read_tl,
.pl_nav,
.related-reading {
    background: #fff;
    border: 0;
    margin: 10px auto;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.read_title {
    font-size: 24px;
    margin: 24px 5px;
    line-height: 1.5;
}

.read_nav {
    margin: 5px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.read_nav p {
    display: inline-block;
    border-right: 1px solid #d5d5d5;
    font-size: 14px;
    color: #a4a4a4;
    padding: 0 4px;
}

.read_txt {
    padding-bottom: 15px;
    margin: 0 5px;
    word-wrap: break-word;
    word-break: break-all;
}

.read_txt p {
    font-size: 17px;
    letter-spacing: 1px;
    line-height: 1.75em;
    margin-top: 20px;
}

.read_txt > p a,
.read_txt > div:not(.to-login) a {
    color: #4cad46; /* 链接文字颜色 */
    transition: color 0.3s ease; /* 链接颜色变化的过渡效果 */
}
/* 链接悬停样式 */
a:hover {
    color: #ff6347; /* 悬停时链接文字颜色变为橙色 */
}

.read_txt img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 视频标签响应式样式 */
.read_txt video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #000;
}

/* 视频播放器容器样式 */
.read_txt .edui-upload-video {
    max-width: 100%;
    height: auto;
}

/* 移动端视频适配 */
@media (max-width: 768px) {
    .read_txt video {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        margin: 1em auto;
    }
    
    .read_txt .edui-upload-video {
        width: 100% !important;
        height: auto !important;
    }
    
    /* 确保视频播放器在移动端完全响应 */
    .read_txt .video-js {
        width: 100% !important;
        height: auto !important;
        position: relative;
    }
    
    .read_txt .video-js .vjs-tech {
        width: 100%;
        height: auto;
    }
}

.read_txt img.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity; /* 优化动画性能 */
}

.read_txt img.lazyloaded {
    opacity: 1;
}

/* 图片加载优化样式 */
.read_txt img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 优化图片渲染性能 */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 图片加载占位符 */
.read_txt img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 1px; /* 设置为1像素高度 */
}

/* 加载动画 */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 平滑滚动优化 */
html {
    scroll-behavior: smooth;
}

/* 滚动性能优化 */
.read_txt {
    contain: content; /* 限制浏览器重绘范围 */
}

/* 图片加载优先级提示 */
.read_txt img[fetchpriority="high"] {
    border: 2px solid #4cad46;
}

.read_txt img[fetchpriority="low"] {
    opacity: 0.8;
}

/* 作品评论区域 - 微博风格重构 */
.read_tl {
    padding: 0;
}

.read_tl_title {
    margin: 0;
    padding: 20px 24px;
    height: auto;
    line-height: 1.4;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.read_tl_box {
    padding: 0;
}

/* 微博风格评论列表 */
.read_tl_list {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.read_tl_list:last-child {
    border-bottom: none;
}

.read_tl_list:hover {
    background-color: #f8fafc;
}

/* 评论内容容器 */
.comment-container {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

/* 评论头像 */
.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.read_tl_list:hover .comment-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 评论内容区域 */
.comment-content {
    flex: 1;
    min-width: 0;
}

/* 评论头部信息 */
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-nickname {
    font-size: 15px;
    font-weight: 600;
    color: #2481f5;
    margin: 0;
    line-height: 1.4;
}

/* 评论正文 */
.comment-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin: 0 0 12px 0;
    word-break: break-word;
}

/* 评论底部信息 */
.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.comment-time {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

/* 评论操作区域 */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comment-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    color: #4a5568;
}

.comment-action:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.comment-action.reply:hover {
    color: #4cad46;
    background: rgba(76, 173, 70, 0.1);
}

/* 评论图片 */
.comment-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-top: 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-image:hover {
    transform: scale(1.05);
    border-color: #4cad46;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 回复列表 - 默认隐藏，通过JavaScript在有内容时显示 */
.hf_list {
    padding: 0;
    margin: 0;
    display: none;
}

.hf_list.has-content {
    padding: 12px 0 0 60px;
    display: block;
}

.hf_list p {
    line-height: 1.6;
    font-size: 14px;
    color: #4a5568;
    margin: 8px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #4cad46;
}

.hf_list p span {
    font-weight: 600;
    color: #2d3748;
}

/* 回复框样式 - 简洁版 */
.hf_nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.hf_box {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.hf_box:focus {
    border-color: #4cad46;
}

.hf_box::placeholder {
    color: #a0aec0;
    font-size: 13px;
}

.hf_btn {
    margin-top: 8px;
    text-align: right;
}

.hf_btn .btn {
    min-width: 80px;
    height: 32px;
    background: #4cad46;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    padding: 0 16px;
}

.hf_btn .btn:hover {
    background: #3d9c37;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hf_nav {
        padding: 10px;
        margin: 10px 0;
    }
    
    .hf_box {
        min-height: 50px;
        padding: 8px;
        font-size: 13px;
    }
    
    .hf_btn .btn {
        min-width: 70px;
        height: 28px;
        font-size: 12px;
        padding: 0 12px;
    }
}

/* 加载更多按钮 */
.read_tl_btn {
    width: auto;
    min-width: 160px;
    height: 44px;
    display: block;
    border: 2px solid #4cad46;
    background: transparent;
    color: #4cad46;
    text-align: center;
    line-height: 40px;
    font-size: 15px;
    font-weight: 600;
    margin: 24px auto;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read_tl_btn:hover {
    background: #4cad46;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 173, 70, 0.3);
}

/* 暂无评论提示 */
#no_pl {
    text-align: center;
    line-height: 120px;
    font-size: 16px;
    color: #a0aec0;
    font-style: italic;
    margin: 0;
    padding: 40px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .read_tl {
        margin: 2px 0;
        border-radius: 8px;
    }
    
    .read_tl_title {
        padding: 16px 20px;
        font-size: 18px;
    }
    
    .read_tl_list {
        padding: 16px;
    }
    
    .comment-container {
        flex-direction: row;
        gap: 12px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .comment-text {
        font-size: 15px;
    }
    
    /* 移动端保持评论底部左右结构 */
    .comment-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .comment-actions {
        gap: 12px;
    }
    
    .comment-action {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .hf_list.has-content {
        padding: 12px 0 0 0;
    }
    
    .comment-image {
        width: 80px;
        height: 80px;
    }
    
    .read_tl_btn {
        min-width: 140px;
        height: 40px;
        line-height: 36px;
        font-size: 14px;
    }
    
    #no_pl {
        line-height: 80px;
        font-size: 15px;
        padding: 30px;
    }
}


/* 发表评论区域 - 现代化重构 */
.pl_nav {
    margin: 10px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.pl_nav:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pl_nav .read_tl_title {
    margin: 0 0 20px 0;
    padding: 0;
    height: auto;
    line-height: 1.4;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.pl_nav textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pl_nav textarea:focus {
    border-color: #4cad46;
    box-shadow: 0 0 0 3px rgba(76, 173, 70, 0.1);
}

.pl_nav textarea::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

/* 图片上传区域优化 - 与发表按钮同行 */
.image-upload {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}


.upload-icon:hover {
    background: #edf2f7;
    border-color: #4cad46;
    transform: scale(1.05);
}

.upload-icon:hover svg {
    color: #4cad46;
}

#image_preview {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

#image_preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

#image_preview img:hover {
    transform: scale(1.1);
    border-color: #4cad46;
}

.pl_nav .btn1 {
    margin-top: 10px;
    text-align: right;
    border-top: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.pl_nav button {
    min-width: 140px;
    height: 48px;
    background: linear-gradient(135deg, #4cad46, #3d9c37);
    color: #ffffff;
    padding: 0 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(76, 173, 70, 0.3);
}

.pl_nav button:hover {
    background: linear-gradient(135deg, #3d9c37, #2e8b57);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 173, 70, 0.4);
}

.pl_nav button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 173, 70, 0.3);
}

.pl_nav button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pl_nav {
        margin: 10px 0;
        padding: 10px;
    }
    
    .pl_nav .read_tl_title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .pl_nav textarea {
        min-height: 100px;
        padding: 12px;
    }
    
    .pl_nav .btn1 {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: flex-end;
    }
    
    .pl_nav button {
        min-width: 120px;
        height: 44px;
        padding: 0 24px;
        font-size: 15px;
    }
    
    
    #image_preview img {
        width: 70px;
        height: 70px;
    }
}

/* 上传图标样式 */
.upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.upload-icon:hover {
    background: #e0e0e0;
}

.upload-icon img {
    width: 24px;
    height: 24px;
    color: #666;
}

/* 更新徽章样式 */
.updated-badge {
    color: red;
    margin-left: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* 未登录提示样式 */
.no-login {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.to-login {
    margin: -2px 0;
    text-align: center;
}

.to-login .box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 5px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* 分页样式 */
.next-page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 15px;
    border-radius: 8px;
}

.next-page a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.next-page a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.next-page .pre,
.next-page .next {
    min-width: 40px;
    justify-content: center;
}

.next-page .red {
    color: #dc3545;
    font-weight: bold;
}

/* 按钮文字样式 */
.action-text {
    font-weight: 500;
}

/* 图片上传区域 */
.image-upload {
    margin: 15px 0;
}

/* 登录链接样式 */
.go-login-link {
    color: #4cad46;
    text-decoration: none;
    transition: color 0.3s ease;
}

.go-login-link:hover {
    color: #3d9c37;
    text-decoration: underline;
}



/* 新版图片查看器样式 */
#image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#viewer-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

#close-image-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10000;
}

/* 移动端优化 */
@media (max-width: 768px) {
    #viewer-image {
        max-width: 95%;
        max-height: 70%;
    }
    
    #close-image-viewer {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
        line-height: 30px;
    }
    
}



/* 文章标签样式 */
.article-tags {
    margin: 15px 0;
    padding: 0;
}

.article-tags .tag-item {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.article-tags .tag-item:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-tags {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    margin: 10px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-tags .tag-item {
        padding: 5px 10px;
        font-size: 12px;
        margin: 0 6px 6px 0;
    }
}

/* 点赞收藏按钮样式 - 现代设计 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
    padding: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    outline: none; /* 移除点击时的黑色边框 */
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.like-btn:hover svg {
    stroke: #ff6b6b;
}

.collect-btn:hover {
    border-color: #4cad46;
    color: #4cad46;
}

.collect-btn:hover svg {
    stroke: #4cad46;
}

.action-count {
    margin-left: 6px;
    font-weight: bold;
    color: #868e96;
}

/* 已收藏状态 */
#zhf_h {
    border-color: #4cad46;
    background: #4cad46;
    color: #fff;
}

#zhf_h svg {
    stroke: #fff;
}

#zhf_h:hover {
    border-color: #3d9c37;
    background: #3d9c37;
    color: #fff;
}

#zhf_h:hover svg {
    stroke: #fff;
}

/* 点赞动画效果 */
.like-btn.liked {
    border-color: #ff6b6b;
    background: #ff6b6b;
    color: #fff;
    animation: likePulse 0.6s ease;
}

.like-btn.liked svg {
    stroke: #fff;
    animation: likeHeartbeat 0.6s ease;
}

@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes likeHeartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .action-buttons {
        gap: 15px;
    }
    
    .action-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* 相关推荐卡片样式 */
.related-reading {
    margin: 10px 0;
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.recommendation-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 200px;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.recommendation-card:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.card-link:focus {
    outline: none;
}

.card-image {
    width: 100%;
    height: 240px; /* 长图比例 */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .card-image img {
    transform: scale(1.05);
}

.recommendation-card:active .card-image img {
    transform: scale(1.02);
    transition-duration: 0.1s;
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 三行标题 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 67.2px; /* 确保三行高度 */
}

.card-author {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* 移动端适配 - 保持每行两个 */
@media (max-width: 768px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .recommendation-card {
        max-width: 160px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .recommendation-card:hover {
        transform: translateY(-2px);
    }
    
    .recommendation-card:active {
        transform: translateY(0);
        transition-duration: 0.05s;
    }
    
    .card-image {
        height: 200px; /* 移动端保持长图 */
    }
    
    .card-image img {
        transition: transform 0.2s ease;
    }
    
    .recommendation-card:hover .card-image img {
        transform: scale(1.03);
    }
    
    .recommendation-card:active .card-image img {
        transform: scale(1.01);
        transition-duration: 0.05s;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-title {
        font-size: 14px;
        min-height: 55.8px;
        line-height: 1.3;
    }
    
    .card-author {
        font-size: 13px;
    }
}
.btlink {
    margin: 10px auto;
    width: 100%;
}
div.btlink a {
    cursor: pointer;
    text-decoration: none;
    animation: blink 1s steps(1,start) .66s infinite;
    display: block;
    font-size: 16px;
    text-align: center;
    color: #fff;
    width: 40%;
    height: 36px;
    line-height: 36px;
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(34,25,25,.2);
    background: #a8d3a6;
    background: -moz-linear-gradient(-45deg, #a8d3a6 0%, #4cad46 100%);
    background: -webkit-linear-gradient(-45deg, #a8d3a6 0%, #4cad46 100%);
    background: linear-gradient(135deg, #a8d3a6 0%, #4cad46 100%);
}
/* 百科内容特定元素样式 - 精简版 */
#baike-section {
    color: #2e7d32;
    border-bottom: 3px solid #4cad46;
    padding-bottom: 12px;
    margin: 30px 0 20px 0;
    font-size: 24px;
    font-weight: 700;
}

#baike-subsection {
    color: #558b2f;
    border-left: 4px solid #66bb6a;
    padding: 8px 15px;
    margin: 25px 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(102, 187, 106, 0.1), transparent);
    border-radius: 0 8px 8px 0;
}

.baike-quote {
    border-left: 4px solid #4cad46;
    background: linear-gradient(90deg, #f1f8e9, #e8f5e8);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #33691e;
    box-shadow: 0 2px 10px rgba(76, 173, 70, 0.1);
}

/* br标签样式 */
.baike-quote br {
    content: "";
    display: block;
    margin: 8px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8e6c9, transparent);
}

/* 支付信息行样式 - 替代br标签 */
.payment-line {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: #856404; 
}

.payment-line:last-child {
    margin-bottom: 0;
}

/* 支付提示区域链接样式 */
.to-login .payment-line a {
    color: #4cad46;
    text-decoration: none;
}

.to-login .payment-line a:hover {
    color: #3d9c37;
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #baike-section {
        font-size: 18px;
    }
    
    #baike-subsection {
        font-size: 16px;
    }
    
    .baike-paragraph {
        font-size: 14px;
    }
    
    .payment-line {
        font-size: 13px;
        margin-bottom: 6px;
    }
}
