@charset "utf-8";

/* 门户公共样式。旧版页面和证书打印使用各自原有的样式表。 */
.portal-site {
    --portal-content-width: 1146px;
    --portal-page-width: 1200px;
    --portal-green: #22ac38;
    --portal-gutter: 24px;
    margin: 0;
    --portal-section-gap: 32px;
    --portal-block-gap: 24px;
}

.portal-site * {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
}

.portal-site li {
    list-style: none;
}

.portal-site a {
    color: #636363;
    text-decoration: none;
}

.portal-site :where(input) {
    padding: 0 10px;
}

.portal-site button {
    font-family: inherit;
    cursor: pointer;
}

.portal-main {
    display: flow-root;
    min-width: 0;
    padding-bottom: var(--portal-section-gap);
}

/* 页头：保留原背景、标志和桌面字号。 */
.portal-header {
    background-image: url(../images/logobg.png);
}

.logo {
    padding: 20px 0 27px;
}

.logo_center {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: min(var(--portal-content-width), calc(100% - var(--portal-gutter)));
    margin: 0 auto;
}

.logo_left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.logo_left > img {
    flex-shrink: 0;
    height: auto;
}

.logo_left ol {
    min-width: 0;
    color: #7d7d7d;
    font-weight: bold;
}

.logo_left ol li:first-child {
    font-size: 38px;
}

.logo_left ol li:last-child {
    font-size: 14px;
    text-align: right;
}

.logo_right {
    position: relative;
    flex-shrink: 0;
}


.logo_right .qr {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.logo_right .qr img {
    display: block;
    width: 80px;
    height: auto;
    margin-left: 40px;
}

.logo_right .qr span {
    font-size: 12px;
    margin-right: 5px;
}

/* 导航的下拉定位由各自菜单承担，展开时不裁切。 */
.nav_box {
    background-image: url(../images/navbg.png);
    border-top: 1px solid #a9a9a9;
    border-bottom: 1px solid #a9a9a9;
}

.portal-header .nav {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: min(1260px, 100%);
    margin: 0 auto;
    padding-left: 60px;
}

.nav_menu {
    position: relative;
    box-sizing: border-box;
    min-width: 116px;
    border: 1px solid transparent;
    border-left-color: #a9a9a9;
    color: #7d7d7d;
    font-size: 14px;
    line-height: 35px;
    text-align: center;
}

.nav_menu:last-child {
    border-right-color: #a9a9a9;
}

.portal-header .nav_menu > a {
    display: block;
    font-weight: bold;
}

.nav_menu.currents,
.nav_menu.is-open {
    background-image: url(../images/green.png);
    border-color: #fff;
}

.portal-header .nav_menu.currents > a,
.portal-header .nav_menu.is-open > a {
    color: #eee;
}

.drop_down_menu {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: -1px;
    display: none;
    min-width: 100%;
    border-top: 1px solid #fff;
    background: #404040;
}

.nav_menu.is-open > .drop_down_menu {
    display: block;
}

.portal-header .drop_down_menu a {
    display: block;
    padding: 0 10px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 30px;
    white-space: nowrap;
}

.portal-header .drop_down_menu a:hover,
.portal-header .drop_down_menu a:focus-visible {
    background: #fff;
    color: #7d7d7d;
}


/* 悬停只改变外观，当前栏目由服务端确定，边框始终占位。 */
@media (hover: hover) and (min-width: 768px) {
    .nav_menu:hover {
        background-image: url(../images/green.png);
        border-color: #fff;
    }
    .portal-header .nav_menu:hover > a {
        color: #eee;
    }
    .portal-header .nav:hover .nav_menu.currents:not(:hover):not(.is-open) {
        background-image: none;
        border-color: transparent;
        border-left-color: #a9a9a9;
    }
    .portal-header .nav:hover .nav_menu.currents:last-child:not(:hover):not(.is-open) {
        border-right-color: #a9a9a9;
    }
    .portal-header .nav:hover .nav_menu.currents:not(:hover):not(.is-open) > a {
        color: #636363;
    }
}

/* 页脚：桌面仍为左侧友情链接、右侧联系方式。 */
.footer {
    margin-top: 0;
}

.footer_top_box {
    background-color: #50ab3f;
    background-image: url(../images/footer_top.png);
}

.footer_top {
    display: flow-root;
    width: min(var(--portal-page-width), calc(100% - var(--portal-gutter)));
    min-height: 40px;
    margin: 0 auto;
}

.footer_top ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 56px;
    padding-right: 56px;
}

.footer_top ol li {
    margin-top: 10px;
}

.portal-site .footer_top a {
    color: #fff;
    font-size: 14px;
}

.footer_center_box {
    background: #454344;
}

.footer_center {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(var(--portal-content-width), calc(100% - var(--portal-gutter)));
    margin: 0 auto;
}

.footer_center_center {
    grid-column: 2;
    grid-row: 1;
}

.footer_center_right {
    grid-column: 1;
    grid-row: 1;
}

.footer_center > div {
    min-width: 0;
    padding: var(--portal-block-gap) 0;
}

.footer_center li {
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    overflow-wrap: anywhere;
}

.portal-site .footer_center a {
    color: #fff;
    font-size: 14px;
}

.footer_center_right li:first-child {
    margin-bottom: 20px;
}

.footer_center_center li img {
    max-width: 30px;
    margin-top: 16px;
    padding: 0 10px 0 20px;
}

.footer_bottom {
    min-height: 66px;
    background-color: #3a3a3a;
    background-image: url(../images/footer.png);
}

.footer_bottom ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: min(var(--portal-page-width), calc(100% - var(--portal-gutter)));
    margin: 0 auto;
    color: #fff;
    font-size: 14px;
    line-height: 28px;
}

.footer_bottom li {
    box-sizing: border-box;
    min-width: 0;
    margin-top: 20px;
}

.footer_bottom li:first-child {
    padding-left: 27px;
}

.footer_bottom li:nth-child(2) {
    padding-right: 27px;
}

.portal-site .footer-registration {
    display: inline-block;
    height: 20px;
    color: #fff;
    line-height: 20px;
    text-decoration: none;
}

.footer-registration img {
    float: left;
    height: 20px;
}

.footer-registration span {
    margin: 0 0 0 5px;
}

/* 面包屑和列表，避免使用全局 nav 或通用 contact 选择器。 */
.position {
    background: #f3f3f3;
}

.position ul {
    display: flex;
    flex-wrap: wrap;
    width: min(var(--portal-page-width), calc(100% - var(--portal-gutter)));
    margin: 0 auto;
    padding: 16px 0;
}

.position li {
    margin-right: 10px;
    line-height: 33px;
}

.position li img {
    max-width: 24px;
}

.portal-site .position a {
    color: #4d4d4d;
}

.portal-site .position a.active {
    color: var(--portal-green);
    font-weight: 800;
}

.portal-site .position a:hover {
    color: var(--portal-green);
    text-decoration: underline;
}

.position li span {
    margin-left: 4px;
}

.newbox,
.contentbox,
.contentTraining,
.bodyContent {
    display: flow-root;
    width: min(var(--portal-page-width), calc(100% - var(--portal-gutter)));
    margin: var(--portal-block-gap) auto 0;
    min-width: 0;
}

.newbox {
    margin-top: var(--portal-block-gap);
}

.newbox > .title,
.newbox #ajaxdiv > .title {
    padding-top: 0;
    color: var(--portal-green);
    font-size: 24px;
    font-weight: 800;
}

.new_content > ul > li {
    margin-top: var(--portal-block-gap);
}

.portal-site .new_content a {
    color: #666;
}

.portal-site .new_content a:hover {
    color: var(--portal-green);
    text-decoration: underline;
}

.article-list-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.article-list-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-list-date {
    flex-shrink: 0;
    white-space: nowrap;
}

.page-pagination {
    display: flow-root;
    margin-top: var(--portal-section-gap);
}

.portal-site .page-pagination .layui-laypage .portal-page-current {
    background-color: #22ac38;
}

.pagination-container .page-pagination {
    margin-top: 0;
}

.pagination-container .pagination {
    float: none;
}

.pagination {
    float: right;
}


.pagination > li {
    float: left;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #787878;
    line-height: 40px;
    text-align: center;
}

.pagination > li:first-child {
    border-radius: 4px 0 0 4px;
}

.pagination > li:last-child {
    border-radius: 0 4px 4px 0;
}

.pagination > li.active {
    border-color: var(--portal-green);
    background: var(--portal-green);
}

.pagination > li.disabled {
    background: #eee;
}

.portal-site .pagination > li a {
    color: #4d4d4d;
}

.portal-site .pagination > li.active a {
    color: #eee;
}

.portal-site .pagination > li.disabled a {
    color: #bbb;
    cursor: default;
}

/* 正文中的大表格在正文区域内横向滚动，不撑大整页。 */
.contentbox > h1 {
    margin: 0 50px 10px;
    color: #4d4d4d;
    text-align: center;
    overflow-wrap: anywhere;
}

.contentbox > hr,
.contentTraining > hr {
    border: 1px solid var(--portal-green);
    margin-bottom: 20px;
}

.contentbox .attribute {
    margin-bottom: 10px;
    color: #7d7d7d;
    text-align: center;
}

.contentbox .attribute span {
    padding-right: 50px;
    font-size: 14px;
}

.contentbox > .article-body {
    margin: 0 50px;
    padding-bottom: 0;
}

.article-body {
    min-width: 0;
    overflow-x: auto;
    overflow-wrap: break-word;
}

.article-body img,
.article-body video,
.article-body iframe {
    max-width: 100%;
}

.article-body pre {
    max-width: 100%;
    overflow-x: auto;
}

.contentTraining > h1 {
    margin-bottom: 10px;
    padding: 22px;
    background: var(--portal-green);
    color: #eee;
    font-size: 20px;
    text-align: left;
    overflow-wrap: anywhere;
}

.contentTraining > .article-body {
    margin: 10px 50px 0;
}

/* 关于协会。联系方式使用独立类名，避免继承首页栏目宽度。 */
.info {
    margin: 0 50px;
}

.info .title img {
    margin-right: 20px;
    height: auto;
}

.info .title p {
    color: #7d7d7d;
    font-size: 30px;
}

.info .title .eng {
    font-size: 14px;
}

.info > .content {
    padding: 0 55px;
}

.info > .content p {
    padding-top: 20px;
    color: #7d7d7d;
    font-size: 18px;
    text-indent: 2em;
}

.info .wx,
.association-contact {
    padding: 0 105px;
    margin-top: var(--portal-section-gap);
}

.info .wx .title,
.association-contact .title {
    padding-top: 0;
    color: #7d7d7d;
    font-size: 18px;
    font-weight: 600;
}

.info .wx img {
    padding-top: var(--portal-block-gap);
    max-width: 100%;
    height: auto;
}

.association-chart {
    width: 950px;
}

.association-contact {
    margin-top: var(--portal-section-gap);
}

.association-contact p {
    padding-top: 20px;
    color: #7d7d7d;
}

#maplocation {
    height: 400px;
    margin: var(--portal-section-gap) 150px 0;
}

.association-location-map {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.association-map-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* 会员和期刊。 */
.bodyContent .search ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bodyContent .search li {
    font-weight: bold;
    line-height: 36px;
}

.bodyContent .search input[type="text"] {
    box-sizing: border-box;
    width: 200px;
    height: 30px;
    padding: 0;
}

.bodyContent .search input[type="submit"] {
    width: 60px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: #51ab3f url(../images/seach.png) no-repeat center / 24px 24px;
    cursor: pointer;
}

.member_content {
    display: flow-root;
    margin-top: var(--portal-block-gap);
    padding-bottom: 30px;
    border: 1px solid #ccc;
}

.member_content .item {
    position: relative;
    float: left;
    width: 260px;
    height: 140px;
    margin: 25px 0 0 30px;
}

.member_content .item img {
    display: block;
    width: 260px;
    height: 140px;
}

.member_content .item .title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 25px;
    background: #000;
    opacity: 0.5;
    font-size: 12px;
    line-height: 25px;
}

.member_content .item .title span {
    display: block;
    padding-left: 10px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listcontent {
    width: min(var(--portal-content-width), calc(100% - var(--portal-gutter)));
    margin: 0 auto;
    padding-top: var(--portal-block-gap);
}

.listcontent_img {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    color: #666;
}

.listcontent_img > img {
    width: 360px;
    height: 200px;
    flex-shrink: 0;
}

.listcontent_img ul {
    min-width: 0;
}

.listcontent_img li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.listcontent_img li:first-child {
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
}

.listcontent_introduction,
.listcontent_achievement {
    margin-top: var(--portal-section-gap);
}

.listcontent_introduction h2,
.listcontent_achievement h2 {
    padding-left: 10px;
    background: var(--portal-green);
    color: #fff;
    font-size: 16px;
    line-height: 35px;
}

.listcontent_introduction p,
.listcontent_achievement p {
    padding: 20px;
    border: 1px solid #cacaca;
    border-top: 0;
    color: #666;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 1px;
    word-spacing: 8px;
    overflow-wrap: anywhere;
}

.MagazineContent {
    display: flow-root;
}

.MagazineItem {
    float: left;
    width: 250px;
    margin: 20px;
    background: #eee;
    color: #666;
}

.MagazineItem > img {
    display: block;
    width: 230px;
    margin: 10px;
}

.MagazineItem .MagazineText {
    margin: 10px;
    padding: 5px;
    background: #fff;
}

.MagazineText > div {
    margin: 5px;
}

.MagazineTitle {
    font-size: 18px;
}

.MagazineNum {
    font-size: 14px;
}

.portal-site .MagazineText a {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 6px;
    background: var(--portal-green);
    color: #fff;
    font-size: 12px;
}

.portal-site .MagazineText a:hover {
    background: #e88b3a;
}

/* 搜索结果保留既有配色和间距。 */
.search-results-container {
    max-width: 1200px;
    margin: var(--portal-section-gap) auto 0;
    padding: 0 20px;
}

.search-header {
    margin-bottom: var(--portal-block-gap);
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2b61a2 0%, #22ac38 100%);
    color: #fff;
}

.search-header h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

.search-info {
    font-size: 16px;
    opacity: 0.9;
    overflow-wrap: anywhere;
}

.search-box-results {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.search-input-results {
    width: 300px;
    height: 35px;
    padding: 0 15px;
    border: 0;
    border-radius: 18px;
    font-size: 14px;
}

.search-btn-results {
    flex-shrink: 0;
    height: 35px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    background: #ff6b6b;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn-results:hover {
    background: #ff5252;
}

.search-results {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.result-item:hover {
    background: #f8f9fa;
}

.result-item:last-child {
    border-bottom: 0;
}

.result-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.portal-site .result-title a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.portal-site .result-title a:hover {
    color: #3498db;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

.result-description {
    color: #34495e;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.no-results {
    padding: 60px 20px;
    color: #7f8c8d;
    text-align: center;
}

.no-results h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.pagination-container {
    margin-top: var(--portal-section-gap);
    text-align: center;
}

.keyword-highlight {
    padding: 2px 4px;
    border-radius: 3px;
    background: #fff3cd;
    font-weight: bold;
}

.portal-site .back-to-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    background: #3498db;
    color: #fff;
    transition: background-color 0.3s ease;
}

.portal-site .back-to-home:hover {
    background: #2980b9;
}

.portal-site a:focus-visible,
.portal-site button:focus-visible,
.portal-site input:focus-visible {
    outline: 2px solid #2b61a2;
    outline-offset: 2px;
}

/* 平板：只收缩可用宽度，不强制扩大 body。 */
@media (max-width: 1199px) {
    .portal-header .nav {
        width: calc(100% - var(--portal-gutter));
        padding-left: 0;
    }
    .nav_menu {
        flex: 1;
        min-width: 0;
    }
    .logo_left ol li:first-child {
        font-size: 32px;
    }
    .article-body img,
    .article-body video {
        max-width: 100% !important;
        height: auto !important;
    }
    .article-body > :not(table) {
        max-width: 100% !important;
    }
    .member_content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
        padding: 25px;
    }
    .member_content .item {
        float: none;
        width: auto;
        height: auto;
        margin: 0;
    }
    .member_content .item img {
        width: 100%;
        height: auto;
        aspect-ratio: 13 / 7;
        object-fit: cover;
    }
    .member_content > div[style] {
        display: none;
    }
    .MagazineContent {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
    .MagazineItem {
        float: none;
        width: auto;
        margin: 0;
    }
    .MagazineItem > img {
        width: calc(100% - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-btn-results,
    .result-item,
    .result-title a,
    .back-to-home {
        transition: none;
    }
}

.portal-view-switch {
    margin-left: 14px;
    text-decoration: underline;
}

.newbox > .title:empty,
.newbox #ajaxdiv > .title:empty {
    display: none;
}
