@charset "UTF-8";
/* ===== 面包屑 ===== */
.breadcrumb { margin: 20px 0; font-size: 0.85rem; color: #6c7a8e; }
.breadcrumb a { color: #993448; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 两栏布局 ===== */
.article-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 50px;
}

/* ---------- 左侧：文章正文 ---------- */
.article-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 24px;
    padding: 40px 44px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

.article-tag {
    display: inline-block;
    font-size: 0.7rem;
    background: #e6f0fb;
    color: #1f6bb8;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.article-h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2c3e;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 0.78rem;
    color: #9aa9b8;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f6;
}
.detail-meta span { display: flex; align-items: center; gap: 5px; }

/* 本文目录 */
.toc {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-left: 4px solid #993448;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 26px 0;
}
.toc h4 {
    font-size: 0.9rem;
    color: #1a2c3e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 0.85rem; }
.toc li:last-child { margin-bottom: 0; }
.toc a {
    color: #4a5b6e;
    text-decoration: none;
    transition: color 0.2s;
}
.toc a:hover { color: #993448; }

/* 正文排版 */
.content { font-size: 0.95rem; color: #3d4d5f; line-height: 1.85; }
.content h2 {
    font-size: 1.2rem;
    color: #1a2c3e;
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left: 4px solid #993448;
    line-height: 1.4;
    scroll-margin-top: 90px;
}
.content h3 {
    font-size: 1rem;
    color: #1a2c3e;
    margin: 24px 0 10px;
}
.content p { margin-bottom: 16px; }
.content strong { color: #1a2c3e; font-weight: 600; }

.content ul, .content ol { padding-left: 22px; margin-bottom: 18px; }
.content li { margin-bottom: 8px; }

/* 步骤列表 */
.step-list { list-style: none; padding-left: 0; counter-reset: step; }
.step-list li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 18px;
    counter-increment: step;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2bae5c 0%, #993448 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(7, 193, 96, 0.25);
}
.step-list li b { color: #1a2c3e; display: block; margin-bottom: 2px; }

/* 提示框 */
.tip-box, .warn-box {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.88rem;
    line-height: 1.75;
}
.tip-box {
    background: #e8f7ef;
    border-left: 4px solid #993448;
    color: #1f6b45;
}
.warn-box {
    background: #fdf1e3;
    border-left: 4px solid #e0a03c;
    color: #8a5a15;
}
.tip-box b, .warn-box b { display: block; margin-bottom: 4px; }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    min-width: 460px;
}
.content th, .content td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #e8eef4;
}
.content th {
    background: #f4f8fb;
    color: #1a2c3e;
    font-weight: 600;
    white-space: nowrap;
}
.content tbody tr:nth-child(even) td { background: #fafcfd; }

/* 底部标签 & 分享 */
.article-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed #e4e9f0;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tag-row a {
    font-size: 0.75rem;
    padding: 5px 14px;
    background: #f4f7fa;
    color: #5c6f87;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-row a:hover { background: #e8f7ef; color: #1f8b4c; }

.share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #8e9eae;
}
.share-row .share-btn {
    padding: 6px 16px;
    border: 1px solid #e4e9f0;
    border-radius: 30px;
    color: #4a5b6e;
    text-decoration: none;
    font-size: 0.78rem;
    transition: all 0.2s;
}
.share-row .share-btn:hover { border-color: #993448; color: #993448; }

/* 上一篇 / 下一篇 */
.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}
.pager a {
    display: block;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.pager a:hover {
    background: #e8f7ef;
    border-color: #b9e0ca;
}
.pager .pager-label {
    font-size: 0.72rem;
    color: #9aa9b8;
    margin-bottom: 6px;
    display: block;
}
.pager .pager-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1a2c3e;
    line-height: 1.45;
}
.pager a:hover .pager-title { color: #993448; }
.pager .next { text-align: right; }

/* 相关文章 */
.related-block { margin-top: 40px; }
.block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2c3e;
    padding-left: 12px;
    border-left: 4px solid #993448;
    margin-bottom: 18px;
}
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-link {
    display: block;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.related-link:hover {
    background: #e8f7ef;
    border-color: #b9e0ca;
    transform: translateX(3px);
}
.related-link .rl-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2c3e;
    line-height: 1.5;
    margin-bottom: 4px;
}
.related-link:hover .rl-title { color: #993448; }
.related-link .rl-meta { font-size: 0.72rem; color: #9aa9b8; }

/* ---------- 右侧：侧栏 ---------- */
.sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}
.side-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2c3e;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 商品小卡片：无缩略图 */
.product-mini {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}
.product-mini:hover { background: #f8fafc; border-color: #d0e2d6; }
.product-mini + .product-mini { margin-top: 10px; }

.mini-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2c3e;
    line-height: 1.45;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.product-mini:hover .mini-name { color: #993448; }

.mini-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-price { font-size: 1rem; font-weight: 700; color: #993448; }
.mini-price small { font-size: 0.68rem; font-weight: 400; color: #9aa9b8; margin-left: 4px; }
.mini-btn {
    font-size: 0.72rem;
    padding: 4px 12px;
    background: #e8f7ef;
    color: #1f8b4c;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

/* 热门文章 */
.hot-list { display: flex; flex-direction: column; gap: 14px; }
.hot-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    font-size: 0.84rem;
    color: #4a5b6e;
    line-height: 1.5;
    transition: color 0.2s;
}
.hot-item:hover { color: #993448; }
.hot-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f0f4f8;
    color: #8e9eae;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-item:nth-child(1) .hot-num { background: #ffe9e9; color: #e0503c; }
.hot-item:nth-child(2) .hot-num { background: #fff1e0; color: #dd8a15; }
.hot-item:nth-child(3) .hot-num { background: #e8f7ef; color: #1f8b4c; }

/* 客服提示 */
.side-tip {
    background: linear-gradient(135deg, #e8f5ef 0%, #d4e9e0 100%);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
}
.side-tip h4 { font-size: 0.95rem; color: #1a2c3e; margin-bottom: 8px; }
.side-tip p { font-size: 0.78rem; color: #5c6f87; line-height: 1.6; margin-bottom: 14px; }
.side-tip a {
    display: inline-block;
    padding: 9px 24px;
    background: #993448;
    color: #fff;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.side-tip a:hover { background: #059e4c; transform: translateY(-2px); }

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header { flex-direction: column; text-align: center; }
    .nav-menu { justify-content: center; gap: 20px; }
    .article-main { padding: 24px 20px; border-radius: 18px; }
    .article-h1 { font-size: 1.3rem; }
    .detail-meta { gap: 12px; font-size: 0.72rem; }
    .content { font-size: 0.9rem; line-height: 1.8; }
    .content h2 { font-size: 1.08rem; margin-top: 28px; }
    .pager { grid-template-columns: 1fr; }
    .pager .next { text-align: left; }
    .side-card { padding: 18px; }
}
@media (max-width: 480px) {
    .toc { padding: 14px 16px; }
    .step-list li { padding-left: 38px; }
    .step-list li::before { width: 24px; height: 24px; font-size: 0.75rem; }
    .product-mini { padding: 12px 14px; }
    .mini-name { font-size: 0.84rem; }
}