@charset "utf-8";
/* ============================================================
   DBN 文章/资料模板样式 v1.0
   用于文章资料模版和资料分享模版
   ============================================================ */

/* ============================================================
   Layout
   ============================================================ */
.article-page { background: #f8fafc; }
.article-container {
    max-width: 1200px; margin: 0 auto; padding: 24px;
    display: flex; gap: 24px; align-items: flex-start;
}
.article-main { flex: 1; min-width: 0; }
.article-sidebar { width: 300px; flex-shrink: 0; }

/* ============================================================
   Article Header / Hero
   ============================================================ */
.article-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 48px 24px; text-align: center; position: relative; overflow: hidden;
}
.article-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37,99,235,.15) 0%, transparent 50%);
}
.article-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.article-hero .category {
    display: inline-block; padding: 4px 14px; background: rgba(37,99,235,.3);
    color: #93c5fd; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.article-hero h1 { font-size: 32px; color: #fff; margin: 0 0 12px; font-weight: 700; line-height: 1.4; }
.article-hero .meta {
    font-size: 13px; color: rgba(255,255,255,.6); display: flex; align-items: center;
    justify-content: center; gap: 16px; flex-wrap: wrap;
}
.article-hero .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   Article Body Card
   ============================================================ */
.article-card {
    background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0; padding: 40px 48px; margin-bottom: 24px;
}

/* ============================================================
   Typography
   ============================================================ */
.article-content { font-size: 16px; line-height: 1.9; color: #374151; word-wrap: break-word; }
.article-content h2 {
    font-size: 22px; font-weight: 700; color: #1e293b;
    margin: 36px 0 16px; padding-left: 14px;
    border-left: 4px solid #2563eb;
}
.article-content h3 {
    font-size: 18px; font-weight: 600; color: #1e293b;
    margin: 28px 0 12px;
}
.article-content h4 { font-size: 16px; font-weight: 600; color: #334155; margin: 20px 0 10px; }
.article-content p { margin: 0 0 16px; text-indent: 2em; }
.article-content p.no-indent { text-indent: 0; }
.article-content strong { color: #1e293b; }
.article-content a { color: #2563eb; text-decoration: none; border-bottom: 1px dotted #93c5fd; }
.article-content a:hover { border-bottom-style: solid; }
.article-content blockquote {
    margin: 20px 0; padding: 16px 24px; background: #f0f7ff;
    border-left: 4px solid #2563eb; border-radius: 0 8px 8px 0;
    color: #475569; font-size: 15px;
}
.article-content blockquote p { text-indent: 0; margin: 0; }
.article-content ul, .article-content ol { margin: 12px 0; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }

/* ============================================================
   Images
   ============================================================ */
.article-content img {
    max-width: 100%; height: auto; border-radius: 8px;
    display: block; margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.article-content .img-caption {
    text-align: center; font-size: 13px; color: #9ca3af;
    margin-top: -12px; margin-bottom: 20px;
}

/* ============================================================
   Code Blocks
   ============================================================ */
.article-content pre {
    background: #1e293b; color: #e2e8f0; padding: 20px 24px;
    border-radius: 8px; overflow-x: auto; font-size: 14px;
    line-height: 1.7; margin: 16px 0;
    font-family: "SF Mono","Fira Code","Consolas",monospace;
}
.article-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-content code {
    background: #f1f5f9; color: #e11d48; padding: 2px 6px;
    border-radius: 4px; font-size: 0.9em; font-family: "SF Mono","Fira Code","Consolas",monospace;
}
.article-content .code-title {
    background: #334155; color: #94a3b8; padding: 8px 16px;
    border-radius: 8px 8px 0 0; font-size: 12px;
    font-family: "Microsoft YaHei",sans-serif;
    display: flex; align-items: center; gap: 8px;
}
.article-content .code-title + pre { margin-top: 0; border-radius: 0 0 8px 8px; }

/* ============================================================
   Table of Contents
   ============================================================ */
.article-toc {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 20px 24px; margin-bottom: 28px;
}
.article-toc h4 { margin: 0 0 12px; font-size: 15px; color: #1e293b; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin: 6px 0; }
.article-toc a { color: #475569; font-size: 14px; text-decoration: none; }
.article-toc a:hover { color: #2563eb; }

/* ============================================================
   Info / Warning Boxes
   ============================================================ */
.article-notice {
    padding: 14px 18px; border-radius: 8px; margin: 16px 0; font-size: 14px; line-height: 1.6;
}
.article-notice.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.article-notice.warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.article-notice.tip { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* ============================================================
   Step-by-step (for tutorials)
   ============================================================ */
.article-step { display: flex; gap: 16px; margin: 20px 0; }
.article-step .step-num {
    width: 32px; height: 32px; background: #2563eb; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0; margin-top: 4px;
}
.article-step .step-body { flex: 1; }

/* ============================================================
   Tags
   ============================================================ */
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.article-tags a {
    display: inline-block; padding: 4px 14px; background: #f1f5f9;
    color: #64748b; border-radius: 20px; font-size: 12px; text-decoration: none; transition: all .15s;
}
.article-tags a:hover { background: #2563eb; color: #fff; }

/* ============================================================
   Sidebar Cards
   ============================================================ */
.sidebar-card {
    background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0; margin-bottom: 16px;
}
.sidebar-card-header {
    padding: 14px 18px; border-bottom: 1px solid #e2e8f0;
    font-weight: 600; font-size: 14px; color: #374151;
}
.sidebar-card-body { padding: 14px 18px; }

/* Author Card */
.author-card { text-align: center; padding: 20px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #dbeafe; }
.author-name { font-size: 16px; font-weight: 600; color: #1e293b; margin: 10px 0 4px; }
.author-bio { font-size: 12px; color: #9ca3af; margin: 0 0 10px; }
.author-stats { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.author-stat { text-align: center; }
.author-stat .num { font-size: 18px; font-weight: 700; color: #1e293b; }
.author-stat .lbl { font-size: 11px; color: #9ca3af; }

/* Related Articles */
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: 13px; color: #475569; text-decoration: none; line-height: 1.5; }
.related-list a:hover { color: #2563eb; }

/* ============================================================
   Article Footer Actions
   ============================================================ */
.article-actions {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    padding: 20px 0; margin-top: 8px;
}
.article-action-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
    border: 1.5px solid #e2e8f0; border-radius: 24px; color: #64748b;
    font-size: 13px; cursor: pointer; transition: all .15s; background: #fff; text-decoration: none;
}
.article-action-btn:hover { border-color: #2563eb; color: #2563eb; }
.article-action-btn.liked { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.article-breadcrumb {
    font-size: 13px; color: #9ca3af; padding: 16px 0 0;
}
.article-breadcrumb a { color: #9ca3af; text-decoration: none; }
.article-breadcrumb a:hover { color: #2563eb; }
.article-breadcrumb span { margin: 0 6px; }

/* ============================================================
   Data Table (for regulations/data articles)
   ============================================================ */
.article-content table {
    width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.article-content table th {
    background: #f8fafc; padding: 10px 14px; text-align: left;
    font-weight: 600; color: #374151; border: 1px solid #e2e8f0;
}
.article-content table td {
    padding: 10px 14px; border: 1px solid #e2e8f0; color: #475569;
}

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Dynamic Article Cards (page-articles-loader.js)
   ============================================================ */
.dynamic-articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.dynamic-article-card {
    background: #fff; border-radius: 10px; padding: 20px;
    border: 1px solid #e2e8f0; text-decoration: none; display: block;
    transition: all .2s;
}
.dynamic-article-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); }
.dynamic-article-cate {
    display: inline-block; padding: 2px 10px; background: #dbeafe;
    color: #2563eb; border-radius: 10px; font-size: 11px; font-weight: 600; margin-bottom: 8px;
}
.dynamic-article-card h4 { font-size: 15px; color: #1e293b; margin: 0 0 6px; line-height: 1.4; }
.dynamic-article-card p { font-size: 12px; color: #64748b; margin: 0 0 10px; line-height: 1.5; }
.dynamic-article-meta { display: flex; gap: 12px; font-size: 11px; color: #9ca3af; }
@media (max-width: 768px) { .dynamic-articles-grid { grid-template-columns: 1fr; padding: 0 12px; } }
@media (max-width: 1024px) { .dynamic-articles-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 1024px) {
    .article-sidebar { width: 260px; }
    .article-card { padding: 28px 32px; }
}
@media (max-width: 768px) {
    .article-container { flex-direction: column; padding: 12px; }
    .article-sidebar { width: 100%; }
    .article-hero { padding: 32px 16px; }
    .article-hero h1 { font-size: 22px; }
    .article-card { padding: 20px 16px; border-radius: 8px; }
    .article-content { font-size: 15px; }
    .article-content .img-caption { margin-top: -8px; }
    .author-stats { gap: 12px; }
}
