/* 政府网站风格 - 仿国家铁路局官网 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.wrapper {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部导航栏 */
.top-nav {
    background: #004080;
    height: 36px;
    line-height: 36px;
    color: #fff;
    font-size: 13px;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
}

.top-nav a:hover {
    text-decoration: underline;
}

.top-left {
    float: left;
}

.top-right {
    float: right;
}

.top-nav span {
    color: #6699cc;
}

/* 头部区域 */
.header {
    background: #fff;
    border-bottom: 3px solid #004080;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #004080, #0059b3);
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 22px;
    color: #004080;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo-text h2 {
    font-size: 24px;
    color: #004080;
    font-weight: bold;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.search-box form {
    display: flex;
    border: 2px solid #004080;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    width: 280px;
    height: 36px;
    border: none;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    width: 80px;
    height: 36px;
    background: #004080;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.search-btn:hover {
    background: #0059b3;
}

.weather {
    font-size: 13px;
    color: #666;
}

.weather span {
    margin-left: 10px;
}

/* 主导航 */
.main-nav {
    background: linear-gradient(to bottom, #004080, #003366);
    height: 48px;
}

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

.main-nav ul li {
    flex: 1;
    text-align: center;
}

.main-nav ul li a {
    display: block;
    height: 48px;
    line-height: 48px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
    background: rgba(255, 255, 255, 0.2);
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0 40px;
}

/* 轮播图区域 */
.banner-section {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.banner-wrapper {
    width: 920px;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 64, 128, 0.95), transparent);
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 20px;
    font-weight: bold;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 35px;
    border-radius: 6px;
}

.banner-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.arrow {
    width: 40px;
    height: 60px;
    background: rgba(0, 64, 128, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.arrow:hover {
    background: rgba(0, 64, 128, 0.9);
}

/* 侧边通知 */
.banner-side {
    width: 260px;
}

.side-notice {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 350px;
}

.side-notice h3 {
    background: #004080;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
}

.side-notice ul {
    list-style: none;
    padding: 15px;
}

.side-notice ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.side-notice ul li:last-child {
    border-bottom: none;
}

.side-notice ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-notice ul li a:hover {
    color: #004080;
}

/* 内容网格 */
.content-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.news-pic-section,
.news-section,
.topic-section,
.notice-section,
.doc-section,
.links-section,
.train-section,
.check-section,
.download-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.news-pic-section,
.notice-section,
.doc-section,
.links-section,
.train-section,
.check-section,
.download-section {
    width: 386px;
}

.news-section {
    width: 388px;
}

.topic-section {
    width: 386px;
}

/* 区域头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #004080;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 18px;
    color: #004080;
    font-weight: bold;
    padding-left: 12px;
    border-left: 4px solid #004080;
}

.section-header .more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.section-header .more:hover {
    color: #004080;
}

/* 图片新闻 */
.news-pic-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-pic-item p a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.news-pic-item p a:hover {
    color: #004080;
}

/* 新闻列表 */
.news-list {
    list-style: none;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.news-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list li a:hover {
    color: #004080;
}

.news-list li .date {
    color: #999;
    font-size: 13px;
    margin-left: 10px;
}

/* 小新闻列表 */
.news-list-small {
    list-style: none;
    margin-top: 10px;
}

.news-list-small li {
    padding: 6px 0;
    position: relative;
    padding-left: 15px;
}

.news-list-small li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 4px;
    background: #004080;
    border-radius: 50%;
}

.news-list-small li a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.news-list-small li a:hover {
    color: #004080;
}

/* 专题列表 */
.topic-item {
    margin-bottom: 12px;
}

.topic-item:last-child {
    margin-bottom: 0;
}

.topic-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.topic-item a:hover {
    border-color: #004080;
}

.topic-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.topic-item span {
    font-size: 14px;
    flex: 1;
}

.topic-item a:hover span {
    color: #004080;
}

/* 安全生产系统 */
.system-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 25px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

.system-item {
    display: block;
    padding: 15px 10px;
    background: linear-gradient(135deg, #004080, #0059b3);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.system-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.3);
    color: #fff;
}

/* 通知列表 */
.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

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

.notice-list li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #d32f2f;
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 16px;
    border-radius: 50%;
}

.notice-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list li a:hover {
    color: #004080;
}

/* 公文列表 */
.doc-list {
    list-style: none;
}

.doc-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
}

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

.doc-icon {
    width: 40px;
    height: 50px;
    background: #e0e8f0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.doc-icon::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    border-width: 0 12px 12px 0;
    border-style: solid;
    border-color: #fff #99b3cc;
}

.doc-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-list li a:hover {
    color: #004080;
}

/* 链接网格 */
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.link-grid a {
    display: block;
    padding: 12px 8px;
    background: #f5f5f5;
    color: #333;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.link-grid a:hover {
    background: #004080;
    color: #fff;
    border-color: #004080;
}

/* 下载列表 */
.download-list {
    list-style: none;
}

.download-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

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

.download-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border: 2px solid #004080;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.download-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.download-list li a:hover {
    color: #004080;
}

/* 底部 */
.footer {
    background: #1a2026;
    padding: 30px 0;
    border-top: 3px solid #004080;
    color: #999;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
}

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

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
