/* 2eju.com 公告详情样式 | 2026-10-24 */

.detail-banner {
    background: linear-gradient(120deg, #1b3f8f, #2b6ef1);
    color: #fff;
    padding: 20px 0 42px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    margin-top: -26px;
    position: relative;
    z-index: 1;
}

.article-card {
    padding: 30px 34px 34px;
}

.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--c-text);
    word-break: break-word;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--c-text-3);
}

.article-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

.article-tools {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.article-apply-bar {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #c9daf5;
    background: linear-gradient(135deg, #f3f7ff 0%, #eef4fc 100%);
}

.article-apply-status {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #0f2d5c;
}

.article-apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-positions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--c-border);
}

.article-positions-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #0f2d5c;
}

.article-positions-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.article-positions-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--c-text-2);
}

.article-positions-select {
    min-width: 140px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #c9daf5;
    border-radius: var(--r-s);
    background: #fff;
    color: var(--c-text);
    font-size: 13px;
}

.article-positions-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--r-s);
    background: #f6f8fb;
    color: var(--c-text-3);
    font-size: 13.5px;
}

.article-positions-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe8fb;
    border-radius: var(--r-s);
}

.article-positions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: #fff;
}

.article-positions-table th,
.article-positions-table td {
    border-bottom: 1px solid #e8eef8;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.article-positions-table th {
    background: #f0f5fd;
    color: #0f2d5c;
    font-weight: 600;
    white-space: nowrap;
}

.article-positions-table tbody tr:last-child td {
    border-bottom: none;
}

.article-positions-more {
    margin-top: 12px;
}

.article-share-qr {
    flex-basis: 100%;
    margin-top: 4px;
    padding: 14px;
    border-radius: var(--r-s);
    border: 1px dashed #c9daf5;
    background: #f7faff;
    text-align: center;
}

.article-share-qr-tip {
    margin: 0 0 10px;
    font-size: 13px;
    color: #0f2d5c;
}

.article-share-qr-canvas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.article-share-qr-canvas canvas {
    display: block;
    border-radius: 8px;
}

.ad-promo {
    border-color: #c9daf5;
}

.article-divider {
    height: 1px;
    background: var(--c-border);
    margin: 22px 0 8px;
}

.article-note {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f6f8fb;
    color: #5b6878;
    font-size: 13px;
    line-height: 1.75;
}

.article-note-title {
    margin-bottom: 4px;
    color: #4d6074;
    font-size: 13px;
    font-weight: 600;
}

.article-note p {
    margin: 0;
}

.article-note p + p {
    margin-top: 4px;
}

.article-note a {
    color: var(--c-primary-dark);
    /* 正文段落内的链接不能只靠颜色区分（Lighthouse link-in-text-block） */
    text-decoration: underline;
}

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--c-border);
}

.article-share-label {
    font-size: 14px;
    color: var(--c-text-3);
}

.article-share .btn {
    font-weight: 500;
}

.article-content {
    font-size: 16px;
    line-height: 1.95;
    color: #2c3a4b;
    word-break: break-word;
}

.article-content p {
    margin: 0 0 14px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 26px 0 12px;
    line-height: 1.5;
    color: var(--c-text);
}

.article-content h2 {
    font-size: 20px;
}

.article-content h3 {
    font-size: 17px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 14px auto;
    border-radius: var(--r-s);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
}

.article-content th,
.article-content td {
    border: 1px solid #e3e9f2;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: #f5f8fd;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin: 4px 0;
}

.article-content a {
    color: var(--c-primary-dark);
    word-break: break-all;
    /* 正文内链接加下划线，避免只靠颜色区分（Lighthouse link-in-text-block） */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 3px solid #c9d9fb;
    background: #f7faff;
    color: var(--c-text-2);
}

.attachment-block {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--c-border);
}

.attachment-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.attachment-list li + li {
    margin-top: 8px;
}

.attachment-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--r-s);
    background: #f7f9fc;
    color: var(--c-primary-dark);
    font-size: 14px;
    transition: background .2s;
}

.attachment-list a:hover {
    background: var(--c-primary-light);
}

.detail-bottom-ad {
    margin-top: 26px;
}

.detail-side .card + .card {
    margin-top: 18px;
}

.detail-side .side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.detail-side .promo-card {
    display: block;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.detail-side .promo-card img {
    display: block;
    width: 100%;
    height: auto;
}

.detail-side .promo-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

.related-list li + li {
    border-top: 1px dashed #eef1f6;
}

.related-list a {
    display: block;
    padding: 11px 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-text-2);
    transition: color .2s;
}

.related-list a:hover {
    color: var(--c-primary-dark);
}

.related-list .related-date {
    display: block;
    margin-top: 4px;
    color: var(--c-text-3);
    font-size: 12px;
}

.apply-card {
    background: linear-gradient(135deg, #fff4ee, #ffe9df);
    border: 1px solid #ffd9c7;
}

.apply-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #b4400f;
}

.apply-card p {
    margin-top: 8px;
    color: #96501f;
    font-size: 13.5px;
    line-height: 1.8;
}

.apply-card .apply-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.apply-card .apply-links .btn {
    height: auto;
    line-height: 1.45;
    white-space: normal;
    text-align: center;
}

.detail-loading {
    padding: 80px 0;
    text-align: center;
    color: var(--c-text-3);
}

.article-summary {
    position: relative;
    overflow: hidden;
    margin: 4px 0 20px;
    padding: 18px 20px;
    border: 1px solid #dbe8fb;
    border-radius: var(--r-m);
    background-color: #f6faff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Ctext x='18' y='72' fill='%232b6ef1' fill-opacity='0.16' font-size='20' font-family='Arial,sans-serif' font-weight='700' transform='rotate(-18 110 60)'%3E2eju.com%3C/text%3E%3C/svg%3E"),
        linear-gradient(180deg, #f6faff 0%, #fff 100%);
    background-repeat: repeat, no-repeat;
    background-size: 220px 120px, auto;
}

.article-summary > * {
    position: relative;
    z-index: 1;
}

.article-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.article-summary-head .tag-ai {
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: #e8f0ff;
    color: var(--c-primary-dark);
    font-size: 11.5px;
    font-weight: 500;
}

.article-summary-lead {
    margin-bottom: 12px;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.8;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.summary-item {
    padding: 10px 12px;
    border-radius: var(--r-s);
    background: rgba(255, 255, 255, .82);
    border: 1px solid #edf2fa;
}

.summary-item .label {
    display: block;
    margin-bottom: 4px;
    color: var(--c-text-3);
    font-size: 12px;
}

.summary-item .value {
    color: var(--c-text);
    font-size: 13.5px;
    font-weight: 600;
    word-break: break-all;
}

.summary-highlights {
    margin-top: 12px;
    padding-left: 0;
}

.summary-highlights li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: var(--c-text-2);
    font-size: 13px;
    line-height: 1.7;
}

.summary-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-primary);
}

.article-summary-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e3ecf9;
    color: var(--c-text-3);
    font-size: 11.5px;
}

.article-timeline {
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 16px 20px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-m);
    background-color: #fff;
    /* 与 AI 摘要卡片同一张 2eju.com 斜向水印，白底上略降不透明度保持正文可读 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Ctext x='18' y='72' fill='%232b6ef1' fill-opacity='0.13' font-size='20' font-family='Arial,sans-serif' font-weight='700' transform='rotate(-18 110 60)'%3E2eju.com%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 220px 120px;
}

.article-timeline > * {
    position: relative;
    z-index: 1;
}

.article-timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}

.article-timeline-head .btn {
    padding: 4px 12px;
    font-size: 12.5px;
}

.timeline-list {
    margin: 0;
    padding: 0 0 0 4px;
    list-style: none;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 14px 18px;
    border-left: 2px solid #e6ecf5;
}

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

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -7px;
    width: 12px;
    height: 12px;
    border: 2px solid #c9d6e8;
    border-radius: 50%;
    background: #fff;
}

.timeline-item.is-done .timeline-dot {
    border-color: #9aa8bd;
    background: #9aa8bd;
}

.timeline-item.is-today .timeline-dot {
    border-color: var(--c-primary);
    background: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(43, 110, 241, 0.14);
}

.timeline-body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.timeline-label {
    color: var(--c-text);
    font-size: 13.5px;
    font-weight: 600;
}

.timeline-day {
    color: var(--c-text-3);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.timeline-item.is-today .timeline-day {
    color: var(--c-primary-dark);
    font-weight: 600;
}

.timeline-item.is-done .timeline-day {
    color: var(--c-text-3);
}

.article-timeline-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eef1f6;
    color: var(--c-text-3);
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 竖版海报在单栏下会顶满屏，限宽居中 */
    .detail-side .promo-card {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

.article-content img.is-broken {
    display: none;
}

.share-wechat-dialog {
    text-align: center;
}

.share-wechat-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.share-wechat-desc {
    margin: 0 0 16px;
    color: var(--c-text-2);
    font-size: 13.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-wechat-qr {
    display: grid;
    place-items: center;
    min-height: 180px;
    margin: 0 auto 12px;
}

.share-wechat-qr canvas {
    display: block;
    border-radius: 8px;
}

.share-wechat-tip {
    margin: 0;
    color: var(--c-text-3);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .detail-banner {
        padding: 16px 0 34px;
    }

    .article-card {
        padding: 20px 18px 24px;
    }

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

    .article-content {
        font-size: 15.5px;
        line-height: 1.9;
    }

    .article-tools {
        margin-left: 0;
        width: 100%;
    }

    .article-content table {
        font-size: 13px;
    }

    .article-content th,
    .article-content td {
        padding: 7px 9px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
