/* =========================================
          3. 页面主体内容 (Article Style)
          ========================================= */
.page-wrapper { padding-top: 70px; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px;min-height: 1000px;}

/* 面包屑导航 */
.breadcrumb { margin-bottom: 30px; font-size: 0.9rem; color: #888; }
.breadcrumb a { color: #666; margin-right: 5px; }
.breadcrumb a:hover { color: var(--primary-blue); text-decoration: underline; }
.breadcrumb span { margin: 0 5px; color: #ccc; }
.breadcrumb .current { color: var(--primary-green); font-weight: bold; }

/* 文章头部 */
.article-header { margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.article-tag {
    display: inline-block; background: var(--primary-blue); color: white;
    padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px;
}
.article-title {
    font-family: var(--font-serif); font-size: 2rem; color: var(--text-main);
    line-height: 1.3; margin-bottom: 20px; font-weight: bold;
}
.article-meta {
    display: flex; gap: 30px; color: #888; font-size: 0.9rem; align-items: center; flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* 布局容器 */
.article-layout {
    display: grid; grid-template-columns: 2.5fr 1fr; gap: 50px;
}

/* 左侧：正文区域 */
.article-body { font-size: 1.125rem; color: #333; line-height: 1.9; }

/* 摘要框 */
.article-abstract {
    background: rgba(61, 125, 86, 0.05); border-left: 5px solid var(--primary-green);
    padding: 25px; margin-bottom: 40px; border-radius: 0 8px 8px 0; color: #555; font-style: italic;
}

/* 正文样式 */
.article-body h2 {
    font-family: var(--font-serif); font-size: 1.8rem; color: var(--primary-blue);
    margin: 40px 0 20px; font-weight: bold; border-bottom: 2px solid var(--accent-gold);
    display: inline-block; padding-bottom: 5px;
}
.article-body h3 { font-size: 1.4rem; color: var(--text-main); margin: 30px 0 15px; font-weight: bold; }
.article-body p { margin-bottom: 20px; text-align: justify; }

.article-body img {
    width: 100%; border-radius: 8px; margin: 30px 0 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.img-caption {
    text-align: center; font-size: 0.85rem; color: #888; margin-bottom: 30px; display: block;
}

/* 引用样式 */
blockquote {
    margin: 40px 0; padding: 20px 40px; border-left: 4px solid var(--accent-gold);
    background: #fff; font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary-blue);
}

/* 列表样式 */
.article-body ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; }

/* 底部标签与分享 */
.article-footer {
    margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.tags-container { display: flex; gap: 10px; }
.tag-btn {
    background: #f0f0f0; color: #666; padding: 5px 15px; border-radius: 20px;
    font-size: 0.85rem; text-decoration: none; transition: 0.3s;
}
.tag-btn:hover { background: var(--primary-green); color: white; }

.share-btns span { margin-right: 10px; color: #999; font-size: 0.9rem; }
.share-icon {
    display: inline-flex; width: 35px; height: 35px; background: #eee; border-radius: 50%;
    align-items: center; justify-content: center; margin-left: 5px; color: #555; transition: 0.3s; cursor: pointer;
}
.share-icon:hover { background: var(--primary-blue); color: white; }

/* 右侧：侧边栏 */
.sidebar { position: sticky; top: 100px; }

.widget { background: white; padding: 25px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 30px; }
.widget-title { font-size: 1.1rem; font-weight: bold; color: var(--primary-blue); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-gold); }

/* 目录样式 */
.toc-list { list-style: none; padding: 0; border-left: 2px solid #f0f0f0; }
.toc-item { padding: 8px 0 8px 15px; font-size: 0.95rem; color: #666; cursor: pointer; transition: 0.2s; position: relative; }
.toc-item:hover, .toc-item.active { color: var(--primary-green); font-weight: bold; border-left: 2px solid var(--primary-green); margin-left: -2px; }
.toc-sub { padding-left: 30px; font-size: 0.85rem; }

/* 相关文章 */
.related-list .related-item { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-img { width: 80px; height: 60px; border-radius: 4px; object-fit: cover; background: #ddd; }
.related-info h4 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 5px; }
.related-info h4 a { color: var(--text-main); }
.related-info h4 a:hover { color: var(--primary-blue); }
.related-date { font-size: 0.75rem; color: #999; }

/* 下载框 */
.download-box { text-align: center; background: #FAFBFC; border: 1px dashed var(--primary-blue); }
.btn-dl { display: block; background: var(--primary-blue); color: white; padding: 12px; border-radius: 6px; font-weight: bold; margin-top: 10px; transition: 0.3s; }
.btn-dl:hover { background: #2c3e50; }

/* Responsive */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .article-title { font-size: 1.5rem; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .article-title { font-size: 1.5rem; }
    .article-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .container {min-height: auto;}
}
.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.42857143;
    border-radius: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.layui-layer-dialog {
    z-index: 19891015;
    position: fixed;
    top: 551.667px;
    left: 558.5px;
    min-width: 300px;
}
.layui-layer {
    top: 150px;
    left: 0;
    margin: 0;
    padding: 0;
    background-color: #fff;
    -webkit-background-clip: content;
    border-radius: 2px;
    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
}
.p-4 {
    padding-top: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
    padding-left: 20px !important;
}
.p-2 {
    padding-top: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
}
.mb-4 {
    margin-bottom: 20px !important;
}
.text-center {
    text-align: center;
}
.btn-primary {
    color: #fff;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);;
}
.btn {
    font-size: 13px;
}
.btn-block {
    display: block;
    width: 100%;
}
.layui-layer-dialog .layui-layer-content {
    position: relative;
    padding: 20px;
    line-height: 24px;
    word-break: break-all;
    overflow: hidden;
    font-size: 14px;
    overflow-x: hidden;
    overflow-y: auto;
}