/* 重置浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

/* 导航栏的基本样式 */
.fixed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2% 0 3%;
    /* 上下内边距 */
    position: fixed;
    /* 相对定位，用于后续元素绝对定位 */
    top: 0;
    width: 100%;
    /* 横贯整个页面宽度 */
    height: 40px;
    background-color: #fff;
    /* 背景颜色 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 101;
}

/* 返回主页链接样式 */
.fixed-header h4 {
    width: 8%;
    font-size: 0.8em;
    text-decoration: none;
    color: #999;
    /* border: 1px solid #999; */
}

/* 悬浮logo样式 */
.fixed-header h5 {
    width: 20%;
    min-width: 239px;
    height: 36px;
    background: url("../images/fixed_header_bg1.png") no-repeat center center;
    display: none;
    cursor: pointer;
    /* border: 1px solid #999; */
}

/* 搜索文章表单容器样式 */
.fixed-header form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* border: 1px solid #ccc; */
}

/* 搜索文章输入框样式 */
.search-input {
    width: 18em;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    /* 圆角仅左上和左下 */
}

/* 搜索文章按钮样式 */
.search-button {
    width: 5em;
    height: 28px;
    padding: 0 10px;
    border: none;
    background-color: #555;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    /* 圆角仅右上和右下 */
}

.search-button:hover {
    background-color: #777;
    /* 鼠标悬停时背景色变深 */
}

.background-layer {
    width: 100%;
    /* min-height: 140vh; */
    margin: 0 auto;
    /* background: url("../images/bg_layer.jpg") no-repeat center 0, #ffffff;
    background-size: contain; */
}

.container {
    width: 100%;
    margin: 43px auto 0;
    background-color: #f4f4f4;
}

header {
    color: #301919;
    position: relative;
    /* 如果有绝对定位的子元素，这可能有用 */
}

header div {
    width: auto;
    height: 6.6em;
    background: url("../images/head_bg2.jpg") no-repeat 1.3em center, #ffffff;
    background-size: auto;
    /* 保持图片原始大小 */
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

header nav {
    padding: 0 5%;
    font-size: 18px;
    background-color: #2f4f4f;
    /* 统一背景色 */
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul li {
    display: inline;
    position: relative;
    /* 使子菜单相对于父菜单定位 */
}

header nav ul li a {
    display: block;
    padding: 15px 20px;
    /* 膨胀<a>标签, 使鼠标移到文字区域时，都能点击 */
}

header nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    /* 子菜单位于父菜单下方 */
    left: 0;
    background-color: #2f4f4f;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    /* 确保子菜单在其他内容之上 */
}

header nav ul li ul li {
    display: list-item;
    white-space: nowrap;
}

header nav ul li:hover>ul {
    display: block;
}

header nav ul li ul li:hover {
    background-color: #666;
}

header nav ul li ul li:last-child:hover {
    border-radius: 0 0 8px 8px;
}

header form {
    display: flex;
    align-items: center;
    padding: 1.5em 25%;
    background-color: #66cdaa;
    border-bottom: #2f4f4f 3px solid;
}

header input[type="text"] {
    display: flex;
    flex: 5;
    height: 38px;
    padding: 8px 20px;
    border: 1px solid #35424a;
    border-right: 0;
    /* 右边框为 0 */
    border-radius: 4px 0 0 4px;
    outline: none;
}

header button {
    display: flex;
    flex: 1;
    height: 38px;
    justify-content: center;
    /* 水平居中文本 */
    align-items: center;
    /* 垂直居中文本 */
    padding: 7px 15px;
    border: none;
    background: #35424a;
    /* letter-spacing: 0.2em; */
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

header button:hover {
    background: #b7331c;
}

main {
    margin: 0 auto;
    width: 96%;
    padding: 0;
}

.banner {
    position: relative;
    width: 100%;
}

.slide-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide-container .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    box-sizing: border-box; 
}

.slide-container .slide {
    min-width: 100%;
    box-sizing: border-box; 
}

.slide-container img {
    width: 100%;
    height: 24em;
    object-fit: cover;
}
/* 按钮样式 */
#prev,
#next {
    position: absolute;
    top: 50%;
    width: 1em;
    height: 4em;
    color: #efefef;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    /* 半透明背景 */
    border: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
    /* 确保按钮在图片之上 */
}

#prev {
    left: 10px;
    /* border-radius: 0 10px 0 10px; */
}

#next {
    right: 10px;
    /* border-radius: 10px 0 10px 0; */
}

/* #prev:hover {
    width: 1.4em;
    left: -34px;
    top: 51%;
}

#next:hover {
    width: 1.4em;
    right: -34px;
    top: 51%;
} */


.latest-news {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px 20px 15px;
    background-color: #fff;
}

.latest-news section {
    flex: 0 0 31%;
    max-width: 31%;
}

.latest-news section:last-child {
    margin-right: 0;
}

.latest-news h4,
.image-gallery h4,
.links h4,
.related-info h4 {
    position: relative;
    margin-top: 0;
    margin-bottom: 4px;
    height: 40px;
    padding-left: 18px;
    font-family: "Arial", sans-serif;
    display: flex;
    /* 使用 Flexbox 布局 */
    align-items: center;
    border-bottom: 1px solid #dfdfdf;
}

.latest-news h4::before,
.image-gallery h4::before,
.links h4::before,
.related-info h4::before {
    content: "";
    /* 伪元素的内容为空 */
    position: absolute;
    /* 绝对定位 */
    top: 50%;
    /* 垂直居中 */
    left: 0;
    /* 靠左 */
    transform: translateY(-50%);
    /* 精确垂直居中 */
    width: 8px;
    /* 竖线的宽度 */
    height: 50%;
    /* 与 h4 的高度相同 */
    background-color: #66cdaa;
    /* 竖线的颜色 */
}

.latest-news article {
    margin-top: 0px;
}

.latest-news article h5 {
    height: 36px;
    margin-top: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.latest-news section article:nth-of-type(1) h5 {
    font-weight: bold;
}

.latest-news h5 span:first-child {
    transform: translateY(-5%);
    /* 向上移动5% */
    width: auto;
    padding: 1px 3px;
    color: #fff;
    font: 0.8em sans-serif;
    text-align: center;
    margin-right: 10px;
    border-radius: 3px;
    /*border: 1px solid #99ccaa;*/
    background-color: #7eaf8e;
}

.latest-news h5 span:nth-child(2) {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    /* 与时间之间留一些间距 */
    /*border-bottom: 1px dotted #eeccaa;*/
}

.latest-news h5 time {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.7em;
    color: #999;
    margin-left: auto;
    /* 使时间右对齐 */
}

.latest-news a {
    color: darkslategray;
    text-decoration: none;
}

.latest-news a:hover {
    color: darkorange;
}

.latest-news h5 span:first-child a {
    color: #fff;
    text-decoration: none;
}

/* 图片画廊部分 */
.image-gallery {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #fff;
}

.image-gallery div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 0;
}
.image-gallery a {
    display: block;
    max-width: 19%;
    min-width: 16%;
    border: 1px solid #dfdfdf;;
    border-radius: 8px;
}
.image-gallery img {
    display: block;
    width: 100%;
    min-height: 150px;
    object-fit: cover;
    /* 保持图片比例的同时填充元素的尺寸 */
    border-radius: 8px;
}

footer {
    margin-top: 0;
}

.links {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #fff;
}

.links ul {
    padding: 20px;
    list-style: none;
    text-align: center;
}

.links li {
    display: inline-block;
    margin: 5px 10px;
}

.links a {
    color: darkslategray;
}

.links a:hover {
    color: #b7331c;
    text-decoration: none;
}

.bottom {
    padding: 1.6em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2f4f4f;
    font-size: 0.9em;
    color: #e3a3a3;
    border-top: 6px solid #66cdaa;
}

.bottom a {
    color: #e3a3a3;
}

.bottom a:hover {
    text-decoration: none;
}

.bottom .beian {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
.bottom .beian img {
    width: 16px;
    height: 16px;
    margin: 0.2em 0.3em 0 0;
  }

/* 列表页和详情页右侧部分通用样式 */
.content-part {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 10px;
}

.left-of-content {
    flex: 0 0 75%;
    max-width: 75%;
    min-height: 105vh;
    padding: 10px 40px 30px;
    background-color: #fff;
}

.right-of-content {
    flex: 0 0 24%;
    max-width: 24%;
    margin-left: 10px;
    transition: top 0.3s ease;
    /* 平滑过渡效果 */
    /* border: 1px solid #ccc; */
}

.right-of-content div {
    padding: 8px 20px 20px;
    background-color: #fff;
}

.right-of-content h5 {
    width: 32%;
    padding: 6px 10px;
    margin-top: 1em;
    font-weight: normal;
    text-align: center;
    color: #dfdfdf;
    background-color: #2f4f4f;
    cursor: pointer;
    display: none;
}

.related-info.sticky {
    position: fixed;
    width: 18em;
    top: 50px;
    border: 1px solid #dfdfdf;
    display: block;
    z-index: 10;
}

.related-info ul {
    list-style: inside;
    list-style-type: square;
    padding: 0;
}

.related-info ul li {
    font-size: 0.9em;
    margin-top: 0.6em;
}

.related-info li::marker {
    color: #d2d2d2;
    /* 设置列表项标志的颜色为红色 */
}

.related-info ul li a {
    text-decoration: none;
    color: darkslategray;
}

.related-info ul li a:hover {
    color: darkorange;
}

/* 列表页和详情页左侧详情部分通用样式 */

.list-article-detail h6 {
    font-size: 16px;
    font-weight: 400;
    /* text-align: right; */
    color: #bababa;
    padding-top: 10px;
}

.list-article-detail h6 a {
    color: #bababa;
}

.list-article-detail h6 a:hover {
    margin-left: 2px;
    text-decoration: none;
    color: darkorange;
}

.list-article-detail h1 {
    font-size: 2em;
    margin: 0.6em 0 0.6em;
}

/* 列表页左侧专用样式 */

.article-list {
    list-style: none;
    padding: 0;
}

.article-item {
    border-top: 1px solid #ddd;
    padding: 1em 0;
    display: flex;
    align-items: stretch;
}

.article-thumbnail {
    flex: 0 0 180px;
    /* 固定宽度 */
    margin-right: 1.5em;
}

.article-thumbnail img {
    max-width: 100%;
    min-height: 90px;
    object-fit: cover;
    border-radius: 0.4em;
}

.article-content {
    flex: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.1em 0;
}

.article-title {
    flex: 1;
    font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    font-weight: 400;
    font-size: 1.6em;
    margin: 0;
}

.article-title a {
    text-decoration: none;
    color: #363636;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9em;
    color: #b2b2b2;
}

.article-excerpt {
    font-size: 1em;
    line-height: 1.5em;
}

.article-loading {
    height: 6em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-loading.hidden {
    display: none;
}

.no-more {
    text-align: center;
    color: #999;
}

/* 详情页左侧专用样式 */

.list-article-detail .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.2em;
    margin-bottom: 1.2em;
    color: #666;
    border-bottom: 1px solid #eee;
}

.list-article-detail .content {
    text-indent: 2em;
    line-height: 2;
}

.list-article-detail .content img {
    width: 100%;
    display: block;
    margin: 10px 0;
    text-align: center;
}

.list-article-detail .content p {
    margin-bottom: 0.5em;
}

/* 证书查询框样式 */

.query-cert-h5 {
    padding: 10px 30px;
    margin-bottom: 10px;
    color: #fefefe;
    font-size: 1.2em;
    /* font-weight: 400; */
    text-align: center;
    background-color: slategrey;
    border-radius: 4px 4px 0 0;
}

.query-cert-ul {
    list-style-type: none;
    padding: 0 30px;
}

.query-cert-li {
    display: flex;
    padding: 10px 0;
    font-size: 1em;
    border-bottom: 1px solid #ccc;
}

.query-cert-span-label {
    width: 30%;
    text-align: center;
    /* padding-right: 10px; */
    box-sizing: border-box;
}

.query-cert-span-value {
    width: 70%;
    text-align: center;
    box-sizing: border-box;
}

.query-cert-span-click {
    width: 70%;
    text-align: center;
    text-decoration: underline;
    box-sizing: border-box;
    cursor: pointer;
}

.query-cert-btn-close {
    display: block;
    margin: 16px auto;
    padding: 6px 20px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    width: fit-content;
    /* 使按钮宽度适应内容 */
}

/* 搜索结果页面内容样式 */
.search-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    background-color: #fefefe;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    min-height: 105vh;
    list-style: none;
}

.search-result-content li {
    font-size: 1.2em;
    color: #333;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    /* background-color: #fefefe; */
    padding: 0.5em;
    border-radius: 4px;
    width: fit-content;
    margin: 0.5em auto;
}

.search-result-content li a {
    text-decoration: none;
    color: darkslategray;
}

.search-result-content li a:hover {
    color: darkorange;
}

.search-result-content li.title {
    width: 90%;
    margin: 1em auto 1em;
    font-size: 0.9em;
    background-color: navajowhite;
}

.search-result-content li.row1 {
    background-color: #f0f0f0;
}

.search-result-content li.row2 {
    background-color: #ffffff;
}

/* 等级测评报名页面样式 */

.registration-form-container {
      max-width: 38%;
      margin: 5% auto;
      background: #fff;
      padding: 5% 5% 3%;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .registration {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .registration > li {
      margin-bottom: 20px;
    }
    .registration > li:last-child {
        text-align: center;
        margin-top: 40px;
    }

    .registration label {
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
      color: #333;
    }

    .registration input[type="text"],
    .registration input[type="email"],
    .registration input[type="password"],
    .registration input[type="date"],
    .registration select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 16px;
      box-sizing: border-box;
    }

    .radio-group {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .radio-group label {
      display: flex;
      align-items: center;
      gap: 5px;
      font-weight: normal;
      cursor: pointer;
    }
    
    .radio-group label:first-child {
      font-weight: bold;
      cursor: default;
    }

    .form-button {
      width: 32%;
      padding: 12px;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 4px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .form-button:hover {
      background-color: #0056b3;
    }

    .form-button-back {
      width: 20%;
      padding: 12px 6px;
      background-color: #c2c5c9;
    }

    .form-button-submit {
      width: 50%;
      background-color: #b3b3b3;
    }

    .checkform-h3 {
        text-align: center;
        margin-bottom: 10%;
    }
    .label_key {
        display: inline-block;
        width: 20%;
        margin: 0 5% 0 25%;
        font-weight: normal;
    }
    .label_value {
        /* display: inline-block; */
        text-decoration: underline;
        text-decoration-color: coral;
    }

    .preview-ul {
        display: table;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .preview-li {
        display: table-row;
        border: 1px solid #66cdaa;
    }
    .preview-li-label {
        display: table-cell;
        width: 40%;
        text-align: right;
        padding: 5px;
        font-weight: bold;
        color: #999;
    }
    .preview-li-value {
        display: table-cell;
        text-align: left;
        text-decoration: underline;
        text-decoration-color: coral;
        padding-left: 5%;
    }
    .preview-buttons-ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .preview-buttons-ul > li {
        text-align: center;
        margin: 10% 0;
    }

    .success-h2 {
        padding-left: 41%;
        font-weight: normal;
    }
    .success-tip {
        color:#c2c5c9;
        padding-left: 40%;
        margin-top: 1%;
        font-weight: normal;
    }

    .success-div {
        max-width: 25%;
        margin: 20vh auto 60vh;
        padding: 2%;
        background: url("../images/success.png") no-repeat 26% center;
    }