/* assets/css/custom.css
 * 所有页面样式统一管理，禁止在 HTML 中写内联 <style>
 * 最后更新：2026-05-31
 */

/* =====================================================
   1. 全局基础 & 字体
   ===================================================== */
body {
    font-family: 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.78;
    color: #1a1e24;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1a1e24;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin-top: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem;  margin-bottom: 0.65rem; }
h4 { font-size: 1.05rem; }

p {
    line-height: 1.82;
    color: #3d4450;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    color: #495057;
    line-height: 1.72;
    font-weight: 400;
}

/* 链接 */
a {
    color: #0d6efd;
    transition: color 0.15s;
}
a:hover {
    color: #0a52be;
}


/* =====================================================
   2. 导航栏
   ===================================================== */
.navbar {
    min-height: 64px;
    box-shadow: 0 1px 0 0 #e9ecef, 0 2px 8px rgba(0,0,0,0.04);
    background-color: #ffffff !important;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    color: #1a1e24 !important;
    padding: 0;
}

.navbar-brand span {
    color: #0d6efd;
}

.navbar .nav-link {
    font-size: 0.895rem;
    font-weight: 500;
    color: #495057 !important;
    letter-spacing: 0.01em;
    padding: 0.5rem 0.65rem !important;
    border-radius: 6px;
    transition: color 0.18s ease, background 0.18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #0d6efd !important;
    background: rgba(13,110,253,0.07);
}

.navbar .nav-link.active {
    font-weight: 600;
}

.navbar .navbar-nav {
    align-items: center;
    gap: 2px;
}

.navbar-toggler {
    border: 1px solid rgba(0,0,0,.15);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: var(--bs-navbar-toggler-icon-bg, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,37,41,.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        align-items: flex-start;
        padding: 0.75rem 0;
        gap: 0;
    }
    .navbar .nav-link {
        padding-left: 0.25rem !important;
        border-radius: 4px;
    }
}

.navbar-expand-lg .navbar-nav a.nav-link {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}


/* =====================================================
   3. Hero 区域
   ===================================================== */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3.25rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.18rem;
    margin-bottom: 0.75rem;
}

/* 文章页特殊 hero */
.article-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef4ff 100%);
}


/* =====================================================
   4. 间距节奏
   ===================================================== */

/* 页面主体上下间距 */
.container.py-4  { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.container.py-5  { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

/* section 间距统一 */
.my-5 { margin-top: 3.5rem !important; margin-bottom: 3.5rem !important; }
.mt-5 { margin-top:  3.5rem !important; }
.mb-5 { margin-bottom: 3.5rem !important; }

/* 内容分区之间留白 */
.section-gap {
    margin-top: 3rem;
    margin-bottom: 3rem;
}


/* =====================================================
   5. Section 标题 & 背景区块
   ===================================================== */
.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-title.border-0 {
    border-left: none;
    padding-left: 0;
}

.section-bg {
    background-color: #f8f9fb;
    padding: 3rem 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

/* tools.html / faq.html 用的分类标题 */
.tool-category,
.faq-category {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1e24;
}

/* articles.html 分类容器 */
.article-category {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}

.category-nav a {
    margin: 0.25rem;
}


/* =====================================================
   6. 卡片系列
   ===================================================== */

/* 通用 Bootstrap 卡片增强 */
.card {
    border: 1px solid #f0f1f3;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.09), 0 12px 28px rgba(13,110,253,0.08);
    border-color: #d6e4fd;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.card-title a {
    text-decoration: none;
    color: #1a1e24;
    transition: color 0.15s;
}

.card-title a:hover {
    color: #0d6efd;
}

/* 工具清单 tool-card（同时覆盖 tools.html 内联版） */
.tool-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, border-left-color 0.2s;
}

.tool-card:hover {
    box-shadow: 0 4px 16px rgba(13,110,253,0.1);
    border-left-color: #0b5ed7;
}

.tool-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #1a1e24;
}

.tool-price {
    font-size: 0.8rem;
    color: #198754;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.tool-desc {
    font-size: 0.92rem;
    color: #495057;
    margin: 0.4rem 0 0.2rem;
    line-height: 1.65;
}

/* FAQ 预览卡片 */
.faq-preview {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.faq-preview:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.faq-preview .fw-bold {
    color: #1a1e24;
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
    display: block;
}

/* FAQ 页折叠项 */
.faq-item    { margin-bottom: 1.5rem; }
.faq-question { font-weight: 600; font-size: 1.1rem; color: #0d6efd; }

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}
.accordion-button:focus {
    box-shadow: none;
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer a { text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* FAQ 页快捷导航 */
.quick-links {
    background: #f8f9fb;
    border: 1px solid #edf0f4;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.75rem;
}
.quick-links a {
    margin-right: 0.75rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* 工具组合推荐盒子 */
.combo-box {
    background: #f0f6ff;
    border: 1px solid #d6e4fd;
    padding: 1.25rem 1.4rem;
    border-radius: 10px;
    margin: 1.25rem 0;
}
.combo-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #0d6efd;
}
.combo-box ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}
.combo-box li {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    color: #3d4450;
}

/* 警告/注意盒子（tools.html .warning-box 等） */
.warning-box {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #f6a609;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin: 1rem 0;
}
.warning-box ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}
.warning-box li {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}


/* =====================================================
   7. 步骤区
   ===================================================== */
.step {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.step + .step {
    margin-top: 1rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.step p {
    margin-bottom: 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* =====================================================
   8. 按钮
   ===================================================== */
.btn {
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13,110,253,0.25);
}
.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 4px 14px rgba(13,110,253,0.35);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}
.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(13,110,253,0.25);
    transform: translateY(-1px);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

.btn-light {
    background: #fff;
    border-color: #dee2e6;
    color: #3d4450;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-light:hover {
    background: #f0f5ff;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-1px);
}

/* 专题入口大按钮 */
.btn-light.py-3 {
    font-size: 0.95rem;
}


/* =====================================================
   9. 表格
   ===================================================== */
.table {
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.93rem;
}

.table thead th {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.88rem;
    color: #495057;
    background: #f8f9fb;
    border-bottom: 2px solid #dee2e6;
    padding: 0.85rem 0.9rem;
}

.table tbody td {
    padding: 0.8rem 0.9rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f0f5ff;
}


/* =====================================================
   10. 文章页
   ===================================================== */
.article-main h2 {
    margin-top: 2.5rem;
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a1e24;
    border-bottom: 2px solid #edf0f4;
    padding-bottom: 0.45rem;
    margin-bottom: 1rem;
}

.article-main h3 {
    margin-top: 1.75rem;
    font-size: 1.1rem;
}

.article-content p {
    font-size: 1.02rem;
    line-height: 1.88;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.78;
}

/* 文章摘要框 */
.summary-box {
    border-left: 4px solid #0d6efd;
    border-radius: 0 10px 10px 0;
    background: #f0f6ff;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
}

/* 目录框 */
.toc-box {
    border-radius: 10px;
    border: 1px solid #dde8fb;
    background: #f8fbff;
    padding: 1.25rem 1.4rem;
}
.toc-box a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
    font-size: 0.92rem;
}
.toc-box a:hover {
    text-decoration: underline;
}
.toc-box li {
    margin-bottom: 0.4rem;
}

/* 相关文章区 */
.related-articles {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.35rem 1.5rem;
}
.related-articles ul { margin-bottom: 0; }

.article-sidebar .card-body li { margin-bottom: 0.5rem; }
.article-index li    { margin-bottom: 0.7rem; }
.article-index a {
    color: #1a1e24;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}
.article-index a:hover { color: #0d6efd; }


/* =====================================================
   11. 特殊信息盒子（rumen.html / about.html 等）
   ===================================================== */

/* highlight-box（rumen.html）*/
.highlight-box {
    background: #eef3fb;
    border-left: 4px solid #0d6efd;
    padding: 1.2rem 1.4rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}

/* myth-fact（rumen.html 误区 vs 事实）*/
.myth-fact {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}
.myth-fact strong   { color: #dc3545; }
.fact strong        { color: #198754; }

/* mission-box（about.html）*/
.mission-box {
    background: #e7f1ff;
    border-left: 4px solid #0d6efd;
    padding: 1.3rem 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
    font-size: 1.02rem;
}

/* stat 统计数字（about.html）*/
.stat-item {
    text-align: center;
    padding: 1.2rem 0.75rem;
    border-radius: 10px;
    background: #f8f9fb;
    border: 1px solid #edf0f4;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}


/* =====================================================
   12. 术语 Badge & 术语页
   ===================================================== */
.term-badge {
    background: #eef2fc;
    border: 1px solid #d6e4fd;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    margin: 0.2rem;
    display: inline-block;
    transition: background 0.15s, border-color 0.15s;
}
.term-badge:hover {
    background: #ddeafc;
    border-color: #a8c4f8;
}
.term-badge a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.term-item {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    padding: 1.15rem 1.35rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.term-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}


/* =====================================================
   13. 首页特有元素
   ===================================================== */
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.article-list li {
    margin-bottom: 0.8rem;
}


/* =====================================================
   14. Badge & 状态标识
   ===================================================== */
.status-badge {
    font-size: 0.75rem;
    vertical-align: middle;
    border-radius: 6px;
}


/* =====================================================
   15. 页脚
   ===================================================== */
footer {
    background-color: #f8f9fb;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

footer h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d4450;
    margin-bottom: 0.9rem;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s;
}
footer a:hover {
    color: #0d6efd;
}

footer .list-unstyled li { margin-bottom: 0.5rem; }

footer p {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.72;
}

footer .row { row-gap: 1.5rem; }


/* =====================================================
   16. 通用工具类
   ===================================================== */
.list-unstyled li { margin-bottom: 0.3rem; }

/* Bootstrap bg-body-tertiary 覆盖 */
.bg-body-tertiary { background-color: #ffffff !important; }

/* 防止长单词溢出 */
.card, .tool-card, .faq-preview, .term-item,
.related-articles, .summary-box, .toc-box,
.combo-box, .warning-box {
    overflow-wrap: anywhere;
}

/* 目录/侧边栏内容背景 */
.bg-light.p-3.rounded {
    background: #f8f9fb !important;
    border: 1px solid #edf0f4;
    padding: 1.25rem !important;
}

/* 面包屑微调 */
.breadcrumb {
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}


/* =====================================================
   17. jianzhan.html / tuiguang.html / shoukuan-wuliu.html 专用
   ===================================================== */

/* 步骤数字圆圈 */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.55rem;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

/* 建站平台 / 推广渠道 / 收款 / 物流 / 专题指南 卡片
   使用时应配合 Bootstrap .row.g-3 提供行列间距，不在卡片上设 margin-bottom */
.platform-card,
.channel-card,
.payment-card,
.logistics-card,
.guide-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
}
.platform-card:hover,
.channel-card:hover,
.payment-card:hover,
.logistics-card:hover,
.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(13,110,253,0.1);
}

/* 小提示 tip-box */
.tip-box {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #198754;
    padding: 1.1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin: 1rem 0;
}

/* Checklist（绿色勾） */
.checklist {
    list-style: none;
    padding-left: 0;
}
.checklist li {
    margin-bottom: 0.45rem;
}
.checklist li::before {
    content: "✓ ";
    color: #198754;
    font-weight: 700;
}


/* =====================================================
   18. terms.html 专用
   ===================================================== */
.term-category {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1e24;
}

.term-card {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.term-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.term-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: #0d6efd;
}

.term-short {
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
    color: #3d4450;
}

.term-detail {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.7;
}

.term-related {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.badge-category {
    font-size: 0.7rem;
    background-color: #6c757d;
}

/* 术语首字母导航 */
.glossary-index {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.5rem;
}
.glossary-index a {
    display: inline-block;
    margin: 0.2rem 0.5rem 0.2rem 0;
    font-size: 0.9rem;
}


/* =====================================================
   19. sitemap.html 专用
   ===================================================== */
.sitemap-section {
    margin-bottom: 2.5rem;
}
.sitemap-section h3 {
    border-left: 3px solid #0d6efd;
    padding-left: 0.85rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.sitemap-list {
    list-style: none;
    padding-left: 0;
    column-count: 2;
    column-gap: 2rem;
}
.sitemap-list li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}
.future-badge {
    font-size: 0.7rem;
    background-color: #6c757d;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}
@media (max-width: 768px) {
    .sitemap-list { column-count: 1; }
}


/* =====================================================
   20. 响应式调整
   ===================================================== */
@media (max-width: 767.98px) {
    .hero {
        padding: 2rem 0;
    }
    .hero h1 {
        font-size: 1.85rem;
    }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
    .section-title { font-size: 1.35rem; }
    .card-body { padding: 1.15rem; }
    .tool-card { padding: 1rem 1.1rem; }
    .stat-item { padding: 0.85rem 0.5rem; }
    .stat-number { font-size: 1.6rem; }
    .my-5 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
}

@media (max-width: 575.98px) {
    body { font-size: 0.97rem; }
    .hero h1 { font-size: 1.6rem; }
    .btn-lg { font-size: 1rem; padding: 0.65rem 1.25rem; }
}
