/* ============================================================
 * 中标公示详情页 (td-result-detail-page)
 * 独立样式文件，风格与全站深蓝电力主题保持一致
 * ============================================================ */

.td-result-detail-page {
    background: #f3f6fb;
    padding-bottom: 30px;
    min-height: 600px;
}

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

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

.td-result__breadcrumb a {
    color: #8a98a8;
    text-decoration: none;
}

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

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

.td-result__breadcrumb-current {
    color: #4d6278;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 640px;
    display: inline-block;
    vertical-align: bottom;
}

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

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

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

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

/* 头部区域 */
.td-result__header {
    padding: 24px 30px 0;
}

/* 类型标签 */
.td-result__type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    font-size: 12px;
    color: #fff;
    border-radius: 4px;
    line-height: 22px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.td-result__type-tag--winner {
    background: #005496;
    box-shadow: 0 2px 6px rgba(0, 84, 150, 0.35);
}

.td-result__type-tag--candidate {
    background: #ff8c00;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.35);
}

.td-result__title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    color: #1a2a3a;
    margin: 0 0 16px;
    word-break: break-all;
}

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

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

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

.td-result__meta-item em {
    font-style: normal;
    color: #e03c3c;
    font-weight: bold;
}

/* ===== 正文区域 ===== */
.td-result__body {
    padding: 24px 30px;
}

.td-result__section {
    margin-bottom: 24px;
}

.td-result__section:last-child {
    margin-bottom: 0;
}

.td-result__section-title {
    font-size: 16px;
    font-weight: bold;
    color: #005496;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #005496;
    line-height: 1.4;
}

.td-result__section-title--result {
    border-left-color: #d48806;
}

/* ===== 中标结果表格 ===== */
.td-result__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.8;
    background: #fff;
    border: 1px solid #e1ecf7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 84, 150, 0.06);
}

.td-result__table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: bold;
    color: #4d6278;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
    border-bottom: 1px solid #e1ecf7;
    letter-spacing: 0.5px;
}

.td-result__table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f4f9;
    vertical-align: middle;
    word-break: break-all;
}

.td-result__table tbody tr:last-child td {
    border-bottom: none;
}

.td-result__table tbody tr:hover td {
    background: #f7fbff;
}

.td-result__rank {
    color: #d48806;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.td-result__winner-name {
    color: #17395c;
    font-weight: bold;
}

/* 中标结果徽章 */
.td-result__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.td-result__badge .layui-icon {
    font-size: 12px;
}

.td-result__badge--success {
    color: #2e7d32;
    background: #e8f5e9;
}

.td-result__badge--default {
    color: #8a98a8;
    background: #f0f2f5;
}

.td-result__empty {
    text-align: center;
    color: #a1b9d5;
    padding: 30px 0;
}

/* ===== 公告正文（富文本） ===== */
.td-result__content {
    font-size: 15px;
    line-height: 2;
    color: #333;
    padding: 16px;
    background: #fafcfe;
    border: 1px solid #eef3f8;
    border-radius: 8px;
    min-height: 200px;
    overflow-x: auto;
    overflow: hidden
}

.td-result__content p {
    margin: 0 0 10px;
}

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

.td-result__content table {
    width: 100% !important;
    border-collapse: collapse;
}

.td-result__content table td,
.td-result__content table th {
    border: 1px solid #ddd !important;
    padding: 6px 10px;
}

.td-result__content a {
    color: #005496;
}

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

.td-result__empty-block {
    text-align: center;
    color: #a1b9d5;
    padding: 40px 0;
    border: 1px dashed #dbe7f5;
    border-radius: 8px;
    background: #fafcfe;
    font-size: 14px;
}

/* ===== 侧边栏面板 ===== */
.td-result__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-result__side-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-result__side-hd .layui-icon {
    font-size: 16px;
    margin-right: 4px;
}

.td-result__side-bd {
    padding: 14px 16px;
}

/* 操作按钮 */
.td-result__ops-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #005496;
    background: #005496;
    color: #fff;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    margin-bottom: 10px;
}

.td-result__ops-btn:last-child {
    margin-bottom: 0;
}

.td-result__ops-btn:hover {
    background: #003d7a;
    border-color: #003d7a;
    color: #fff;
}

.td-result__ops-btn .layui-icon {
    font-size: 16px;
}

.td-result__ops-btn--primary {
    background: #005496;
    border-color: #005496;
    color: #fff;
}

.td-result__ops-btn--primary:hover {
    background: #003d7a;
    border-color: #003d7a;
}

.td-result__ops-btn--ghost {
    background: #fff;
    color: #4d6278;
    border-color: #dfe8f2;
}

.td-result__ops-btn--ghost:hover {
    border-color: #bcd4ee;
    color: #005496;
    background: #f7fbff;
}

/* 项目信息列表 */
.td-result__side-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f3f8;
    font-size: 13px;
    line-height: 1.6;
}

.td-result__side-row:last-child {
    border-bottom: none;
}

.td-result__side-label {
    flex-shrink: 0;
    width: 72px;
    color: #8a98a8;
}

.td-result__side-value {
    flex: 1;
    color: #333;
    word-break: break-all;
}

/* 服务支持面板 */
.td-result__hotline {
    text-align: center;
    padding: 8px 0 4px;
}

.td-result__hotline-num {
    font-size: 24px;
    font-weight: bold;
    color: #005496;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.td-result__hotline-label {
    font-size: 12px;
    color: #8a98a8;
}

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

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

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

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

    .td-result__title {
        font-size: 18px;
    }

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

    .td-result__body {
        padding: 16px;
    }

    .td-result__side {
        flex-direction: column;
    }

    .td-result__table thead {
        display: none;
    }

    .td-result__table,
    .td-result__table tbody,
    .td-result__table tr,
    .td-result__table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .td-result__table tbody tr {
        border-bottom: 1px solid #e1ecf7;
        padding: 6px 0;
    }

    .td-result__table tbody td {
        border-bottom: none;
        padding: 6px 14px;
        position: relative;
    }

    .td-result__table tbody tr:hover td {
        background: transparent;
    }
}
