* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a{
    text-decoration: none;
}

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

.gopage {
  cursor:pointer;
}

/* 顶部导航栏样式 */
header {
    background-color: #1a4b8c;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.nav-menu {
    display: flex;
    position: static;
    background-color: transparent;
    padding: 0;
    transform: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu a i {
    font-size: 18px;
    margin-bottom: 5px;
}

.nav-menu a:hover {
    color: #ffd700;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1a4b8c;
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }

    .logo h1 span {
        display: none;
    }
}

/* 首页轮播图样式 */
.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-top: 100px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item.active {
    opacity: 1;
}

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

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 16px;
    margin-bottom: 15px;
}

.carousel-btn {
    background-color: #ffd700;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background-color: #ffffff;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 主内容区样式 */
main {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a4b8c;
    color: #1a4b8c;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ffd700;
}

/* 安全资讯模块样式 */
.safety-news {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.safety-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-category {
    display: flex;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 10px 20px;
    background-color: #f0f4f8;
    border-radius: 30px;
    margin-right: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tag.active, .category-tag:hover {
    background-color: #1a4b8c;
    color: white;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #f0f4f8;
    transition: all 0.3s;
}

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

.news-item img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
    transition: all 0.5s;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a4b8c;
}

.news-info p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-info .date {
    font-size: 14px;
    color: #999;
}

.news-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #1a4b8c;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 应急科普模块样式 */
.emergency-science {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.emergency-science:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.science-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.science-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s;
}

.science-item:hover img {
    transform: scale(1.1);
}

.science-item h3 {
    position: absolute;
    bottom: 5px;
    /*left: 20px;*/
    padding:0 10px;
    color: white;
    font-size: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.science-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

.science-item h3 {
    position: relative;
    z-index: 2;
}

/* 安全服务模块样式 */
.safety-service {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.safety-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.service-item:hover {
    background-color: #e9ecef;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    transition: all 0.3s;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-content h3 {
    color: #1a4b8c;
    font-size: 18px;
    margin-bottom: 10px;
}

.service-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-date {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* 水平滚动样式 */
.service-list.horizontal {
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #1a4b8c #f0f4f8;
}

.service-list.horizontal::-webkit-scrollbar {
    height: 8px;
}

.service-list.horizontal::-webkit-scrollbar-track {
    background: #f0f4f8;
    border-radius: 10px;
}

.service-list.horizontal::-webkit-scrollbar-thumb {
    background-color: #1a4b8c;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .service-content p {
        text-align: center;
    }
}

/* 培训类别标签样式 */
.training-category {
    display: flex;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.training-category .category-tag {
    padding: 8px 20px;
    background-color: #f0f4f8;
    border-radius: 30px;
    margin-right: 15px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.training-category .category-tag.active {
    background-color: #1a4b8c;
    color: white;
}

/* 培训课程列表样式 */
.safety-training {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.training-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.training-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.training-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
}

.training-info {
    padding: 15px;
    flex: 1;
}

.training-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a4b8c;
}

.training-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.duration {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.course-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.video-type {
    background-color: #ff4757;
    color: white;
}

.audio-type {
    background-color: #00b894;
    color: white;
}

.text-image-type {
    background-color: #5352ed;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .training-item {
        flex-direction: column;
    }
    
    .training-item img {
        width: 100%;
        height: 180px;
    }
}

/* 通知通告模块样式 */
.notice-board {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.notice-board:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f4f8;
    transition: all 0.3s;
}

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

.notice-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a4b8c;
}

.notice-content .date {
    font-size: 14px;
    color: #999;
}

.notice-tag {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: white;
}

.notice-tag.normal {
    background-color: #4caf50;
}

.notice-tag.tags {
    background-color: #5352ed;
}

.notice-tag.urgent {
    background-color: #f44336;
}

.subscribe-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #1a4b8c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.subscribe-btn:hover {
    background-color: #153a6d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 应用中心模块样式 */
.app-center {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.app-center:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.app-category {
    margin-top: 25px;
    margin-bottom: 25px;
}

.app-category select {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 180px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a4b8c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.app-item {
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #e9ecef;
}

.app-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #1a4b8c;
    opacity: 0;
    transition: all 0.3s;
}

.app-item:hover::before {
    opacity: 1;
}

.app-item .app-icon{
    width:auto;
    height:40px;
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s;
}

.app-item .app-icon img{
    width:auto;
    height:40px;
}

.app-item i {
    font-size: 32px;
    color: #1a4b8c;
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s;
}

.app-item:hover i {
    transform: scale(1.1);
    color: #ffd700;
}

.app-item p {
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
}

.app-item:hover p {
    color: #1a4b8c;
}

/* 底部样式 */
footer {
    background-color: #1a4b8c;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-info {
    width: 40%;
}

.footer-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    width: 60%;
    justify-content: flex-end;
}

.footer-links ul {
    list-style: none;
    margin-left: 40px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
    padding-left: 10px;
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}


/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination li {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}
        
.pagination li a{
    color:#333;
    text-decoration: none;
}

.pagination li:hover {
    background-color: #f0f4f8;
}

.pagination li.active {
    background-color: #1a4b8c;
    color: white;
    border-color: #1a4b8c;
}

/* 面包屑 */
.position{
    color: #1a4b8c;
    display:flex;
}
.position-item{
    padding:0 5px;
}
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #1a4b8c;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.back-btn i {
    margin-right: 5px;
}

.back-btn:hover {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .science-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-info, .footer-links {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-links ul {
        margin-left: 0;
        margin-right: 40px;
    }

    .science-grid {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1a4b8c;
        flex-direction: column;
        padding: 20px 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }

    .carousel {
        height: 300px;
    }

    .carousel-caption {
        left: 20px;
        bottom: 20px;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .training-item {
        flex-direction: column;
    }

    .training-item img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .notice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-tag {
        margin-top: 10px;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .position{
        display:none;
    }
}

/* 模块动画效果 */
.animated {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.safety-news {
    animation-delay: 0.1s;
}

.emergency-science {
    animation-delay: 0.2s;
}

.safety-service {
    animation-delay: 0.3s;
}

.safety-training {
    animation-delay: 0.4s;
}

.notice-board {
    animation-delay: 0.5s;
}

.app-center {
    animation-delay: 0.6s;
}

.applic-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

