/* ==========================================================================
   Mitce 机场 - 知识库与独立教程长文专用样式 (Article Style)
   深藏青/暗黑基底 + 哑光金属金标头 + 深度技术文档排版 (2000字适配)
   ========================================================================== */

@import url('./style.css');

.article-page {
    padding-bottom: 80px;
}

.article-hero {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: radial-gradient(circle at 50% 30%, rgba(26, 42, 76, 0.45) 0%, transparent 70%);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.article-breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.article-header-box {
    max-width: 900px;
}

.article-main-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-main-title .gold-accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 文章主体布局：双栏 (正文 + 侧边栏/CTA) */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    margin-top: 50px;
    align-items: start;
}

.article-content {
    background: rgba(14, 23, 44, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 48px 42px;
    line-height: 1.85;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 44px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--gold-gradient);
    border-radius: 3px;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 30px 0 14px;
}

.article-content p {
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.article-content ul, .article-content ol {
    margin: 18px 0 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-content li {
    color: #cbd5e1;
}

.article-content li strong {
    color: var(--text-white);
}

.article-content blockquote {
    background: rgba(20, 32, 60, 0.7);
    border-left: 4px solid var(--gold-primary);
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-size: 0.98rem;
    color: var(--gold-light);
    font-style: italic;
}

.article-content .highlight-box {
    background: linear-gradient(135deg, rgba(23, 36, 68, 0.8) 0%, rgba(13, 20, 38, 0.9) 100%);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.article-content .highlight-box h4 {
    color: var(--gold-primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-table-wrapper {
    overflow-x: auto;
    margin: 28px 0;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: rgba(10, 16, 32, 0.7);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-table th {
    background: rgba(26, 42, 76, 0.85);
    color: var(--gold-light);
    text-align: left;
    padding: 14px 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--gold-border);
}

.article-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.article-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 侧边悬浮栏 */
.article-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: rgba(14, 23, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px 20px;
}

.sidebar-widget.gold-feature {
    border-color: var(--gold-border);
    background: linear-gradient(160deg, rgba(20, 32, 60, 0.9) 0%, rgba(10, 16, 32, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
}

.toc-list a:hover {
    color: var(--gold-light);
    padding-left: 6px;
}

.related-articles-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-articles-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.45;
    transition: color 0.2s;
}

.related-articles-list a:hover {
    color: var(--gold-primary);
}

.article-bottom-cta {
    margin-top: 50px;
    padding: 36px 30px;
    background: linear-gradient(135deg, rgba(26, 42, 76, 0.7) 0%, rgba(13, 20, 38, 0.9) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-bottom-cta h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}

.article-bottom-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-content {
        padding: 30px 20px;
    }
    .article-main-title {
        font-size: 2rem;
    }
}
