/* 文章详情页 */
.detail-page {
    padding-bottom: 48px;
}

.detail-body {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-tags {
    margin: 4px 0 18px;
}

.detail-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.detail-subtitle {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.detail-magazine-meta span + span {
    margin-left: 16px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: -8px 0 22px;
    color: var(--text-muted);
    font-size: 13px;
}

.detail-author {
    margin-bottom: 28px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: #f7f7f7;
}

.detail-author-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ececec center/cover no-repeat;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-author-meta {
    flex: 1;
    min-width: 0;
}

.detail-author-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.detail-author-name .job-title {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-author-name .verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f5a623;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.detail-author-dept {
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-author-verify {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.detail-author-verify svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.detail-content {
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
}

.detail-content > :first-child {
    margin-top: 0;
}

.detail-content > :last-child {
    margin-bottom: 0;
}

.detail-content p {
    margin: 0 0 16px;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    margin: 28px 0 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.detail-content h1 { font-size: 22px; }
.detail-content h2 { font-size: 20px; }
.detail-content h3 { font-size: 18px; }
.detail-content h4 { font-size: 16px; }

.detail-content ul,
.detail-content ol {
    margin: 0 0 16px;
    padding-left: 1.5em;
}

.detail-content li {
    margin-bottom: 8px;
}

.detail-content img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 20px auto;
    border-radius: 4px;
}

.detail-content figure {
    margin: 20px 0;
    text-align: center;
}

.detail-content figure img {
    margin-bottom: 8px;
}

.detail-content figcaption,
.detail-content .caption,
.detail-content p img + br + span {
    color: var(--text-muted);
    font-size: 13px;
}

.detail-content table {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.detail-content table th,
.detail-content table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.detail-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

.detail-content table tr:nth-child(even) td {
    background: #fafafa;
}

.detail-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: #f7f7f7;
    color: var(--text-secondary);
}

.detail-content a {
    color: var(--primary);
    text-decoration: underline;
}

.detail-trust {
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid #f0d8c0;
    border-radius: var(--radius);
    background: #fff8f1;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.detail-trust h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 17px;
}

.detail-trust p {
    margin: 0 0 8px;
}

.detail-trust p:last-child {
    margin-bottom: 0;
}

.detail-content video,
.detail-content iframe {
    display: block;
    max-width: 100%;
    margin: 20px auto;
}

.detail-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 768px) {
    .detail-author-inner {
        align-items: flex-start;
    }

    .detail-author-avatar {
        width: 56px;
        height: 56px;
    }
}
