/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    color: #333;
    text-decoration: none;
    border: 0;
    outline: none;    
}

body {
    font-family: Arial, sans-serif;
    background-color: #f6f8f9;
}

/* 顶部标题区域 */
.header {
    text-align: center;
}
.header img{
    display: block;
    width: 100%;
}

.back-to-home {
  position: fixed;
  top: 100px;
  right: 0;
  width: 50px;
  line-height: 30px;
  background-color: #007bff;
  color: white;
  display: flex;
  border-radius: 10px 0 0 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  -webkit-border-radius: 10px 0 0 10px;
  -moz-border-radius: 10px 0 0 10px;
  -ms-border-radius: 10px 0 0 10px;
  -o-border-radius: 10px 0 0 10px;
}

.back-to-home:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

/* 图标样式 */
.icon-home {
  font-size: 14px;
  color: #fff;
  font-style: normal;
}

/* 消息栏 */
.message-bar {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #edf5ff;
}

.message-bar .icons {
    background-color: #007BFF;
    color: white;
    padding: 5px 8px;
    font-size: 14px;
    border-radius: 5px;
    margin-right: 10px;
    transform: skew(-20deg);
    -webkit-transform: skew(-20deg);
    -moz-transform: skew(-20deg);
    -ms-transform: skew(-20deg);
    -o-transform: skew(-20deg);
    text-align: center;
}
.message-bar .icons * {
    transform: skew(20deg);
    -webkit-transform: skew(20deg);
    -moz-transform: skew(20deg);
    -ms-transform: skew(20deg);
    -o-transform: skew(20deg);
}
/* 功能图标区域 */
.function-icons {
    display: flex;
    justify-content: space-around;
    padding: 20px 15px;
    margin: 10px;
}

.function-icon {
    display: flex;
    flex-direction: column;
    width: 25%;
    align-items: center;
    text-align: center;
}

.function-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}
.function-icon span{
    padding: 0 15px;
    font-size: 14px;
    font-weight: bold;
}

/* 网络安全动态区域 */
.network-security-dynamic{
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* 网络安全预警区域 */
.security-warning {
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 100px;
}

.security-warning .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px;
    background-color: #e6f2ff;
    border-radius: 10px 10px 0 0;
}
.security-warning .title span{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px 0 0 0;
}

.security-warning .title span .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../images/icon6.png'); /* 需替换为实际图标路径，这里假设是聊天图标 */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

.security-warning .title span h1{
    color: #2161db;
    font-size: 18px;
}

.security-warning .title a {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 550;
}

.security-warning .title a:hover {
    text-decoration: underline;
}

.warning-list {
    padding: 10px;
}

.security-warning .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.security-warning .item:nth-child(3){
    border-bottom: 0px;
}

.security-warning .warning-list .item h1 {
    font-size: 18px;
    color: #666;
    text-align: left;
}
.security-warning .item p {
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* tab切换样式 */
.tab-container {
    background-color: white;
    margin: 15px;
    padding: 10px;
    border-radius: 10px;
}

.tab-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;      
    border-bottom: 2px solid #f2f5f6;
    text-align: left;
}

.tab-header a {
    padding: 10px 0px;
    margin: -2px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid transparent;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.tab-header a.active {
    border-bottom: 2px solid #007bff;
    color: #2161db;
}

.tab-content {
    display: none;
    padding: 0 10px;
}

.tab-content.active {
    display: block;
}

.tab-content li{
    margin: 15px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-content li a{
    font-size: 16px;
}

/* 课程列表样式 */
.course-list {
    display: flex;
    flex-direction: column;
}

.course {
    background-color: white;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-img {
    width: 127px;
    height: 100px;
    background-color: #ccc;
    margin-right: 10px;        
    border-radius: 5px;    
}

.course-img img{
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.course-info {
    flex: 1;
}

.course-info p{
    font-size: 14px;
}

.course-info p.course-time {
    margin: 5px 0;
    color: #777;
    line-height: 140%;
    font-size: 10px;
    padding: 10px 0;
    padding-left: 25px;
    background: url(../images/icon7.png) #eef6ff 8px center no-repeat;
    background-size: 10px;
}


.course-btn {
    background: linear-gradient(to right, #5594fa, #2161db);
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    float: right;
    font-size: 12px;
    border-radius: 5px;
}

/* 模块标题栏样式 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px;
    background-color: #e6f2ff;
    border-radius: 10px 10px 0 0;
}

.section-title span{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px 0 0 0;
}

.section-title span .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../images/icon5.png'); /* 需替换为实际图标路径，这里假设是聊天图标 */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

.section-title span h1 {
    color: #2161db;
    font-size: 18px;
}

.section-title  a {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 550;
}

.section-title a:hover {
    text-decoration: underline;
}

/* 文章列表项样式 */
.article-item {
    display: flex;
    align-items: center;
    text-align: left;
    margin: 0 15px;
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.article-item:nth-child(2){
    border-bottom: 0px solid #e0e0e0; 
}

.article-item img {
    width: 140px;
    height: 100px;
    margin-right: 15px;
    object-fit: cover;
}

.article-content a {
    text-align: left;
    font-size: 16px;
}

.article-content p {
    font-size: 12px;
    margin-top: 20px;
    color: #666;
    text-align: right;
}
#inwrap {
    width: 100%;
    background: #fff!important;
}
#inwrap .container {
    background: #fff!important;
}
/* 新闻标题样式 */
#inwrap .container h1 {
    font-size: 24px;
    margin: 20px 0;
}

/* 新闻发布时间样式 */
#inwrap .container .news-time {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    padding-bottom: 10px;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid #f2f5f6;
}

/* 新闻图片样式 */
#inwrap .container .news-img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* 新闻正文样式 */
#inwrap .container .news-content {
    padding: 15px;
}

#inwrap .container .guide-title {
    text-align: center;
    margin-top: 20px;
    color: #004085;
    font-size: 24px;
}

#inwrap .container .guide-content {
    background-color: white;
    min-height: 400px;
    padding: 15px;
    border-radius: 6px;
    
}
#inwrap .container .guide-content .selectpage {
    font-size: 14px;
    color: #666;
    margin: 20px auto;
    text-align: center;
    width: 100%;
}
#inwrap .container .guide-content .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

#inwrap .container .guide-content .item p {
    font-size: 12px;
    color: #666;
    text-align: right;
}   
#inwrap .container .guide-content img { 
    width: 100%;
}
#inwrap .container .guide-content p { 
    padding: 10px;
    font-size: 18px;
    line-height: 32px;
}
/*应急处理*/
.container {
    display: flex;
    flex-direction: column;
    margin: 15px;
    background-color: #e6f2ff;
    background: linear-gradient(to right, #cddfff, #edf4ff);
    border-radius: 8px;
    margin-bottom: 8rem;
}

.container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #2261db, #e3effe);
    color: white;
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    text-align: left;
}

.phone-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.phone-icon img{
    width: 100%;
}

.phone-number {
    color:#fff;
    font-size: 18px;
    font-weight: bold;
}

.phone-number i{
    color: #ff3f29;
    font-size: 20px;
    font-weight: bold;
}

.call-button {
    background-color: #f0ad4e;
    background: linear-gradient(to right, #ffb85e, #ec9628);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}


/* 服务模块通用样式 */
.service-module {
    background: linear-gradient(to right, #cee0ff, #e3efff);
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 7px;
}

.service-module .conter {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.service-module .conter p {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.service-module .conter p span{
    font-size: 18px;
}
.service-module .conter p span.icon{
    margin-right: 10px;
    display: flex;
}

.service-module .conter p img{
    width: 20px;
}

/* 服务模块标题样式 */
.service-module h2 {
    margin-top: 0;
    font-size: 20px;
    background: linear-gradient(to right, #2464db, #e3efff);
    color: white;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
}

.service-module h2 img{
    height: 22px;
    margin-left: 10px;
}

.service-module .container {
    padding: 10px 3px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}


/* 服务项按钮样式 */
.service-module .container .service-item {
    float: left;
    background-color: #f4f9ff;
    min-width: 84px;
    color: #333;
    padding: 8px 5px;
    margin: 3px 1px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}


/* 响应式样式：针对手机端 */
@media (max-width: 600px) {
    .service-module  {
        background: linear-gradient(to right, #cee0ff, #e3efff);
        border-radius: 8px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
        padding-bottom: 3px;
    }
    .service-module .container {
        background: transparent;
        width: 100%;
        margin: 10px auto;
        padding: 0;
    }
    .service-module .container .service-item {
        float: left;
        background-color: #f4f9ff;
        min-width: 84px;
        color: #333;
        margin: 4px 4px; /* 可以适当减少这个值 */
        border-radius: 5px;
        text-decoration: none;
        font-size: 14px;
        text-align: center;
    }
}

/* 底部导航栏 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
}

.bottom-nav .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-nav .icon img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}


/* 响应式调整 */
@media (max-width: 480px) {
    .function-icon img {
        width: 40px;
        height: 40px;
    }

    .security-dynamic .article img {
        width: 80px;
        height: 80px;
    }

    .bottom-nav .icon img {
        width: 25px;
        height: 25px;
    }
    .article-item img {
        width: 120px;
        height: 80px;
    }

    .section-title {
        font-size: 18px;
    }

    .article-content h3 {
        font-size: 18px;
        font-weight: bold;
    }
}
.bottom-navs{
    opacity: 0;
}

/* 顶部状态栏（模拟，实际可结合系统状态栏处理） */
.status-bar {
    height: 44px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 14px;
}
.status-bar .network {
    display: flex;
    gap: 5px;
}
/* 头部信息区域 */
.header {
    
    background: linear-gradient(to bottom, #cee0ff, #e3efff);
}
.header .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.header .user-info .tag {
    background-color: #f00;
    color: #fff;
    padding: 2px 6px;
    border-radius: 100%;
    text-align: center;
    font-size: 12px;
    margin-right: 8px;
    width: 50px;
    height: 50px;
    line-height: 50px;
}
.header .user-info .name {
    font-size: 18px;
    font-weight: bold;
}
.header .stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}
.header .stats .stat-item {
    text-align: center;
}
.header .stats .stat-item span {
    display: block;
    font-size: 14px;
}
.header .stats .stat-item .num {
    font-size: 16px;
    font-weight: bold;
    margin-top: 2px;
}
.header .menu {
    display: flex;
    justify-content: space-around;
}
.header .menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #666;
}
.header .menu .menu-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}
/* 订单导航区域 */
.order-nav {
    display: flex;
    margin: 10px;
    background-color: #fff3e5;
    border-radius: 8px;
    overflow: hidden;
}
.order-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    border-right: 1px solid #f9d8b6;
}
.order-nav .nav-item:last-child {
    border-right: none;
}
.order-nav .nav-item.active {
    background-color: #ff9933;
    color: #fff;
}
/* 功能列表区域 */
.func-list {
    margin: 10px;
}
.func-list .func-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 16px;
}
.func-list .func-item::after {
    content: "→";
    color: #999;
    font-size: 14px;
}