/*
 * NavTX UI 美化覆盖层（第一期：设计基线 + 首页视觉层级）
 * 说明：本文件最后加载，仅做增量覆盖，不修改 style.css 等历史规则；
 *       如需回滚，移除 header.php 中对本文件的引用即可。
 */

/* ========== 1. 设计令牌 ========== */
:root {
    --nx-primary: #0d9488;
    --nx-primary-deep: #1f6fe0;
    --nx-primary-soft: rgba(13, 148, 136, .12);
    --nx-primary-border: rgba(13, 148, 136, .28);
    --nx-text: #1f2a3d;
    --nx-text-2: #46536a;
    --nx-text-3: #667085;
    --nx-border: #e9eef5;
    --nx-surface: #ffffff;
    --nx-surface-soft: #f7fafd;
    --nx-radius: 12px;
    --nx-radius-sm: 10px;
    --nx-shadow-sm: 0 2px 10px rgba(15, 23, 42, .05);
    --nx-shadow-md: 0 10px 28px rgba(15, 23, 42, .08);
    --nx-ease: cubic-bezier(.33, .8, .4, 1);
}

body.navtx-dark {
    --nx-primary: #2dd4bf;
    --nx-primary-deep: #14b8a6;
    --nx-primary-soft: rgba(45, 212, 191, .16);
    --nx-primary-border: rgba(45, 212, 191, .38);
    --nx-text: #e8eef7;
    --nx-text-2: #b9c6d8;
    --nx-text-3: #8fa0b7;
    --nx-border: #26364d;
    --nx-surface: #16202f;
    --nx-surface-soft: #1b2739;
    --nx-shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
    --nx-shadow-md: 0 10px 28px rgba(0, 0, 0, .35);
}

/* ========== 2. 字体与文字基线 ========== */
body {
    font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.navtx-header h1,
.navtx-header h2,
.home-card-panel h2,
.home-tool-title h2,
.latest-visit-head h2,
.community-page-hero h1 {
    letter-spacing: .2px;
}

/* 数字统一等宽，避免跳动（时钟 / 统计 / 排行） */
.navtx-clock span,
.community-page-hero-stats strong,
.rank-panel strong,
.heat-panel strong,
.side-sponsor-rank strong,
.side-site-rank strong {
    font-variant-numeric: tabular-nums;
}

/* 键盘焦点可见性（无障碍） */
.navtx-header a:focus-visible,
.home-card-panel a:focus-visible,
.search-input-shell input:focus-visible {
    outline: 2px solid var(--nx-primary);
    outline-offset: 2px;
}

/* ========== 3. 面板体系统一 ========== */
.home-card-panel {
    border-radius: var(--nx-radius);
    border-color: var(--nx-border);
    box-shadow: var(--nx-shadow-sm);
    transition: border-color .18s var(--nx-ease), box-shadow .18s var(--nx-ease);
}

.home-card-panel:hover {
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-md);
}

/* 面板标题行统一：主标题加重、弱化说明文字 */
.home-card-panel h2 {
    color: var(--nx-text);
    font-weight: 800;
}

.home-card-panel h2 + p,
.latest-visit-head p {
    color: var(--nx-text-3);
}

/* ========== 4. 首页视觉层级：次要面板降级 ========== */
/* 工具条 / 最新来访 / 友链市场：浅色底、去阴影，让目录与搜索成为主视觉 */
body.navtx-home-page .home-tool-strip,
body.navtx-home-page .latest-visit-panel,
body.navtx-home-page .link-market-panel {
    background: var(--nx-surface-soft);
    border-color: var(--nx-border);
    box-shadow: none;
}

body.navtx-home-page .home-tool-strip:hover,
body.navtx-home-page .latest-visit-panel:hover,
body.navtx-home-page .link-market-panel:hover {
    box-shadow: none;
    border-color: var(--nx-primary-border);
}

/* 工具条小卡 hover 微交互 */
body .home-tool-strip .home-tool-item {
    transition: transform .16s var(--nx-ease), box-shadow .16s var(--nx-ease), border-color .16s var(--nx-ease);
}

body .home-tool-strip .home-tool-item:hover {
    transform: translateY(-2px);
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-md);
}

/* 赞助推荐文字卡 hover */
.home-directory .navtx-ad-text-item,
.navtx-detail-page .navtx-ad-text-item {
    transition: transform .16s var(--nx-ease), box-shadow .16s var(--nx-ease), border-color .16s var(--nx-ease);
}

.home-directory .navtx-ad-text-item.is-filled:hover,
.navtx-detail-page .navtx-ad-text-item.is-filled:hover {
    transform: translateY(-2px);
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-md);
}

/* 详情页广告板与上下区块的间距 */
.navtx-detail-page .navtx-ad-board {
    margin: 18px 0;
}

/* 详情页广告板头部链接（替代购买按钮） */
.navtx-ad-text-head a.navtx-ad-head-link {
    border-radius: 5px;
    padding: 8px 14px;
    background: var(--nx-primary, #1f8f5f);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: opacity .15s;
}

.navtx-ad-text-head a.navtx-ad-head-link:hover {
    opacity: .88;
    color: #fff;
}

/* ========== 广告投放落地页（?navtx=ads） ========== */
.ad-landing-hero {
    padding: 46px 0 40px;
    background: linear-gradient(160deg, #eaf6ff 0%, #effcf6 55%, #f7fbff 100%);
    border-bottom: 1px solid var(--nx-border, #e8eef5);
}

.ad-landing-hero-inner {
    text-align: center;
}

.ad-landing-kicker {
    margin: 0 0 8px;
    color: var(--nx-primary, #1f8f5f);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 4px;
}

.ad-landing-hero h1 {
    margin: 0 0 10px;
    color: var(--nx-text, #18253a);
    font-size: 30px;
    font-weight: 700;
}

.ad-landing-sub {
    margin: 0 0 22px;
    color: var(--nx-text-2, #526173);
    font-size: 14.5px;
}

.ad-landing-stats {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.ad-landing-stats > div {
    min-width: 128px;
    padding: 14px 18px;
    background: var(--nx-surface, #fff);
    border: 1px solid var(--nx-border, #e8eef5);
    border-radius: 12px;
    box-shadow: var(--nx-shadow-sm, 0 2px 10px rgba(19, 34, 58, .04));
}

.ad-landing-stats strong {
    display: block;
    color: var(--nx-primary, #1f8f5f);
    font-size: 24px;
    font-weight: 700;
}

.ad-landing-stats span {
    color: var(--nx-text-3, #8a97a8);
    font-size: 12.5px;
}

.ad-landing {
    padding: 26px 0 40px;
}

.ad-landing h2 {
    margin: 0 0 12px;
    color: var(--nx-text, #18253a);
    font-size: 19px;
    font-weight: 700;
}

.ad-landing-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.ad-landing-slot-card {
    padding: 18px 20px 20px;
    background: var(--nx-surface, #fff);
    border: 1px solid var(--nx-border, #e8eef5);
    border-radius: 14px;
    box-shadow: var(--nx-shadow-sm, 0 2px 10px rgba(19, 34, 58, .04));
}

.ad-landing-slot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ad-landing-slot-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(31, 143, 95, .1);
    color: var(--nx-primary, #1f8f5f);
    font-size: 12.5px;
    font-weight: 700;
}

.ad-landing-slot-tag.is-banner {
    background: rgba(59, 130, 246, .1);
    color: #2563eb;
}

.ad-landing-slot-head em {
    color: var(--nx-text-3, #98a6b8);
    font-size: 12px;
    font-style: normal;
}

.ad-landing-slot-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, .06) 0%, rgba(81, 169, 255, .08) 100%),
        repeating-linear-gradient(45deg, transparent 0 10px, rgba(19, 34, 58, .025) 10px 20px);
    border: 1px dashed rgba(31, 143, 95, .35);
}

.ad-landing-slot-preview.is-text {
    height: 74px;
}

.ad-landing-slot-preview.is-banner {
    height: 96px;
}

.ad-landing-slot-preview span {
    color: var(--nx-text-3, #8a97a8);
    font-size: 12.5px;
}

.ad-landing-slot-card > p {
    margin: 0 0 12px;
    color: var(--nx-text-2, #526173);
    font-size: 13.5px;
    line-height: 1.7;
}

.ad-landing-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad-landing-price li {
    padding: 7px 12px;
    border-radius: 9px;
    background: var(--nx-surface-soft, #f4f8fd);
    border: 1px solid var(--nx-border, #e8eef5);
}

.ad-landing-price b {
    color: #f25555;
    font-size: 14.5px;
}

.ad-landing-price em {
    color: var(--nx-text-3, #8a97a8);
    font-size: 12px;
    font-style: normal;
}

.ad-landing-board,
.ad-landing-query,
.ad-landing-steps,
.ad-landing-notice {
    margin-bottom: 26px;
    padding: 20px 22px;
    background: var(--nx-surface, #fff);
    border: 1px solid var(--nx-border, #e8eef5);
    border-radius: 14px;
    box-shadow: var(--nx-shadow-sm, 0 2px 10px rgba(19, 34, 58, .04));
}

.ad-landing-board > p,
.ad-landing-query p {
    margin: 0 0 14px;
    color: var(--nx-text-2, #526173);
    font-size: 13.5px;
}

.ad-landing-query-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
}

.ad-landing-query-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--nx-border, #dfe7f0);
    border-radius: 10px;
    font-size: 13.5px;
    background: var(--nx-surface-soft, #f8fbfe);
    color: var(--nx-text, #18253a);
}

.ad-landing-query-form input:focus {
    outline: none;
    border-color: var(--nx-primary, #1f8f5f);
}

.ad-landing-query-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--nx-primary, #1f8f5f);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}

.ad-landing-query-form button:hover {
    opacity: .88;
}

.ad-landing-query-result {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--nx-primary, #1f8f5f);
    font-size: 13px;
}

.ad-landing-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: adstep;
}

.ad-landing-steps li {
    position: relative;
    padding: 14px 14px 14px 46px;
    border-radius: 10px;
    background: var(--nx-surface-soft, #f4f8fd);
    counter-increment: adstep;
}

.ad-landing-steps li::before {
    content: counter(adstep);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--nx-primary, #1f8f5f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-landing-steps strong {
    display: block;
    margin-bottom: 3px;
    color: var(--nx-text, #18253a);
    font-size: 13.5px;
}

.ad-landing-steps span {
    color: var(--nx-text-3, #8a97a8);
    font-size: 12.5px;
}

.ad-landing-notice ol {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--nx-text-2, #526173);
    font-size: 13.5px;
    line-height: 1.9;
}

.ad-landing-contact {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(31, 143, 95, .08);
    color: var(--nx-primary, #1f8f5f);
    font-size: 13.5px;
    font-weight: 600;
}

@media (max-width: 980px) {
    .ad-landing-slots {
        grid-template-columns: 1fr;
    }

    .ad-landing-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-landing-hero h1 {
        font-size: 25px;
    }
}

@media (max-width: 760px) {
    .ad-landing-stats {
        flex-wrap: wrap;
    }

    .ad-landing-stats > div {
        flex: 1;
        min-width: 96px;
    }

    .ad-landing-steps ol {
        grid-template-columns: 1fr;
    }

    .ad-landing-query-form {
        flex-direction: column;
    }
}

/* ========== 5. 搜索区精修 ========== */
/* 背景图上叠加品牌色渐变，层次更明显（保留原暗化层功能） */
body.navtx-home-page .search-hero.has-bg {
    background-image:
        linear-gradient(180deg, rgba(13, 148, 136, .16), rgba(12, 18, 30, .42)),
        var(--search-bg);
}

/* 搜索框聚焦光晕 */
.search-input-shell input:focus {
    outline: none;
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 4px var(--nx-primary-soft);
}

.search-input-shell button {
    transition: filter .16s var(--nx-ease), transform .16s var(--nx-ease);
}

.search-input-shell button:hover {
    filter: brightness(1.06);
}

.search-input-shell button:active {
    transform: scale(.98);
}

/* ========== 6. 热榜标签胶囊化（品牌色激活态） ========== */
body.navtx-home-page .side-hot-nav button {
    border-radius: 999px;
    transition: background-color .16s var(--nx-ease), color .16s var(--nx-ease), border-color .16s var(--nx-ease);
}

body.navtx-home-page .side-hot-nav button.is-active {
    background: var(--nx-primary);
    border-color: var(--nx-primary);
    color: #fff;
}

/* ========== 7. 暗色模式补充（本覆盖层涉及范围） ========== */
body.navtx-dark .home-card-panel {
    background: var(--nx-surface);
}

body.navtx-dark .home-tool-strip,
body.navtx-dark .latest-visit-panel,
body.navtx-dark .link-market-panel {
    background: var(--nx-surface-soft);
}

body.navtx-dark .search-input-shell input:focus {
    box-shadow: 0 0 0 4px var(--nx-primary-soft);
}

/* 暗色下内容图片轻微降亮度，减少刺眼感 */
body.navtx-dark .home-card-panel img,
body.navtx-dark .home-tool-strip img {
    filter: brightness(.92);
}

/* ========== 8. 实用软件图标规范化 ========== */
/* 统一底板：contain 不裁切 + 白底描边，透明/深色图标都有干净衬托 */
body .home-tool-strip .home-tool-item img {
    object-fit: contain !important;
    padding: 4px;
    background: var(--nx-surface) !important;
    border: 1px solid var(--nx-border) !important;
    border-radius: 10px !important;
    transition: transform .16s var(--nx-ease), border-color .16s var(--nx-ease), box-shadow .16s var(--nx-ease);
}

body .home-tool-strip .home-tool-item:hover img {
    transform: scale(1.04);
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-sm);
}

/* 卡片与面板分层：浅灰面板底 + 白色卡片，避免同色糊在一起（仅桌面端，移动端保持居中无卡样式） */
@media (min-width: 761px) {
    body.navtx-home-page .home-tool-strip .home-tool-item {
        background: var(--nx-surface);
        border: 1px solid var(--nx-border);
        border-radius: 10px;
        padding: 10px 12px;
        box-shadow: var(--nx-shadow-sm);
    }
}

/* 图标加载失败：首字母彩色占位块（替代通用 SVG） */
.home-tool-item .nx-icon-fallback {
    display: grid;
    place-items: center;
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nx-primary), var(--nx-primary-deep));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

@media (max-width: 760px) {
    body .home-tool-strip .home-tool-item img {
        padding: 3px;
    }

    .home-tool-item .nx-icon-fallback {
        grid-row: auto;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* 暗色模式：图标底板用软色，避免纯白刺眼 */
body.navtx-dark .home-tool-strip .home-tool-item img {
    background: var(--nx-surface-soft) !important;
}

/* ========== 9. 搜索区：白熊突出 + 搜索框下移（桌面端） ========== */
/* 加高搜索区并把搜索框下移，给底部白熊留出展示空间 */
body.navtx-home-page .search-hero.has-bear-bg.has-bg {
    min-height: 240px;
    padding: 64px 0 40px;
}

/* 减轻遮罩浓度，背景照片与白熊更透亮（保留暗部保证输入框文字对比度） */
body.navtx-home-page .search-hero.has-bg {
    background-image:
        linear-gradient(180deg, rgba(13, 148, 136, .12), rgba(12, 18, 30, .34)),
        var(--search-bg);
}

/* 白熊场景整体放大（场景内元素按 em 等比缩放） */
body.navtx-home-page .search-hero.has-bear-bg .search-bear-scene {
    font-size: 40px;
}

/* 白熊：更大更实，加投影提升辨识度 */
.search-hero.has-bear-bg .bear-runner {
    bottom: 22px;
    opacity: 1;
    filter: drop-shadow(0 3px 8px rgba(15, 23, 42, .28));
}

/* 减淡地面白雾，避免白熊融进背景 */
.search-hero.has-bear-bg .bear-ground {
    height: 88px;
    background:
        linear-gradient(180deg, rgba(234, 244, 248, 0) 0%, rgba(234, 244, 248, .34) 55%, rgba(244, 251, 253, .68) 100%);
}

/* ========== 10. 赞助推荐广告位美化（桌面端） ========== */
@media (min-width: 761px) {
    /* 卡片统一：白底 + 圆角 + 轻阴影，与全站卡片体系一致 */
    .navtx-ad-text-item {
        position: relative;
        border-radius: 10px;
        background: var(--nx-surface);
        border-color: var(--nx-border);
        box-shadow: var(--nx-shadow-sm);
    }

    .navtx-ad-text-item:hover {
        border-color: var(--nx-primary-border);
        box-shadow: var(--nx-shadow-md);
    }

    /* 图标规范化：40px 底板 + contain 不裁切 */
    .navtx-ad-text-item img {
        width: 40px;
        height: 40px;
        padding: 3px;
        object-fit: contain;
        background: var(--nx-surface-soft);
        border: 1px solid var(--nx-border);
        border-radius: 8px;
    }

    .navtx-ad-text-item b {
        font-weight: 600;
    }

    /* 填充位：右上角"广告"标识 */
    .navtx-ad-text-item.is-filled::after {
        content: "广告";
        position: absolute;
        top: 6px;
        right: 6px;
        padding: 1px 6px;
        border-radius: 999px;
        background: var(--nx-surface-soft);
        border: 1px solid var(--nx-border);
        color: var(--nx-text-3);
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 1px;
    }

}

/* 头部"我也想出现在这里"按钮换品牌色 */
.navtx-ad-text-head button {
    background: var(--nx-primary);
    transition: background-color .16s var(--nx-ease), transform .16s var(--nx-ease);
}

.navtx-ad-text-head button:hover {
    background: var(--nx-primary-deep);
}

.navtx-ad-text-head button:active {
    transform: scale(.97);
}

/* 头部按钮组：立即购买 + 投放详情并排 */
.navtx-ad-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== 详情页广告区：独立布局 + 明显的虚线招租框 ===== */
/* 详情页位数量与首页不同：4 文字位 + 2 横图位，独立列数 */
.navtx-detail-page .navtx-ad-text-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.navtx-detail-page .navtx-ad-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 空位改用 <button> 触发购买弹窗：重置原生样式，与 <a> 观感一致 */
button.navtx-ad-text-item {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

button.navtx-ad-banner-item {
    position: relative;
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* 空位招租样式：桌面端文字位用虚线加号框；移动端文字位回归原生（默认图标+文字，与 liuliu1 一致）；横图位保留招租提示 */
button.navtx-ad-banner-item.is-empty {
    background: var(--nx-surface-soft);
    border: 1px dashed var(--nx-border);
    box-shadow: none;
    transition: border-color .16s ease, background-color .16s ease;
}

button.navtx-ad-banner-item.is-empty:hover {
    border-color: var(--nx-primary-border);
    background: var(--nx-primary-soft);
}

button.navtx-ad-banner-item.is-empty img {
    display: none;
}

@media (min-width: 761px) {
    .navtx-ad-text-item.is-empty {
        background: var(--nx-surface-soft);
        border: 1px dashed var(--nx-border);
        box-shadow: none;
        transition: border-color .16s ease, background-color .16s ease;
    }

    .navtx-ad-text-item.is-empty:hover {
        border-color: var(--nx-primary-border);
        background: var(--nx-primary-soft);
    }

    .navtx-ad-text-item.is-empty img {
        display: none;
    }

    .navtx-ad-text-item.is-empty::before {
        content: "+";
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        border: 1px dashed var(--nx-primary-border);
        background: var(--nx-primary-soft);
        color: var(--nx-primary);
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
    }

    .navtx-ad-text-item.is-empty b {
        color: var(--nx-text-2);
    }

    .navtx-ad-text-item.is-empty em {
        color: var(--nx-text-3);
    }
}

/* 横图空位：固定高度虚线框 + 居中招租提示 */
button.navtx-ad-banner-item.is-empty {
    height: 86px;
}

.navtx-ad-banner-empty-tip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--nx-text-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.navtx-ad-banner-empty-tip b {
    color: var(--nx-primary);
    font-weight: 700;
}

/* 空位价格高亮 */
.navtx-ad-empty-price {
    color: var(--nx-primary);
    font-weight: 700;
}

/* ===== 最近检测历史：按工具分组的三栏卡片（boce 风格） ===== */
.webmaster-history-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;
}

.webmaster-history-item {
    min-width: 0;
    padding: 14px 14px 8px;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    background: var(--nx-surface);
}

.webmaster-history-item > b {
    display: block;
    margin-bottom: 10px;
    color: var(--nx-text-1);
    font-size: 16px;
    font-weight: 600;
}

.webmaster-history-cols {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--nx-border);
    color: var(--nx-text-3);
    font-size: 12px;
}

.webmaster-history-list {
    display: block;
}

.webmaster-history-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: none;
    padding: 9px 6px;
    border: 0;
    border-bottom: 1px dashed var(--nx-border);
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color .14s ease;
}

.webmaster-history-list button:last-child {
    border-bottom: 0;
}

.webmaster-history-list button:hover {
    background: var(--nx-primary-soft);
}

.webmaster-history-list button:hover b {
    text-decoration: none;
}

.webmaster-history-list .h-target {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--nx-text-1);
    font-weight: 500;
}

.webmaster-history-list .h-result {
    flex: none;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--nx-text-3);
    font-size: 12px;
}

.webmaster-history-list button.is-ok .h-result {
    color: #079455;
}

.webmaster-history-list button.is-bad .h-result {
    color: #ef4444;
}

body.navtx-dark .webmaster-history-list button.is-ok .h-result {
    color: #34d399;
}

body.navtx-dark .webmaster-history-list button.is-bad .h-result {
    color: #f87171;
}

@media (max-width: 900px) {
    .webmaster-history-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .webmaster-history-row {
        grid-template-columns: 1fr;
    }
}

/* ===== 详情页：横图广告独立铺满行 + 举报/分享同行 ===== */
.navtx-detail-adrow {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-width: 0;
}

.navtx-detail-adrow .navtx-ad-inline {
    width: 100%;
    min-width: 0;
}

/* 广告位自适应：2 个横图位平分铺满整行 */
.navtx-ad-inline .navtx-ad-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.navtx-detail-tools {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.navtx-detail-tools .navtx-detail-report-link {
    flex: 1 1 auto;
    min-width: 0;
}

.navtx-detail-tools .navtx-detail-share-slot {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .navtx-ad-inline .navtx-ad-banner-grid {
        grid-template-columns: 1fr;
    }

}

/* 移动端：详情页广告区保持可见（覆盖主题对 banner-grid 的隐藏），重排列数 */
@media (max-width: 760px) {
    .navtx-detail-page .navtx-ad-text-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navtx-detail-page .navtx-ad-banner-grid {
        display: grid !important;
        grid-template-columns: 1fr;
    }
}

/* 投放页：详情页专属位实时状态网格 */
.ad-landing-detail-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--nx-border);
}

.ad-landing-detail-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    transition: border-color .16s var(--nx-ease), box-shadow .16s var(--nx-ease);
}

.ad-landing-detail-slot.is-open:hover {
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-sm);
}

.ad-landing-detail-slot.is-sold {
    background: var(--nx-surface-soft);
    opacity: .72;
}

.ad-landing-detail-slot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.ad-landing-detail-slot-head b {
    font-weight: 600;
    color: var(--nx-text-1);
}

.ad-landing-detail-slot-head .tag {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 16px;
}

.ad-landing-detail-slot.is-open .tag {
    background: var(--nx-primary-soft);
    border: 1px solid var(--nx-primary-border);
    color: var(--nx-primary);
}

.ad-landing-detail-slot.is-sold .tag {
    background: var(--nx-surface-soft);
    border: 1px solid var(--nx-border);
    color: var(--nx-text-3);
}

.ad-landing-detail-slot-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--nx-primary);
}

.ad-landing-detail-slot-price em {
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
    color: var(--nx-text-3);
}

.ad-landing-detail-slot button {
    padding: 7px 12px;
    border-radius: 8px;
    border: 0;
    background: var(--nx-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .16s var(--nx-ease), transform .16s var(--nx-ease);
}

.ad-landing-detail-slot button:hover {
    background: var(--nx-primary-deep);
}

.ad-landing-detail-slot button:active {
    transform: scale(.97);
}

@media (max-width: 760px) {
    .ad-landing-detail-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== 11. 最新来访图标规范化 ========== */
/* 图标底板：白底 + 描边 + 圆角，与"实用软件"风格统一 */
.latest-visit-icon {
    display: grid;
    place-items: center;
    padding: 3px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    box-shadow: var(--nx-shadow-sm);
    transition: transform .16s var(--nx-ease), border-color .16s var(--nx-ease), box-shadow .16s var(--nx-ease);
}

.latest-visit-icon img {
    width: 36px;
    height: 36px;
}

/* 悬停：底板上浮 + 品牌色描边（替代原来的 360° 旋转） */
.latest-visit-item:hover .latest-visit-icon {
    transform: translateY(-2px) scale(1.04);
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-md);
}

.latest-visit-item:hover .latest-visit-icon img {
    transform: none;
}

/* 首字母占位块在来访图标容器内的尺寸适配 */
.latest-visit-icon .nx-icon-fallback {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
}

/* 暗色模式：来访图标底板用软色 */
body.navtx-dark .latest-visit-icon {
    background: var(--nx-surface-soft);
}

/* ========== 12. 链接交易市场美化 ========== */
/* 头部操作按钮：旧蓝换品牌青绿 */
.link-market-tools a {
    border-color: var(--nx-primary-border);
    background: var(--nx-primary-soft);
    color: var(--nx-primary);
    transition: background-color .16s var(--nx-ease), border-color .16s var(--nx-ease), color .16s var(--nx-ease);
}

.link-market-tools a:hover {
    background: var(--nx-primary);
    border-color: var(--nx-primary);
    color: #fff;
}

/* 交易提示条：品牌浅色 */
.link-market-notice {
    border-color: var(--nx-primary-border);
    background: var(--nx-primary-soft);
    color: var(--nx-primary-deep);
}

body.navtx-dark .link-market-notice {
    color: var(--nx-primary);
}

/* 卡片悬停反馈 + 阴影体系统一 */
.link-market-card {
    transition: transform .18s var(--nx-ease), box-shadow .18s var(--nx-ease), border-color .18s var(--nx-ease);
}

.link-market-card:hover {
    transform: translateY(-2px);
    border-color: var(--nx-primary-border);
    box-shadow: var(--nx-shadow-md);
}

/* 图标底板对齐全站圆角与阴影 */
.link-market-icon {
    border-radius: 10px;
    border-color: var(--nx-border);
    box-shadow: var(--nx-shadow-sm);
}

/* 数据格底色统一 */
.link-market-meta span {
    background: var(--nx-surface-soft);
}

/* 主按钮"查看网站"换品牌色 + 按压反馈 */
.link-market-view {
    background: var(--nx-primary);
    transition: background-color .16s var(--nx-ease), transform .16s var(--nx-ease);
}

.link-market-view:hover {
    background: var(--nx-primary-deep);
}

.link-market-view:active {
    transform: scale(.98);
}

/* 次按钮"联系站长"加描边，悬停品牌色 */
.link-market-contact {
    background: var(--nx-surface-soft);
    border: 1px solid var(--nx-border);
    color: var(--nx-text-2);
    transition: border-color .16s var(--nx-ease), color .16s var(--nx-ease);
}

.link-market-contact:hover {
    border-color: var(--nx-primary-border);
    color: var(--nx-primary);
}

/* ========== 13. 站点新闻：改为热榜式列表 ========== */
/* 双栏杂志布局 → 单列连续编号列表 */
.home-news-layout {
    display: block;
    counter-reset: nxnews;
}

.home-news-left,
.home-news-under,
.home-news-list {
    display: block;
    gap: 0;
}

/* 隐藏图片与头条遮罩（图源经常失效，列表更干净） */
.home-news-lead img,
.home-news-under-item img,
.home-news-item img,
.home-news-small a img,
.home-news-lead::after {
    display: none !important;
    content: none;
}

/* 行样式统一：编号 + 标题 + 来源时间 */
.home-news-lead,
.home-news-under-item,
.home-news-item,
.home-news-small a {
    position: static;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 9px 6px;
    border-bottom: 1px solid var(--nx-border);
    border-radius: 0;
    background: transparent;
    color: var(--nx-text);
}

.home-news-lead,
.home-news-under-item,
.home-news-item {
    counter-increment: nxnews;
}

.home-news-lead::before,
.home-news-under-item::before,
.home-news-item::before {
    content: counter(nxnews);
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--nx-surface-soft);
    color: var(--nx-text-3);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 前三名品牌色高亮（头条 + 前两条） */
.home-news-lead::before,
.home-news-under-item:nth-child(-n+2)::before {
    background: var(--nx-primary);
    color: #fff;
}

/* 文字区：单行标题 + 弱化来源时间 */
.home-news-lead span,
.home-news-under-item span,
.home-news-item span,
.home-news-small a span {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
}

.home-news-lead strong,
.home-news-under-item strong,
.home-news-item strong,
.home-news-small a strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--nx-text);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-line-clamp: unset;
}

.home-news-lead strong {
    font-weight: 600;
}

.home-news-lead em,
.home-news-under-item em,
.home-news-item em,
.home-news-small a em {
    margin-top: 2px;
    color: var(--nx-text-3);
}

/* 悬停：浅底 + 标题品牌色（替代原粉色） */
.home-news-lead:hover,
.home-news-under-item:hover,
.home-news-item:hover,
.home-news-small a:hover {
    background: var(--nx-surface-soft);
}

.home-news-item:hover strong,
.home-news-under-item:hover strong,
.home-news-small a:hover strong,
.home-news-lead:hover strong {
    color: var(--nx-primary);
}

/* 末行去分隔线 */
.home-news-item:last-child {
    border-bottom: 0;
}

/* ========== 14. 首页主导航重构 ========== */
.navtx-header {
    border-bottom-color: rgba(214, 225, 223, .92);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 14px rgba(15, 23, 42, .045);
    backdrop-filter: blur(16px) saturate(140%);
}

.navtx-header-inner {
    height: 68px;
    gap: 24px;
}

.navtx-logo {
    flex: 0 0 auto;
    min-width: 148px;
}

.navtx-logo img {
    max-width: 190px;
    max-height: 38px;
}

.navtx-menu {
    align-self: stretch;
    gap: 8px;
    min-width: 0;
}

.navtx-menu > a,
.navtx-menu-dropdown > a {
    position: relative;
    justify-content: center;
    height: 100%;
    min-width: 70px;
    padding: 0 15px;
    border-radius: 7px;
    background: transparent;
    color: #29433f;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .16s var(--nx-ease), background-color .16s var(--nx-ease);
}

.navtx-menu > a::after,
.navtx-menu-dropdown > a::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--nx-primary);
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .16s var(--nx-ease), transform .16s var(--nx-ease);
}

.navtx-menu > a:hover,
.navtx-menu-dropdown > a:hover {
    background: rgba(13, 148, 136, .1);
    color: var(--nx-primary-deep);
}

.navtx-menu > a.is-active,
.navtx-menu-dropdown > a.is-active {
    background: transparent;
    color: var(--nx-primary);
    font-weight: 750;
}

.navtx-menu > a.is-active::after,
.navtx-menu-dropdown > a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.navtx-menu > a[href*="navtx=submit"] {
    align-self: auto;
    height: 100%;
    margin-left: 0;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #29433f;
    box-shadow: none;
}

.navtx-menu > a[href*="navtx=submit"]:hover {
    background: rgba(13, 148, 136, .1);
    color: var(--nx-primary-deep);
}

.navtx-menu > a[href*="navtx=submit"]::after {
    display: block;
}

.navtx-menu-dropdown > a::before {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 1px 0 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    order: 2;
}

.navtx-dropdown-panel {
    top: 58px;
    left: 50%;
    width: 590px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 14px;
    border-color: #dfe9e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .13);
    transform: translateX(-18%);
}

.navtx-menu-dropdown:hover .navtx-dropdown-panel,
.navtx-menu-dropdown.is-hover .navtx-dropdown-panel,
.navtx-menu-dropdown:focus-within .navtx-dropdown-panel {
    display: grid;
}

.navtx-dropdown-panel::before {
    content: "分类导航";
    grid-column: 1 / -1;
    padding: 1px 3px 9px;
    border-bottom: 1px solid #edf2f1;
    color: #263b38;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
}

.navtx-dropdown-panel a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f7faf9;
    color: #526460;
    font-size: 13px;
    text-align: left;
}

.navtx-dropdown-panel a::before {
    content: "";
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: #a9bbb7;
}

.navtx-dropdown-panel a:hover {
    border-color: var(--nx-primary-border);
    background: var(--nx-primary-soft);
    color: var(--nx-primary);
}

.navtx-dropdown-panel a:hover::before {
    background: var(--nx-primary);
}

.navtx-header-tools {
    gap: 9px;
}

.navtx-clock {
    padding: 0 8px;
    color: var(--nx-text-3);
    opacity: .82;
}

.navtx-group-link {
    width: 38px;
    height: 38px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--nx-primary-border);
    border-radius: 8px;
    background: var(--nx-primary-soft);
    color: transparent;
    font-size: 0;
    box-shadow: none;
}

.navtx-group-link::before {
    content: "Q";
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--nx-primary);
    font-size: 15px;
    font-weight: 800;
}

body.navtx-dark .navtx-header {
    border-bottom-color: var(--nx-border);
    background: rgba(22, 32, 47, .96);
}

body.navtx-dark .navtx-menu > a,
body.navtx-dark .navtx-menu-dropdown > a {
    color: var(--nx-text-2);
}

body.navtx-dark .navtx-menu > a:hover,
body.navtx-dark .navtx-menu-dropdown > a:hover,
body.navtx-dark .navtx-menu > a.is-active,
body.navtx-dark .navtx-menu-dropdown > a.is-active {
    color: var(--nx-primary);
}

body.navtx-dark .navtx-dropdown-panel {
    border-color: var(--nx-border);
    background: rgba(22, 32, 47, .985);
}

body.navtx-dark .navtx-dropdown-panel::before {
    border-bottom-color: var(--nx-border);
    color: var(--nx-text);
}

body.navtx-dark .navtx-dropdown-panel a {
    background: var(--nx-surface-soft);
    color: var(--nx-text-2);
}

@media (max-width: 1180px) and (min-width: 981px) {
    .navtx-header-inner {
        gap: 10px;
    }

    .navtx-logo {
        min-width: 126px;
    }

    .navtx-logo img {
        max-width: 150px;
    }

    .navtx-menu > a,
    .navtx-menu-dropdown > a,
    .navtx-menu > a[href*="navtx=submit"] {
        min-width: 0;
        padding: 0 9px;
        font-size: 14px;
    }

    .navtx-clock,
    .navtx-group-link {
        display: none;
    }
}

@media (max-width: 980px) {
    .navtx-header-inner {
        min-height: 62px;
        height: auto;
        gap: 10px;
        padding: 10px 0;
    }

    .navtx-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navtx-logo img {
        max-width: 170px;
        max-height: 36px;
    }

    .navtx-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 38px;
        margin-left: 0;
        border: 1px solid #dce6e4;
        border-radius: 7px;
        background: #f4f8f7;
    }

    .navtx-menu-toggle span,
    .navtx-menu-toggle span + span,
    .navtx-menu-toggle span:nth-child(3) {
        width: 18px;
        height: 2px;
        margin: 0;
        background: #40534f;
    }

    .navtx-menu {
        order: 8;
        display: none;
        width: 100%;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px;
        border: 1px solid #dfe8e6;
        border-radius: 8px;
        background: var(--nx-surface);
        box-shadow: 0 16px 35px rgba(15, 23, 42, .12);
    }

    body.nav-open .navtx-menu {
        display: grid;
    }

    .navtx-menu > a,
    .navtx-menu-dropdown > a,
    .navtx-menu > a[href*="navtx=submit"] {
        align-self: auto;
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        height: 42px;
        margin: 0;
        padding: 0 13px;
        border: 0;
        border-radius: 6px;
        background: #f7faf9;
        box-shadow: none;
        color: #435651;
        font-size: 14px;
        box-sizing: border-box;
    }

    .navtx-menu > a::after,
    .navtx-menu-dropdown > a::after {
        top: 10px;
        right: auto;
        bottom: 10px;
        left: 0;
        width: 3px;
        height: auto;
        border-radius: 0 3px 3px 0;
    }

    .navtx-menu > a.is-active,
    .navtx-menu-dropdown > a.is-active,
    .navtx-menu > a[href*="navtx=submit"]:hover {
        background: var(--nx-primary-soft);
        color: var(--nx-primary);
    }

    .navtx-menu > a[href*="navtx=submit"]::after {
        display: block;
    }

    .navtx-menu-dropdown > a::before {
        margin-left: auto;
    }

    .navtx-menu-dropdown.is-open > a::before {
        margin-top: 3px;
        transform: rotate(225deg);
    }

    .navtx-dropdown-panel,
    .navtx-menu-dropdown:hover .navtx-dropdown-panel,
    .navtx-menu-dropdown:focus-within .navtx-dropdown-panel {
        position: static;
        display: none;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        margin: 5px 0 3px;
        padding: 8px;
        border-radius: 7px;
        box-shadow: none;
        transform: none;
        box-sizing: border-box;
    }

    .navtx-menu-dropdown.is-open .navtx-dropdown-panel {
        display: grid;
    }

    .navtx-dropdown-panel::before {
        display: none;
    }

    .navtx-dropdown-panel a {
        min-height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

    .navtx-header-tools .navtx-clock,
    .navtx-group-link {
        display: none;
    }

    body.navtx-dark .navtx-menu-toggle {
        border-color: var(--nx-border);
        background: var(--nx-surface-soft);
    }

    body.navtx-dark .navtx-menu-toggle span,
    body.navtx-dark .navtx-menu-toggle span + span,
    body.navtx-dark .navtx-menu-toggle span:nth-child(3) {
        background: var(--nx-text-2);
    }
}

@media (max-width: 520px) {
    .navtx-dropdown-panel {
        grid-template-columns: 1fr;
    }
}

/* Footer information architecture */
.navtx-footer .navtx-wrap {
    overflow: hidden;
    border-color: #dce9e5;
    box-shadow: 0 16px 42px rgba(28, 70, 62, .07);
}

.navtx-footer .footer-main {
    grid-template-columns: minmax(280px, 1.35fr) minmax(140px, .62fr) minmax(155px, .72fr) auto;
    gap: 38px;
    padding: 32px;
}

.navtx-footer .footer-brand,
.navtx-footer .footer-column {
    min-width: 0;
}

.navtx-footer .footer-column h2 {
    position: relative;
    margin: 4px 0 17px;
    padding-bottom: 10px;
    color: #203b36;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.navtx-footer .footer-column h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #0d9488;
}

.navtx-footer .footer-links {
    display: grid;
    justify-content: stretch;
    gap: 10px;
    margin: 0;
}

.navtx-footer .footer-links a {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    color: #627772;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
}

.navtx-footer .footer-links a + a::before {
    content: none;
    display: none;
}

.navtx-footer .footer-links a:hover {
    color: #087f74;
}

.navtx-footer .footer-qrs {
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
}

.navtx-footer .footer-qrs img {
    width: 76px;
    height: 76px;
    border-color: #dce9e5;
}

.navtx-footer .footer-friends {
    margin: 0 32px;
    padding: 17px 0;
    border-top: 1px solid #e8f0ed;
    border-bottom: 1px solid #e8f0ed;
}

.navtx-footer .footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    padding: 17px 32px 20px;
    background: #f8fbfa;
}

.navtx-footer .footer-meta > p {
    min-width: 0;
    color: #748680;
    font-size: 12px;
}

.navtx-footer .footer-meta .footer-copy {
    justify-content: flex-end;
    margin: 0 !important;
}

body.navtx-dark .navtx-footer .footer-column h2 {
    color: #d8e6e2;
}

body.navtx-dark .navtx-footer .footer-links a,
body.navtx-dark .navtx-footer .footer-meta > p,
body.navtx-dark .navtx-footer .footer-meta .footer-copy,
body.navtx-dark .navtx-footer .footer-meta .footer-copy a {
    color: #91a59f !important;
}

body.navtx-dark .navtx-footer .footer-meta {
    background: #172521;
}

body.navtx-dark .navtx-footer .footer-friends,
body.navtx-dark .navtx-footer .footer-meta {
    border-color: #30433e;
}

@media (max-width: 980px) {
    .navtx-footer .footer-main {
        grid-template-columns: minmax(0, 1.25fr) minmax(150px, .75fr) !important;
        gap: 28px 34px !important;
    }

    .navtx-footer .footer-brand,
    .navtx-footer .footer-column {
        grid-column: auto !important;
    }

    .navtx-footer .footer-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .navtx-footer .footer-meta .footer-copy {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .navtx-footer .footer-main {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        padding: 20px 18px 8px !important;
    }

    .navtx-footer .footer-brand,
    .navtx-footer .footer-column {
        grid-column: 1 / -1 !important;
        padding: 0 0 18px;
    }

    .navtx-footer .footer-column {
        padding-top: 17px;
        border-top: 1px solid #e8f0ed;
    }

    .navtx-footer .footer-column h2 {
        margin-top: 0;
        margin-bottom: 13px;
    }

    .navtx-footer .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px !important;
    }

    .navtx-footer .footer-friends {
        margin: 0 18px;
        padding: 15px 0 !important;
    }

    .navtx-footer .footer-meta {
        padding: 15px 18px 18px;
    }

    body.navtx-dark .navtx-footer .footer-column {
        border-color: #30433e;
    }
}

/* Match the horizontal logo weight to the desktop navigation. */
@media (min-width: 1181px) {
    .navtx-header-inner > .navtx-logo {
        width: 167px;
        min-width: 167px;
        height: 44px;
    }

    .navtx-header-inner > .navtx-logo img {
        display: block;
        width: 167px;
        max-width: 167px;
        height: 44px;
        max-height: 44px;
        object-fit: contain;
        object-position: left center;
    }
}

@media (max-width: 1180px) and (min-width: 981px) {
    .navtx-header-inner > .navtx-logo {
        width: 152px;
        min-width: 152px;
        height: 40px;
    }

    .navtx-header-inner > .navtx-logo img {
        display: block;
        width: 152px;
        max-width: 152px;
        height: 40px;
        max-height: 40px;
        object-fit: contain;
        object-position: left center;
    }
}

/* ===== Homepage logo: refined size + subtle hover polish (scoped to body.navtx-home-page) ===== */

/* Desktop >=1181px: 40px tall in the 68px header, box hugs the image, left-aligned before menu */
@media (min-width: 1181px) {
    body.navtx-home-page .navtx-header-inner > .navtx-logo {
        width: auto;
        min-width: 0;
        height: auto;
    }

    body.navtx-home-page .navtx-header-inner > .navtx-logo img {
        display: block;
        width: auto;
        max-width: 160px;
        height: 40px;
        max-height: 40px;
        object-fit: contain;
        object-position: left center;
        transition: opacity .25s ease;
    }

    body.navtx-home-page .navtx-header-inner > .navtx-logo:hover img {
        opacity: .82;
    }
}

/* Tablet 981-1180px: 36px tall */
@media (max-width: 1180px) and (min-width: 981px) {
    body.navtx-home-page .navtx-header-inner > .navtx-logo img {
        width: auto;
        max-width: 150px;
        height: 36px;
        max-height: 36px;
        object-fit: contain;
        object-position: left center;
    }
}

/* Small tablet 761-980px: 34px tall */
@media (max-width: 980px) and (min-width: 761px) {
    body.navtx-home-page .navtx-header-inner > .navtx-logo img {
        width: auto;
        max-width: 140px;
        height: 34px;
        max-height: 34px;
    }
}

/* Phone <=760px: keep regression.css centered layout, 36px tall */
@media (max-width: 760px) {
    body.navtx-home-page .navtx-logo.has-custom-logo img {
        height: 36px !important;
        max-height: 36px !important;
    }
}

/* ===== Homepage article panel: sub-categories side by side in 3 columns ===== */

/* Column head hidden: panel title already sits above the columns */
body.navtx-home-page .home-article-sort-head {
    display: none;
}

/* Compact article cards inside each column (reference: svip.liuliu1.com style) */
body.navtx-home-page .home-article-list {
    display: flex;
    flex-direction: column;
    counter-reset: navtx-article;
}

body.navtx-home-page .home-article-item {
    counter-increment: navtx-article;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #f7f9fc;
    border-radius: 8px;
    transition: background .18s ease;
}

body.navtx-home-page .home-article-item:last-child {
    margin-bottom: 0;
}

body.navtx-home-page .home-article-item:hover {
    background: #ecf5f0;
}

body.navtx-home-page .home-article-item::before {
    content: counter(navtx-article, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: #b6c2cf;
    font-variant-numeric: tabular-nums;
}

body.navtx-home-page .home-article-item:nth-child(-n+3)::before {
    color: #1f8f5f;
}

body.navtx-home-page .home-article-item a {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s ease;
}

body.navtx-home-page .home-article-item a:hover {
    color: #1f8f5f;
}

body.navtx-home-page .home-article-meta {
    flex-shrink: 0;
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

/* Desktop >=981px: all sub-categories visible side by side, 2 columns */
@media (min-width: 981px) {
    body.navtx-home-page .home-article-panel .home-article-tabs {
        display: none;
    }

    body.navtx-home-page .home-article-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    body.navtx-home-page .home-article-panel .home-article-head {
        grid-column: 1 / -1;
    }

    body.navtx-home-page .home-article-panel .home-article-content {
        display: block !important;
        min-width: 0;
    }
}

/* Tablet 761-980px: 2 columns */
@media (max-width: 980px) and (min-width: 761px) {
    body.navtx-home-page .home-article-panel .home-article-tabs {
        display: none;
    }

    body.navtx-home-page .home-article-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        align-items: start;
    }

    body.navtx-home-page .home-article-panel .home-article-head {
        grid-column: 1 / -1;
    }

    body.navtx-home-page .home-article-panel .home-article-content {
        display: block !important;
        min-width: 0;
    }
}

/* Phone <=760px: keep original tab switcher layout */

/* ========== 新闻热榜（本站文章下方三栏，底部与热度指数对齐） ========== */
body.navtx-home-page .home-info-board {
    align-items: stretch;
}

body.navtx-home-page .home-info-right {
    grid-template-rows: auto minmax(0, 1fr);
}

body.navtx-home-page .home-async-panels {
    display: flex;
    flex-direction: column;
}

body.navtx-home-page .home-async-panels .home-news-hot-panel {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.navtx-home-page .home-news-hot-panel .home-news-hot-grid {
    flex: 1;
    align-content: start;
}

.home-news-hot-panel {
    padding: 18px 16px 16px;
}

.home-news-hot-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.home-news-hot-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--nx-text, #18253a);
}

.home-news-hot-sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--nx-text-3, #98a6b8);
}

.home-news-hot-sub i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f25555;
}

.home-news-hot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-news-hot-card {
    position: relative;
    min-width: 0;
    padding: 14px 14px 12px;
    background: var(--nx-surface, #fff);
    border: 1px solid var(--nx-border, #e8eef5);
    border-radius: 12px;
    box-shadow: var(--nx-shadow-sm, 0 2px 10px rgba(19, 34, 58, .04));
}

.home-news-hot-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 4px;
    height: 26px;
    border-radius: 0 4px 4px 0;
    background: #3b82f6;
}

.home-news-hot-card.is-accent-1::before,
.home-news-hot-card.is-accent-1 .home-news-hot-tag { background: #3b82f6; }
.home-news-hot-card.is-accent-2::before,
.home-news-hot-card.is-accent-2 .home-news-hot-tag { background: #f97316; }
.home-news-hot-card.is-accent-3::before,
.home-news-hot-card.is-accent-3 .home-news-hot-tag { background: #10b981; }

.home-news-hot-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 10px 8px;
}

.home-news-hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.home-news-hot-top {
    font-size: 11.5px;
    color: var(--nx-text-3, #98a6b8);
}

.home-news-hot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-news-hot-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 6px;
    margin: 0 -6px;
    border-radius: 8px;
    transition: background .15s;
}

.home-news-hot-item a:hover {
    background: var(--nx-surface-soft, #f4f8fd);
}

.home-news-hot-num {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    background: #5a6f8d;
}

.home-news-hot-item:nth-child(1) .home-news-hot-num { background: #f25555; }
.home-news-hot-item:nth-child(2) .home-news-hot-num { background: #ff8f1f; }
.home-news-hot-item:nth-child(3) .home-news-hot-num { background: #f0b100; }

.home-news-hot-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--nx-text, #282a2d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-news-hot-item a:hover .home-news-hot-title {
    color: var(--nx-primary, #1f8f5f);
}

.home-news-hot-meta {
    flex: none;
    max-width: 32%;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #4a6fa5;
    background: rgba(59, 130, 246, .1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 平板 <=980px：热榜两栏 */
@media (max-width: 980px) {
    body.navtx-home-page .home-news-hot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 手机 <=760px：热榜单栏 */
@media (max-width: 760px) {
    body.navtx-home-page .home-news-hot-grid {
        grid-template-columns: 1fr;
    }

    .home-news-hot-meta {
        display: none;
    }
}

/* ========== 文章分类页（站点资讯/站长分享/投稿专区 独立样式） ========== */
.article-archive-page {
    display: block;
}

.article-archive-head {
    margin-bottom: 16px;
}

.article-archive-head .category-filter-head {
    flex-wrap: wrap;
}

.article-archive-sub {
    font-size: 12.5px;
    color: var(--nx-text-3, #98a6b8);
}

.article-archive-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.article-archive-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--nx-surface, #fff);
    border: 1px solid var(--nx-border, #e8eef5);
    border-radius: 12px;
    box-shadow: var(--nx-shadow-sm, 0 2px 10px rgba(19, 34, 58, .04));
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.article-archive-item:hover {
    border-color: rgba(31, 143, 95, .45);
    box-shadow: 0 10px 26px -10px rgba(31, 143, 95, .22);
    transform: translateY(-2px);
}

.article-archive-cover {
    flex: none;
    width: 116px;
    height: 78px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--nx-surface-soft, #f4f8fd);
}

.article-archive-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-archive-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-archive-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--nx-text, #18253a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s;
}

.article-archive-item:hover .article-archive-title {
    color: var(--nx-primary, #1f8f5f);
}

.article-archive-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--nx-text-3, #98a6b8);
}

.article-archive-meta time::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--nx-primary, #1f8f5f);
    margin-right: 6px;
    vertical-align: 2px;
}

.article-archive-meta em {
    font-style: normal;
}

/* 平板 <=980px：文章分类单栏 */
@media (max-width: 980px) {
    .article-archive-list {
        grid-template-columns: 1fr;
    }
}

/* 手机 <=760px：文章条目收紧 */
@media (max-width: 760px) {
    .article-archive-cover {
        width: 96px;
        height: 68px;
    }

    .article-archive-title {
        font-size: 14.5px;
    }
}

/* ========== 文章详情页排版优化 ========== */
/* 头图不再占满正文宽度：限宽居中，避免视觉过大 */
body.navtx-detail-page .article-cover {
    display: block;
    width: auto;
    max-width: min(100%, 560px);
    max-height: 340px;
    object-fit: cover;
    margin: 0 auto 18px;
}

body.navtx-detail-page .navtx-plain-article-content {
    font-size: 16.5px;
    line-height: 1.85;
    word-break: break-word;
}

body.navtx-detail-page .navtx-plain-article-content p {
    margin: 0 0 14px;
}

body.navtx-detail-page .navtx-plain-article-content h2,
body.navtx-detail-page .navtx-plain-article-content h3,
body.navtx-detail-page .navtx-plain-article-content h4 {
    margin: 26px 0 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--nx-text, #22314a);
}

body.navtx-detail-page .navtx-plain-article-content h2 {
    padding-left: 12px;
    font-size: 20px;
    border-left: 4px solid var(--nx-primary, #1f8f5f);
}

body.navtx-detail-page .navtx-plain-article-content h3 {
    padding-left: 10px;
    font-size: 17.5px;
    border-left: 3px solid rgba(31, 143, 95, .5);
}

body.navtx-detail-page .navtx-plain-article-content h4 {
    font-size: 16px;
}

body.navtx-detail-page .navtx-plain-article-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dashed rgba(37, 99, 235, .35);
    transition: color .15s, border-color .15s;
}

body.navtx-detail-page .navtx-plain-article-content a:hover {
    color: var(--nx-primary, #1f8f5f);
    border-bottom-color: currentColor;
}

body.navtx-detail-page .navtx-plain-article-content ul,
body.navtx-detail-page .navtx-plain-article-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

body.navtx-detail-page .navtx-plain-article-content li {
    margin-bottom: 6px;
    line-height: 1.75;
}

body.navtx-detail-page .navtx-plain-article-content li::marker {
    color: var(--nx-primary, #1f8f5f);
}

body.navtx-detail-page .navtx-plain-article-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--nx-primary, #1f8f5f);
    border-radius: 0 8px 8px 0;
    background: var(--nx-surface-soft, #f6f9fd);
    color: var(--nx-text-2, #526173);
}

body.navtx-detail-page .navtx-plain-article-content blockquote p {
    margin: 0;
}

body.navtx-detail-page .navtx-plain-article-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(31, 143, 95, .1);
    color: #c0392b;
    font-size: .92em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body.navtx-detail-page .navtx-plain-article-content pre {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #1e293b;
    color: #e2e8f0;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.7;
}

body.navtx-detail-page .navtx-plain-article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

body.navtx-detail-page .navtx-plain-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(19, 34, 58, .1);
}

body.navtx-detail-page .navtx-plain-article-content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 14px;
}

body.navtx-detail-page .navtx-plain-article-content th,
body.navtx-detail-page .navtx-plain-article-content td {
    padding: 9px 12px;
    border: 1px solid var(--nx-border, #e8eef5);
    text-align: left;
}

body.navtx-detail-page .navtx-plain-article-content th {
    background: var(--nx-surface-soft, #f6f9fd);
    font-weight: 600;
}

body.navtx-detail-page .navtx-plain-article-content tr:nth-child(2n) td {
    background: rgba(246, 249, 253, .6);
}

body.navtx-detail-page .navtx-plain-article-content strong {
    color: var(--nx-text, #22314a);
    font-weight: 700;
}

/* ===== 站长工具页广告位 ===== */
.navtx-ad-webmaster-board {
    margin: 14px 0 18px;
}
.navtx-ad-webmaster-board .navtx-ad-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.navtx-ad-webmaster-board .navtx-ad-banner-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}
.navtx-ad-webmaster-board .navtx-ad-banner-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}
.navtx-ad-webmaster-board .navtx-ad-banner-item.is-empty img {
    visibility: hidden;
}
@media (max-width: 760px) {
    .navtx-ad-webmaster-board .navtx-ad-banner-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 申请收录/反馈页面美化 ===== */
/* Hero */
.collect-hero {
    min-height: 320px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.95), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(56,189,248,.28), transparent 34%),
        radial-gradient(circle at 68% 88%, rgba(45,212,191,.22), transparent 38%),
        linear-gradient(135deg, #eff9ff 0%, #dff2ff 38%, #e8fbf7 70%, #f6fdff 100%);
}
.collect-hero::after {
    background:
        radial-gradient(circle at 24% 78%, rgba(20,184,166,.10), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.5));
}
.collect-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
}
.collect-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    color: #0d9488;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(20,184,166,.28);
    box-shadow: 0 4px 14px rgba(20,184,166,.14);
    backdrop-filter: blur(4px);
}
.collect-hero-badge svg {
    width: 15px;
    height: 15px;
}
.collect-hero p {
    margin: 0;
    color: #3d6b8a;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 2px;
}
.collect-hero h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(120deg, #0f766e 10%, #0284c7 60%, #0f766e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0f766e;
}
.collect-hero-sub {
    color: #64748b;
    font-size: 14px;
    letter-spacing: .5px;
}
@media (max-width: 760px) {
    .collect-hero { min-height: 250px; }
    .collect-hero h1 { font-size: 30px; }
    .collect-hero p { font-size: 15px; }
}

/* 布局 */
.collect-page .collect-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: stretch;
}

/* 表单卡片化 */
.collect-page .collect-form {
    gap: 16px;
    padding: 26px 26px 28px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15, 42, 79, .07);
}

/* 字段：图标 + 输入 */
.collect-page .collect-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}
.collect-page .collect-form .collect-field input,
.collect-page .collect-form .collect-field textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e5e9f2;
    border-radius: 11px;
    background: #f8fafc;
    color: #182235;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.collect-page .collect-form .collect-field textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.7;
}
.collect-page .collect-form .collect-field input:focus,
.collect-page .collect-form .collect-field textarea:focus {
    background: #fff;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .13);
}
.collect-page .collect-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.collect-page .collect-field-wide {
    grid-column: 1 / -1;
}
.collect-page .collect-field-area {
    grid-column: auto;
}

/* 验证码行 */
.collect-page .collect-code {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 10px;
}
.collect-page .collect-code-img {
    height: 46px;
    width: 128px;
    padding: 0;
    border: 1px solid #e5e9f2;
    border-left: 1px solid #e5e9f2;
    border-radius: 11px;
    background: #f8fafc;
    transform: none;
    object-fit: cover;
    transition: border-color .2s ease;
}
.collect-page .collect-code-img:hover {
    border-color: #14b8a6;
}

/* 提示与按钮 */
.collect-form-tip {
    margin: -2px 0 0;
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.6;
}
.collect-page .collect-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
    box-shadow: 0 10px 24px rgba(14, 165, 233, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.collect-page .collect-form button[type="submit"] svg {
    width: 17px;
    height: 17px;
    letter-spacing: 0;
}
.collect-page .collect-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(14, 165, 233, .36);
    filter: brightness(1.04);
}
.collect-page .collect-form button[type="submit"]:active {
    transform: translateY(0);
}

/* 收录要求卡片 */
.collect-page .collect-notice {
    position: relative;
    min-height: 0;
    padding: 24px 24px 24px 28px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 55%);
    color: #33566e;
    font-size: 14px;
    line-height: 2.05;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 42, 79, .05);
}
.collect-page .collect-notice::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #14b8a6, #0ea5e9);
    border-radius: 4px 0 0 4px;
}
.collect-page .collect-notice::after {
    content: "收录须知";
    display: block;
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 提交后提示 */
.collect-page .collect-alert {
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 500;
}

/* 侧边导航精致化 */
.collect-page .collect-side-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    transition: background .2s ease, color .2s ease;
}
.collect-page .collect-side-nav a:hover,
.collect-page .collect-side-nav a.is-active {
    background: rgba(20, 184, 166, .09);
}

/* 响应式 */
@media (max-width: 900px) {
    .collect-page .collect-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .collect-page .collect-form {
        padding: 20px 16px 22px;
    }
    .collect-page .collect-fields {
        grid-template-columns: 1fr;
    }
    .collect-page .collect-code {
        grid-template-columns: minmax(0, 1fr) 108px;
    }
    .collect-page .collect-code-img {
        width: 108px;
    }
}
