* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
a{
    text-decoration: none;
}
/* 顶部横幅 */
.banner {
    width: 100%;
    height: 180px;
    background: url('../image/header-banner.png') center center no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    /* 改为左对齐 */
    justify-content: flex-start;
}

.banner-title {
    /* 与 nav-container 保持相同的宽度和边距 */
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;  /* 根据实际需要调整，与导航栏内容对齐 */
    
    color: #1A4B8C;
    -webkit-text-stroke: 1px #FFF;
    font-size: 42px;
    font-weight: bold;
    /* 移除 absolute 定位，使用 flow 布局 */
    position: relative;
}

/* 导航栏 */
.navbar {
    background-color: #3862C0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
    /* 添加与 banner-title 相同的左侧内边距 */
    padding-left: 20px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    /* 关键：flex: 1 让每个 item 平均分配剩余空间 */
    flex: 1;
    /* 水平居中文字 */
    justify-content: center;
    /* 调整间距，或根据内容自适应 */
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    /* 可选：文字不换行 */
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    background-color: #4A82FD;
}

/* 面包屑 */
.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;
}

/* 主容器 */
.container {
    background: url('../image/bg.png') center center no-repeat;
    background-size: cover;
    /* 至少占满视口，内容多时可滚动 */
    min-height: 100vh;
    /* 关键：确保从顶部开始 */
    padding-top: 0;
}

/* 调整主容器，去除顶部大间隙 */
.main-container {
    max-width: 1400px;
    /* 改为较小的顶部间距或删除 */
    margin: 0 auto;
    padding: 20px;
    /* 如果背景是浅色的，可加半透明底色让内容可读 */
    /* background: rgba(255,255,255,0.95); */
}


/* 第一行网格布局 */
.row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

/* 第二行网格布局 */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

/* 卡片基础样式 */
.card {
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    gap: 5px; 
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header .card-title {
    width:160px;
    background: url('../image/tittle-bg.png') center right no-repeat;
    position: relative;
    padding-left: 12px;
}
.card-title .card-title-en{
    width:100%;
    height:12px;
    color:#B4B4B4;
    font-size: 12px;
    line-height: 12px;
}
.card-title .card-title-cn{
    width:100%;
    line-height: 50px;
    color:#3460B5;
    font-size: 36px;
    font-weight: bold;
}
.card-header .divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(
        to bottom,
        transparent 0px,
        transparent 10px,      /* 上面10px透明 */
        #e5e7eb 10px,          /* 从10px开始显示颜色 */
        #e5e7eb 30px,          /* 到30px结束颜色（共20px） */
        transparent 30px,      /* 下面10px透明 */
        transparent 40px
    );
    margin: 0 5px;
}
.card-header .news-tabs {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    padding: 0 5px;
    margin-top: 15px;
}

.news-tab {
    color: #64748b;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.news-tab:hover, .news-tab.active {
    color: #3862C0;
    border-bottom-color: #3862C0;
}

.card-subtitle {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-more{
    padding-top:30px;
    padding-left:30px;
}
.view-more {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #3b82f6;
}

/* 安全资讯 */
.news-list {
    padding: 10px;
}

.news-item {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.news-item:hover {
    transform: translateX(5px);
}

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

.news-img {
    width: 160px;
    height: 120px;
    object-fit: cover;
}

.news-content {
}

.news-title {
    font-size: 15px;
    color: #212121;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-desc {
    font-size: 13px;
    color: #8C8C8C;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #3862C0;
    color: #fff;
    padding: 10px;
    min-width: 60px;
    position: absolute;
    margin-top: 20px;
    margin-left: 130px;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}
.card-right {
    overflow: hidden;
}
.tzgglogin{
    display: grid;
    grid-template-columns: 58% 40%;
    gap: 10px;
    margin-bottom: 25px;
}
/* 通知通告 */
.notice-list {
    padding: 0px 20px;
    border-left: 1px dotted #3862C0;
}

.notice-item {
    padding: 0 0 20px 0;
    border-bottom: 1px dotted #3862C0;
}

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

.notice-type {
    color: #3862C0;
    font-weight: 500;
}

.notice-title {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    margin: 5px 0;
}

.notice-date {
    color: #94a3b8;
    font-size: 13px;
}

/* 登录管理 */
.login-container {
    overflow: hidden;
}

.login-header {
    background: url('../image/login_title.png') center center no-repeat;
    text-align: center;
    padding: 20px;
    position: relative;
}

.login-header::before,
.login-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
}

.login-header::before {
    left: 20%;
}

.login-header::after {
    right: 20%;
}

.login-title {
    font-size: 18px;
    color: #2B70EF;
    font-weight: 600;
}

.login-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-card {
    height:120px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.login-yq{
    background: url('../image/yq_bg.png') center center no-repeat;
    background-size: cover;
}

.login-qy{
    background: url('../image/qy_bg.png') center center no-repeat;
    background-size: cover;
}

.login-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}
.login-card-info{
    margin-left:125px;
}
.login-card-info h4 {
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 5px;
}
.login-card-info .login-info-title {
    color: #fff;
    margin-top: 12px;
    font-size: 15px;
    padding-left: 2px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    margin-top: 8px;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.9;
}

/* 安全培训轮播 */
.training-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f8fafc;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

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

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.9), transparent);
    color: #fff;
    padding: 30px 20px 20px;
}

.carousel-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.carousel-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.4);
}

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

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 服务列表 */
.service-list {
    padding: 10px;
    border-left: 1px dotted #3862C0;
}

.service-item {
    padding-bottom: 10px;
    margin-bottom:20px;
    border-bottom: 1px dashed #3862C0;
}

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

.service-title {
    font-size: 15px;
    color: #212121;
    margin-bottom: 8px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-desc {
    font-size: 13px;
    color: #8C8C8C;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 应急科普 */
.science-list {
    padding: 20px;
    border-left: 1px dotted #3862C0;
}

.science-item {
    display: flex;
    gap: 15px;
    padding-bottom:10px;
    margin-bottom: 20px;
    cursor: pointer;
    border-bottom: 1px dashed #3862C0;
}

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

.science-img {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #e2e8f0;
}

.science-content {
    flex: 1;
}

.science-title {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
}

.science-date {
    font-size: 12px;
    color: #8C8C8C;
}

/* 应用中心 */
.app-center {
    display: grid;
    grid-template-columns: 32% 65%;
    gap: 10px;
}

.app-center-left{
    background: url('../image/applic_bg.png') center center no-repeat;
    background-size: cover;
    height:160px;
    padding:20px;
    color:#fff;
}
.app-center-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.app-center-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.6;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.app-item {
    padding: 10px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.app-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.app-item .app-item-title{
    display: grid;
    gap: 5px;
    grid-template-columns: 20% 35% 40%;
    border-bottom:1px #F0F2F5 solid;
    padding-bottom:10px;
}
.app-item .app-item-title .app-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}
.app-item .app-item-title .app-title{
    font-size: 13px;
    font-weight: bold;
    line-height: 30px;
    padding-top: 10px;
}
.app-item .app-item-title .app-category span{
    border:1px #2B70EF solid;
    padding:3px;
    color:#2B70EF;
}
.app-item .app-item-title .app-category{
    font-size: 13px;
    font-weight: bold;
    line-height: 30px;
    padding-top: 10px;
}
.app-info{
    margin-top:10px;
    color:#8C8C8C;
    font-size: 12px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-info h5 {
    font-size: 14px;
    margin-bottom: 3px;
}

.app-info span {
    font-size: 11px;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.app-info p {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
    line-height: 1.4;
}

/* 优化后的轮播图样式 */
.training-carousel {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide.active .carousel-img {
    transform: scale(1.05);
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.95) 0%, rgba(30, 64, 175, 0.8) 60%, transparent 100%);
    color: #fff;
    padding: 40px 20px 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-tag {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
}

.carousel-title {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.carousel-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 控制按钮优化 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #1e40af;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 指示点优化 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot:hover {
    background: rgba(255,255,255,0.8);
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 自动播放进度条 */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    width: 100%;
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: #60a5fa;
    width: 0%;
    transition: width 0.1s linear;
}

/* 页脚 */
.footer {
    background: #F2F2F2;
    color: #212121;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    border-left: 1px #ccc solid;
    padding: 0 20px;
}

.footer-nav a:first-child {
    border-left: none;
}

.footer-info {
    font-size: 13px;
    line-height: 2;
}

.copyright {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .row-1, .row-2 {
        grid-template-columns: 1fr;
    }
            
    .nav-item {
        padding: 0 20px;
        font-size: 14px;
    }
            
    .banner-title {
        font-size: 32px;
    }
}