/* ===== 文章内容页专属样式 ===== */

/* 文章容器 */
.article-section {
    padding: 20px 16px 30px;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    border-bottom: 1px dashed var(--border);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb .sep {
    color: var(--border);
}
.breadcrumb .current {
    color: var(--text-secondary);
    font-weight: 600;
}

/* 文章元信息 */
.article-header {
    margin-top: 24px;
    margin-bottom: 24px;
}
.article-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-meta-item svg {
    width: 15px;
    height: 15px;
}
.article-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
}

/* 文章正文 */
.article-body {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 18px;
    box-shadow: var(--shadow);
    line-height: 1.9;
    color: var(--text-secondary);
    font-size: 15px;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 22px 0 10px;
    line-height: 1.4;
}
.article-body p {
    margin-bottom: 14px;
    text-indent: 2em;
}
.article-body p:first-of-type {
    text-indent: 0;
}
.article-body ul, .article-body ol {
    margin: 12px 0 16px 1em;
    padding: 0;
}
.article-body li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.article-body strong {
    color: var(--text);
    font-weight: 700;
}
.article-body em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* 引用块 */
.article-body blockquote {
    margin: 20px 0;
    padding: 16px 18px;
    background: var(--bg-alt);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
    font-style: normal;
    color: var(--text);
    font-weight: 500;
    line-height: 1.7;
}
.article-body blockquote::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--gold);
    line-height: 0;
    vertical-align: -8px;
    margin-right: 4px;
}

/* 小贴士卡片 */
.article-tip {
    margin: 20px 0;
    padding: 16px 18px;
    background: rgba(74, 139, 111, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(74, 139, 111, 0.15);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.article-tip .tip-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--green);
    margin-top: 2px;
}
.article-tip .tip-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.article-tip .tip-text strong {
    color: var(--green);
}

/* 文章底部标签 */
.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}
.article-tag {
    font-size: 12px;
    color: var(--primary);
    background: rgba(184, 66, 58, 0.06);
    padding: 5px 12px;
    border-radius: 14px;
    font-weight: 500;
}

/* 文章操作栏 */
.article-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px 0;
    margin: 20px 0 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.article-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}
.article-action-btn:active {
    color: var(--primary);
}
.article-action-btn.liked {
    color: var(--primary);
}
.article-action-btn svg {
    width: 22px;
    height: 22px;
}

/* 声明 */
.article-disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.article-disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--text-muted);
}

/* 相关推荐 */
.related-section {
    padding: 30px 16px 20px;
}
.related-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.related-header .title-bar {
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}
.related-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.related-card {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    align-items: center;
}
.related-card:active {
    transform: scale(0.98);
}
.related-card-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #E8D5C4, #C4A88C);
    background-size: cover;
    background-position: center;
}
.related-card-info {
    flex: 1;
    min-width: 0;
}
.related-card-info h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 上一篇 / 下一篇导航 ===== */
.article-pager-section {
    padding: 0 16px 24px;
}
.pager-divider {
    height: 1px;
    background: var(--border);
    margin: 0 0 20px;
    opacity: 0.55;
}

/* ---- 容器 ---- */
.article-pager {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* ---- 卡片项 ---- */
.pager-item {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pager-item:active {
    transform: scale(0.97);
    box-shadow: 0 1px 6px rgba(44,36,22,0.04);
}

/* 右侧文章：内容 ↔ 箭头反转 */
.pager-item.pager-next {
    text-align: right;
    flex-direction: row-reverse;
}

/* ---- 禁用态 ---- */
.pager-item.disabled {
    opacity: 0.38;
    pointer-events: none;
    cursor: default;
    box-shadow: none;
}

/* ---- 箭头图标 ---- */
.pager-arrow {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform 0.25s ease;
}
.pager-prev:not(.disabled):hover .pager-arrow {
    transform: translateX(-3px);
}
.pager-next:not(.disabled):hover .pager-arrow {
    transform: translateX(3px);
}

/* ---- 文本内容 ---- */
.pager-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pager-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.pager-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.pager-item:not(.disabled):hover .pager-title {
    color: var(--primary);
}

/* ---- 中间竖分隔 ---- */
.pager-sep {
    flex: 0 0 1px;
    align-self: stretch;
    margin: 6px 10px;
    background: var(--border);
    opacity: 0.5;
}
