/* ===== Notice Detail Page (td-detail-page) ===== */
.td-detail-page {
    background: #f3f6fb;
    padding-bottom: 30px;
    min-height: 600px;
}

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

/* Breadcrumb */
.td-detail__breadcrumb {
    padding: 14px 0 6px;
    font-size: 13px;
    color: #8a98a8;
}

.td-detail__breadcrumb a {
    color: #8a98a8;
}

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

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

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

/* ===== Main Content Area ===== */
.td-detail__content {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    align-items: flex-start;
}

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

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

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

/* Header area with title, meta */
.td-detail__header {
    padding: 24px 30px 0;
}

.td-detail__type-tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    color: #fff;
    border-radius: 4px;
    line-height: 22px;
    margin-bottom: 14px;
}

.td-detail__type-tag--bg {
    background: #ff8c00;
}

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

/* Meta info bar */
.td-detail__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-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

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

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

.td-detail__meta-item--highlight {
    color: #e03c3c;
    font-weight: bold;
}

.td-detail__meta-item--highlight .layui-icon {
    color: #e03c3c;
}

/* Meta status badge */
.td-detail__meta-badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.td-detail__meta-badge .layui-icon {
    font-size: 13px !important;
}

.td-detail__meta-badge--upcoming {
    background: #eef6ff;
    color: #005496;
    border: 1px solid #bcd4ee;
}

.td-detail__meta-badge--urgent {
    background: #fff5e6;
    color: #e67e00;
    border: 1px solid #ffe0b2;
}

.td-detail__meta-badge--today {
    background: #fff0f0;
    color: #e03c3c;
    border: 1px solid #ffcdcd;
    animation: td-pulse 2s ease-in-out infinite;
}

.td-detail__meta-badge--passed {
    background: #f5f6f8;
    color: #8a98a8;
    border: 1px solid #e1e4e8;
}

@keyframes td-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

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

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

.td-detail__side-timeline-list {
    padding: 16px 16px 12px;
}

.td-detail__st-item {
    position: relative;
    padding: 0 0 20px 20px;
    border-left: 2px solid #dfe8f2;
    margin-left: 6px;
}

.td-detail__st-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.td-detail__st-dot {
    position: absolute;
    left: -8px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dfe8f2;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dfe8f2;
    z-index: 1;
}

.td-detail__st-item--done .td-detail__st-dot {
    background: #72d2a4;
    box-shadow: 0 0 0 2px #72d2a4;
}

.td-detail__st-item--open .td-detail__st-dot {
    background: #005496;
    box-shadow: 0 0 0 2px #bcd4ee;
}

.td-detail__st-item--urgent .td-detail__st-dot {
    background: #ff8c00;
    box-shadow: 0 0 0 2px #ffe0b2;
}

.td-detail__st-item--today .td-detail__st-dot {
    background: #e03c3c;
    box-shadow: 0 0 0 2px #ffcdcd;
    animation: td-pulse 2s ease-in-out infinite;
}

.td-detail__st-item--closed .td-detail__st-dot {
    background: #c0ccda;
    box-shadow: 0 0 0 2px #e1e4e8;
}

.td-detail__st-item--passed .td-detail__st-dot {
    background: #c0ccda;
    box-shadow: 0 0 0 2px #e1e4e8;
}

.td-detail__st-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-detail__st-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-detail__st-label {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.td-detail__st-date {
    font-size: 12px;
    color: #1a2a3a;
    font-family: Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.td-detail__st-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    color: #8a98a8;
    background: #f0f2f5;
    white-space: nowrap;
    align-self: flex-start;
}

.td-detail__st-badge--done {
    color: #2e7d32;
    background: #e8f5e9;
}

.td-detail__st-badge--upcoming,
.td-detail__st-badge--open {
    color: #005496;
    background: #eef6ff;
}

.td-detail__st-badge--urgent {
    color: #e67e00;
    background: #fff5e6;
}

.td-detail__st-badge--today {
    color: #e03c3c;
    background: #fff0f0;
}

.td-detail__st-badge--closed {
    color: #8a98a8;
    background: #f0f2f5;
}

/* ===== Detail body (content) ===== */
.td-detail__body {
    padding: 24px 30px;
}

/* Section within body */
.td-detail__section {
    margin-bottom: 24px;
}

.td-detail__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-detail__section-title--info {
    border-left-color: #ff8c00;
}

.td-detail__section-title--file {
    border-left-color: #72d2a4;
}

.td-detail__section-title--contact {
    border-left-color: #9bbfff;
}

.td-detail__section-title--summary {
    border-left-color: #72d2a4;
}

.td-detail__section-title--guide {
    border-left-color: #8b5cf6;
}

/* AI Guide content */
.td-detail__guide-content {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #4c1d95;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
}

/* Summary info table */
.td-detail__summary-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-detail__summary-table td {
    padding: 9px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f4f9;
}

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

.td-detail__summary-label {
    width: 100px;
    color: #5f6f82;
    font-weight: 500;
    background: #f5f9fd;
    white-space: nowrap;
    padding-left: 16px !important;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.td-detail__summary-value {
    color: #1a2a3a;
    word-break: break-all;
    font-weight: 500;
    min-width: 100px;
}

/* Info table (2-column key-value grid) */
.td-detail__info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid #e1ecf7;
}

.td-detail__info-table td {
    padding: 8px 12px;
    border-bottom: 1px dashed #f0f3f8;
    vertical-align: top;
}

.td-detail__info-table .td-detail__info-label {
    width: 130px;
    color: #8a98a8;
    font-weight: normal;
    background: #f9fcff;
    white-space: nowrap;
}

.td-detail__info-table .td-detail__info-value {
    color: #e03c3c;
    font-weight: bold;
}

/* Notice tip (会员提示) */
.td-detail__notice-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 13px;
    color: #8c6d00;
    line-height: 1.6;
}

.td-detail__notice-tip .layui-icon {
    font-size: 16px;
    color: #faad14;
    flex-shrink: 0;
}

.td-detail__notice-tip-link {
    color: #005496;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.td-detail__notice-tip-link:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* Notice content (rich text) */
.td-detail__content-html {
    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;
}

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

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

.td-detail__content-html table {
    max-width: 100%;
    border-collapse: collapse;
}

.td-detail__content-html table td,
.td-detail__content-html table th {
    border: 1px solid #ddd;
    padding: 6px 10px;
}

.td-detail__content-html a {
    color: #005496;
}

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

/* File attachment section */
.td-detail__file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.td-detail__file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f7fbff;
    border: 1px solid #e1ecf7;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all .2s;
}

.td-detail__file-item:hover {
    border-color: #bcd4ee;
    background: #eef6ff;
}

.td-detail__file-item .layui-icon {
    font-size: 22px;
    color: #005496;
    flex-shrink: 0;
}

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

.td-detail__file-name {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.td-detail__file-download {
    flex-shrink: 0;
    padding: 4px 14px;
    border-radius: 4px;
    background: #005496;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s;
}

.td-detail__file-download:hover {
    background: #003d7a;
    color: #fff;
}

/* Contact info (table style) */
.td-detail__contact-table {
    width: 100%;
    margin-top: 10px;
    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);
    transition: box-shadow .25s ease;
}

.td-detail__contact-table:hover {
    box-shadow: 0 4px 16px rgba(0, 84, 150, 0.1);
}

.td-detail__contact-caption {
    caption-side: top;
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    background: linear-gradient(90deg, #f0f7fe 0%, #f7fbff 100%);
    border-bottom: 1px solid #e1ecf7;
    position: relative;
    padding-left: 20px;
}

.td-detail__contact-caption::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #005496;
    border-radius: 0 2px 2px 0;
}

/* Operation buttons */
.td-detail__ops {
    display: flex;
    gap: 8px;
}

.td-detail__ops-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #dfe8f2;
    background: #fff;
    color: #4d6278;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

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

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

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

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

/* Side panel (shared style) */
.td-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-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-detail__side-panel-bd {
    padding: 12px;
}

/* Similar notice list */
.td-detail__similar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

.td-detail__similar-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;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}

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

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

/* Industry hot tags */
.td-detail__hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.td-detail__hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    height: 28px;
    font-size: 12px;
    color: #4d6278;
    border: 1px solid #e1ecf7;
    border-radius: 999px;
    background: #f9fcff;
    transition: all .2s;
    text-decoration: none;
}

.td-detail__hot-tag:hover {
    color: #005496;
    border-color: #bcd4ee;
    background: #eef6ff;
}

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

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

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

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

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

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

    .td-detail__body {
        padding: 16px;
    }

    .td-detail__info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .td-detail__info-table .td-detail__info-label {
        width: 100%;
        padding-bottom: 0;
    }

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

.detail-content {
    border: 1px solid #dfe8f2;
    padding: 10px 20px;
    overflow: hidden;
}

.detail-content table {
    width: 100% !important;
    border-collapse: collapse;
}

.detail-contentth th,
.detail-content td {
    border: 1px solid #000 !important;
}

.a-login-tips{
    color: #e03c3c;
    font-weight: bold;
}