.article-content {
    flex: 1;
}

#title {
    text-align: center;
    font-size: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 127, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(42, 127, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 127, 255, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: url('../images/listbg.png') no-repeat center center fixed;
    background-size: cover;
    color: #334155;
    animation: fadeIn 0.6s ease-out;
}

.blue-gradient {
    background: linear-gradient(135deg, #2a7fff 0%, #1e3a8a 100%);
}

.news-item:hover .news-title {
    color: #2a7fff;
    transition: all 0.3s ease;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 127, 255, 0.5), transparent);
}

.divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2a7fff;
    box-shadow: 0 0 0 4px rgba(42, 127, 255, 0.2);
}

.tag {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.section-title {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, #2a7fff, #1e3a8a);
    border-radius: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #2a7fff, transparent);
    border-radius: 3px;
}

.section-title .icon-news {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 1.5em;
    color: #1976D2;
    vertical-align: middle;
}

.section-title h2 {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.shine-text {
    background: linear-gradient(90deg, #2a7fff, #1e3a8a, #2a7fff);
    background-size: 200% auto;
    font-size: 40px;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
}

/* 新增样式 */
.title-divider {
    position: relative;
    height: 1px;
    margin: 1.5rem 0;
    background: linear-gradient(90deg, rgba(42, 127, 255, 0.1), rgba(42, 127, 255, 0.5), rgba(42, 127, 255, 0.1));
}

.title-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(42, 127, 255, 0.2), transparent);
}

/* 侧边栏新样式 */
.hot-news-item {
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(42, 127, 255, 0.2);
    transition: all 0.3s ease;
}

.hot-news-item:hover {
    background-color: rgba(42, 127, 255, 0.05);
    transform: translateX(5px);
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-item .flex.items-start {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-news-item .rank-number {
    flex-shrink: 0;
    margin-right: 10px;
}

.hot-news-item h4 {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 12px;
    color: #fff;
    background: #b2bec3;
}

.rank-1 {
    background-color: #e74c3c !important;
}

.rank-2 {
    background-color: #f39c12 !important;
}

.rank-3 {
    background-color: #27ae60 !important;
}

.rank-other {
    background-color: #b2bec3 !important;
    color: #fff !important;
}

/* 保证新闻和相关文章前的图标正常显示 */
.icon-news,
.icon-fire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.5em;
    color: #1976D2;
}

/* 正文内容样式 */
.article-content {
    background: transparent;
    padding: 0;
}

.article-text {
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.article-text p {
    margin-bottom: 1.5rem;
}

/* 作者信息样式 */
.author-info {
    padding: 0.5rem 0 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(42, 127, 255, 0.3);
}

.author-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: 5px 0 0 0;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: #64748b;
}

/* 侧边栏标题样式 */
.sidebar-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2a7fff, #1e3a8a);
    border-radius: 3px;
}

.sidebar-title .icon-fire {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    font-size: 1.2em;
    color: #e74c3c;
    vertical-align: middle;
}

/* 内容卡片样式 */
.content-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 新增样式：文章标题居中 */
.article-header {
    text-align: center;
    padding: 0;
    margin-bottom: 10px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.author-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: linear-gradient(90deg,
            rgba(42, 127, 255, 0) 0%,
            rgba(42, 127, 255, 0.8) 50%,
            rgba(42, 127, 255, 0) 100%);
    position: relative;
}

.author-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -3px;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a7fff;
    box-shadow: 0 0 0 3px rgba(42, 127, 255, 0.2);
}

/* 侧边栏内容框样式 */
.sidebar-box {
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 2rem;
    padding: 0;
}

/* 文章页主内容与相关文章并排显示，宽度80%居中美化 */
.article-layout {
    width: 80vw;
    max-width: 1300px;
    margin: 40px auto 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.article-main {
    flex: 1 1 0%;
    border-radius: 14px;
    box-shadow: 0 2px 16px 0 rgba(11, 38, 143, 0.07);
    padding: 40px 20px 32px 20px;
    min-width: 0;
    width: 950px;
}

.article-sidebar {
    width: 380px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.5);
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(11,38,143,0.07);
    padding: 28px 22px 22px 22px;
    margin-top: 0;
}

@media (max-width: 1200px) {
    .article-layout {
        flex-direction: column;
        width: 98vw;
        gap: 0;
    }

    .article-sidebar {
        width: 100%;
        margin-top: 32px;
        border-radius: 12px;
        box-shadow: 0 2px 12px 0 rgba(11,38,143,0.07);
        padding: 18px 8px 8px 8px;
    }

    .article-main {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .article-main,
    .article-sidebar {
        padding: 10px 2vw !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .article-layout {
        width: 100vw;
        gap: 0;
    }

    .article-sidebar {
        width: 100vw;
        margin-top: 0;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .rank-number {
        width: 22px;
        height: 22px;
        font-size: 0.95rem;
    }

    .icon-news,
    .icon-fire {
        font-size: 1.1em;
        margin-right: 6px;
    }
}