/* ============================================================
   详情页共享样式（新闻 / 收费标准）
   复用 style.css 的 :root 设计变量与 header / footer / nav
   ============================================================ */

.detail-main {
    padding-top: 110px;
    padding-bottom: 80px;
    background: var(--bg-light);
    min-height: 70vh;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .sep {
    color: var(--border-color);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* 文章卡片 */
.article-card {
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 44px 48px;
    border: 1px solid var(--border-color);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.article-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.article-meta i {
    color: var(--secondary-color);
}

/* 正文排版 */
.article-body {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 15.5px;
}

.article-body p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-body h2 {
    font-size: 22px;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
    margin: 34px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--secondary-color);
}

.article-body h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 26px 0 12px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px 22px;
}

.article-body li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.article-body .lead {
    font-size: 16px;
    color: var(--text-light);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 22px 0;
    box-shadow: var(--shadow-sm);
}

.article-figure {
    margin: 26px 0;
    text-align: center;
}

.article-figure img {
    margin: 0 auto;
}

.article-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 表格（费率表） */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    -webkit-overflow-scrolling: touch;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-dark);
    min-width: 640px;
}

.fee-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    padding: 10px 0;
    font-family: 'Noto Serif SC', serif;
}

.fee-table th,
.fee-table td {
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.fee-table thead th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.fee-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

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

.fee-table .num {
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
    color: var(--primary-color);
}

.fee-note {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.fee-note strong {
    color: var(--primary-color);
}

/* 附件下载 */
.attachment-box {
    margin: 30px 0 10px;
    padding: 22px 24px;
    background: #fdf8e9;
    border: 1px dashed var(--secondary-color);
    border-radius: 12px;
}

.attachment-box h4 {
    color: var(--secondary-dark);
    font-size: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
}

.attachment-list a:hover {
    color: var(--secondary-color);
    gap: 14px;
}

.attachment-list .ext {
    font-size: 11px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.attachment-tip {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* 底部操作条 */
.article-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 14px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 相关文章 */
.related-section {
    margin-top: 40px;
}

.related-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.related-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.related-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.related-item i {
    color: var(--secondary-color);
}

.related-item span {
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .detail-main {
        padding-top: 90px;
    }

    .article-card {
        padding: 28px 20px;
    }

    .article-title {
        font-size: 23px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }
}
