/* ===== 法律法规列表页 ===== */
.td-others-page {
    background: #f3f6fb;
    padding-bottom: 40px;
    min-height: 600px;
}

.td-others-page .m {
    background: transparent;
}

/* ===== 面包屑 ===== */
.td-others__breadcrumb {
    padding: 14px 0 6px;
    font-size: 13px;
    color: #8a98a8;
}

.td-others__breadcrumb a {
    color: #8a98a8;
    text-decoration: none;
    transition: color .2s;
}

.td-others__breadcrumb a:hover {
    color: #005496;
}

.td-others__breadcrumb-sep {
    margin: 0 8px;
    color: #c0ccda;
}

.td-others__breadcrumb-current {
    color: #4d6278;
    font-weight: 600;
}

/* ===== 结果统计 ===== */
.td-others__result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 10px;
}

.td-others__result-info {
    font-size: 14px;
    color: #6c7a89;
}

.td-others__result-num {
    color: #005496;
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin: 0 2px;
}

/* ===== 法律法规列表容器 ===== */
.td-others__list-block {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 64, 128, 0.06);
    overflow: hidden;
}

/* ===== 列表项 ===== */
.td-others__list-item {
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f4fa;
    transition: background .2s;
}

.td-others__list-item:last-child {
    border-bottom: none;
}

.td-others__list-item:hover {
    background: #f8fbff;
}

/* 左侧装饰线 */
.td-others__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #005496;
    border-radius: 0 3px 3px 0;
    transition: height .25s ease;
}

.td-others__list-item:hover::before {
    height: 32px;
}

/* ===== 列表项行（标签 + 标题 + 元信息同行） ===== */
.td-others__item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-others__item-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 56px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-radius: 4px;
    line-height: 26px;
    letter-spacing: .5px;
}

.td-others__item-tag--law         { background: #005496; }
.td-others__item-tag--regulation  { background: #52c41a; }
.td-others__item-tag--rule        { background: #d48806; }
.td-others__item-tag--notice      { background: #e03c3c; }
.td-others__item-tag--opinion     { background: #722ed1; }
.td-others__item-tag--standard    { background: #2f54eb; }

.td-others__item-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.td-others__item-title:hover {
    color: #005496;
}

/* ===== 列表项元信息（同行右侧） ===== */
.td-others__item-meta {
    display: flex;
    align-items: center;
    gap: 6px 14px;
    flex-shrink: 0;
    font-size: 12px;
    color: #95a5b9;
    white-space: nowrap;
}

.td-others__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 22px;
}

.td-others__meta-item i {
    font-size: 18px;
    color: #0080d4;
}

/* ===== 标签颜色（兼容老式） ===== */
.td-tag--law         { background: #005496; }
.td-tag--regulation  { background: #52c41a; }
.td-tag--rule        { background: #d48806; }
.td-tag--notice      { background: #e03c3c; }
.td-tag--opinion     { background: #722ed1; }
.td-tag--standard    { background: #2f54eb; }

/* ===== 空状态 ===== */
.td-others__empty {
    text-align: center;
    padding: 70px 20px 60px;
    color: #b8c6d6;
}

.td-others__empty i {
    font-size: 52px;
    display: block;
    margin-bottom: 14px;
    opacity: .5;
}

.td-others__empty p {
    font-size: 15px;
    margin: 0;
}

/* ===== 分页 ===== */
.td-others__pagination {
    display: flex;
    justify-content: center;
    padding: 24px 0 10px;
}

.td-others__pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.td-others__pagination .pagination li {
    display: inline-block;
}

.td-others__pagination .pagination a,
.td-others__pagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #e6edf5;
    border-radius: 6px;
    background: #fff;
    color: #4d6278;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

.td-others__pagination .pagination a:hover {
    border-color: #005496;
    color: #005496;
    background: #f5f9ff;
}

.td-others__pagination .pagination .active span {
    background: #005496;
    border-color: #005496;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 84, 150, 0.25);
}

.td-others__pagination .pagination .disabled {
    color: #d0d8e2;
    cursor: default;
}

.td-others__pagination .pagination .ellipsis {
    border: none;
    background: transparent;
    color: #b8c6d6;
    min-width: 24px;
}

/* ===== 政策法规详情页 (td-others-detail-page) ===== */
.td-others-detail-page {
    background: #f3f6fb;
    padding-bottom: 40px;
    min-height: 600px;
}

.td-others-detail-page .m {
    background: transparent;
}

/* ===== 面包屑 ===== */
.td-others-detail__breadcrumb {
    padding: 14px 0 6px;
    font-size: 13px;
    color: #8a98a8;
}

.td-others-detail__breadcrumb a {
    color: #8a98a8;
    text-decoration: none;
    transition: color .2s;
}

.td-others-detail__breadcrumb a:hover {
    color: #005496;
}

.td-others-detail__breadcrumb-sep {
    margin: 0 8px;
    color: #c0ccda;
}

.td-others-detail__breadcrumb-current {
    color: #4d6278;
    font-weight: 600;
}

/* ===== 主内容布局 ===== */
.td-others-detail__content {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    align-items: flex-start;
}

.td-others-detail__main {
    flex: 1;
    min-width: 0;
}

.td-others-detail__side {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 详情卡片 ===== */
.td-others-detail__card {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    overflow: hidden;
}

/* ===== 标题区域 ===== */
.td-others-detail__header {
    padding: 28px 32px 0;
}

.td-others-detail__title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
    color: #1a2a3a;
    margin: 0 0 16px;
    text-align: center;
}

/* ===== 元信息栏 ===== */
.td-others-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding: 12px 0;
    border-top: 1px dashed #eef3f8;
    border-bottom: 1px dashed #eef3f8;
    font-size: 13px;
    color: #5f6f82;
}

.td-others-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.td-others-detail__meta-item .layui-icon {
    font-size: 14px;
    color: #8a98a8;
}

/* ===== 正文区域 ===== */
.td-others-detail__body {
    padding: 28px 32px;
}

/* 摘要 */
.td-others-detail__summary {
    padding: 16px 20px;
    margin-bottom: 24px;
    background: #f8fbff;
    border: 1px solid #e1ecf7;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.9;
    color: #4d6278;
    border-left: 4px solid #005496;
}

/* 文章正文 */
.td-others-detail__article {
    font-size: 15px;
    line-height: 2;
    color: #333;
    min-height: 200px;
    overflow-x: auto;
}

.td-others-detail__article p {
    margin: 0 0 12px;
}

.td-others-detail__article img {
    max-width: 100%;
    height: auto;
}

.td-others-detail__article table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.td-others-detail__article table td,
.td-others-detail__article table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.td-others-detail__article a {
    color: #005496;
}

.td-others-detail__article a:hover {
    text-decoration: underline;
}

.td-others-detail__article ul,
.td-others-detail__article ol {
    padding-left: 2em;
    margin: 8px 0;
}

.td-others-detail__article li {
    margin-bottom: 4px;
}

.td-others-detail__article h1,
.td-others-detail__article h2,
.td-others-detail__article h3,
.td-others-detail__article h4 {
    color: #1a2a3a;
    margin: 20px 0 10px;
    font-weight: bold;
}

.td-others-detail__article h1 { font-size: 22px; }
.td-others-detail__article h2 { font-size: 18px; }
.td-others-detail__article h3 { font-size: 16px; }
.td-others-detail__article h4 { font-size: 15px; }

/* ===== 侧边栏面板 ===== */
.td-others-detail__side-panel {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    overflow: hidden;
}

.td-others-detail__side-panel-hd {
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    background: linear-gradient(90deg, #005496 0%, #0b70bd 100%);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.td-others-detail__side-panel-bd {
    padding: 12px;
}

/* ===== 信息表格 ===== */
.td-others-detail__info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.8;
}

.td-others-detail__info-table tr {
    border-bottom: 1px dashed #f0f4f9;
}

.td-others-detail__info-table tr:last-child {
    border-bottom: none;
}

.td-others-detail__info-table td {
    padding: 8px 4px;
    vertical-align: top;
}

.td-others-detail__info-label {
    width: 72px;
    color: #8a98a8;
    white-space: nowrap;
    font-weight: 500;
}

.td-others-detail__info-value {
    color: #1a2a3a;
    word-break: break-all;
}

/* ===== 时效性标签 ===== */
.td-others-detail__tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.td-others-detail__tag--valid {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.td-others-detail__tag--invalid {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffccbc;
}

/* ===== 相关法规列表 ===== */
.td-others-detail__related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.td-others-detail__related-item {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f3f8;
}

.td-others-detail__related-item:last-child {
    border-bottom: none;
}

.td-others-detail__related-item a {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}

.td-others-detail__related-item a:hover {
    color: #005496;
}

.td-others-detail__related-date {
    display: block;
    font-size: 12px;
    color: #8a98a8;
    margin-top: 4px;
}

.td-others-detail__related-empty {
    text-align: center;
    color: #b8c6d6;
    padding: 20px 0;
    font-size: 13px;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1200px) {
    .td-others-detail__content {
        flex-direction: column;
    }

    .td-others-detail__side {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .td-others-detail__side-panel {
        flex: 1;
        min-width: 240px;
    }
}

@media screen and (max-width: 768px) {
    .td-others-detail__header {
        padding: 16px 16px 0;
    }

    .td-others-detail__title {
        font-size: 18px;
    }

    .td-others-detail__meta {
        gap: 4px 12px;
        font-size: 12px;
    }

    .td-others-detail__body {
        padding: 16px;
    }

    .td-others-detail__side {
        flex-direction: column;
    }
}
