/* event-detail/css/index.css */
/* 通用内容详情页样式（文章 / 活动 / 产品 / 需求 / 企业公开页） */

.single-int_content .site-main {
    padding-block: 0;
}

.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}

/* =========================================
   1. 面包屑与标题
   ========================================= */
.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #94A3B8;
    font-size: 12px;
}
.article-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}
.article-breadcrumb a:hover {
    color: #2563EB;
}
.article-breadcrumb .fa-house {
    font-size: 10px;
}
.article-breadcrumb__sep {
    color: #CBD5E1;
}
.article-breadcrumb__current {
    max-width: 100%;
    overflow: hidden;
    color: #334155;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-header {
    text-align: center;
}
.article-title {
    margin: 0 0 20px;
    color: #1E293B;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 34px;
    color: #64748B;
    font-size: 13px;
}
.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-meta > span + span::before {
    content: "·";
    margin-right: 10px;
    color: #CBD5E1;
}
.article-meta .fa-solid,
.article-meta .fa-regular {
    color: #94A3B8;
    font-size: 11px;
}

.article-cover {
    margin: 0 0 32px;
    overflow: hidden;
    border-radius: 12px;
    background: #F1F5F9;
    aspect-ratio: 16 / 9;
}
.article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   2. 正文排版
   ========================================= */
.article-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.85;
}
.article-content > *:first-child {
    margin-top: 0;
}
.article-content p {
    margin: 0 0 20px;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 36px 0 14px;
    color: #0F172A;
    line-height: 1.4;
}
.article-content h2 {
    font-size: 22px;
}
.article-content h3 {
    font-size: 18px;
}
.article-content h4 {
    font-size: 16px;
}
.article-content a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: #1D4ED8;
}
.article-content strong {
    color: #1E293B;
}
.article-content ul,
.article-content ol {
    margin: 0 0 22px;
    padding-left: 1.5em;
}
.article-content ul {
    list-style: disc;
}
.article-content ol {
    list-style: decimal;
}
.article-content li {
    margin: 6px 0;
}
.article-content hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid #E2E8F0;
}
.article-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
}
.article-content iframe,
.article-content video {
    display: block;
    max-width: 100%;
    margin: 24px auto;
    border-radius: 8px;
}
.article-content .wp-block-table {
    overflow-x: auto;
}
.article-content .enterprise-logo {
    margin: 0 0 24px;
    text-align: center;
}
.article-content .enterprise-logo img {
    width: auto;
    max-width: 220px;
    max-height: 120px;
    margin: 0 auto;
    object-fit: contain;
}
.article-content .enterprise-meta {
    padding: 16px 18px;
    border: 1px solid #EFF2F6;
    border-radius: 10px;
    background: #F8FAFC;
    list-style: none;
    font-size: 14px;
}
.article-content .enterprise-meta li {
    margin: 6px 0;
}
.article-content figure {
    margin: 30px 0;
}
.article-content figcaption {
    margin-top: 8px;
    color: #94A3B8;
    font-size: 12px;
    text-align: center;
}
.article-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid #E63946;
    border-radius: 0 8px 8px 0;
    background: #F8FAFC;
    color: #475569;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}
.article-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #F1F5F9;
    font-size: 0.9em;
}
.article-content pre {
    margin: 24px 0;
    padding: 16px 18px;
    overflow-x: auto;
    border-radius: 8px;
    background: #0F172A;
    color: #E2E8F0;
}
.article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}
.article-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
}
.article-content th,
.article-content td {
    padding: 9px 12px;
    border: 1px solid #E2E8F0;
    text-align: left;
}
.article-content th {
    background: #F8FAFC;
    color: #334155;
    font-weight: 600;
}

/* =========================================
   3. 活动信息
   ========================================= */
.article-event {
    margin-top: 36px;
    padding: 22px 24px;
    border: 1px solid #EFF2F6;
    border-radius: 12px;
    background: #F8FAFC;
}
.article-event h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: #0F172A;
    font-size: 17px;
    font-weight: 700;
}
.article-event h2 .fa-solid {
    color: #E63946;
    font-size: 15px;
}
.article-event ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-event li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}
.article-event__label {
    flex-shrink: 0;
    width: 72px;
    color: #94A3B8;
}

/* =========================================
   4. 附件下载
   ========================================= */
.article-attachments {
    margin-top: 36px;
}
.article-attachments > h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 16px;
    color: #0F172A;
    font-size: 18px;
    font-weight: 700;
}
.article-attachments > h2 span {
    color: #94A3B8;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
}
.attachment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 1px solid #E8EEF7;
    border-radius: 12px;
    background: #F8FAFC;
}
.attachment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #EFF5FF;
    color: #2563EB;
    font-size: 19px;
}
.attachment-body {
    flex: 1;
    min-width: 0;
}
.attachment-body h3 {
    margin: 0;
    overflow: hidden;
    color: #1E293B;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-body p {
    margin: 4px 0 0;
    color: #94A3B8;
    font-size: 12px;
}
.attachment-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    border-radius: 8px;
    background: #E63946;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.attachment-download:hover {
    background: #D62839;
}

/* =========================================
   5. 标签与作者互动
   ========================================= */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}
.article-tag {
    padding: 5px 12px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #475569;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.article-tag:hover {
    background: #EFF5FF;
    color: #2563EB;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    font-size: 14px;
    font-weight: 700;
    object-fit: cover;
}
.author-name {
    overflow: hidden;
    color: #1E293B;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.author-meta {
    margin-top: 2px;
    color: #94A3B8;
    font-size: 12px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.article-actions .favorite-button,
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    background: #FFFFFF;
    color: #64748B;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.article-actions .favorite-button:hover,
.share-button:hover {
    border-color: #C7D9F7;
    color: #2563EB;
}
.article-actions .favorite-button.is-active {
    border-color: #E63946;
    background: #E63946;
    color: #FFFFFF;
}
.share-button.is-copied {
    border-color: #A7F3D0;
    background: #F0FDF4;
    color: #059669;
}

/* =========================================
   6. 上一篇 / 下一篇
   ========================================= */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}
.article-nav a {
    max-width: 48%;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.article-nav a:hover {
    color: #E63946;
}
.article-nav a > span {
    display: block;
    margin-bottom: 5px;
    color: #94A3B8;
    font-size: 11px;
}
.article-nav a > strong {
    display: block;
    overflow: hidden;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-nav__next {
    text-align: right;
}

/* =========================================
   7. 响应式
   ========================================= */
@media (max-width: 767px) {
    .article-container {
        padding: 24px 16px 56px;
    }
    .article-breadcrumb {
        margin-bottom: 22px;
    }
    .article-title {
        margin-bottom: 16px;
        font-size: 24px;
    }
    .article-meta {
        gap: 8px 12px;
        margin-bottom: 26px;
        font-size: 12px;
    }
    .article-cover {
        margin-bottom: 24px;
        border-radius: 10px;
    }
    .article-content {
        font-size: 15px;
    }
    .article-content h2 {
        font-size: 20px;
    }
    .article-event {
        padding: 18px;
    }
    .article-event li {
        flex-direction: column;
        gap: 2px;
    }
    .article-event__label {
        width: auto;
    }
    .attachment-card {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }
    .attachment-body {
        flex: 1;
        min-width: calc(100% - 60px);
    }
    .attachment-download {
        width: 100%;
        margin-top: 2px;
    }
    .article-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-top: 34px;
    }
    .article-actions {
        width: 100%;
    }
    .article-actions .favorite-button,
    .share-button {
        flex: 1;
    }
    .article-nav {
        flex-direction: column;
        gap: 16px;
    }
    .article-nav a {
        max-width: 100%;
    }
    .article-nav__next {
        text-align: left;
    }
}
