/* IO Glossary 前端样式：尽量不依赖主题变量 */

.io-glossary-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 56px;
    box-sizing: border-box;
}

.io-glossary-header {
    margin-bottom: 22px;
}

.io-glossary-eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}

.io-glossary-header h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.25;
}

.io-glossary-lead {
    max-width: 720px;
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}

.io-glossary-desc {
    margin-top: 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

.io-glossary-az,
.io-glossary-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.io-glossary-az__link,
.io-glossary-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 32px;
    padding: 4px 11px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
}

.io-glossary-az__link:hover,
.io-glossary-cat:hover {
    border-color: #2f5f9e;
    color: #1e3a8a;
}

.io-glossary-az__link.is-active,
.io-glossary-cat.is-active {
    border-color: #2f5f9e;
    background: #2f5f9e;
    color: #fff;
}

.io-glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.io-glossary-card {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    padding: 18px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    box-sizing: border-box;
}

.io-glossary-card__title {
    color: #1e3a8a;
    text-decoration: none;
}

.io-glossary-card__title h2 {
    margin: 0 0 9px;
    color: inherit;
    font-size: 18px;
    line-height: 1.45;
}

.io-glossary-card__excerpt {
    flex: 1;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.io-glossary-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.io-glossary-card__cats a {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    text-decoration: none;
}

.io-glossary-empty {
    margin: 40px 0;
    padding: 36px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.io-glossary-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 13px;
}

.io-glossary-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.io-glossary-article {
    padding: 26px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .05);
    box-sizing: border-box;
}

.io-glossary-article__header h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.3;
}

.io-glossary-article__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.io-glossary-article__cats a {
    padding: 3px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    text-decoration: none;
}

.io-glossary-content {
    margin-top: 22px;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.io-glossary-content p {
    margin: 0 0 14px;
}

.io-glossary-content p:last-child {
    margin-bottom: 0;
}

.io-glossary-content .io-lead {
    padding: 14px 16px;
    border-left: 3px solid #2f5f9e;
    border-radius: 0 10px 10px 0;
    background: #f5f8fc;
    color: #1e3a8a;
    font-size: 17px;
    line-height: 1.8;
}

.io-glossary-content .io-lead strong {
    color: #111827;
}

.io-glossary-content .io-pros-cons {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    background: #fff;
}

.io-glossary-content .io-pros-cons p {
    margin: 0 0 10px;
}

.io-glossary-content .io-pros-cons p:last-child {
    margin-bottom: 0;
}

.io-glossary-content .io-pros-cons strong {
    color: #1e3a8a;
}

.io-glossary-article__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    font-size: 14px;
}

.io-glossary-back {
    color: #2563eb;
    text-decoration: none;
}

.io-glossary-edit {
    color: #94a3b8;
}

.io-glossary-related {
    margin-top: 26px;
}

.io-glossary-related h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 20px;
}

.io-glossary-related__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.io-glossary-related__item {
    padding: 6px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    text-decoration: none;
}

.io-glossary-related__item:hover {
    border-color: #2f5f9e;
    color: #1e3a8a;
}

/* 车型参数表内链：不改变原表格布局 */
.io-glossary-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.io-glossary-link:hover {
    color: #1d4ed8;
}

@media (max-width: 640px) {
    .io-glossary-wrap {
        padding: 20px 14px 40px;
    }

    .io-glossary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .io-glossary-article {
        padding: 20px 16px;
    }

    .io-glossary-content {
        font-size: 15px;
    }

    .io-glossary-az__link,
    .io-glossary-cat {
        min-height: 30px;
        padding: 3px 9px;
        font-size: 12px;
    }
}
