/* 全局样式 */
:root {
    --primary-color: #0052d9;
    --secondary-color: #e1f0ff;
    --dark-blue: #003f7e;
    --light-blue: #e9f2ff;
    --accent-red: #e5352a;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #d1d1d1;
    --bg-light: #f5f5f5;
}

body {
    font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
    color: var(--text-dark);
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    min-width: 1200px;
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 左右悬浮区 */
.floating-left, .floating-right {
    position: fixed;
    top: 200px;
    z-index: 1000;
    display: none; /* 暂时隐藏 */
}

.floating-left {
    left: 10px;
}

.floating-right {
    right: 10px;
}

.floating-box {
    position: relative;
    width: 150px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 顶部banner */
.header-banner {
    height: 180px;
    position: relative;
    color: white;
    overflow: hidden;
    background: url('img/banner-bg.jpg') no-repeat center 35%;
    background-size: cover;
}

/* 移除之前的伪元素 */
.header-banner::before,
.header-banner::after {
    display: none;
}

.banner-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

/* 左侧logo和标题区域 */
.logo-title-container {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 82, 217, 0.95), rgba(0, 82, 217, 0.7) 70%, rgba(0, 82, 217, 0) 100%);
    padding-left: 20px;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 34px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    letter-spacing: 2px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}

.sub-title {
    font-size: 16px;
    margin: 5px 0 0;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

/* 右侧口号区域 */
.slogan-container {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 82, 217, 0.95), rgba(0, 82, 217, 0.7) 70%, rgba(0, 82, 217, 0) 100%);
    padding-right: 20px;
}

.slogan {
    text-align: right;
    font-size: 24px; /* 增大字体 */
    line-height: 1.5;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.3); /* 增强立体感 */
    color: #ffffff;
    margin-left: auto;
}

.slogan p {
    margin: 0;
    line-height: 1.5;
    font-weight: bold;
    color: #ffffff;
}

.red-text {
    color: #ff3333;
    font-weight: bolder;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 主导航栏 */
.main-nav {
    background: linear-gradient(to bottom, #0052d9 0%, #003f7e 100%);
    height: 40px;
    border-bottom: 2px solid var(--accent-red);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.nav-list {
    display: flex;
    height: 100%;
}

.nav-item {
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.nav-item a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item a i {
    margin-right: 5px;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--accent-red);
}

.nav-item:hover::after, .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

/* 路径导航 */
.breadcrumb-container {
    background-color: #f0f0f0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: #333;
    height: 26px;
    align-items: center;
}

.breadcrumb-home i {
    color: var(--primary-color);
}

.announcement {
    width: 80%;
    color: var(--accent-red);
    font-weight: bold;
    padding-left: 30px;
    height: 26px;
    line-height: 26px;
    overflow: hidden;
    position: relative;
}

.announcement i {
    color: var(--primary-color);
    margin-right: 5px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.date-info {
    padding-right: 10px;
    white-space: nowrap;
    line-height: 26px;
}

/* 每日警情滚动区域 */
.daily-alerts {
    width: 80%;
    color: var(--accent-red);
    font-weight: bold;
    padding-left: 30px;
    height: 26px;
    line-height: 26px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
}

.daily-alerts i {
    color: var(--primary-color);
    margin-right: 5px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.alert-title {
    color: var(--primary-color);
    margin-right: 5px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.daily-alerts marquee {
    flex: 1;
    z-index: 0;
}

/* 主体内容区 - 新布局 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

/* 顶部内容区域 - 图片新闻和选项卡 */
.top-content {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
    padding: 0 10px;
    height: 400px; /* 固定高度 */
}

/* 图片新闻栏目 */
.photo-news {
    border: 1px solid #ddd;
    background: #fff;
    margin: 0 10px 15px;
    flex: 1;
    height: 100%; /* 使用所有可用高度 */
    display: flex;
    flex-direction: column;
}

.photo-slideshow {
    position: relative;
    padding: 10px;
    display: flex;
    flex: 1; /* 使用所有可用空间 */
}

.photo-container {
    position: relative;
    height: 360px; /* 进一步增大高度 */
    overflow: hidden;
    margin-bottom: 0; /* 移除下边距 */
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
}

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

.photo-item.active {
    opacity: 1;
    display: block;
    z-index: 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 14px;
}

.photo-thumbs {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    gap: 5px;
    width: 80px;
}

.photo-thumb {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.photo-thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.photo-thumb.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-nav {
    display: none; /* 隐藏导航点 */
}

/* 选项卡栏目 */
.tabs-section {
    border: 1px solid #ddd;
    background: #fff;
    margin: 0 10px 15px;
    flex: 1;
    height: 100%; /* 使用所有可用高度 */
    display: flex;
    flex-direction: column;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 0;
    width: 100%;
}

.tab-nav {
    display: flex;
    width: 100%;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-right: 1px solid #ddd;
    color: #333;
    flex: 1;
    border-radius: 5px 5px 0 0;
    margin-top: 2px;
    margin-left: 2px;
}

.tab-item:hover {
    background-color: var(--accent-red);
    color: white;
}

.tab-item.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.tabs-header .more-link {
    color: #333;
    margin-right: 10px;
    padding: 0 15px;
    white-space: nowrap;
}

.tabs-header .more-link:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 10px;
}

.tab-content.active {
    display: block;
}

.tab-headline {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.tab-headline-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-red); /* 改为红色 */
    display: block;
    margin-bottom: 5px;
}

.tab-headline-title:hover {
    color: var(--accent-red) !important; /* 鼠标经过时保持红色 */
    text-decoration: underline;
}

.tab-headline-subtitle {
    color: #666;
    font-size: 13px;
    margin: 5px 0;
    line-height: 1.5;
}

/* 三栏内容区域 */
.three-column-content {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.duty-today {
    flex: 0.9;  /* 减小今日值班栏目的宽度 */
    border: 1px solid #ddd;
    width: 250px;
}

.office-news, .meeting-notices {
    flex: 1.55;  /* 增加两侧栏目的宽度 */
    border: 1px solid #ddd;
}

/* 内容列布局 */
.content-columns {
    display: flex;
    gap: 15px;
    padding: 0 10px;
}

.left-sidebar {
    width: 250px;
}

.right-sidebar {
    width: 250px;
}

.main-content {
    flex: 1;
}

/* 区(行业)动态和公文专栏布局 */
.content-columns.equal-width .main-content,
.content-columns.equal-width .right-sidebar {
    flex: 1;
    width: auto;
}

/* 侧边栏通用样式 */
.sidebar-box {
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 15px;
}

.sidebar-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 8px 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.sidebar-content {
    padding: 10px;
}

.sidebar-content .news-item {
    border-bottom: 1px dashed #ddd;
    padding: 8px 0;
}

.sidebar-content .news-item:last-child {
    border-bottom: none;
}

.nav-category {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.nav-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.link-item {
    padding: 3px 0 3px 15px;
    position: relative;
}

.link-item:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 值班信息特殊样式 */
.duty-content {
    padding: 5px 10px;
    overflow: visible;
}

/* 值班信息标题特殊样式 - 使用特定类名 */
.sidebar-box .sidebar-header.duty-header {
    background: linear-gradient(to bottom, #5a9de5 0%, #3a8ae0 100%);
    border-bottom: 2px solid var(--accent-red);
}

.sidebar-box .sidebar-header.duty-header .sidebar-title {
    color: #ffffff;
}

.sidebar-content {
    padding: 5px 10px;
}

.notice-item {
    border-bottom: 1px dashed #ddd;
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.notice-item .news-dot {
    color: var(--primary-color);
    margin-right: 5px;
    flex-shrink: 0;
    padding-top: 2px;
}

.notice-item .news-date {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
    flex-shrink: 0;
}

/* 值班信息表格 */
.duty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.duty-table tr {
    border-bottom: 1px solid #eee;
}

.duty-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.duty-table tr:hover {
    background-color: #f0f0f0;
}

.duty-table td {
    padding: 3px 4px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duty-table td:first-child {
    width: 45%;
    color: #333;
    font-weight: bold;
    font-size: 13px;
}

.duty-position {
    color: #0066cc;
}

.duty-table td:last-child {
    width: 55%;
    color: #666;
}

/* 应用系统 */
.system-item {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 5px 10px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    text-align: center;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.system-item:hover {
    background: linear-gradient(to bottom, #4b96e5 0%, #3a7fd5 100%);
    color: #fff;
}

/* 在线服务 */
.service-item {
    background: linear-gradient(to bottom, #4b96e5 0%, #3a7fd5 100%);
    color: #fff;
    padding: 8px 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

.service-report {
    background: linear-gradient(to bottom, #e55252 0%, #d43a3a 100%);
}

/* 综合业务平台 */
.platform-box {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.platform-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.platform-header span {
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.platform-header span i {
    margin-right: 5px;
}

.platform-login {
    background: #f5f5f5;
    padding: 10px;
}

.login-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.login-row label {
    width: 45px;
    font-size: 13px;
    color: #333;
    flex-shrink: 0;
}

.account-input, .password-input {
    flex: 1;
    height: 24px;
    padding: 0 5px;
    border: 1px solid #ccc;
    font-size: 12px;
}

.login-btn-row {
    justify-content: center;
    gap: 15px;
}

.login-btn {
    height: 26px;
    padding: 0 15px;
    background: linear-gradient(to bottom, #0052d9 0%, #003f7e 100%);
    color: #fff;
    border: none;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    min-width: 60px;
}

.reset-btn {
    height: 26px;
    padding: 0 15px;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    color: #333;
    border: 1px solid #ccc;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    min-width: 60px;
}

.reset-btn:hover {
    background: linear-gradient(to bottom, #e5e5e5 0%, #d5d5d5 100%);
}

/* 搜索区域 */
.search-area {
    display: flex;
    padding: 10px;
    background: #f5f5f5;
    align-items: center;
}

.keyword-input {
    flex: 1;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #ccc;
    min-width: 0;
}

.search-btn {
    width: 50px;
    height: 28px;
    background: linear-gradient(to bottom, #4b96e5 0%, #3a7fd5 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 新闻头条 */
.news-headline-box {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.news-headline-title {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.title-text {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    display: flex;
    white-space: nowrap;
}

.title-text i {
    margin-right: 5px;
}

.news-headline-content {
    padding: 10px;
}

/* 新闻头条两栏布局 */
.headline-layout {
    display: flex;
    gap: 15px;
}

.headline-left {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.headline-right {
    flex: 1;
}

.headline-image {
    position: relative;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: pointer;
    height: 300px;
    overflow: hidden;
}

.headline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.headline-img.active {
    display: block;
}

.headline-caption {
    font-size: 14px;
    color: #333;
    text-align: center;
    padding: 5px 0;
    line-height: 1.4;
}

.headline-caption a {
    color: #333;
    text-decoration: none;
}

.headline-caption a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.image-nav {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
}

.nav-dot {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    cursor: pointer;
    font-size: 12px;
}

.nav-dot.active {
    background: var(--accent-red);
}

.headline-main-content {
    margin-bottom: 5px;
}

.headline-main-content a {
    text-decoration: none;
    display: block;
}

.headline-main-content a:hover .main-headline {
    color: var(--accent-red);
    text-decoration: underline;
}

.headline-main-content a:hover .headline-subtitle p {
    color: var(--accent-red);
    text-decoration: none;
}

.main-headline {
    font-size: 16px;
    color: var(--accent-red);
    margin: 0 0 5px;
    font-weight: bold;
}

.headline-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px;
    line-height: 1.3;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.headline-subtitle p {
    margin: 0 0 2px;
    color: #666;
    cursor: default;
}

.headline-list {
    padding-top: 5px;
}

.headline-link {
    font-size: 13px;
    color: #333;
    margin-bottom: 0;
    padding: 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border-bottom: 1px dashed #ddd;
}

.headline-link:last-child {
    border-bottom: none;
}

.headline-link a {
    color: #333;
    text-decoration: none;
}

.headline-link a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* 横幅广告 */
.banner-ad {
    margin: 5px 10px;
    border: 1px solid #ddd;
    overflow: hidden;
    height: auto;
    max-height: 60px; /* 减小高度 */
}

.banner-ad-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 新闻区块通用样式 */
.news-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.title {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: left;
}

.more-link {
    font-size: 12px;
    color: #666;
}

.more-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.news-content {
    padding: 5px 10px;
}

.news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 8px 0;
    position: relative;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f9f9f9;
}

.news-item a {
    color: #333;
    text-decoration: none;
    flex-grow: 1;
    text-align: left;
    margin-right: 10px;
    overflow: hidden;
    font-size: 14px;
}

.news-item a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* 统一所有栏目的副标题样式 */
.news-subtitle {
    color: #777;
    font-size: 12px;
    margin-left: 15px;
    width: 100%;
    margin-top: 2px;
    line-height: 1.4;
    display: block;
    clear: both;
}

.news-dot {
    color: var(--primary-color);
    margin-right: 5px;
    font-weight: bold;
    font-size: 16px;
}

.news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 两列布局的新闻列表中的副标题样式 */
.news-column .news-item .news-subtitle {
    margin-left: 15px;
    width: 100%;
    margin-top: 2px;
}

/* 公文专栏的副标题样式 */
.notice-content .news-item .news-subtitle {
    margin-left: 15px;
    width: 100%;
    margin-top: 2px;
}

/* 支队动态和文件简报 */
.news-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.squad-news {
    flex: 1.5;
    border: 1px solid #ddd;
}

.file-news {
    flex: 1.5;
    border: 1px solid #ddd;
}

.news-item .notice-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.news-item .notice-title-link {
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.4;
}

.news-item a:hover .notice-title-link {
    color: var(--accent-red);
    text-decoration: underline;
}

.news-item .notice-subtitle {
    color: #666;
    font-size: 12px;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 2px;
    padding-left: 5px;
}

/* 大队动态 */
.brigade-news {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.brigade-tabs {
    background: #f5f5f5;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
}

.tab-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.tab-item {
    color: #333;
    padding: 3px 8px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.tab-item:hover {
    color: var(--accent-red);
    background-color: #f0f0f0;
}

.tab-item.active {
    background-color: var(--primary-color);
    color: white;
}

.brigade-content {
    display: flex;
    flex-wrap: wrap;
}

.brigade-column {
    width: 50%;
    padding: 5px;
    box-sizing: border-box;
}

/* 媒体简报 */
.media-report {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.media-content {
    padding: 5px;
}

.media-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.media-table th, .media-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
}

.media-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.media-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.media-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.media-table tr:hover {
    background-color: #e1f0ff;
}

/* 学习园地 */
.learning-section {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* 右侧栏模块 */
.notice-box, .work-info, .brigade-info, .study-section {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: #fff;
}

.notice-header, .work-header, .brigade-header, .study-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.notice-title, .work-title, .brigade-title, .study-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.notice-title i, .work-title i, .brigade-title i, .study-title i {
    margin-right: 5px;
}

.notice-content, .work-content, .brigade-content, .study-content {
    padding: 5px 10px;
}

.notice-item, .work-item, .study-item {
    border-bottom: 1px dashed #ddd;
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.notice-item .news-dot {
    color: var(--primary-color);
    margin-right: 5px;
    flex-shrink: 0;
    padding-top: 2px;
}

.notice-item .news-date {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
    flex-shrink: 0;
}

.brigade-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.brigade-table th, .brigade-table td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: center;
}

.brigade-table th {
    background: #f5f5f5;
}

/* 媒体聚焦 */
.media-focus {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: #fff;
}

.media-focus-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.media-focus-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.media-focus-title i {
    margin-right: 5px;
}

.media-focus-content {
    padding: 5px 10px;
}

.media-focus-item {
    border-bottom: 1px dashed #ddd;
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.media-focus-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.media-focus-title-link {
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.4;
}

.media-focus-title-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.media-focus-subtitle {
    color: #666;
    font-size: 12px;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 2px;
    padding-left: 5px;
}

/* 大队动态区县名称标红 */
.district-name {
    color: #0066cc;
    font-weight: bold;
}

/* 专项工作区域 */
.special-work-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.special-work-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.special-work-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* 网站导航 */
.site-navigation {
    display: none;
}

/* 图片栏目 */
.image-gallery {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: #fff;
    padding-bottom: 15px;
    max-width: 1200px;
    margin: 0 auto 10px;
}

.section-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.section-title i {
    margin-right: 5px;
}

.carousel-container {
    position: relative;
    width: calc(100% - 100px);
    margin: 15px auto 0;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 5px 0;
}

.carousel-item {
    min-width: 234px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 234px;
    height: 156px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-item .caption {
    margin-top: 5px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 234px;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 24px;
    outline: none;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

#prev-btn {
    margin-left: -25px;
}

#next-btn {
    margin-right: -25px;
}

/* 底部 */
.footer {
    background: linear-gradient(to bottom, #0052d9 0%, #003f7e 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.copyright {
    padding: 0 10px;
}

.copyright p {
    margin: 5px 0;
    line-height: 1.5;
}

/* 媒体查询 */
@media (max-width: 768px) {
    body {
        min-width: auto;
    }
    
    .main-container {
    flex-direction: column;
    }
    
    .left-sidebar, .main-content, .right-sidebar {
        width: 100%;
}

    .news-row {
        flex-direction: column;
    }
    
    .floating-left, .floating-right {
        display: none;
    }
}

/* 通知公告样式 */
.notice-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.notice-title-link {
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.4;
}

.notice-title-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.notice-subtitle {
    color: #666;
    font-size: 12px;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 2px;
    padding-left: 5px;
}

/* 学习园地样式 */
.study-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.study-title-link {
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.study-title-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.study-subtitle {
    color: #666;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    padding-left: 5px;
}

/* 通知公告项目样式 */
.notice-item {
    border-bottom: 1px dashed #ddd;
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

/* 学习园地项目样式 */
.study-item {
    border-bottom: 1px dashed #ddd;
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    }
    
.headline-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px;
    line-height: 1.3;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
    }
    
.headline-subtitle p {
    margin: 0 0 2px;
    cursor: pointer;
}

.headline-subtitle p:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.headline-subtitle a {
    color: #666;
    text-decoration: none;
}

.headline-subtitle a:hover {
    color: var(--accent-red);
    text-decoration: underline;
    }

.sidebar-title i, 
.platform-header span i, 
.brigade-title i, 
.study-title i, 
.notice-title i, 
.media-focus-title i, 
.section-title i,
.title-text i {
    margin-right: 5px;
}

/* 网站导航栏目样式 */
.nav-category {
    margin-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

.nav-category:last-child {
    border-bottom: none;
}

.category-title {
    font-weight: bold;
    color: var(--primary-color);
    padding: 3px 0;
    margin-bottom: 5px;
    font-size: 14px;
}

.link-item {
    padding: 3px 0 3px 10px;
    font-size: 13px;
}

.link-item a {
    color: #333;
    text-decoration: none;
}

.link-item a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* 区(行业)动态和公文专栏样式 */
.news-box {
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 10px;
}

/* 推荐阅读和情况简报样式 */
.sidebar-content .news-item {
    padding: 6px 0;
}

/* 图片广告样式 */
.ad-box {
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.ad-image {
    width: 100%;
    height: calc(33.33% - 7px);
    border: 1px solid #ddd;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 办事指南栏目样式 */
.service-guide-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.service-guide {
    border: 1px solid #ddd;
    background: #fff;
    flex: 2;
    display: flex;
    flex-direction: column;
}

.service-guide-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 4px 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
}

.service-guide-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.service-guide-title i {
    margin-right: 5px;
}

.guide-content {
    padding: 8px;
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.other-items-1 {
    border: 1px solid #ddd;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 常用工具栏目样式 */
.tools-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.common-tools {
    border: 1px solid #ddd;
    background: #fff;
    flex: 2;
    display: flex;
    flex-direction: column;
}

.tools-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 4px 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
}

.tools-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.tools-title i {
    margin-right: 5px;
}

.tools-content {
    padding: 8px;
    gap: 8px;
}

.other-items-2 {
    border: 1px solid #ddd;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 区域动态和公文专栏样式修复 */
.district-dynamics {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.district-box {
    flex: 1;
    border: 1px solid #ddd;
    background: #fff;
}

.district-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.district-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.district-title i {
    margin-right: 5px;
}

.district-content {
    padding: 10px;
}

.district-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.district-item:last-child {
    border-bottom: none;
}

.district-item .news-dot {
    margin-right: 5px;
    padding-top: 2px;
}

.district-item a {
    color: #333;
    text-decoration: none;
    flex-grow: 1;
    font-size: 14px;
}

.district-item a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.district-item .news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 5px;
}

.document-box {
    flex: 1;
    border: 1px solid #ddd;
    background: #fff;
}

.document-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 100%);
    padding: 6px 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.document-title i {
    margin-right: 5px;
}

.document-content {
    padding: 10px;
}

.document-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.document-item:last-child {
    border-bottom: none;
}

.document-item .news-dot {
    margin-right: 5px;
    padding-top: 2px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.document-item a {
    color: #333;
    text-decoration: none;
    flex-grow: 1;
    font-size: 14px;
}

.document-item a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.document-item .news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 5px;
}

/* 办事指南栏目具体项目样式 */
.guide-item {
    width: calc(26.66% - 10px); /* 原来是33.33%，改为16.66%，一行显示6个 */
    background: var(--light-blue);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    height: 30px; /* 原来是40px，减小高度 */
    margin-bottom: 8px;
}

.guide-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.guide-item:hover .guide-icon {
    background: #fff;
    color: var(--primary-color);
}

.guide-item:hover .guide-title {
    color: #fff;
}

.guide-item:hover .guide-desc {
    color: #f0f0f0;
}

.guide-icon {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 10px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.guide-info {
    flex: 1;
}

.guide-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.guide-desc {
    font-size: 12px;
    color: #666;
    display: block;
    transition: all 0.3s ease;
}

/* 常用工具栏目具体项目样式 */
.tool-item {
    width: calc(12.5% - 10px); /* 原来是25%，改为12.5%，一行显示8个 */
    background: #f9f9f5;
    border-radius: 6px;
    padding: 6px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    height: 50px; /* 原来是55px，稍微减小高度 */
    margin-bottom: 8px;
}

.tool-item:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-icon {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tool-name {
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* 图片展示区域 */
.image-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-item {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9比例 */
    margin-bottom: 8px;
    position: relative; /* 确保定位正确 */
}

.image-item svg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.image-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.image-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
        padding: 5px;
    font-size: 12px;
    text-align: center;
}

/* 基层动态栏目 */
.base-news {
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 15px;
}

.base-news .news-content {
    display: flex;
    flex-wrap: wrap;
}

.base-news .news-content .news-column {
    width: 50%;
    padding-right: 10px;
    box-sizing: border-box;
}

.base-news .news-content .news-column:last-child {
    padding-right: 0;
}

/* 情况简报栏目 */
.sidebar-box.briefing .news-item .news-date {
    display: none; /* 隐藏日期 */
}

/* 消防通信设备标题栏 - 已删除 */

/* 工作研讨栏目 */
.news-box .news-content {
    padding: 5px 10px;
}

/* 统一notice-content样式 */
.notice-content {
    padding: 5px 10px;
}

/* 公文专栏的副标题样式 */
.notice-content .news-item .news-subtitle {
    margin-left: 15px;
    width: 100%;
    margin-top: 2px;
}

/* 推荐阅读样式修复 */
.left-sidebar .notice-content .news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    border-bottom: 1px dashed #eee;
    padding: 5px 0;
}

.left-sidebar .notice-content .news-item .news-dot {
    margin-right: 5px;
}

.left-sidebar .notice-content .news-item a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 5px;
}

.left-sidebar .notice-content .news-item .news-date {
    font-size: 12px;
    color: #999;
}

.left-sidebar .notice-content .news-item .news-subtitle {
    flex-basis: 100%;
    margin: 3px 0 0 15px;
    font-size: 12px;
    color: #666;
}

/* 工具容器水平排列 */
.tools-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
    gap: 10px;
}

.tool-item {
    width: auto;
    background: #f9f9f5;
    border-radius: 6px;
    padding: 8px 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    height: 40px;
    margin-bottom: 8px;
}

.tool-icon {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 8px;
}

.tool-name {
    font-size: 14px;
    color: #333;
    text-align: left;
}

/* 广告区域修改为独立栏目 */
.ad-banner {
    margin: 0 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

.ad-content {
    padding: 10px;
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 基层动态栏目添加内容框 */
.base-news {
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 15px;
}

/* 两列新闻内容样式 */
.two-columns {
    display: flex;
    flex-wrap: wrap;
}

.news-column {
    width: 50%;
    padding-right: 10px;
    box-sizing: border-box;
}

.news-column:last-child {
    padding-right: 0;
} 