/* 虫虫下载站 - 文章详情页样式 */
/* 百度SEO优化版本 - 无内联样式 */

/* CSS变量 */
:root {
    --primary: #c62828;
    --primary-dark: #b71c1c;
    --secondary: #d32f2f;
    --dark: #212121;
    --gray: #616161;
    --gray-light: #9e9e9e;
    --light: #f5f5f5;
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 15px 0;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-sep {
    margin: 0 8px;
}

.breadcrumb-nav .current-page {
    color: var(--dark);
    font-weight: 600;
}

/* 文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    margin-top: 20px;
}

/* 文章主内容 */
.article-main {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* 文章标题 */
.article-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light);
    font-size: 14px;
    color: var(--gray);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item strong {
    color: var(--primary);
}

.article-meta-item .like-count {
    color: #ff6b6b;
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
}

.article-content-preview {
    height: 600px;
    overflow: hidden;
    position: relative;
}

/* 查看全文遮罩 */
.read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,1) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.read-more-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(198, 40, 40, 0.4);
}

.read-more-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(198, 40, 40, 0.5);
}

/* 社交分享区域 */
.share-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
    border-radius: 16px;
}

.share-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.share-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.wechat {
    background: linear-gradient(135deg, #07c160, #05a850);
}

.share-btn.wechat:hover {
    box-shadow: 0 6px 15px rgba(7, 193, 96, 0.3);
}

.share-btn.weibo {
    background: linear-gradient(135deg, #e6162d, #c4101e);
}

.share-btn.weibo:hover {
    box-shadow: 0 6px 15px rgba(230, 22, 45, 0.3);
}

.share-btn.qq {
    background: linear-gradient(135deg, #12b7f5, #0e9cd4);
}

.share-btn.qq:hover {
    box-shadow: 0 6px 15px rgba(18, 183, 245, 0.3);
}

.share-btn.qzone {
    background: linear-gradient(135deg, #fec80d, #e6b50c);
    color: #333;
}

.share-btn.qzone:hover {
    box-shadow: 0 6px 15px rgba(254, 200, 13, 0.3);
}

.share-btn.copy {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.share-btn.copy:hover {
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

/* 二维码区域 */
.qrcode-section {
    text-align: center;
}

.qrcode-title {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.qrcode-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qrcode-desc {
    font-size: 12px;
    color: var(--gray);
    margin-top: 10px;
}

/* 点赞区域 */
.like-section {
    margin-top: 30px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #FFF9E6, #FFF3CD);
    border-radius: 16px;
    border: 2px solid #FFE17D;
}

.like-desc {
    margin-bottom: 15px;
    color: #856404;
    font-size: 15px;
    font-weight: 600;
}

.like-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #FFC107, #FFB300);
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.like-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.4);
}

.like-btn.liked {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* 相关文章区域 */
.related-articles {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #F0F4FF, #E8F0FE);
    border-radius: 16px;
    border: 2px solid #D1E3FF;
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-item {
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.15);
    color: var(--dark);
    text-decoration: none;
}

.related-item-title {
    font-weight: 600;
    flex: 1;
}

.related-item-arrow {
    color: var(--primary);
    font-size: 12px;
}

/* 侧边栏 */
.article-sidebar {
    display: block;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title.search {
    color: var(--dark);
}

.sidebar-title.hot {
    padding-left: 12px;
    border-left: 4px solid #ff6b6b;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
    outline: none;
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* 热门文章列表 */
.hot-list {
    display: grid;
    gap: 12px;
}

.hot-item {
    padding: 12px;
    background: #F8F9FA;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hot-item:hover {
    background: linear-gradient(135deg, #FFF, #F0F4FF);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--dark);
    text-decoration: none;
}

.hot-item-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.hot-item-number.top3 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.hot-item-number.normal {
    background: #95a5a6;
}

.hot-item-title {
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 移动端快速操作按钮 */
.mobile-nav-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(198, 40, 40, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.mobile-nav-btn:active {
    transform: scale(0.95);
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .article-main {
        padding: 20px 15px !important;
    }
    
    .article-sidebar {
        order: 2;
    }
    
    .share-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .qrcode-section {
        display: none; /* 移动端隐藏二维码 */
    }
    
    .breadcrumb-nav {
        font-size: 12px !important;
        padding: 10px 0 !important;
    }
    
    .article-title {
        font-size: 22px !important;
    }
    
    .mobile-nav-btn {
        display: flex;
    }
}

/* 模态框样式增强 */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 700;
    color: #333;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 20px 30px;
    justify-content: center;
}

.unlock-qr-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.unlock-code-highlight {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 15px;
}

.unlock-code-text {
    background: #ffe5e5;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
}

.unlock-desc {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.unlock-qr-img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.unlock-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    max-width: 280px;
    margin: 0 auto;
}

.unlock-register-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.unlock-register-link:hover {
    color: var(--primary-dark);
}

.alert {
    margin-top: 15px;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}
