﻿/* 基础重置与变量定义 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft YaHei", sans-serif;
}
:root {
 --primary-color: #2978c4;
 --primary-dark: #2978c4;
 --primary-light: #e7f1fa;
 --text-light: #e6f0ff;
 --border-color: #d4e3f0;
}
/* 通用布局容器 */
.content-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
/* Header 样式 */
.header-top {
	height: 319px;
	background-image: linear-gradient(to right, #2978c4  0%, #2978c4  calc(50% - 580px),  /* 精确计算渐变分割点 */ transparent calc(50% - 580px), transparent calc(50% + 580px), #2978c4  calc(50% + 580px)), url(../images/logo_bg.jpg);
	background-size: auto 100%,  /* 渐变层自适应 */ 1161px 319px;
	background-position: center, center;
	background-repeat: no-repeat;
}
.header-top .content-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100px;
}
.logo img {
	height: 100px;
	width: 564px;
	transition: opacity 0.3s;
}
.police-tel {
	font-size: 18px;
	color: var(--primary-color);
	font-weight: 500;
}
/* 导航系统 */
.main-nav {
	background: var(--primary-color);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.main-nav .nav-menu li a {
	color: #fff;
	text-decoration: none;
	display: block;
	position: relative;
	transition: opacity 0.3s ease;
}
/* 悬停效果优化 */
.main-nav .nav-menu li a:hover {
	opacity: 0.9;
	text-decoration: none;
}
/* 保持原有效果 */
.main-nav .nav-menu li:hover {
	background: var(--primary-dark);
}
.nav-container {
	position: relative;
	height: 50px;
}
.nav-menu {
	display: flex;
	list-style: none;
	height: 100%;
}
.nav-menu > li {
	position: relative;
	overflow: hidden;
	padding: 0 25px;
	color: white;
	line-height: 50px;
	cursor: pointer;
	transition: background 0.3s;
}
.nav-menu > li:hover {
	background: var(--primary-dark);
}
/* 添加悬停波纹效果 */
.nav-menu > li::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	transition: width 0.3s, height 0.3s;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.nav-menu > li:hover::after {
	width: 200px;
	height: 200px;
}
.submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--primary-dark);
	min-width: 180px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.nav-menu > li:hover .submenu {
	display: block;
}
.submenu li {
	padding: 12px 20px;
	color: var(--text-light);
	transition: background 0.2s;
}
.submenu li:hover {
	background: #13497a;
}
/* 主体内容布局 */
main {
	padding: 40px 0 20px;
	background: #fff;
}
.three-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}
.two-columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}
/* 通用模块样式 */
.module {
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	overflow: hidden;
	overflow: visible; /* 修复溢出裁剪问题 */
}
.module-header {
	/*padding: 15px 20px;*/
	/*background: var(--primary-light);*/
	background: white;
	border-bottom: 2px solid var(--primary-color);
	display: flex;
	justify-content: space-between; /* 关键属性 */
	align-items: center;
	padding-right: 4px; /* 补偿容器内边距 */
}
.more-link {
	color: var(--primary-color);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s;
	margin-right: 6px; /* 精确补偿间距 */
	position: relative;
	right: 2px; /* 微调像素级对齐 */
}
.more-link:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}
.module-header h2 {
	color: var(--primary-color);
	font-size: 18px;
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto; /* 防止标题元素扩展 */
	padding-right: 8px; /* 维持呼吸空间 */
}
.module-body {
	padding: 20px;
}
/* 视频播放器 */
.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	width: 100%;
	margin-left: -1px; /* 抵消边框宽度 */
	margin-right: -1px;
}
.video-wrapper video {
	position: absolute;
	top: 0;
	left: 0;
	background: #000;
	width: 100% !important; /* 强制覆盖默认宽度 */
	height: auto; /* 保持比例 */
	min-height: 240px; /* 最小高度保障 */
}
/* 服务专区 */
.service-list {
	display: grid;
	gap: 12px;
}
.service-item {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none;
	color: #333;
}
.service-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(25, 105, 180, 0.1);
}
.service-item .icon {
	font-size: 24px;
	margin-right: 15px;
}
.service-info h3 {
	color: var(--primary-color);
	margin-bottom: 4px;
	font-size: 15px;
}
/* 常用下载模块美化 */
.download-list {
	display: grid;
	gap: 15px;
	padding: 0px 0;
}
.file-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	background: #fff;
	border: 1px solid #c3daf3; /* 浅蓝边框 */
	border-radius: 8px;
	transition: all 0.25s ease;
	box-shadow: 0 2px 6px rgba(29,105,180,0.06);
}
.file-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(29,105,180,0.12);
	border-color: #9ac1e4;
}
.file-info {
	display: flex;
	align-items: center;
	gap: 15px;
	max-width: 80%;
}
.file-icon {
	font-size: 28px;
	color: #4a90e2; /* 主蓝色调 */
	flex-shrink: 0;
}
.file-info div {
	line-height: 1.4;
}
.file-info h3 {
	color: #2d4054; /* 深灰蓝文字 */
	font-size: 15px;
	font-weight: 500;
	margin: 0;
	word-break: break-all; /* 长标题自动换行 */
	padding-right: 5px;
}
.download-btn {
	background: #4a90e2;
	color: white;
	border: none;
	padding: 8px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.25s ease;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(74,144,226,0.2);
}
.download-btn:hover {
	background: #3276c3;
	box-shadow: 0 3px 6px rgba(74,144,226,0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
.file-item {
	flex-direction: column;
	align-items: stretch;
	padding: 15px;
}
.file-info {
	max-width: 100%;
	gap: 12px;
}
.download-btn {
	width: 100%;
	margin-top: 10px;
}
.file-info h3 {
	font-size: 14px;
}
}
/* 新闻模块 */
.news-list {
	display: grid;
	gap: 12px;
}
.news-item {
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color);
}
.news-date {
	color: #666;
	font-size: 13px;
	min-width: 90px;
}
.news-title {
	color: #333;
	text-decoration: none;
	margin: 0 15px;
	flex-grow: 1;
	transition: color 0.2s;
}
.news-title:hover {
	color: var(--primary-dark);
}
.new-tag {
	background: #ff4757;
	color: white;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 10px;
}
/* 违章公示 */
.violation-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.violation-table th, .violation-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}
.violation-table th {
	background: var(--primary-light);
	color: var(--primary-dark);
}
/* Footer */
footer {
	background: var(--primary-dark);
	color: #fff;
	padding: 30px 0 20px;
	margin-top: 30px;
}
.contact-line {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-line span {
	color: var(--text-light);
	font-size: 15px;
	white-space: nowrap;
}
.copyright-line {
	text-align: center;
	color: #c2d9f0;
	font-size: 13px;
	padding-top: 15px;
}

/* 响应式适配 */
@media (max-width: 768px) {
.violation-table {
	display: block;
	overflow-x: auto;
}
.contact-line {
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.file-item {
	flex-wrap: wrap;
	gap: 10px;
}
.download-btn {
	width: 100%;
	padding: 8px;
}
.three-columns, .two-columns {
	grid-template-columns: 1fr;
}
}
/* 表头样式 */
.violation-table thead {
	background: #e7f1fa; /* 浅蓝背景 */
	position: sticky;
	top: 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.violation-table th {
	padding: 12px;
	text-align: left;
	color: #2978c4; /* 主蓝色 */
	font-weight: 500;
}
/* 新增布局样式 */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 30px;
}
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
/* 视频模块优化 */
.video-module {
	height: 0;
	padding-bottom: 56.25%;
	position: relative;
}
/* 梯形核心实现 */
.title-badge {
	background: #2978c4;
	color: white;
	padding: 10px 50px 10px 25px; /* 右侧留出斜边空间 */
	position: relative;
	font-family: "Microsoft YaHei", sans-serif;
	font-size: 18px;
	box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
	/* 梯形裁剪（右侧斜边） */
	clip-path: polygon(  0 0,            /* 左上角 */  calc(100% - 30px) 0,  /* 右上顶点（向左偏移30px） */  100% 50%,       /* 右侧中点 */  calc(100% - 30px) 100%, /* 右下顶点 */  0 100%          /* 左下角 */
 );
	-webkit-clip-path: polygon(  0 0,  calc(100% - 30px) 0,  100% 50%,  calc(100% - 30px) 100%,  0 100%  );
}
/* 违章公示容器 */
.violation-container {
	padding: 0 20px 20px;
}
/* 固定表头样式 */
.violation-header {
	display: flex;
	background: #e7f1fa;
	padding: 12px 20px;
	margin-top: 10px;
	border-radius: 4px 4px 0 0;
}
.violation-header span {
	font-weight: 500;
	color: #2978c4;
}
.header-date {
	width: 25%;
}
.header-number {
	width: 25%;
}
.header-type {
	width: 25%;
}
/* 滚动容器 */
.violation-scroll {
	height: 200px;
	overflow: hidden;
	position: relative;
	border: 1px solid #e8f0f8;
	border-top: none;
	border-radius: 0 0 4px 4px;
}
/* 滚动内容 */
.scroll-content {
	position: absolute;
	width: 100%;
	animation: scroll 20s linear infinite;
}
/* 克隆内容定位 */
.clone {
	top: 100%;
}
/* 数据项样式 */
.violation-item {
	display: flex;
	padding: 10px 20px;
	border-bottom: 1px solid #f0f6fc;
}
.violation-date {
	width: 25%;
	color: #666;
}
.violation-number {
	width: 35%;
	color: #333;
}
.violation-type {
	width: 40%;
	color: #c00;
}

/* 滚动动画 */
@keyframes scroll {
 0% {
transform: translateY(0);
}
 100% {
transform: translateY(-100%);
}
}
/* 悬停暂停 */
.violation-scroll:hover .scroll-content {
	animation-play-state: paused;
}
/* 双重动画支持 */
.scroll-content.original {
	animation: scroll linear infinite;
}
.scroll-content.clone {
	animation: scroll linear infinite;
	top: 100%;
}
.file-icon {
	margin-right: 5px;
}
