/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* CSS变量定义 - 减少重复值 */
:root {
    --header-height: 70px;
    --primary-color: #3858f6;
    --primary-gradient: linear-gradient(90deg, #3858f6, #6a8cff);
    --border-color: #ddd;
    --text-color: #333;
    --secondary-text: #9b9b9b;
    --light-text: #9b9b9b;
    --light-gray: #f5f5f5;
    --border-radius: 10px;
    --spacing-md: 15px;
    --transition-speed: 0.3s;
    --shadow-light: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --white: #fff;
    --black: #333;
    --border-light: #eee;
    --border-medium: #ccc;
    --border-dark: #555;
    --bg-dark: #333;
    --bg-light-dark: #555;
    --text-light: #ccc;
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    overflow: hidden;
    transition: height var(--transition-speed) ease;
}

.header.expanded {
    /* 高度保持不变，仅用于标记状态 */
}

.header.expanded-nav {
    height: calc(var(--header-height) + 50px);
}

.header .container {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    position: relative;
    height: 70px;
    padding: 0 15px;
}

.logo {
    margin-right: 40px;
    margin-left: 10px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    height: 70px;
}

.logo a:hover {
    text-decoration: none;
    color: inherit;
}

.logo img {
    width: 115px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.navigation ul {
    display: flex;
    list-style: none;
}

.navigation li {
    margin: 0 15px;
}

.navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color var(--transition-speed);
    position: relative;
}

.navigation a:not(.logo a)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-speed);
}

.navigation a:hover,
.navigation a.active {
    color: var(--primary-color);
}

.navigation a:hover:not(.logo a)::after,
.navigation a.active:not(.logo a)::after {
    width: 100%;
}


/* 搜索框样式 */
.nav-search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.nav-search:hover {
    background-color: var(--light-gray);
}

.nav-search .icon-close {
    display: none;
    position: absolute;
}

.nav-search .icon-search {
    position: absolute;
}

.nav-search.collapsed .icon-search {
    display: none;
}

.nav-search.collapsed .icon-close {
    display: block;
}

/* 确保 Font Awesome 图标大小合适 */
.nav-search .icon-search i,
.nav-search .icon-close i {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.navigation {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* 关键帧动画 */
@keyframes expandSearch {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes collapseSearch {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px);
    }
}

.navbar-search {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    padding: 15px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
}

.navbar-search .search-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header.expanded .navbar-search {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* 搜索框基础样式 - 减少重复代码 */
.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px;
    font-size: 16px;
    outline: none !important;
    background-color: var(--white) !important;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    transition: border-color var(--transition-speed);
}

/* 搜索框通用状态样式 - 合并重复声明 */
.search-input:focus,
.search-input:hover,
.search-input:active,
.search-input:focus-visible,
.search-input:focus-within,
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.search-input:-webkit-autofill:active,
.search-input:disabled,
.search-input[readonly],
.header.expanded .search-input,
.header.expanded .search-input:focus,
.header.expanded .search-input:hover,
.header.expanded .search-input:active,
.header.expanded .search-input:focus-visible,
.header.expanded .search-input:focus-within {
    border: 1px solid var(--border-color) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
}

/* 浏览器自动填充特殊处理 */
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
    -webkit-text-fill-color: var(--text-color);
    transition: background-color 5000s ease-in-out 0s;
}

/* 移除浏览器默认样式 */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration,
.search-input::-ms-clear,
.search-input::-ms-reveal {
    display: none;
}

/* 浏览器特定样式重置 */
.search-input::-moz-focus-inner {
    border: 0 !important;
    outline: 0 !important;
}

/* 全局搜索输入框样式 */
input[type="search"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 轮播图 */
.carousel {
    margin: 15px 0; /* 缩小轮播图和下方的间距 */
}

/* 导航栏扩展时，轮播图上边距增加 */
body.nav-expanded .carousel {
    margin-top: 25px; /* 15px + 10px 稍微增加 */
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 400px;
    box-sizing: border-box;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    color: white;
    padding: 30px 20px 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.carousel-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 轮播图标题最大一行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-content p {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 轮播图简介最大一行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.6;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-container:hover .carousel-control {
    opacity: 1;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 轮播进度指示器 */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.3s linear;
    position: relative;
    overflow: hidden;
}

.carousel-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 资讯导航抽屉效果 - 导航栏向下扩展 */
.info-nav-item {
    position: relative;
}

/* 资讯链接激活状态 - 展开后高亮 */
/* .info-nav-item.active > a {
    color: var(--primary-color);
} */

/* 扩展容器 - 在header内部，相对于header定位 */
.info-dropdown {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 0;
    overflow: hidden;
    transition: height var(--transition-speed) ease;
}

/* 显示状态 */
.info-dropdown.show {
    height: 50px;
}

/* 下拉内容容器 - 与主体同宽 */
.info-dropdown .container {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 15px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

/* 下拉栏目链接 */
.info-dropdown a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color var(--transition-speed);
    border: 1px solid transparent;
    position: relative;
}

/* 每个栏目的蓝色指示线 - 紧贴文字下方 */
.info-dropdown a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-speed);
}

.info-dropdown a:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: transparent;
    transform: none;
}

.info-dropdown a:hover::after {
    width: 100%;
}

/* 资讯列表页特殊样式 - 子菜单默认展开 */
.news-list-page .header {
    height: calc(var(--header-height) + 50px) !important;
}

.news-list-page .info-dropdown {
    height: 50px !important;
    overflow: hidden !important; /* 必须是hidden才能让内部容器滚动生效 */
}

.news-list-page .info-dropdown .container {
    display: flex !important;
    flex-wrap: nowrap !important; /* 禁止换行，强制横向排列 */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    scrollbar-width: thin; /* Firefox细滚动条 */
    gap: 30px !important;
}

/* 美化滚动条 - Webkit浏览器 */
.news-list-page .info-dropdown .container::-webkit-scrollbar {
    height: 4px;
}

.news-list-page .info-dropdown .container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.news-list-page .info-dropdown .container::-webkit-scrollbar-thumb {
    background: rgba(56, 88, 246, 0.3);
    border-radius: 2px;
}

.news-list-page .info-dropdown .container::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 88, 246, 0.5);
}

.news-list-page .info-dropdown.show {
    height: 50px !important;
}

/* 资讯列表页子菜单链接保持不换行 */
.news-list-page .info-dropdown a {
    flex-shrink: 0; /* 防止元素被压缩 */
    white-space: nowrap !important;
}

/* 资讯列表页子菜单active项下划线一直显示 */
.news-list-page .info-dropdown a.active::after {
    width: 100%;
}

/* 响应式适配 */
@media (max-width: 768px) {
    /* 调整导航栏布局 */
    .header .container {
        justify-content: space-between;
    }
    
    .navigation {
        flex-grow: 0;
        gap: 10px;
    }
    
    /* 隐藏桌面导航 */
    .desktop-nav {
        display: none !important;
    }
    
    /* 显示汉堡菜单按钮 */
    .hamburger-menu {
        display: flex !important;
    }
    
    .info-dropdown .container {
        gap: 15px;
        padding: 0 10px;
    }
    
    .info-dropdown a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .info-dropdown {
        height: 0 !important; /* 移动端禁用下拉效果 */
    }
    
    .info-nav-item:hover .info-dropdown {
        height: 0 !important;
    }
    
    /* 资讯列表页移动端也显示子菜单 */
    .news-list-page .header {
        height: calc(var(--header-height) + 50px) !important;
    }
    
    .news-list-page .info-dropdown {
        height: 50px !important;
    }
    
    .news-list-page .info-dropdown .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 20px !important; /* 移动端减小间距 */
    }
    
    .news-list-page .info-dropdown a {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* 汉堡菜单按钮 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* 移动端侧边栏 */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.mobile-sidebar.active {
    display: block;
}

.mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
    padding-top: 20px;
}

/* 菜单顶部装饰区域 */
.mobile-menu::before {
    content: 'MENU';
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-color);
    padding: 15px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-menu ul {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.mobile-menu > ul > li {
    border-bottom: none;
    margin-bottom: 10px;
}

.mobile-menu > ul > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 8px;
    background: var(--white);
}

.mobile-menu > ul > li > a:hover {
    background: linear-gradient(90deg, rgba(56, 88, 246, 0.05) 0%, rgba(56, 88, 246, 0.1) 100%);
    color: var(--primary-color);
    padding-left: 25px;
}

/* 移动端资讯子菜单 */
.mobile-info-item > .mobile-info-toggle {
    display: block;
    position: relative;
    text-align: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.mobile-info-item > .mobile-info-toggle:hover {
    background: linear-gradient(90deg, rgba(56, 88, 246, 0.05) 0%, rgba(56, 88, 246, 0.1) 100%);
    color: var(--primary-color);
    padding-left: 25px;
}

.mobile-info-item.active > .mobile-info-toggle {
    color: var(--primary-color);
}

.mobile-info-toggle i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-info-item.active .mobile-info-toggle i {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

.mobile-info-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
}

.mobile-info-item.active .mobile-info-submenu {
    max-height: 500px;
    padding: 10px;
    opacity: 1;
    visibility: visible;
}

.mobile-info-submenu li {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-info-item.active .mobile-info-submenu li {
    margin-bottom: 6px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-info-submenu li a {
    display: block;
    padding: 0;
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.mobile-info-item.active .mobile-info-submenu li a {
    padding: 10px 20px;
}

.mobile-info-submenu li a:hover {
    background: rgba(56, 88, 246, 0.08);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* 确保下拉内容在主体容器宽度内 */
@media (min-width: 1200px) {
    .info-dropdown .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* 搜索关键词高亮样式 */
.highlight {
    background-color: yellow;
    color: #333;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* 搜索结果页特有样式 */
.search-keyword {
    color: var(--primary-color);
    font-weight: bold;
}

.result-count {
    color: var(--primary-color);
    font-weight: bold;
}

/* 主体内容 */
.main-content {
    margin-top: 40px; /* 缩小轮播图和下方内容的间距 */
    margin-bottom: 30px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-bottom: 12px;
        font-size: 13px;
    }
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 新闻资讯流 */
.news-feed {
    flex: 3;
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    flex: 1; /* 占用可用空间 */
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 16/9; /* 固定16:9宽高比 */
    max-width: 300px; /* 限制最大宽度 */
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.news-content {
    flex: 2;
    position: relative;
}

.news-content h3 {
    margin-bottom: 8px; /* 缩小标题和摘要的间距 */
}

.news-content h3 a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: normal;
    transition: color var(--transition-speed);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 默认标题最大两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    padding-left: 24px;
}

.news-content h3 a::before {
    content: "\f1ea";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    opacity: 0.8;
    transition: transform var(--transition-speed) ease, color var(--transition-speed);
}

.news-content h3 a:hover::before {
    transform: translateY(-50%) rotate(360deg);
    color: #6a8cff;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 简介最大一行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px; /* 缩小简介字号 */
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), #5b7cff);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.news-category:hover::before {
    left: 100%;
}

.news-category:hover {
    background: linear-gradient(135deg, #5b7cff, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(56, 88, 246, 0.3);
}

.publish-time {
    color: var(--secondary-text);
    font-size: 12px;
}

/* 右侧边栏 */
.sidebar {
    flex: 1;
}

.flash-news {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light);
}

.flash-news h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    text-align: left;
}

.flash-news h2::before {
    content: '\f0e7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--text-color);
    margin-right: 8px;
    font-size: 18px;
}

.more-link {
    font-size: 12px;
    text-decoration: none;
    color: var(--secondary-text);
    position: relative;
    transition: color var(--transition-speed);
    margin-left: auto;
}

.more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gradient);
    transition: width var(--transition-speed);
}

.more-link:hover {
    color: #6a8cff;
}

.more-link:hover::after {
    width: 100%;
}

.flash-news-container {
    height: 500px;
    overflow: hidden;
    /* position: relative removed to avoid any positioning issues */
}

.flash-news-list {
    list-style: none;
    animation: scroll-up 30s linear infinite;
}

.flash-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
}

.flash-item a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: color var(--transition-speed);
    display: block;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    padding-left: 18px;
}

.flash-item a::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    opacity: 0.7;
}

.flash-item a:hover {
    color: var(--primary-color);
}

.time {
    color: var(--secondary-text);
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: right;
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* 快讯列表页完整样式 */
.flash-news-full h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.search-news-full h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.flash-item-full {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.flash-item-full:hover {
    background-color: rgba(56, 88, 246, 0.02);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.flash-item-full h3 {
    margin-bottom: 10px;
}

.flash-item-full h3 a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: normal;
    transition: color var(--transition-speed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-item-full h3 a:hover {
    color: var(--primary-color);
}

.flash-item-full p {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-item-full .publish-time {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(56, 88, 246, 0.1), rgba(106, 140, 255, 0.1));
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(56, 88, 246, 0.2);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.flash-item-full .publish-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.flash-item-full:hover .publish-time {
    background: linear-gradient(135deg, rgba(56, 88, 246, 0.15), rgba(106, 140, 255, 0.15));
    border-color: rgba(56, 88, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(56, 88, 246, 0.15);
}

.flash-item-full:hover .publish-time::before {
    left: 100%;
}

/* 快讯标签筛选样式 */
.flash-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.tag-item {
    padding: 8px 16px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    outline: none;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 88, 246, 0.2);
}

.tag-item.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(56, 88, 246, 0.3);
}

.tag-item:focus {
    outline: 2px solid rgba(56, 88, 246, 0.5);
    outline-offset: 2px;
}

/* 文章内容页样式 */
.article-content {
    flex: 3;
}

.article-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-color);
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    color: var(--secondary-text);
    font-size: 14px;
    padding: 12px 0 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    align-items: center;
}

.article-meta span {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.article-meta span i {
    font-size: 14px;
    flex-shrink: 0;
}

.article-meta .publish-time {
    position: static;
    bottom: auto;
    right: auto;
}

/* 字体大小控制器 */
.font-size-controller {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
    margin-left: auto;
}

.font-size-label {
    color: var(--secondary-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-size-label i {
    font-size: 14px;
}

.font-size-options {
    display: flex;
    gap: 10px;
}

.font-size-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.font-size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.font-size-btn:active {
    transform: scale(0.95);
}

.font-size-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    transition: font-size 0.3s ease;
}

/* 字体大小变化类 */
.article-body.font-small {
    font-size: 14px;
}

.article-body.font-medium {
    font-size: 16px;
}

.article-body.font-large {
    font-size: 18px;
}

.article-body p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-body strong {
    color: #333;
    font-weight: 600;
}

.article-body em {
    color: #666;
    font-style: italic;
}

.article-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

/* 图片展示效果优化 */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 25px auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-body img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.article-body img + p {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.article-image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.article-image-wrapper img {
    max-width: 100%;
    height: auto;
}

/* 相关推荐 - 猜你喜欢美化 */
.related-articles {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

/* 添加装饰性背景图案 */
.related-articles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3858f6, #6a8cff, #3858f6);
    border-radius: 15px 15px 0 0;
}

.related-articles h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 25px;
}

/* 标题前的装饰图标 - 使用Font Awesome图标 */
.related-articles h2::before {
    content: "\f005"; /* Font Awesome star图标 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #3858f6;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 25px;
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.related-list li:last-child {
    border-bottom: none;
}

/* 列表项前的装饰符号 */
.related-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #3858f6;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.related-list li:hover::before {
    color: #6a8cff;
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

.related-list a {
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.related-list a:hover {
    color: #3858f6;
    transform: translateX(5px);
}

/* 鼠标悬停效果 */
.related-list li:hover {
    background-color: rgba(56, 88, 246, 0.03);
    padding-left: 30px;
    border-radius: 8px;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 列表项交错动画延迟 */
.related-list li:nth-child(1) { animation-delay: 0.1s; }
.related-list li:nth-child(2) { animation-delay: 0.2s; }
.related-list li:nth-child(3) { animation-delay: 0.3s; }
.related-list li:nth-child(4) { animation-delay: 0.4s; }
.related-list li:nth-child(5) { animation-delay: 0.5s; }

/* 底部 */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 15px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.footer-section {
    flex: 1;
    padding: 0 15px;
}

.footer-section h3 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-section li {
    margin-right: 15px;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
    position: relative;
    padding-left: 18px;
}

.footer-section a::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 12px;
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    font-size: 13px;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-dark);
    color: var(--text-light);
    font-size: 12px;
}

.beian {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.beian a {
    color: inherit;
    text-decoration: none;
    transition: none;
}

.beian a:hover {
    color: inherit;
    text-decoration: none;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(56, 88, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: linear-gradient(90deg, #2a48e0, #5a7cff);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(56, 88, 246, 0.4);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    /* 隐藏侧边栏（快讯） */
    .sidebar {
        display: none;
    }
    
    /* 新闻流占据全宽 */
    .news-feed {
        width: 100%;
    }
    
    /* 保持新闻项水平布局，但调整图片宽度 */
    .news-item {
        /* 移除 flex-direction: column; 保持水平布局 */
        flex-direction: row;
    }
    
    .news-image {
        margin-right: 15px;
        margin-bottom: 0;
        width: auto;
        flex: 0 0 40%; /* 固定宽度比例 */
        max-width: 40%; /* 限制最大宽度 */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section ul {
        display: flex;
    }
    
    /* 轮播图高度调整 */
    .carousel-container,
    .carousel-item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .navigation {
        order: 2;
        margin-left: auto;
    }
    
    .search {
        order: 3;
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        position: static;
        height: auto;
        padding: 0;
    }
    
    .search-btn {
        position: static;
        transform: none;
        margin-left: auto;
    }
    
    .search-container {
        height: 0;
        overflow: hidden;
        transition: height 0.6s ease;
        background: white;
        padding: 0;
    }
    
    .search-container.expanded {
        height: 60px;
    }
    
    .carousel-content h2 {
        font-size: 20px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .news-content h3 a {
        font-size: 18px;
    }
    
    .flash-news-container {
        height: 400px;
    }
    
    .footer {
        padding: 10px 0;
        margin-top: 20px;
    }
    
    /* 轮播图高度调整 */
    .carousel-container,
    .carousel-item {
        height: 250px;
    }
    
    /* 轮播控制按钮调整 */
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-control.prev {
        left: 15px;
    }
    
    .carousel-control.next {
        right: 15px;
    }
    
    /* 文章内容页移动端优化 */
    .article-detail {
        padding: 12px 0;
    }
    
    .article-title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 8px 12px;
        padding: 8px 0 12px 0;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .article-meta span {
        gap: 4px;
    }
    
    .article-meta span i {
        font-size: 12px;
    }
    
    /* 移动端字体大小控制器 */
    .font-size-controller {
        padding: 0;
        margin-bottom: 0;
        gap: 8px;
        margin-left: auto;
    }
    
    .font-size-label {
        font-size: 12px;
    }
    
    .font-size-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .article-body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* 移动端字体大小变化类 */
    .article-body.font-small {
        font-size: 13px;
    }

    .article-body.font-medium {
        font-size: 15px;
    }

    .article-body.font-large {
        font-size: 17px;
    }
    
    .article-body p {
        margin-bottom: 20px;
    }
    
    .article-body img {
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin: 20px auto;
    }
    
    .article-body ul,
    .article-body ol {
        margin-left: 15px;
        margin-bottom: 20px;
    }
    
    .article-body li {
        margin-bottom: 8px;
    }
    
    .related-articles {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .related-articles h2 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-left: 20px;
    }
    
    .related-articles h2::before {
        font-size: 18px;
    }
    
    .related-list li {
        padding: 10px 0;
        padding-left: 20px;
    }
    
    .related-list a {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .news-item {
        padding: 18px 15px; /* 增加上下内边距 */
        margin-bottom: 20px; /* 增加项之间的间距 */
        min-height: 140px; /* 设置最小高度 */
    }
    
    .news-image {
        min-height: 100px; /* 确保图片有足够高度 */
    }
    
    .news-content {
        display: flex;
        flex-direction: column;
        padding-bottom: 0; /* 移除底部内边距，因为meta现在是正常流 */
    }
    
    .news-content h3 {
        margin-bottom: 10px; /* 增加标题下方间距 */
    }
    
    .news-content h3 a {
        font-size: 16px;
        -webkit-line-clamp: 2; /* 改为2行，避免标题被截断太多 */
        line-height: 1.4; /* 增加行高 */
    }
    
    .news-content p {
        margin-bottom: 10px; /* 增加摘要下方间距 */
        font-size: 13px;
        line-height: 1.5;
    }
    
    .news-meta {
        position: static; /* 取消绝对定位 */
        margin-top: 0; /* 重置margin */
    }
    
    .flash-news-container {
        height: 300px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .footer-section {
        padding: 0 5px;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
.footer-section p,
.footer-section a {
    font-size: 13px;
}
    
    /* 在最小宽度下隐藏快讯 */
    .sidebar {
        display: none;
    }
    
    .news-feed {
        width: 100%;
    }
    
    /* 轮播图高度调整 */
    .carousel-container,
    .carousel-item {
        height: 200px;
    }
    
    /* 轮播控制按钮调整 */
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }

    /* 文章元信息在移动端调整 - 576px */
    .article-meta {
        gap: 10px 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .article-meta span i {
        font-size: 13px;
    }
}

/* 超小屏幕优化 (480px以下) */
@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-body {
        font-size: 14px;
    }
    
    .article-body p {
        margin-bottom: 18px;
    }
    
    .article-body img {
        margin: 15px auto;
    }
    
    /* 超小屏幕：作者和时间一行，字号控制器单独一行 */
    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    
    .article-meta span {
        gap: 4px;
    }
    
    .article-meta span i {
        font-size: 12px;
    }
    
    /* 字号控制器独占一行 */
    .font-size-controller {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border-light);
    }
    
    .related-articles {
        padding: 15px 0;
        margin-top: 25px;
    }
    
    .related-articles h2 {
        font-size: 16px;
        padding-left: 18px;
        margin-bottom: 12px;
    }
    
    .related-articles h2::before {
        font-size: 16px;
    }
    
    .related-list li {
        padding: 8px 0;
        padding-left: 18px;
    }
    
    .related-list a {
        font-size: 13px;
    }
}

/* 桌面端粘性侧边栏 */
@media (min-width: 993px) {
    .sidebar {
        position: sticky !important;
        top: 90px;
        align-self: flex-start;
        height: fit-content;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        transition: top var(--transition-speed) ease;
    }
    
    /* 导航栏扩展时，侧边栏吸顶位置调整 */
    body.nav-expanded .sidebar {
        top: 140px; /* 90px + 50px */
    }
    
    /* 资讯列表页侧边栏吸顶位置调整 - 因为子菜单默认显示 */
    .news-list-page .sidebar {
        top: 140px !important; /* 70px header + 50px 子菜单 + 20px 间距 */
    }
    
    /* 快讯列表页侧边栏不使用sticky定位 */
    .flash-list-page .sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

/* 最新资讯模块样式 - 仅针对快讯列表页 */
.flash-list-page .latest-news-module {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.flash-list-page .latest-news-module h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
}

.flash-list-page .latest-news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-light);
    transition: all var(--transition-speed) ease;
}

.flash-list-page .latest-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.flash-list-page .latest-news-item:hover {
    transform: translateX(3px);
}

.flash-list-page .latest-news-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9比例 */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
}

.flash-list-page .latest-news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.flash-list-page .latest-news-item:hover .latest-news-image img {
    transform: scale(1.05);
}

.flash-list-page .latest-news-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-list-page .latest-news-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

.flash-list-page .latest-news-time {
    color: var(--secondary-text);
    font-size: 12px;
    text-align: right;
    display: block;
}

/* 响应式设计 - 只在桌面端显示最新资讯模块 */
@media (max-width: 992px) {
    .flash-list-page .latest-news-sidebar {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .flash-list-page .latest-news-sidebar {
        display: block;
        flex: 1;
    }
    
    .flash-list-page .flash-news-full {
        flex: 3;
    }

    .flash-list-page .search-news-full {
        flex: 3;
    }
}

/* 快讯列表页无限滚动加载状态样式 */
.flash-loading-status,
.flash-no-more {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 88, 246, 0.05), rgba(106, 140, 255, 0.05));
    color: var(--light-text);
    font-size: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    border: 1px solid rgba(56, 88, 246, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari 9+, iOS 9+ */
    box-shadow: 0 8px 32px rgba(56, 88, 246, 0.08);
}

.flash-loading-status {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(56, 88, 246, 0.08), rgba(106, 140, 255, 0.08));
    border: 1px solid rgba(56, 88, 246, 0.15);
}

.flash-no-more {
    color: var(--secondary-text);
    border: 1px dashed rgba(56, 88, 246, 0.2);
    background: linear-gradient(135deg, rgba(56, 88, 246, 0.03), rgba(106, 140, 255, 0.03));
}

.flash-loading-status i,
.flash-no-more i {
    margin-right: 12px;
    font-size: 20px;
    vertical-align: middle;
}

/* 精美加载动画 */
.flash-loading-status i.fa-spinner {
    animation: spin 1.2s linear infinite, pulse 2s ease-in-out infinite;
    color: var(--primary-color);
    font-size: 24px;
    display: inline-block;
    position: relative;
}

.flash-loading-status i.fa-spinner::before {
    content: "\f110";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.flash-loading-status i.fa-spinner::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 88, 246, 0.2) 0%, transparent 70%);
    animation: pulse-ring 2s ease-in-out infinite;
    z-index: -1;
}

.flash-no-more i.fa-check-circle {
    color: #4CAF50;
    animation: bounceIn 0.6s ease-out;
    font-size: 24px;
}

/* 加载进度指示器 */
.flash-loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(56, 88, 246, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.flash-loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3858f6, #6a8cff);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flash-loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* 新快讯项入场动画 */
.flash-item-full.animate-in {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* 动画关键帧定义 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
