/* 详情页专用样式 */

.detail-page .page-content {
    padding: 0;
    background: #fff;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.back-btn i {
    font-size: 1rem;
}

.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 70vh;
}

.article-loading,
.article-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #64748b;
}

.article-loading i,
.article-error i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #94a3b8;
}

.article-loading i {
    color: #3b82f6;
}

.article-error i {
    color: #f87171;
}

.article-loading p,
.article-error p {
    font-size: 1rem;
    margin-bottom: 0;
}

.btn-back {
    margin-top: 20px;
    padding: 10px 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #2563eb;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #64748b;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    font-size: 0.85rem;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: #111827;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-body h1 {
    font-size: 1.5rem;
}

.article-body h2 {
    font-size: 1.35rem;
}

.article-body h3 {
    font-size: 1.2rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-body strong {
    font-weight: 600;
    color: #111827;
}

.article-body a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-body a:hover {
    border-bottom-color: #3b82f6;
}

.article-body ul,
.article-body ol {
    margin: 16px 0;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-body table td {
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.article-body table tr:nth-child(odd) {
    background: #f9fafb;
}

.article-source {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .article-detail {
        padding: 16px 12px;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.8rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h1 {
        font-size: 1.3rem;
    }

    .article-body h2 {
        font-size: 1.2rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-btn span {
        display: none;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .article-body {
        font-size: 0.95rem;
    }
}
