/* BNC/COCA Frequency Dictionary — 欧路兼容版（无CSS变量，无gap） */
.leon-freq {
    font-family: "Roboto", "Noto Sans SC", system-ui, sans-serif;
    color: #2d3748;
    line-height: 1.4;
}

/* 标题 */
.leon-freq h1 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline;
}
.leon-freq .hwd {
    color: #2d3748;
    border-bottom: none;
    -webkit-user-select: none;
    user-select: none;
}
.leon-freq.list .hwd {
    border-bottom: none;
}

/* 等级标签（硬编码颜色） */
.leon-freq .label {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 50px;
    box-shadow: none;
    margin: 0;
}
.leon-freq .label-primary,
.leon-freq .label-lv1 {
    background-color: #5ba4c6; /* mac-blue */
}
.leon-freq .label-lv2 {
    background-color: #e89b7a; /* mac-peach */
}
.leon-freq .label-lv3 {
    background-color: #9b7fbf; /* mac-lavender */
}

/* 频次计数（标题中的） */
.leon-freq h1 > .count {
    font-size: 0.7rem;
    font-family: "Roboto Mono", "Consolas", monospace;
    font-weight: 400;
    color: #718096;
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    border-radius: 0;
}

/* 中文考试标签 */
.leon-freq .cn-level {
    margin: 2px 0;
    display: flex;
    flex-wrap: wrap;
    /* gap 替换为 margin */
}
.leon-freq .cn-level span {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    color: #fff;
    margin-right: 3px;  /* 替代 gap */
    margin-bottom: 2px;
}
.cn-level .zk, .cn-level .gk {
    background-color: #6ec4a0;
}
.cn-level .cet4, .cn-level .cet6 {
    background-color: #5ba4c6;
}
.cn-level .tem4, .cn-level .tem8 {
    background-color: #9b7fbf;
}
.cn-level .ky, .cn-level .kb {
    background-color: #e07a86;
}
.cn-level .toefl, .cn-level .ielts, .cn-level .bec, .cn-level .gre {
    background-color: #e89b7a;
}

/* 英文等级区域 */
.leon-freq .en-level {
    padding: 2px 0 4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.leon-freq .en-level:empty {
    display: none;
}
.leon-freq .en-level > div {
    margin-right: 6px;  /* 替代 gap */
    margin-bottom: 2px;
}

/* 牛津、柯林斯、CEFR 共用样式 */
.oxford span,
.collins span,
.cefr span {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    color: #fff;
    font-weight: 500;
    font-size: 0.65rem;
    border-radius: 50px;
}
.oxford span {
    background-color: #5ba4c6;
}
.collins span {
    background-color: #9b7fbf;
}
.collins span::before {
    content: "Collins ";
    font-weight: 400;
    opacity: 0.85;
}
/* CEFR 等级 */
.cefr .cefr-a1, .cefr .cefr-a2 {
    background-color: #6ec4a0;
}
.cefr .cefr-b1, .cefr .cefr-b2 {
    background-color: #5ba4c6;
}
.cefr .cefr-c1, .cefr .cefr-c2 {
    background-color: #9b7fbf;
}

/* LDOCE 特殊标签（边框样式） */
.ldoce span {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    font-weight: 500;
    font-size: 0.65rem;
    border-radius: 50px;
    margin-right: 0;
}
.ldoce .c3k, .ldoce .c6k, .ldoce .c9k {
    color: #e07a86;
    background: none;
    border: 1px solid #e07a86;
    font-size: 0.75rem;
    padding: 0 4px;
}
.ldoce .s1, .ldoce .s2, .ldoce .s3,
.ldoce .w1, .ldoce .w2, .ldoce .w3 {
    background: #fff;
    color: #5ba4c6;
    border: 1px solid #5ba4c6;
}
.ldoce .awl {
    background-color: #9b7fbf;
    color: #fff;
    border: none;
}

/* 词族列表 */
.leon-freq ul {
    border-top: 1px solid #e8ecf0;
    margin: 0;
    padding: 6px 0 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    /* 用 margin 替代 gap */
}
.leon-freq li {
    padding: 1px 0;
    font-size: 0.82rem;
    margin-right: 12px;  /* 替代 gap */
}
.leon-freq a {
    color: inherit;
    text-decoration: none;
}
.leon-freq a:hover {
    text-decoration: none;
}
.leon-freq b {
    color: #5ba4c6;
    font-weight: 600;
}

/* 频次计数（词族中） */
.leon-freq .count {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    padding: 0;
    font-size: 0.62rem;
    font-family: "Roboto Mono", "Consolas", monospace;
    font-weight: 400;
    color: #718096;
    background: none;
    border: none;
    border-radius: 0;
    -webkit-user-select: none;
    user-select: none;
}

/* 工具类 */
.mb8 {
    margin-bottom: 8px;
}
ul.bt0 {
    border-top: none;
}

/* 响应式（针对小屏，保留） */
@media (max-width: 360px) {
    .leon-freq li {
        margin-right: 8px;
    }
}