/* ===== 全局基础 ===== */
* {
    font-family: "Judou Sans Hans", sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* ===== 文章内容 ===== */
.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin: 16px 0;
    text-align: justify;
}

.article-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0066cc;
    margin: 24px 0 16px 0;
    padding-left: 16px;
    border-left: 4px solid #0066cc;
}

/* ===== 文章元信息 ===== */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 社交按钮（备用） ===== */
.social-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #E8E8E8;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #666;
}

.social-btn:hover {
    border-color: #E60012;
    color: #E60012;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: none;
}

/* ===== 悬浮操作栏按钮 ===== */
.float-bar-btn {
    width: 50px;
    height: 73px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-bar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.float-bar-btn:active {
    transform: translateY(0) scale(0.93);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 悬浮操作栏按钮颜色 */
.fab-like {
    background-color: #0066cc;
    color: #fff;
}

.fab-fav {
    background-color: #ff6600;
    color: #fff;
}

.fab-share {
    background-color: #009900;
    color: #fff;
}

.fab-star {
    background-color: #ffcc00;
    color: #1f2937;
}

/* ===== +1 飘起动画 ===== */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2);
    }
}

.float-plus {
    position: absolute;
    top: -4px;
    right: -8px;
    font-size: 16px;
    font-weight: 800;
    color: #FF2D55;
    text-shadow: 0 0 6px rgba(255, 45, 85, 0.5), 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: floatUp 0.7s ease-out forwards;
}

/* ===== 底部分享图标 ===== */
.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.share-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 分享图标品牌色 */
.share-wechat {
    color: #07C160;
}

.share-weibo {
    color: #E6162D;
}

.share-qq {
    color: #12B7F5;
}

.share-tiktok {
    color: #000000;
}

.share-toutiao {
    color: #ED1C24;
}

/* ===== 焦点图轮播 ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.hero-slider .slide-item.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 24px 20px 16px;
}

.hero-slider .slide-overlay a {
    display: block;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 联动侧栏缩略图 ===== */
.slider-thumb {
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    opacity: 0.7;
}

.slider-thumb.active {
    border-left-color: #E60012;
    opacity: 1;
    background-color: rgba(230, 0, 18, 0.05);
}

.slider-thumb:hover {
    opacity: 1;
}

/* ===== 新闻卡片 ===== */
.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ===== 热门排行 ===== */
.hot-rank .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.hot-rank .rank-num.top3 {
    background: linear-gradient(135deg, #E60012, #ff4444);
    color: #fff;
}

.hot-rank .rank-num.normal {
    background: #ccc;
    color: #fff;
}


/* ===== 垂直数轴（时间线） ===== */
.timeline-list {
    position: relative;
    padding-left: 20px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #E60012, #f0d0d0);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #E60012;
    z-index: 1;
}

.timeline-item:first-child .timeline-dot {
    background: #E60012;
}

/* ===== 分页组件（纯元素/组合/伪类选择器） ===== */
ul.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 24px 0 0;
    list-style: none;
}

ul.pagination > li > a,
ul.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}

ul.pagination > li > a:hover {
    border-color: #E60012;
    color: #E60012;
}

/* 当前页码（非首尾 li 内的 span） */
ul.pagination > li:not(:first-child):not(:last-child) > span {
    background: #E60012;
    border-color: #E60012;
    color: #fff;
    font-weight: 600;
}

/* 禁用的上一页/下一页（首尾 li 内的 span） */
ul.pagination > li:first-child > span,
ul.pagination > li:last-child > span {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 栏目标题 ===== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #E60012;
    margin-bottom: 16px;
}

/* ===== 视频卡片播放按钮 ===== */
.video-card .play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-btn {
    opacity: 1;
}

/* ===== 面包屑区域（列表页） ===== */
.category-header {
    background: #fff;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ===== 文章内容响应式：img / iframe / a 不超出父容器 ===== */
.article-content img,
.article-content iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* iframe 有自定义宽高属性时保持原始比例，无自定义时回退 3:2 */
.article-content iframe {
    aspect-ratio: auto 3 / 2;
}

.article-content a {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

/* ===== 页脚 Logo ===== */
.footer-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 68px;
    object-fit: contain;
}

/* ===== 小屏设备（≤768px）增强样式 ===== */
@media screen and (max-width: 768px) {
    .article-content img,
    .article-content iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}