.article-page {
    min-height: 100vh;
    overflow-x: clip;
    background:
        radial-gradient(circle at 12% 8%, rgba(109, 211, 206, 0.20), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(79, 140, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 48%, #ffffff 100%);
}

.article-page,
.article-page * {
    box-sizing: border-box;
}

.article-container {
    width: min(1120px, calc(100% - 40px));
    max-width: 100%;
    margin: 0 auto;
}

.article-hero,
.article-detail-hero {
    padding: 84px 0 46px;
}

.back-home {
    display: inline-flex;
    margin-bottom: 24px;
    color: #4f8cff;
    font-weight: 700;
}

.back-home:hover {
    text-decoration: underline;
}

.eyebrow {
    margin: 0 0 14px;
    color: #4f8cff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-hero h1,
.article-detail-hero h1 {
    margin: 0;
    color: #1f2a37;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.article-hero-desc,
.article-detail-summary {
    max-width: 760px;
    margin: 20px 0 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1.8;
}

.article-list-section,
.article-content-section {
    padding: 28px 0 86px;
    scroll-margin-top: 96px;
}

.article-list-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.article-page-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 104px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 999px;
    color: #2f6fe8;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.article-page-arrow:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4f8cff, #6dd3ce);
    text-decoration: none;
    transform: translateY(-50%) scale(1.04);
}

.article-page-arrow-left {
    left: -28px;
}

.article-page-arrow-right {
    right: -28px;
}

@media (max-width: 1180px) {
    .article-page-arrow-left {
        left: 8px;
    }

    .article-page-arrow-right {
        right: 8px;
    }
}

@media (max-width: 900px) {
    .article-page-arrow {
        width: 48px;
        height: 82px;
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .article-page-arrow {
        position: fixed;
        top: 54%;
        width: 38px;
        height: 62px;
        font-size: 32px;
        opacity: 0;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.58);
        transform: translateY(-50%);
    }

    .article-page-arrow:hover {
        opacity: 0.92;
        transform: translateY(-50%) scale(1.04);
    }

    .article-page-arrow-left {
        left: 8px;
    }

    .article-page-arrow-right {
        right: 8px;
    }

    body.article-arrows-visible .article-page-arrow {
        opacity: 0.68;
        pointer-events: auto;
    }
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.category-strip-title {
    color: #334155;
    font-weight: 800;
}

.category-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #2f6fe8;
    background: rgba(79, 140, 255, 0.10);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.category-pill:hover,
.category-pill-active {
    color: #ffffff;
    background: linear-gradient(135deg, #4f8cff, #6dd3ce);
    box-shadow: 0 10px 22px rgba(79, 140, 255, 0.18);
    text-decoration: none;
}

.article-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.article-list-card {
    min-height: 260px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: 0.22s ease;
    min-width: 0;
    max-width: 100%;
}

.article-list-card h2,
.article-list-card h2 a,
.article-list-card p,
.article-card-meta,
.article-card-meta span,
.read-more {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.category-strip {
    width: 100%;
    max-width: 100%;
}

.category-pill {
    white-space: normal;
    line-height: 1.4;
}

.article-list-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 140, 255, 0.36);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.article-card-cover {
    display: block;
    margin: -26px -26px 20px;
    overflow: hidden;
    border-radius: 24px 24px 18px 18px;
    background: #f1f5f9;
    aspect-ratio: 16 / 9;
}

.article-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.article-list-card:hover .article-card-cover img {
    transform: scale(1.04);
}

.article-card-meta,
.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.article-card-meta span,
.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
}

.article-list-card h2 {
    margin: 18px 0 0;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.article-list-card h2 a:hover {
    color: #2f6fe8;
}

.article-list-card p {
    margin: 14px 0 0;
    color: #64748b;
    line-height: 1.75;
}

.read-more {
    display: inline-flex;
    margin-top: 22px;
    color: #2f6fe8;
    font-weight: 800;
}

.read-more:hover {
    text-decoration: underline;
}

.empty-article {
    padding: 54px 28px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.62);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.empty-article h2 {
    margin: 0;
    font-size: 24px;
}

.empty-article p {
    margin: 10px 0 0;
    color: #64748b;
}

.article-detail-container {
    max-width: 860px;
}

.article-detail-meta {
    margin-bottom: 22px;
}

.article-detail-cover {
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    background: #f1f5f9;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.article-detail-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.markdown-article {
    padding: 42px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.markdown-content {
    color: #1f2a37;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.markdown-content > *:first-child {
    margin-top: 0;
}

.markdown-content > *:last-child {
    margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 34px 0 14px;
    color: #1f2a37;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.markdown-content h1 {
    font-size: 32px;
}

.markdown-content h2 {
    font-size: 28px;
}

.markdown-content h3 {
    font-size: 24px;
}

.markdown-content h4 {
    font-size: 21px;
}

.markdown-content p {
    margin: 16px 0;
}

.markdown-content a {
    color: #2f6fe8;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.markdown-content ul,
.markdown-content ol {
    margin: 16px 0;
    padding-left: 26px;
}

.markdown-content li {
    margin: 6px 0;
}

.markdown-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 5px solid #6dd3ce;
    border-radius: 16px;
    color: #475569;
    background: rgba(109, 211, 206, 0.10);
}

.markdown-content code {
    padding: 2px 6px;
    border-radius: 8px;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
    font-family: Consolas, "SFMono-Regular", Menlo, Monaco, "Courier New", monospace;
    font-size: 0.92em;
}

.markdown-content pre {
    margin: 22px 0;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 18px;
    background: #0f172a;
}

.markdown-content pre code {
    display: block;
    padding: 0;
    color: #e5e7eb;
    background: transparent;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre;
}

.markdown-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.markdown-content th,
.markdown-content td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.markdown-content th {
    color: #1f2a37;
    background: #f1f5f9;
    font-weight: 800;
}

.markdown-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 18px;
}

.markdown-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 18px;
    background: #000;
}

.markdown-content source {
    display: none;
}

@media (max-width: 900px) {
    .article-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-hero,
    .article-detail-hero {
        padding: 62px 0 34px;
    }
}

@media (max-width: 640px) {
    .article-container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .article-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-list-card {
        min-height: auto;
        padding: 20px;
    }

    .article-card-cover {
        margin: -20px -20px 16px;
        border-radius: 20px 20px 16px 16px;
    }

    .article-detail-cover {
        margin-top: 22px;
        border-radius: 22px;
    }

    .category-strip {
        gap: 8px;
        padding: 12px;
        border-radius: 18px;
    }

    .category-strip-title {
        width: 100%;
    }

    .category-pill {
        font-size: 12px;
        padding: 6px 10px;
    }

    .markdown-article {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .markdown-content {
        font-size: 16px;
    }

    .markdown-content h1 {
        font-size: 26px;
    }

    .markdown-content h2 {
        font-size: 23px;
    }

    .markdown-content h3 {
        font-size: 20px;
    }

    .markdown-content pre {
        padding: 14px 16px;
    }

    .markdown-content th,
    .markdown-content td {
        white-space: normal;
    }
}