@charset "UTF-8";

/* 页面初始化 */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@font-face {
    font-family: 'MiSans';
    src: url('/static/cn/fonts/MiSans/MiSans-Normal.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiSans';
    src: url('/static/cn/fonts/MiSans/MiSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* banner */
.glossary-header {
    width: 100%;
    background: url('/static/cn/images/glossary/glossary_header_bg.webp') no-repeat center/cover;
    background-size: 100% 100%;
}

.glossary-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 154px;
    padding-bottom: 30px;
}

.glossary-banner .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.glossary-banner-card {
    position: relative;
    height: 476px;
    padding: 50px;
    border-radius: 20px;
    background: #ffffff33;
    border: 1px solid #ffffff;
    box-shadow: 0px 4px 20px 0px #0000000d;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.glossary-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.glossary-banner-left {
    position: relative;
    z-index: 1;
    max-width: 530px;
}

.glossary-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    height: 30px;
    padding: 0 16px;
    border-radius: 15px;
    background: #e3f4ff;
    border: 1px solid #276bd83b;

    font-family: MiSans;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: #276bd8;
}

.glossary-title {
    margin: 0 0 28px;
    font-family: MiSans;
    font-weight: 600;
    font-size: 46px;
    line-height: 64px;
    color: #000000;
}

.glossary-desc {
    margin: 0;
    font-family: MiSans;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #333333;
}

.glossary-banner-right {
    flex-shrink: 0;
    width: 581px;
    height: 350px;
    height: 452px;
    margin-top: -30px;
    overflow: hidden;
}

.glossary-banner-right img {
    display: block;
    width: 100%;
}

/* 搜索框：压在卡片底边，一半在卡片内一半在卡片外 */
.glossary-search {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 180px);
    max-width: 1020px;
    height: 60px;
    padding: 0 20px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.glossary-search img {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.glossary-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    font-family: MiSans;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    border: none;
    outline: none;
    background: transparent;
}

.glossary-search-clear {
    flex-shrink: 0;
    font-size: 18px;
    color: #a1a9ab;
    cursor: pointer;
}

.glossary-search-clear:hover {
    color: #666;
}

.glossary-search input::placeholder {
    color: #a1a9ab;
}

/* Contents */
.glossary-contents {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

.glossary-contents-title {
    margin-bottom: 50px;
    font-family: Poppins;
    font-weight: 600;
    font-size: 30px;
    line-height: 45px;
    color: #000;
}

.glossary-grid {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 40px;
}

.glossary-letter {
    margin-bottom: 20px;
    font-family: Poppins;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #333;
}

.glossary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.glossary-list li {
    margin-bottom: 12px;
    font-family: Poppins;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.glossary-list li:last-child {
    margin-bottom: 0;
}

.glossary-list a {
    color: #0d56bf;
    text-decoration: none;
}

.glossary-list a.is-underline,
.glossary-list a:hover {
    text-decoration: underline;
}

.glossary-empty {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: MiSans;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #7d8588;
}

.glossary-empty span {
    color: #333;
}

.glossary-empty a {
    color: #0d56bf;
    text-decoration: underline;
}

.glossary-updated {
    margin: 20px auto 0;
    padding-top: 20px;
    max-width: 1020px;
    width: 100%;

    font-family: Poppins;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #555555;
    border-top: 1px solid #eeeeee;
}

.glossary-updated span {
    font-weight: 400;
    color: #7d8588;
}

/* ========== 屏幕适配 ========== */

/* 小于内容宽度：两侧留白，卡片高度随内容 */
@media screen and (max-width: 1240px) {
    .glossary-banner,
    .glossary-contents {
        padding-left: 20px;
        padding-right: 20px;
    }
    .glossary-banner-card {
        height: auto;
        min-height: 476px;
        padding-bottom: 60px;
    }
    .glossary-banner-content {
        gap: 30px;
    }
    .glossary-banner-left {
        flex: 1;
        min-width: 0;
    }
    .glossary-banner-right {
        flex-shrink: 1;
        width: 46%;
        max-width: 581px;
        height: auto;
        margin-top: -20px;
    }
    .glossary-search {
        width: calc(100% - 100px);
    }
}

/* 平板 */
@media screen and (max-width: 1024px) {
    .glossary-banner {
        padding-top: 120px;
    }
    .glossary-banner .breadcrumb {
        margin-bottom: 40px;
    }
    .glossary-banner-card {
        min-height: 0;
        padding: 40px 40px 70px;
    }
    .glossary-banner-content {
        align-items: center;
    }
    .glossary-banner-right {
        width: 40%;
        margin-top: 0;
    }
    .glossary-title {
        margin-bottom: 20px;
        font-size: 36px;
        line-height: 50px;
    }
    .glossary-desc {
        font-size: 15px;
        line-height: 24px;
    }
    .glossary-search {
        width: calc(100% - 80px);
        height: 56px;
    }
    .glossary-search input {
        font-size: 16px;
    }
    .glossary-contents {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .glossary-contents-title {
        margin-bottom: 40px;
    }
}

/* 手机 */
@media screen and (max-width: 768px) {
    .glossary-banner {
        padding: 100px 16px 28px;
    }
    .glossary-banner .breadcrumb {
        margin-bottom: 24px;
    }
    .glossary-banner-card {
        padding: 24px 16px 52px;
        border-radius: 16px;
    }
    .glossary-banner-right {
        display: none;
    }
    .glossary-tag {
        height: 26px;
        margin-bottom: 14px;
        padding: 0 12px;
        font-size: 13px;
    }
    .glossary-title {
        margin-bottom: 14px;
        font-size: 28px;
        line-height: 40px;
    }
    .glossary-desc {
        font-size: 14px;
        line-height: 22px;
    }
    .glossary-search {
        width: calc(100% - 32px);
        height: 50px;
        padding: 0 14px;
        border-radius: 14px;
    }
    .glossary-search img {
        width: 18px;
        height: 18px;
    }
    .glossary-search input {
        font-size: 15px;
    }
    .glossary-contents {
        padding: 60px 16px;
    }
    .glossary-contents-title {
        margin: 0 0 28px;
        font-size: 24px;
        line-height: 36px;
    }
    .glossary-grid {
        column-gap: 20px;
        row-gap: 30px;
    }
    .glossary-letter {
        margin-bottom: 14px;
        font-size: 18px;
        line-height: 26px;
    }
    .glossary-list li {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 22px;
    }
    .glossary-empty {
        padding: 30px 0;
        font-size: 14px;
        line-height: 22px;
    }
    .glossary-updated {
        font-size: 14px;
        line-height: 22px;
    }
}

/* 小屏手机：单列 */
@media screen and (max-width: 480px) {
    .glossary-title {
        font-size: 24px;
        line-height: 34px;
    }
    .glossary-grid {
        grid-template-columns: 1fr;
        row-gap: 26px;
    }
    .glossary-list a {
        word-break: break-word;
    }
}

/* ========== 详情页 ========== */
.glossary-detail {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 0 100px;
}

.glossary-detail .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.glossary-detail-title {
    margin: 0 0 30px;
    font-family: MiSans;
    font-weight: 600;
    font-size: 40px;
    line-height: 56px;
    color: #000000;
    word-break: break-word;
}

.glossary-detail-content.vditor-reset {
    color: #141414;
}

@media screen and (max-width: 1240px) {
    .glossary-detail {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .glossary-detail {
        padding: 100px 16px 60px;
    }
    .glossary-detail .breadcrumb {
        margin-bottom: 24px;
    }
    .glossary-detail-title {
        margin-bottom: 20px;
        font-size: 28px;
        line-height: 40px;
    }
}
