@charset "utf-8";

/* 首页栏目：桌面保持原有两栏宽度、分隔线和行距。 */
.home-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--portal-block-gap);
    width: min(1146px, calc(100% - var(--portal-gutter, 24px)));
    margin: var(--portal-section-gap) auto 0;
}

.home-news {
    min-width: 0;
    margin-bottom: 0;
}

.home-news--secondary {
    padding-left: var(--portal-block-gap);
    border-left: 1px solid #cacaca;
}

.home-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.portal-site .home-news-more {
    display: flex;
    flex-shrink: 0;
    align-self: flex-end;
    align-items: flex-end;
    min-height: 35px;
    color: #22ac38;
    font-size: 14px;
    line-height: 20px;
}

.portal-site .home-news-more:hover {
    text-decoration: underline;
}

.home-news-title {
    min-width: 0;
    font-weight: 400;
    color: #22ac38;
    font-size: 30px;
    line-height: 35px;
}


.home-news-divider {
    margin-top: 12px;
    border-bottom: 1px solid #cacaca;
}

.home-article-list {
    min-height: 0;
}

.home-article-list ol > li {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    color: #323232;
    line-height: 32px;
}

.portal-site .home-article-list ol > li > a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #7d7d7d;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-site .home-article-list ol > li > a:hover {
    text-decoration: underline;
}

.home-article-list ol > li > p {
    flex-shrink: 0;
    margin-right: 1px;
    color: #7d7d7d;
    font-size: 14px;
    white-space: nowrap;
}

.home-article-list ol > li > img {
    flex-shrink: 0;
}

.home-strip {
    width: min(1146px, calc(100% - var(--portal-gutter, 24px)));
    margin: var(--portal-section-gap) auto 0;
}

.home-strip img {
    display: block;
    width: 100%;
    height: auto;
}

.search-container {
    box-sizing: border-box;
    background: linear-gradient(90deg, #edf6ef, #f2f6fb);
    border: 1px solid #d7e7d9;
    padding: 8px 16px;
    margin: 12px auto 0;
    width: min(1146px, calc(100% - var(--portal-gutter, 24px)));
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
}

.search-container + .home-columns {
    margin-top: 16px;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.search-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #c9ddce;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    line-height: 20px;
}

.search-input:focus {
    border-color: #22ac38;
    box-shadow: 0 0 0 3px rgba(34,172,56,0.12);
}

.search-btn {
    height: 36px;
    padding: 0 20px;
    background: #2B61A2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
    line-height: 20px;
}

.search-btn:hover {
    background: #214f87;
}

.search-label {
    flex-shrink: 0;
    color: #2B61A2;
    font-size: 14px;
    font-weight: 400;
    margin-right: 0;
    line-height: 20px;
}

.education-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--portal-block-gap);
    width: min(1146px, calc(100% - var(--portal-gutter, 24px)));
    margin: var(--portal-section-gap) auto 0;
}

.education-links .education-entry {
    --entry-accent: #b6efc0;
    --entry-art: #22ac38;
    --entry-ink: #fff;
    --entry-muted: #d7efdc;
    --entry-tint: #dff2e3;
    --entry-base: #1b7526;
    --entry-wash: #1b8a2d;
    --entry-border: #22ac38;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
    height: 112px;
    padding: 14px 26px;
    border: 1px solid var(--entry-border);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(110deg, var(--entry-base), var(--entry-wash));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(29,58,96,0.12);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.education-links .education-entry--certificate {
    --entry-accent: #c4dcf7;
    --entry-art: #2B61A2;
    --entry-muted: #d7e6f7;
    --entry-tint: #e4edf9;
    --entry-base: #234f85;
    --entry-wash: #2B61A2;
    --entry-border: #2B61A2;
}

.education-links .education-entry:hover {
    color: #fff;
    border-color: var(--entry-accent);
    box-shadow: 0 10px 28px rgba(29,58,96,0.18);
}

.education-links .education-entry:focus-visible {
    outline: 3px solid var(--entry-base);
    outline-offset: 4px;
}

.education-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.education-category {
    color: var(--entry-muted);
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.5px;
}

.education-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.education-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 1px;
}

.education-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--entry-accent);
    transition: color 180ms ease, background-color 180ms ease;
}

.education-arrow svg {
    width: 14px;
    height: 14px;
}

.education-entry:hover .education-arrow {
    background: var(--entry-accent);
    color: var(--entry-base);
}

.education-art {
    display: block;
    flex-shrink: 0;
    width: 106px;
    height: 84px;
    color: var(--entry-art);
}

.home-visual-banner {
    height: 220px;
    background: #f1f3f4;
    margin-top: var(--portal-section-gap);
}

.home-visual-banner .membercontent {
    position: relative;
    width: min(1146px, calc(100% - var(--portal-gutter, 24px)));
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.architecture-visual {
    position: absolute;
    inset: 0;
}

.home-visual-banner .architecture-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
}

.home-visual-banner .architecture-slide.is-active {
    z-index: 1;
    opacity: 1;
}

.home-visual-banner .architecture-visual::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 65% 0 0;
    background: linear-gradient(transparent, rgba(12,32,47,0.3));
    pointer-events: none;
}

.architecture-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    background: rgba(13,31,44,0.25);
    color: #fff;
    cursor: pointer;
}

.architecture-control:hover {
    background: #2B61A2;
}

.architecture-control svg {
    width: 18px;
    height: 18px;
}

.architecture-prev {
    left: 16px;
}

.architecture-next {
    right: 16px;
}

.architecture-pagination {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    left: 50%;
    display: flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(12,32,47,0.4);
    transform: translateX(-50%);
}

.architecture-location {
    position: absolute;
    z-index: 3;
    left: 16px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 36px;
    padding: 4px 14px 4px 5px;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 20px;
    background: rgba(12,32,47,0.72);
    box-shadow: 0 2px 10px rgba(0,0,0,0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
}

.architecture-location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(182,239,192,0.15);
    color: #b6efc0;
}

.architecture-location-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.architecture-location-text {
    font-weight: 600;
}

.architecture-dot, .architecture-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.architecture-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255,255,255,0.55);
}

.architecture-dot.is-active::before {
    width: 20px;
    background: #fff;
}

.architecture-toggle {
    margin-left: 6px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.architecture-toggle svg {
    width: 14px;
    height: 14px;
}

.architecture-toggle .play-icon, .architecture-toggle.is-paused .pause-icon {
    display: none;
}

.architecture-toggle.is-paused .play-icon {
    display: block;
}

.architecture-control:focus-visible, .architecture-dot:focus-visible, .architecture-toggle:focus-visible {
    outline: 2px solid #8ee69e;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .education-links .education-entry, .education-arrow, .home-visual-banner .architecture-slide {
        transition: none;
    }
}

/* 平板上为完整名称保留足够的文字宽度。 */
@media (max-width: 1199px) {
    .education-links .education-entry {
        gap: 12px;
        padding: 14px 18px;
    }
    .education-art {
        width: 72px;
        height: 64px;
    }
}
