/* ============================================
   新余市公安局高新分局 - 政务门户样式
   配色：中国红 #C8292A + 警蓝 #004494 + 金色 #C9A96A
   风格：政府站，庄重大气，红主蓝辅
   ============================================ */

/* ========== CSS变量 ========== */
:root {
    --primary-red: #C8292A;
    --primary-red-dark: #8B1B1C;
    --primary-red-light: #E84849;
    --primary-blue: #004494;
    --primary-blue-dark: #003366;
    --gold: #c9a96a;
    --primary-blue-light: #1a5fb4;
    --bg-white: #ffffff;
    --bg-gray: #f5f6f7;
    --bg-body: #eef2f6;
    --text-dark: #222222;
    --text-gray: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    /* 整页背景直接使用 toplogo.jpg（1920x2263，logo 内容在设计稿 1232px 版心内） */
    /* 图片保持原始 1920px 宽度水平居中：缩小窗口时两侧对称裁切，图片内的版心与页面版心永远重合，logo 不会漂移 */
    background: #ffffff url('../needimg/toplogo.jpg') center top no-repeat;
    background-size: 1920px auto;
    line-height: 1.7;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 68, 148, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 68, 148, 0.5); }
a { color: var(--text-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-red); }
img { max-width: 100%; vertical-align: middle; border: 0; }
ul { list-style: none; }
.container { width: min(100% - 40px, 1232px); margin: 0 auto; }

/* ========== 顶部工具条（悬浮在 header 右上角） ========== */
.top-tools {
    background: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(200,41,42,0.15);
    height: 28px;
    font-size: 12px;
    color: #666;
}
/* 悬浮模式：放在 header 右上角，透明背景 */
.top-tools-float {
    position: absolute;
    top: 10px;
    right: 16px;
    height: 26px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    z-index: 10;
    padding: 0 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.top-tools-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 20px;
}
.top-tools-left { display: flex; align-items: center; gap: 12px; }
.top-tools-left .date-text { color: var(--primary-blue); font-weight: bold; }
.top-tools-right { display: flex; align-items: center; gap: 14px; }
.top-tools-right a { color: #555; white-space: nowrap; }
.top-tools-right a:hover { color: var(--primary-red); }

/* ========== Logo Header（透明占位，背景由 body 的 toplogo.jpg 统一显示） ========== */
.logo-header {
    position: relative;
    width: 100%;
    /* 背景图按原始尺寸显示，logo 区域固定 280px 高，与背景图严格对应 */
    height: 280px;
    z-index: 1;
}
/* 备用 img 元素隐藏 */
.header-full-img { display: none !important; }
/* 以下为已弃用的旧 header 样式 */
.logo-header .logo-container,
.logo-container,
.logo-container-inner,
.logo-area,
.title-area,
.main-title,
.sub-title,
.emblem,
.header-visual,
.header-seal { display: none !important; }

/* ========== 主导航栏 （红色主题） ========== */
.main-nav {
    background: linear-gradient(180deg, #D63031 0%, #B22222 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(139, 27, 28, 0.25);
}
.main-nav::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #FFD700, var(--gold));
}
.main-nav.is-fixed {
    background: linear-gradient(180deg, #B22222 0%, #8B1B1C 100%);
}
.nav-inner {
    display: flex;
    align-items: stretch;
    position: relative;
}
.nav-list {
    display: flex;
    justify-content: space-between;
    flex: 1;
    margin: 0;
}
.nav-list > li { flex: 1; position: relative; }
.nav-list > li > a {
    display: block;
    padding: 14px 6px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
    letter-spacing: 1px;
}
.nav-list > li:last-child > a { border-right: none; }
.nav-list > li > a:hover,
.nav-list > li.active > a,
.nav-list > li.open > a {
    background: rgba(0, 51, 102, 0.7);
    color: #fff;
}
.has-submenu > a::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 6px; height: 6px;
    border-right: 1.5px solid rgba(255,255,255,0.8);
    border-bottom: 1.5px solid rgba(255,255,255,0.8);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}
.has-submenu:hover > a::after,
.has-submenu.open > a::after { transform: rotate(225deg) translateY(-1px); }
.nav-submenu {
    position: absolute; top: 100%; left: 0;
    min-width: 100%;
    background: rgba(139, 27, 28, 0.97);
    box-shadow: 0 12px 24px rgba(0, 40, 80, 0.2);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s;
    z-index: 120;
}
.nav-submenu li a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    white-space: nowrap;
}
.nav-submenu li:last-child a { border-bottom: none; }
.nav-submenu li a:hover { background: rgba(0, 51, 102, 0.5); color: #FFD700; }
.has-submenu:hover .nav-submenu,
.has-submenu.open .nav-submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
/* 导航内搜索框 */
.nav-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    overflow: hidden;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-search-bar input {
    flex: 1;
    min-width: 0;
    height: 32px;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    color: #333;
}
.nav-search-bar button {
    height: 32px;
    padding: 0 14px;
    background: linear-gradient(180deg, #004494, #003366);
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-search-bar button:hover { background: linear-gradient(180deg, #003366, #002244); }

/* ========== 高层声音横幅 ========== */
.sound-banner {
    background: linear-gradient(90deg, #8B1B1C 0%, #C8292A 50%, #8B1B1C 100%);
    border-radius: 4px;
    margin: 15px auto 0;
    width: min(100% - 40px, 1232px);
    box-shadow: 0 4px 12px rgba(139,27,28,0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 56px;
}
.sound-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    background: rgba(0,0,0,0.15);
    height: 100%;
    flex-shrink: 0;
}
.sound-banner-left .dots {
    display: flex;
    gap: 4px;
}
.sound-banner-left .dots span {
    display: inline-block;
    width: 12px; height: 12px;
    background: #FFD700;
    border-radius: 2px;
}
.sound-banner-left .banner-title {
    font-family: "SimHei", "黑体", serif;
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 3px;
}
.sound-banner-right {
    flex: 1;
    padding: 0 20px;
    overflow: hidden;
    position: relative;
}
.sound-banner-right .marquee-text {
    display: inline-block;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* 高层声音横幅（gcsybg.png 整图背景：标题与人物已含在图中，中间标题切换） */
.section-title-banner {
    position: relative;
    width: min(100% - 40px, 1232px);
    margin: 8px auto 8px;
    aspect-ratio: 1230 / 119;
    border-top: 3px solid var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
    background: #F2FAFC url(../needimg/gcsybg.png) no-repeat center / 100% 100%;
    overflow: hidden;
}
/* 中间标题切换区（避开左标题、右人物） */
.sound-quotes { position: absolute; left: 26%; right: 17%; top: 50%; transform: translateY(-50%); height: 48px; }
.sound-quote {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    font-family: "SimHei", "黑体", serif;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity .6s;
}
.sound-quote.active { opacity: 1; }
/* 标题下方指示器（两空一实，参考图二） */
.sound-indicators { position: absolute; left: 3.5%; bottom: 14%; display: flex; gap: 7px; }
.sound-indicators .sq { width: 11px; height: 11px; border: 2px solid var(--primary-red); cursor: pointer; }
.sound-indicators .sq.active { background: var(--primary-red); }
/* 签字角标（红色小印章样式） */
.sign-badge {
    flex-shrink: 0;
    margin-left: 6px;
    padding: 0 5px;
    height: 17px;
    line-height: 17px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #D63031 0%, #B22222 100%);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(178,34,34,0.35);
}

/* ========== Banner 轮播图 ========== */
.banner-section { padding: 0; }
.banner-wrapper {
    display: flex;
    gap: 16px;
    align-items: stretch;
    height: 380px;
}
.banner-slider {
    width: 56%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(139,27,28,0.15);
    position: relative;
    background: #000;
    flex-shrink: 0;
    border-radius: 2px;
}
.swiper-container { width: 100%; height: 100%; position: relative; }
.swiper-wrapper { width: 100%; height: 100%; position: relative; }
.swiper-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.swiper-slide.active { opacity: 1; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 24px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2) 65%, transparent);
    color: white;
}
.slide-caption h3 {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.slide-caption p { font-size: 13px; opacity: 0.92; }
/* 轮播图指示器 */
.swiper-indicators {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 6px;
}
.swiper-indicator {
    width: 32px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.swiper-indicator.active {
    width: 50px;
    background: var(--gold);
}
.swiper-indicator .ind-num,
.swiper-indicator .ind-text { display: none; }
/* 轮播图左右箭头 */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 60px;
    background: rgba(0,0,0,0.35);
    border: none;
    cursor: pointer;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s;
}
.swiper-button-prev { left: 0; border-radius: 0 4px 4px 0; }
.swiper-button-next { right: 0; border-radius: 4px 0 0 4px; }
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-red);
}

/* 右侧新闻列表 */
.banner-news {
    flex: 1;
    min-width: 0;
    background: var(--bg-white);
    border: 1px solid #e0e4ea;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.banner-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
    border-bottom: 2px solid var(--primary-red);
    background: #fafafa;
}
.news-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    align-items: center;
}
.news-tabs span {
    padding: 8px 16px;
    text-align: center;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    font-weight: bold;
    position: relative;
}
.news-tabs span.active {
    color: var(--primary-red);
}
.news-tabs span.active::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--primary-red);
}
.banner-news-more {
    font-size: 12px;
    color: var(--text-gray);
}
.banner-news-more:hover { color: var(--primary-red); }
.banner-news .news-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.banner-news .news-list::-webkit-scrollbar { width: 0; display: none; }
.banner-news .news-list li {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px dashed #eef0f3;
    font-size: 16px;
}
.banner-news .news-list li:hover { background: #fafbfc; }
.banner-news .news-list li .tag {
    background: var(--primary-red);
    color: white;
    padding: 1px 8px;
    font-size: 11px;
    margin-right: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.banner-news .news-list li.important a { color: var(--primary-red); font-weight: bold; }
.banner-news .news-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dark);
}
.banner-news .news-list li a:hover { color: var(--primary-red); }
.banner-news .news-list li .date {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

/* ========== 主体内容区 ========== */
.main-content { padding: 0 0 15px; }
.section-block { padding: 14px 0 0; }

/* ========== 模块标题（带红色装饰） ========== */
.module-title {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 3px solid var(--primary-red);
    background: linear-gradient(90deg, #fef5f5 0%, #fff 60%);
    margin-bottom: 0;
}
.module-title h3 {
    font-size: 17px;
    color: var(--primary-red);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.module-title h3::before {
    content: "";
    width: 4px; height: 18px;
    background: var(--primary-red);
    border-radius: 2px;
}
.module-title .more-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-gray);
}
.module-title .more-link:hover { color: var(--primary-red); }

/* 双标签模块标题（参考稿：两个名称一个模块，激活项红底白字） */
.module-tabs { padding: 0; background: #fff; }
.module-tabs .mtab {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    background: #fafafa;
    border-right: 1px solid #e8e8e8;
    cursor: pointer;
}
.module-tabs .mtab.active { background: linear-gradient(180deg, #D63031 0%, #B22222 100%); color: #fff; }
.module-tabs .more-link { align-self: center; padding-right: 16px; }
/* 中部 2x2 双标签模块网格 */
.news-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
/* 右侧每日值班/办公系统登录标题栏与左侧模块标签栏（46px+3px边框）对齐 */
.duty-login-col .module-title { height: 49px; padding: 0 16px; }
/* 底部两列均分（专题专栏 + 常用平台） */
.layout-2col-even { display: grid; grid-template-columns: 2fr 300px; gap: 16px; margin-top: 16px; }
.layout-2col-even .module-title { height: 49px; padding: 0 16px; }

/* ========== 新闻列表 ========== */
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 16px;
    transition: background 0.2s;
}
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: #fafafa; }
.news-list li a {
    color: var(--text-dark);
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-list li a .dot {
    width: 5px; height: 5px;
    background: var(--primary-red);
    border-radius: 50%;
    flex-shrink: 0;
}
.news-list li a:hover .dot { background: var(--primary-red-dark); transform: scale(1.3); }
.news-list li a:hover { color: var(--primary-red); }
.text-ellipsis {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-list li .date {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 12px;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}
.compact-news-list li { padding: 7px 14px; }

/* NEW 角标 */
.icon-new {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4d, #d62728);
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 3px;
    margin-left: 8px;
    line-height: 16px;
    height: 16px;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(214, 39, 40, 0.3);
    flex-shrink: 0;
}

/* ========== 模块盒子 ========== */
.module-box {
    background: var(--bg-white);
    border: 1px solid #e6e8ec;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.module-box .news-list { flex: 1; }

/* ========== 布局：3列 ========== */
.layout-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    gap: 16px;
    align-items: stretch;
}
.layout-2col-wide {
    display: grid;
    grid-template-columns: 2fr 300px;
    gap: 16px;
}
.layout-4col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

/* ========== 每日值班模块 ========== */
.duty-board { padding: 0 16px 10px; }
.duty-date-slider {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #fff;
    border-radius: 4px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(139,27,28,0.3);
}
.slider-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.duty-date {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    transition: opacity 0.3s;
}
.duty-date .day { font-size: 24px; font-weight: bold; line-height: 1; display: inline-block; margin-right: 8px; }
.duty-date .month { font-size: 11px; opacity: 0.95; }
.duty-date .week { font-size: 11px; opacity: 0.95; margin-left: 6px; }
.duty-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    transition: opacity 0.3s;
}
.duty-table th {
    background: #fafafa;
    color: var(--primary-red);
    font-weight: bold;
    padding: 5px 4px;
    border-bottom: 2px solid var(--primary-red);
    font-size: 13px;
    text-align: center;
}
.duty-table td {
    padding: 5px 6px;
    text-align: center;
    border-bottom: 1px dashed #f0f0f0;
    color: #333;
    font-size: 13px;
}
.duty-table tr:hover td { background: #fefafa; }

/* ========== 办公系统登录 ========== */
.login-tab-bar {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e6e8ec;
}
.login-tab-bar .login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: bold;
}
.login-tab-bar .login-tab.active {
    background: #fff;
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}
.login-form {
    padding: 18px 16px;
}
.form-group { margin-bottom: 12px; }
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dce0e6;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
    font-size: 13px;
}
.form-control:focus { border-color: var(--primary-red); }
.form-actions { display: flex; gap: 10px; }
.btn-login, .btn-reset {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-login {
    background: linear-gradient(135deg, var(--primary-red-light), var(--primary-red));
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(200,41,42,0.25);
}
.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    box-shadow: 0 6px 15px rgba(200,41,42,0.35);
}
.btn-reset {
    background: var(--bg-white);
    color: var(--text-gray);
    border: 1px solid #dce0e6;
}
.btn-reset:hover { border-color: var(--primary-red); color: var(--primary-red); }

/* ========== 专题专栏 ========== */
.service-panel { padding: 12px 16px 10px; display: flex; flex-direction: column; box-sizing: border-box; flex: 1; }
.service-panel-window { overflow: hidden; }
.service-panel-track { display: flex; transition: transform 0.35s ease; }
.topic-panel-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.service-panel-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.topic-mini-item,
.service-mini-item {
    border: 1px solid #e4e7ec;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 6px 6px;
    gap: 4px;
    transition: all 0.2s;
    text-align: center;
    height: 80px;
}
.topic-mini-item:hover,
.service-mini-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(200,41,42,0.12);
    transform: translateY(-2px);
    background: #fefafa;
}
.topic-mini-item img { width: 28px; height: 28px; object-fit: contain; }
.topic-mini-item span {
    color: var(--text-dark);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.service-mini-icon { color: var(--primary-red); display: inline-flex; align-items: center; justify-content: center; }
.service-mini-icon svg { width: 24px; height: 24px; display: block; }
.service-mini-text { color: var(--text-dark); font-size: 12px; font-weight: bold; }
.service-panel-pagination { display: flex; justify-content: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.service-panel-dot {
    width: 8px; height: 8px;
    border: none;
    border-radius: 50%;
    background: #d5d9df;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.service-panel-dot.active {
    width: 22px;
    border-radius: 99px;
    background: var(--primary-red);
}

/* ========== 常用平台 ========== */
.quick-platform-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 16px;
    border-bottom: 1px dashed #f0f0f0;
    transition: all 0.2s;
}
.quick-platform-list li:last-child { border-bottom: none; }
.quick-platform-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: #333;
    font-size: 13px;
}
.quick-platform-list li a:hover { color: var(--primary-red); padding-left: 4px; }
.quick-platform-list li .platform-icon {
    width: 20px; height: 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: #fff;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.quick-platform-list li .arrow {
    color: #ccc;
    font-size: 12px;
}
.quick-platform-list li a:hover .arrow { color: var(--primary-red); }

/* ========== 底部网站导航 ========== */
.footer-nav-title {
    background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red));
    color: #fff;
    padding: 10px 24px;
    font-family: "SimHei", "黑体", serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 0;
    border-radius: 3px 3px 0 0;
}
.footer-nav-content {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-top: none;
    padding: 14px 16px;
    border-radius: 0 0 3px 3px;
}
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.footer-select-box select {
    width: 100%;
    height: 34px;
    padding: 0 42px 0 14px;
    font-size: 13px;
    color: #4d596a;
    background: #fff;
    border: 1px solid #d6dce5;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M3.5 6L8 10.5L12.5 6' stroke='%23939dad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.footer-select-box select:hover,
.footer-select-box select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(200,41,42,0.08);
}

/* ========== 底部页脚（红色主题） ========== */
.footer {
    background: linear-gradient(180deg, var(--primary-red-dark) 0%, #5c1112 100%);
    color: #fff;
    padding: 20px 0;
    margin-top: 20px;
}
.footer::before {
    content: '';
    display: block;
    height: 7px;
    margin: -10px 0 12px;
    background-color: #8B1B1B;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7' viewBox='0 0 8 7'%3E%3Cpath d='M1.5 1L4 3.5L1.5 6' stroke='%23f5deb3' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.85'/%3E%3C/svg%3E");
    background-size: 8px 7px;
    background-repeat: repeat-x;
    background-position: center;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    width: min(100% - 40px, 1232px);
    margin: 0 auto;
    position: relative;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-slogan div {
    color: #fff;
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 1.9;
}
.footer-center {
    text-align: center;
    flex: 1;
}
.footer-center .copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
}
.footer-center .copyright a { color: #FFD700; }
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}
.footer-right a {
    display: block;
    color: #fff;
    font-size: 14px;
    padding: 6px 14px;
    background: rgba(0,51,102,0.5);
    border-radius: 3px;
    transition: all 0.2s;
}
.footer-right a:hover { background: rgba(0,51,102,0.8); color: #FFD700; }

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    right: 28px; bottom: 50px;
    width: 44px; height: 44px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(200,41,42,0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-red-dark); transform: translateY(-3px); }

/* ========== 左右悬浮横幅 ========== */
.side-floating-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.side-floating-left { left: 0; }
.side-floating-right { right: 0; }
.side-floating-banner { position: relative; }
.floating-banner-red .side-floating-link,
.floating-banner-blue .side-floating-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px; height: 70px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    text-align: center;
}
.floating-banner-red .side-floating-link {
    background: linear-gradient(135deg, #C8292A, #8B1B1C);
}
.floating-banner-blue .side-floating-link {
    background: linear-gradient(135deg, #004494, #003366);
}
.side-floating-banner:hover .side-floating-link {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.floating-text {
    padding: 0 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    line-height: 1.4;
}
.side-floating-close {
    position: absolute;
    top: 4px; right: 4px;
    width: 18px; height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.side-floating-banner:hover .side-floating-close { opacity: 1; visibility: visible; }
.side-floating-close:hover { background: rgba(0,0,0,0.75); }

/* ========== 列表页 ========== */
.page-layout {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 14px 20px;
    min-height: 600px;
    max-width: 1232px;
    margin: 0 auto;
}
.page-sidebar { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; }
.page-main {
    flex: 1;
    min-width: 0;
    background: var(--bg-white);
    padding: 24px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e6e8ec;
}
.sidebar-menu {
    flex: 1;
    border: 1px solid #e0e4ea;
    border-radius: 3px;
    overflow: hidden;
    background: #fafafa;
}
.sidebar-title {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 16px 0;
    letter-spacing: 2px;
}
.sidebar-menu ul { list-style: none; }
.sidebar-menu li { border-bottom: 1px solid #eee; }
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    transition: all 0.25s;
    background: #fafafa;
    border-left: 3px solid transparent;
}
.sidebar-menu a:hover {
    background: #fff;
    color: var(--primary-red);
    padding-left: 24px;
    border-left-color: var(--primary-red);
}
.sidebar-menu li.active a {
    background: #fff;
    color: var(--primary-red);
    border-left: 3px solid var(--primary-red);
    font-weight: bold;
}
.breadcrumb {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e6e8ec;
}
.breadcrumb a { color: var(--text-dark); }
.breadcrumb a:hover { color: var(--primary-red); }
.breadcrumb span { color: var(--primary-red); font-weight: bold; }

.page-news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e4e4e4;
    font-size: 16px;
}
.page-news-list li a { color: #333; transition: color 0.3s; }
.page-news-list li a:hover { color: var(--primary-red); }
.page-news-list li .date { color: #999; font-size: 13px; font-family: Arial; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: var(--text-dark);
    transition: all 0.2s;
    font-size: 13px;
}
.pagination a:hover,
.pagination .active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}
.pagination .disabled { color: var(--text-light); cursor: not-allowed; background: #f5f5f5; }

/* ========== 详情页 ========== */
.article-detail { padding: 8px 16px 32px; }
.article-title {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 26px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
}
.article-meta {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    gap: 28px;
}
.article-content {
    font-family: "FangSong", "仿宋", "STFangsong", serif;
    font-size: 16px;
    color: #333;
    line-height: 2;
    text-align: justify;
}
.article-content p { margin-bottom: 18px; text-indent: 2em; }
.article-content img {
    display: block;
    margin: 18px auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 100%;
}
.article-content ul,
.article-content ol { margin-bottom: 18px; padding-left: 40px; }
.article-content li { margin-bottom: 8px; }
.article-action-bar {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 文件签收弹窗 */
.receipt-trigger {
    min-width: 108px; height: 38px;
    padding: 0 18px;
    border: 1px solid #d6dce5;
    background: #f5f7fa;
    color: #35506d;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.receipt-trigger:hover { background: #edf2f7; border-color: var(--primary-red); color: var(--primary-red); }
.receipt-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}
.receipt-modal.show { display: flex; }
.receipt-dialog {
    position: relative;
    width: 100%; max-width: 380px;
    background: #fff;
    border-radius: 6px;
    padding: 28px 26px 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}
.receipt-dialog h3 {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary-red);
}
.receipt-dialog-desc { font-size: 13px; color: var(--text-gray); line-height: 1.8; margin-bottom: 16px; }
.receipt-close {
    position: absolute; top: 10px; right: 12px;
    width: 28px; height: 28px;
    border: none; background: transparent;
    color: #999; font-size: 22px;
    cursor: pointer;
}
.receipt-close:hover { color: var(--primary-red); }
.receipt-form input {
    width: 100%; height: 40px;
    border: 1px solid #d6dce5;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}
.receipt-form input:focus { border-color: var(--primary-red); }
.receipt-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.receipt-cancel, .receipt-confirm {
    min-width: 88px; height: 36px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.receipt-cancel { border-color: #d6dce5; background: #fff; color: #5b6c7f; }
.receipt-confirm { background: var(--primary-red); color: #fff; }
.receipt-cancel:hover { border-color: var(--primary-red); color: var(--primary-red); }
.receipt-confirm:hover { background: var(--primary-red-dark); }
.receipt-status { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--text-gray); text-align: center; }

::selection { background: var(--primary-red); color: white; }

/* ========== 响应式 ========== */
/* 超过 1920 宽的屏幕：背景图放大铺满整屏（避免两侧露白），header 高度随宽度等比缩放 */
@media (min-width: 1921px) {
    html, body { background-size: 100% auto; }
    .logo-header { height: auto; aspect-ratio: 1920 / 280; }
}
@media (max-width: 1280px) {
    .banner-wrapper { height: 340px; }
    .banner-slider { width: 52%; }
    .layout-3col { grid-template-columns: 1fr 1fr 260px; }
    .layout-4col { grid-template-columns: repeat(2, 1fr); }
    .floating-banner-red .side-floating-link,
    .floating-banner-blue .side-floating-link { width: 180px; height: 64px; }
}
@media (max-width: 1200px) {
    .side-floating-container { display: none; }
}
@media (max-width: 992px) {
    .top-tools-float { display: none; }
    .nav-list > li > a { font-size: 14px; padding: 12px 4px; }
    .nav-search-bar { width: 160px; }
    .banner-wrapper { flex-direction: column; height: auto; }
    .banner-slider { width: 100%; aspect-ratio: 16/9; }
    .banner-news { height: 300px; }
    .layout-3col,
    .layout-2col-wide { grid-template-columns: 1fr; }
    .news-pair-grid { grid-template-columns: 1fr; }
    .layout-2col-even { grid-template-columns: 1fr; }
    .layout-4col { grid-template-columns: repeat(2, 1fr); }
    .page-layout { flex-direction: column; }
    .page-sidebar { width: 100%; }
    .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .top-tools-float { display: none; }
    .nav-list { flex-wrap: wrap; }
    .nav-list > li { flex: none; width: 25%; }
    .nav-tools { width: 100%; justify-content: center; padding: 8px 0; }
    .nav-search-bar { width: 100%; max-width: 260px; }
    .section-title-banner { aspect-ratio: auto; min-height: 96px; }
    .sound-quote { font-size: 18px; }
    .swiper-button-prev,
    .swiper-button-next { width: 32px; height: 48px; font-size: 18px; }
    .slide-caption h3 { font-size: 16px; }
    .layout-4col { grid-template-columns: 1fr; }
    .topic-panel-page,
    .service-panel-page { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .footer-left, .footer-center, .footer-right { text-align: center; align-items: center; }
    .footer-nav-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .nav-list > li { width: 33.33%; }
    .article-title { font-size: 20px; }
    .article-content { font-size: 15px; }
}

/* ========== 值班详情页（duty.html） ========== */
.duty-page { padding-bottom: 20px; }
.duty-month-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
.duty-month-head { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 0 12px; }
.duty-month-head .slider-btn { width: 34px; height: 34px; font-size: 20px; line-height: 1; }
.duty-month-title {
    font-family: "SimHei", "黑体", sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-red-dark);
    letter-spacing: 2px;
    min-width: 150px;
    text-align: center;
}
.duty-week-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fdf3f3;
    border-top: 1px solid #f0d8d8;
    border-bottom: 1px solid #f0d8d8;
}
.duty-week-head span { text-align: center; padding: 8px 0; font-size: 14px; font-weight: bold; color: var(--primary-red-dark); }
.duty-week-head span.rest { color: #c20000; }
.duty-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 10px; margin: 0; list-style: none; }
.duty-cell {
    background: #f8f9fb;
    border: 1px solid #ececec;
    border-radius: 4px;
    min-height: 106px;
    padding: 6px 7px;
    transition: all 0.2s;
}
.duty-cell:hover { border-color: var(--primary-red); box-shadow: 0 4px 10px rgba(200,41,42,0.12); transform: translateY(-1px); }
.duty-cell.empty { background: transparent; border: none; min-height: 0; box-shadow: none; }
.duty-cell.today { border: 2px solid var(--primary-red); background: #fff5f5; }
.duty-cell-date { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: bold; color: #333; margin-bottom: 4px; }
.duty-cell-date span { font-size: 11px; color: #999; font-weight: normal; }
.duty-cell.today .duty-cell-date { color: var(--primary-red); }
.duty-cell-row { display: flex; align-items: center; gap: 5px; padding: 2px 0; }
.duty-badge { font-size: 11px; padding: 1px 5px; border-radius: 2px; color: #fff; font-style: normal; flex-shrink: 0; line-height: 1.6; }
.b-zb { background: #B22222; }
.b-jl { background: #1f6fb0; }
.b-zbz { background: #d9962c; }
.b-sp { background: #4b9c6a; }
.duty-cell-name { font-size: 12px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duty-legend { display: flex; gap: 16px; justify-content: center; align-items: center; padding: 10px; border-top: 1px dashed #f0d8d8; }
.duty-legend span { display: inline-flex; }
.duty-detail-card { background: #fff; border: 1px solid #e8e8e8; border-top: 3px solid var(--primary-red); box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.duty-detail-table { width: 100%; border-collapse: collapse; }
.duty-detail-table th { background: linear-gradient(180deg, #D63031 0%, #B22222 100%); color: #fff; padding: 10px 8px; font-size: 14px; text-align: center; letter-spacing: 1px; }
.duty-detail-table td { padding: 9px 8px; border-bottom: 1px solid #f2e6e6; font-size: 13px; text-align: center; color: #333; }
.duty-detail-table tr:nth-child(even) td { background: #fbf7f7; }
.duty-detail-table tr.today td { background: #fdecec; font-weight: bold; color: var(--primary-red-dark); }
.duty-detail-table td i { display: block; font-style: normal; font-size: 11px; color: #999; font-weight: normal; margin-top: 1px; }
@media (max-width: 768px) {
    .duty-cell { min-height: 76px; padding: 4px 5px; }
    .duty-cell-name { font-size: 11px; }
    .duty-cell-date { font-size: 13px; }
    .duty-detail-table td i { display: none; }
    .duty-month-title { font-size: 18px; }
}
/* ========== 网站地图弹窗 ========== */
.sitemap-overlay { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); z-index: 999998; display: flex; align-items: center; justify-content: center; }
.sitemap-panel { width: 560px; max-width: calc(100% - 40px); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.25); }
.sitemap-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 3px solid var(--primary-red); }
.sitemap-head span { font-size: 18px; font-weight: bold; color: #333; }
.sitemap-head button { border: none; background: none; font-size: 24px; color: #999; cursor: pointer; line-height: 1; padding: 0; }
.sitemap-head button:hover { color: var(--primary-red); }
.sitemap-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; padding: 20px; }
.sitemap-body a { display: block; padding: 8px 10px; font-size: 14px; color: #333; border-radius: 4px; text-decoration: none; }
.sitemap-body a:hover { background: #fdeeee; color: var(--primary-red); }
@media (max-width: 768px) { .sitemap-body { grid-template-columns: repeat(2, 1fr); } }
