/* ===== 自媒体工具箱 ===== */
body.zmt-body {
    background: #070b16;
    color: #e9eefb;
}

/* 关闭主站全局的漂移光斑（body::before 大圆 blur），避免遮挡热榜看板 */
body.zmt-body::before {
    display: none;
}

.zmt-hero {
    text-align: center;
    padding: 100px 20px 4px;
}

.zmt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #67e8f9;
    background: rgba(34, 211, 238, .12);
    border: 1px solid rgba(34, 211, 238, .32);
    backdrop-filter: blur(10px);
}

.zmt-title {
    margin: 18px 0 10px;
    font-size: 44px;
    /* 主题 h1 的行高(29px)小于字号，渐变字 background-clip:text 时
       溢出行盒的字形没有背景可裁会显示为透明，必须显式给足行高 */
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -1px;
    background-image: linear-gradient(120deg, #fff 0%, #67e8f9 35%, #a7f3d0 70%, #fcd34d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.zmt-sub {
    margin: 0 auto;
    max-width: 660px;
    font-size: 15px;
    line-height: 1.75;
    color: #94a3b8;
}

.zmt-stats {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.zmt-stats b {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background-image: linear-gradient(120deg, #22d3ee, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.zmt-stats span {
    font-size: 12px;
    color: #64748b;
}

.zmt-wrap {
    max-width: 1360px;
    margin: 24px auto 56px;
    padding: 0 18px;
}

/* 搜索 */
.zmt-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 18px;
}

.zmt-search i.zmt-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.zmt-search input {
    width: 100%;
    height: 50px;
    padding: 0 20px 0 46px;
    font-size: 15px;
    color: #e9eefb;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 25px;
    outline: none;
    backdrop-filter: blur(14px);
    transition: border-color .25s, box-shadow .25s;
}

.zmt-search input::placeholder { color: #64748b; }

.zmt-search input:focus {
    border-color: rgba(34, 211, 238, .55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

/* 分类 */
.zmt-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.zmt-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 14px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}

.zmt-tab span {
    font-size: 12px;
    color: #64748b;
}

.zmt-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, .4);
    color: #fff;
}

.zmt-tab.active {
    color: #062a2f;
    font-weight: 600;
    background: linear-gradient(120deg, #22d3ee, #a7f3d0);
    border-color: transparent;
}

.zmt-tab.active span { color: rgba(6, 42, 47, .7); }

/* 卡片网格 */
.zmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
}

.zmt-card {
    display: block;
    padding: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform .22s, border-color .22s, background-color .22s, box-shadow .22s;
}

.zmt-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .07);
    border-color: rgba(34, 211, 238, .38);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.zmt-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.zmt-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 18px;
    font-weight: 700;
    color: #04141a;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #ffffff));
    overflow: hidden;
}

/* 官方 logo 覆盖在单字头像上，加载失败隐藏后露出单字 */
.zmt-logo-img {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 7px;
    background: #fff;
    object-fit: contain;
}

.zmt-hot {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fcd34d;
    background: rgba(252, 211, 77, .12);
    border: 1px solid rgba(252, 211, 77, .28);
    border-radius: 999px;
}

.zmt-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
}

.zmt-desc {
    margin: 0 0 10px;
    min-height: 40px;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zmt-host {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}

.zmt-host i { font-size: 10px; }

.zmt-card:hover .zmt-host { color: #22d3ee; }

.zmt-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 16px;
}

.zmt-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 26px;
    color: #334155;
}

/* ===== 实时热榜（区块类名 zmt-hotboard，避免与"常用"徽章 .zmt-hot 冲突） ===== */
.zmt-hotboard {
    max-width: 1360px;
    margin: 34px auto 0;
    padding: 0 18px;
}

.zmt-hotboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.zmt-hotboard-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
}

.zmt-hotboard-head h2 i {
    color: #f97316;
    margin-right: 8px;
}

.zmt-hotboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zmt-hotboard-time {
    font-size: 12px;
    color: #64748b;
}

.zmt-hotboard-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s, border-color .2s, transform .2s;
}

.zmt-hotboard-refresh:hover {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, .4);
    transform: translateY(-1px);
}

.zmt-hotboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.zmt-hotboard-col {
    padding: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    transition: border-color .22s, transform .22s;
}

.zmt-hotboard-col:hover {
    border-color: rgba(34, 211, 238, .28);
    transform: translateY(-3px);
}

.zmt-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* 官方 logo 正常显示时隐藏色点，加载失败（.no-logo）再露出色点 */
.zmt-col-dot {
    flex: none;
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.zmt-col-head.no-logo .zmt-col-dot { display: inline-block; }

.zmt-col-logo {
    flex: none;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    padding: 2px;
    background: #fff;
    border-radius: 6px;
    object-fit: contain;
}

.zmt-col-name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.zmt-col-more {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.zmt-col-more:hover { color: #22d3ee; }
.zmt-col-more i { margin-left: 3px; font-size: 10px; }

.zmt-col-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.zmt-col-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 13px;
    color: #cbd5e1;
    text-decoration: none;
    transition: color .18s, background-color .18s;
}

.zmt-col-list a:hover {
    color: #22d3ee;
    background: rgba(255, 255, 255, .04);
}

.zmt-rank {
    flex: none;
    width: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    color: #475569;
}

.zmt-rank.top { color: #f97316; }

.zmt-hotboard-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zmt-col-loading,
.zmt-col-err {
    padding: 34px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.zmt-col-err i {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    color: #f87171;
}

.zmt-col-err button {
    margin-top: 10px;
    padding: 5px 16px;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.zmt-col-err button:hover {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, .4);
}

/* 小屏适配 */
@media (max-width: 768px) {
    .zmt-hero { padding-top: 88px; }
    .zmt-title { font-size: 30px; }
    .zmt-stats { gap: 22px; }
    .zmt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .zmt-hotboard-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .zmt-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .zmt-card { padding: 13px; }
    .zmt-tab { padding: 7px 12px; font-size: 13px; }
    .zmt-hotboard-grid { grid-template-columns: 1fr; }
    .zmt-hotboard-head { flex-direction: column; gap: 10px; align-items: flex-start; }
}
