.floating-action-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
                display: flex;
                flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-action-item {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.floating-action-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-action-item i {
    font-size: 20px;
                color: #333;
            }
            
.tooltip {
    position: absolute;
    right: 60px;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-action-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.floating-action-item.active {
    background-color: #e74c3c;
}

.floating-action-item.active i {
    color: #fff;
}

/* 底部样式 */
.footer {
    background-color: rgb(245, 245, 245);
    padding: 30px 0 20px;
    color: #000000;
    border-top: 1px solid #eee;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links-group {
    margin-bottom: 10px;
}

.footer-links-title {
    font-size: 16px;
    font-family: '粗体';
    font-weight: 600;
    margin-bottom: 10px;
    color: #777777;
}

.footer-links-subtitle {
    font-size: 16px;
    font-family: '粗体';
    font-weight: 600;
    margin-bottom: 8px;
    color: #9b9b9b;
}

.footer-links-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.footer-links-content a {
    font-size: 14px;
    color: #161616;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-content a:hover {
    color: #c00;
}

.footer-divider {
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-nav a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #c00;
}

.footer-info {
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-info p {
    margin: 5px 0;
}

@media (min-width: 768px) {
    .footer-links-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .footer-links-group {
        flex: 0 0 48%;
    }
}

@media (min-width: 992px) {
    .footer-links-group {
        flex: 0 0 23%;
    }
}
/* 布局修复样式 */ 
.content-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-content {
    flex: 0 0 70%;
}

.sidebar {
    flex: 0 0 calc(30% - 20px);
}

/* 确保侧边栏每个卡片都有统一边距和样式 */
.sidebar .news-card,
.sidebar .sidebar-card {
    border-radius: 0 !important;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background-color: #fff;
}

/* 确保即时新闻和侧边栏宽度一致的布局 */
.headline-carousel {
    flex: 0 0 72.4%;
}

.headline-realtime {
    flex: 0 0 calc(30% - 20px);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .content-section {
        flex-direction: column;
    }
    
    .main-content,
    .sidebar,
    .headline-carousel,
    .headline-realtime {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .headline-realtime {
        margin-top: 20px;
    }
}

.story-link {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.story-time {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px;
}

.news-tabs {
    display: flex;
    gap: 15px;
}

.news-tab {
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.news-tab.active {
    color: #c00;
    font-weight: bold;
}

.news-tab.active:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #c00;
}

.realtime-list-container {
    position: relative;
}

.realtime-list {
    transition: opacity 0.3s ease;
}

.journal-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.journal-pair {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.journal-item {
    flex: 0 0 calc(50% - 10px);
    text-decoration: none;
    text-align: center;
    display: block;
    width: 150px;  /* 固定宽度 */
}

.journal-item img {
    width: 150px;     /* 固定宽度 */
    height: 200px;    /* 固定高度 */
    object-fit: cover;  /* 保持图片比例并填充容器 */
    border-radius: 4px;
}

.journal-pair {
    display: flex;
    justify-content: flex-start;  /* 改为 space-around 以确保两个项目之间有均匀间距 */
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.journal-title {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    width: 150px;     /* 限制标题宽度与图片一致 */
    overflow: hidden;  /* 防止标题过长 */
    text-overflow: ellipsis; /* 文字过长显示省略号 */
    white-space: nowrap;  /* 标题单行显示 */
}

/* 专题广告横幅（xi-visit）响应式修复 */
.xi-visit-col .xi-visit-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.xi-visit-link {
    display: block;
}
.xi-visit-img {
    display: block;
    width: 100%;
    height: auto;
}
.xi-visit-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .xi-visit-row {
        display: block !important;
    }
    .xi-visit-col {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .xi-visit-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}