/* ============================================================
   地图切换按钮
   ============================================================ */
.map-bar button {
    padding: 6px 12px;
    background: var(--bg-panel);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .15s, color .15s, background-color .35s;
}
.map-bar button:hover { border-color: var(--accent); color: var(--accent); }
.map-bar button.active {
    background: var(--accent);
    color: #0d1117;
    border-color: var(--accent);
}

/* ============================================================
   Sticky 容器
   ============================================================ */
.sticky-filters {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -12px 14px;
    padding: 8px 12px 0;
    background: var(--bg-sticky);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background-color .35s ease;
}

/* ============================================================
   搜索栏
   ============================================================ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s, background-color .35s;
}
.search-bar:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, .12);
}
.search-bar.listening {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(248, 81, 73, .18);
    animation: search-pulse 1.4s ease-in-out infinite;
}
@keyframes search-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(248, 81, 73, .18); }
    50%      { box-shadow: 0 0 0 4px rgba(248, 81, 73, .28); }
}

.search-icon {
    color: var(--text-mute);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
#searchInput {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    padding: 2px 0;
    font-family: inherit;
}
#searchInput::placeholder { color: var(--text-mute); }

.search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    border-radius: 5px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .12s;
    position: relative;
    padding: 0;
}
.search-btn:hover {
    background: var(--bg-panel-2);
    color: var(--text);
}
.search-btn--clear:hover { color: var(--accent-red); }
.search-btn--voice { color: var(--accent-blue); }
.search-btn--voice:hover { background: rgba(88, 166, 255, .12); }
.search-btn--voice.listening {
    color: var(--accent-red);
    background: rgba(248, 81, 73, .12);
}
.search-btn--voice.listening .voice-pulse {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    border: 2px solid var(--accent-red);
    animation: voice-ring 1.2s ease-out infinite;
    pointer-events: none;
}
@keyframes voice-ring {
    0%   { transform: scale(.85); opacity: .9; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* ============================================================
   筛选条
   ============================================================ */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fb-row {
    display: flex;
    align-items: stretch;
    gap: 5px;
    width: 100%;
}

.fb-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    font-family: inherit;
    transition: all .12s, background-color .35s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-chip:hover:not(.active):not(:disabled) {
    border-color: var(--text-mute);
    color: var(--text);
}

/* 阵营：大按钮 */
.fb-row--side .fb-chip {
    flex: 1 1 0;
    padding: 12px 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    border-radius: 10px;
    border-width: 2px;
    min-height: 46px;
}
.fb-chip--side-t.active {
    background: #d1242f;
    border-color: #d1242f;
    color: #fff;
    box-shadow: 0 4px 14px rgba(209, 36, 47, .3);
}
.fb-chip--side-ct.active {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
    box-shadow: 0 4px 14px rgba(31, 111, 235, .3);
}

/* 站点 */
.fb-row--site .fb-chip {
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
}
.fb-chip--site-A.active,
.fb-chip--site-B.active,
.fb-chip--site-Mid.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #0d1117;
}

/* 类型 */
.fb-row--type .fb-chip {
    flex: 1 1 0;
    padding: 7px 4px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 7px;
    gap: 4px;
}
.fb-row--type .fb-chip:disabled {
    opacity: .3;
    cursor: not-allowed;
}
.fb-chip-num {
    font-size: 10px;
    font-weight: 700;
    opacity: .6;
    line-height: 1;
}
.fb-chip.active .fb-chip-num { opacity: .85; }

.fb-chip--type-all.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0d1117;
}
.fb-chip--type-smoke.active {
    background: var(--smoke);
    border-color: var(--smoke);
    color: #0d1117;
}
.fb-chip--type-flash.active {
    background: var(--flash);
    border-color: var(--flash);
    color: #0d1117;
}
.fb-chip--type-molotov.active {
    background: var(--molotov);
    border-color: var(--molotov);
    color: #0d1117;
}
.fb-chip--type-grenade.active {
    background: var(--grenade);
    border-color: var(--grenade);
    color: #0d1117;
}

/* ============================================================
   结果统计（合并进 sticky 底部）
   ============================================================ */
.sticky-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 8px;
    font-size: 11px;
    color: var(--text-mute);
    border-top: 1px solid var(--border-soft);
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}
.sticky-meta .sm-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sticky-meta .sm-count b {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

/* ============================================================
   类型区块
   ============================================================ */
.nade-section {
    margin-bottom: 26px;
}
.nade-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 2px 8px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
    font-weight: 700;
}
.ns-bar {
    display: inline-block;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--text-mute);
    flex-shrink: 0;
}
.nade-section--smoke   .ns-bar { background: var(--smoke); }
.nade-section--flash   .ns-bar { background: var(--flash); }
.nade-section--molotov .ns-bar { background: var(--molotov); }
.nade-section--grenade .ns-bar { background: var(--grenade); }

.ns-label {
    color: var(--text);
    font-weight: 700;
}
.ns-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mute);
}

/* ============================================================
   卡片网格
   ============================================================ */
.nade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

/* ============================================================
   卡片（纯封面 + 底部叠加文字）
   ============================================================ */
.nc {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s, background-color .35s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.nc:hover {
    border-color: var(--accent);
}

/* 封面 */
.nc-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-img-box);
    overflow: hidden;
    transition: background-color .35s ease;
}
.nc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 顶部 + 底部渐变暗罩 */
.nc-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.5) 0%,
        rgba(0,0,0,0) 28%,
        rgba(0,0,0,0) 55%,
        rgba(0,0,0,.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.nc-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-img-empty);
}
.nc-cover-none {
    color: var(--text-mute);
    font-size: 12px;
    z-index: 2;
}

/* 底部叠字 */
.nc-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 10px 8px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nc-feature {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: .3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .85;
    transition: opacity .15s;
}
.nc-meta {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .75);
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
    opacity: .7;
    transition: opacity .15s;
}
.nc:hover .nc-feature,
.nc:hover .nc-meta {
    opacity: 1;
}

/* ============================================================
   详情：全屏模态
   ============================================================ */
.nc-detail {
    display: none;
}

/* 打开时：全屏遮罩 + 居中卡片 */
.nc--expanded .nc-detail {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: nc-fade-in .18s ease;
}

@keyframes nc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 内层内容卡片 */
.nc-detail-inner {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    animation: nc-scale-in .2s ease;
}

@keyframes nc-scale-in {
    from { transform: scale(.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* 关闭按钮 */
.nc-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel-2);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .12s;
    padding: 0;
    z-index: 2;
}
.nc-detail-close:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-mute);
}

.nc-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding: 0 40px 10px 0;
    border-bottom: 1px solid var(--border-soft);
}

.nc-detail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.nc-mini {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-img-box);
    border-radius: 6px;
    overflow: hidden;
}
.nc-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.nc-mini-label {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    background: rgba(13, 17, 23, .85);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    border-radius: 4px;
}
.nc-mini--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 12px;
}

.nc-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nc-block-k {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}
.nc-block-v {
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
}

.nc-detail-link {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    padding-top: 6px;
    font-weight: 600;
}
.nc-detail-link:hover { opacity: .8; }

/* 模态打开时禁止页面滚动 */
body.modal-open {
    overflow: hidden;
}

/* ============================================================
   骨架屏
   ============================================================ */
img.lazy {
    background: linear-gradient(
        90deg,
        var(--bg-panel) 0%,
        var(--bg-panel-2) 50%,
        var(--bg-panel) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   搜索时点击类型 TAB 的跳转高亮
   ============================================================ */
@keyframes highlight-flash {
    0% {
        background: rgba(255, 193, 7, .18);
        box-shadow: inset 0 0 0 2px rgba(255, 193, 7, .4);
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}
.nade-section.highlight-flash {
    animation: highlight-flash .9s ease;
    border-radius: 8px;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

/* ============================================================
   其他
   ============================================================ */
.empty-hint,
.error-hint,
.loading-hint {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 13px;
}
.error-hint { color: var(--accent-red); }

/* ============================================================
   手机优化
   ============================================================ */
@media (max-width: 768px) {
    .sticky-filters {
        margin-left: -8px;
        margin-right: -8px;
        padding: 6px 8px 0;
        gap: 6px;
    }
    .search-bar { padding: 5px 8px; gap: 4px; }
    #searchInput { font-size: 12.5px; }
    .search-btn { width: 24px; height: 24px; }
    .search-btn svg { width: 14px; height: 14px; }

    .fb-row { gap: 4px; }
    .fb-row--side .fb-chip {
        padding: 10px 8px;
        font-size: 14px;
        min-height: 42px;
        border-radius: 8px;
    }
    .fb-row--site .fb-chip {
        padding: 7px 4px;
        font-size: 12px;
        border-radius: 7px;
    }
    .fb-row--type .fb-chip {
        padding: 6px 3px;
        font-size: 12px;
        gap: 3px;
    }
    .fb-chip-num { font-size: 9px; }

    .sticky-meta {
        font-size: 10.5px;
        padding: 5px 4px 7px;
    }
    .sticky-meta .sm-count b { font-size: 12px; }

    .nade-section { margin-bottom: 20px; }
    .nade-section-title { font-size: 13px; padding-bottom: 6px; }
    .ns-bar { height: 12px; }
    .ns-count { font-size: 10.5px; }

    .nade-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nc-feature { font-size: 12.5px; }
    .nc-meta { font-size: 10px; }
    .nc-body { padding: 18px 8px 6px; }

    /* 模态适配 */
    .nc--expanded .nc-detail {
        padding: 12px;
    }
    .nc-detail-inner {
        padding: 18px;
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }
    .nc-detail-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }
    .nc-detail-title {
        font-size: 15px;
        padding-right: 36px;
    }
    .nc-detail-images {
        grid-template-columns: 1fr;
    }
    .nc-block-v {
        font-size: 12.5px;
    }
}

@media (max-width: 380px) {
    .fb-row--side .fb-chip {
        padding: 9px 6px;
        font-size: 13px;
        min-height: 40px;
    }
    .fb-row--site .fb-chip {
        padding: 6px 3px;
        font-size: 11.5px;
    }
    .nade-grid { gap: 6px; }
    .nc-feature { font-size: 12px; }
}

/* ============================================================
   模式切换 Tab
   ============================================================ */
.mode-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}
.mode-bar .mode-btn {
    padding: 8px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.mode-bar .mode-btn:hover { border-color: var(--text-mute); color: var(--text); }
.mode-bar .mode-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0d1117;
}

/* ============================================================
   战术套餐网格
   ============================================================ */
.ts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ts-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, transform .12s;
}
.ts-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.ts-card-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ts-card-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.ts-card-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    background: var(--bg-panel-2);
    border-radius: 10px;
    color: var(--text-mute);
    flex-shrink: 0;
}
.ts-card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}
.ts-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-mute);
    padding-top: 6px;
    border-top: 1px solid var(--border-soft);
}
.ts-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}
.ts-dot--smoke   { background: var(--smoke); }
.ts-dot--flash   { background: var(--flash); }
.ts-dot--molotov { background: var(--molotov); }
.ts-dot--grenade { background: var(--grenade); }
.ts-card-count {
    margin-left: auto;
    color: var(--accent);
    font-weight: 700;
}
.ts-card-action {
    font-size: 11px;
    color: var(--accent-blue);
    text-align: right;
    font-weight: 600;
}

/* ============================================================
   战术详情浮层
   ============================================================ */
.tsd-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: nc-fade-in .18s ease;
}
.tsd-inner {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    animation: nc-scale-in .2s ease;
}
.tsd-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel-2);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .12s;
    padding: 0;
    z-index: 2;
}
.tsd-close:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-mute);
}
.tsd-head {
    padding-right: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}
.tsd-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.tsd-meta {
    font-size: 12px;
    color: var(--text-mute);
    font-weight: 600;
}
.tsd-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
}
.tsd-list-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}
.tsd-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 单个执行步骤 */
.tsd-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card-detail);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}
.tsd-step-order {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0d1117;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
}
.tsd-step-body {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.tsd-step-img {
    flex-shrink: 0;
    width: 100px;
    height: 63px;
    background: var(--bg-img-box);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.tsd-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.tsd-step-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 11px;
}
.tsd-step-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tsd-step-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.tsd-step-type {
    font-size: 11px;
    color: var(--text-mute);
}
.tsd-step-throw {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
    margin-top: 2px;
}
.tsd-step-role {
    font-size: 11px;
    color: var(--accent-blue);
    margin-top: 3px;
    font-weight: 600;
}
.tsd-step--missing {
    border-style: dashed;
    opacity: .6;
}
.tsd-tips {
    padding: 10px 12px;
    background: rgba(255, 193, 7, .08);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: var(--accent);
    line-height: 1.55;
}

/* 手机优化 */
@media (max-width: 768px) {
    .mode-bar .mode-btn { padding: 7px 18px; font-size: 12.5px; }
    .ts-grid { grid-template-columns: 1fr; gap: 10px; }
    .tsd-inner { padding: 16px; max-height: calc(100vh - 20px); }
    .tsd-title { font-size: 16px; }
    .tsd-step-img { width: 80px; height: 50px; }
    .tsd-step-name { font-size: 13px; }
    .tsd-step-throw { font-size: 11.5px; }
}

/* ============================================================
   模式切换 Tab（投掷物 / 战术套餐）
   ============================================================ */
.mode-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}
.mode-bar .mode-btn {
    padding: 8px 28px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s, background-color .35s;
}
.mode-bar .mode-btn:hover {
    border-color: var(--text-mute);
    color: var(--text);
}
.mode-bar .mode-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0d1117;
}

/* ============================================================
   战术套餐网格
   ============================================================ */
.ts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ts-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, transform .12s, background-color .35s;
}
.ts-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.ts-card-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ts-card-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.ts-card-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    background: var(--bg-panel-2);
    border-radius: 10px;
    color: var(--text-mute);
    flex-shrink: 0;
    white-space: nowrap;
}
.ts-card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}
.ts-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-mute);
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
}
.ts-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ts-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ts-dot--smoke   { background: var(--smoke); }
.ts-dot--flash   { background: var(--flash); }
.ts-dot--molotov { background: var(--molotov); }
.ts-dot--grenade { background: var(--grenade); }
.ts-card-count {
    margin-left: auto;
    color: var(--accent);
    font-weight: 700;
}
.ts-card-action {
    font-size: 11px;
    color: var(--accent-blue);
    text-align: right;
    font-weight: 600;
}

/* ============================================================
   战术详情浮层
   ============================================================ */
.tsd-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: nc-fade-in .18s ease;
}
.tsd-inner {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    animation: nc-scale-in .2s ease;
}
.tsd-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel-2);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .12s;
    padding: 0;
    z-index: 2;
}
.tsd-close:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-mute);
}
.tsd-head {
    padding-right: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}
.tsd-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.tsd-meta {
    font-size: 12px;
    color: var(--text-mute);
    font-weight: 600;
}
.tsd-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
}
.tsd-list-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}
.tsd-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tsd-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card-detail);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}
.tsd-step-order {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0d1117;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
}
.tsd-step-body {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.tsd-step-img {
    flex-shrink: 0;
    width: 100px;
    height: 63px;
    background: var(--bg-img-box);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.tsd-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.tsd-step-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 11px;
}
.tsd-step-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tsd-step-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.tsd-step-type {
    font-size: 11px;
    color: var(--text-mute);
}
.tsd-step-throw {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
    margin-top: 2px;
}
.tsd-step-role {
    font-size: 11px;
    color: var(--accent-blue);
    margin-top: 3px;
    font-weight: 600;
}
.tsd-step--missing {
    border-style: dashed;
    opacity: .6;
}
.tsd-tips {
    padding: 10px 12px;
    background: rgba(255, 193, 7, .08);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: var(--accent);
    line-height: 1.55;
}

/* 手机优化 */
@media (max-width: 768px) {
    .mode-bar .mode-btn { padding: 7px 20px; font-size: 12.5px; }
    .ts-grid { grid-template-columns: 1fr; gap: 10px; }
    .tsd-inner { padding: 16px; max-height: calc(100vh - 20px); }
    .tsd-title { font-size: 16px; }
    .tsd-step-img { width: 80px; height: 50px; }
    .tsd-step-name { font-size: 13px; }
    .tsd-step-throw { font-size: 11.5px; }
}

/* ============================================================
   临时 NadeCard 模态（从战术详情弹出时）
   z-index 要高于战术详情浮层（100）
   ============================================================ */
#tempNadeModal .nc-detail {
    z-index: 200;
}