/* ============================================================
 * base.css — 26下载站全站基础样式
 * 从 base.html 内联 <style> 块抽取，外部引用后浏览器缓存生效
 * ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: clip !important;
    width: 100% !important;
    position: relative !important;
}
body {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    background: var(--surface-page, #f5f7fa);
    color: var(--text-primary, #333333);
}

/* Phase 1 desktop shell. The legacy two-row header remains disabled in base.html
   until the remaining page styles have migrated to the component classes. */
@media (min-width: 769px) {
    .desktop-header { max-width: 1440px; min-height: 64px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
    .desktop-brand { flex: 0 0 auto; display: flex; align-items: center; }
    .desktop-brand img { display: block; width: auto; height: 38px; max-width: 130px; object-fit: contain; }
    .site-search { order: 1; display: flex; align-items: center; width: min(260px, 20vw); height: 38px; overflow: hidden; border: 1px solid #d9e0eb; border-radius: 999px; background: #f8fafc; transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast); }
    .site-search:focus-within { border-color: var(--market-accent); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
    .site-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 0 0 14px; background: transparent; color: #1e293b; font: inherit; font-size: 13px; }
    .site-search input::placeholder { color: #94a3b8; }
    .site-search button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; background: transparent; color: #2563eb; cursor: pointer; }
    .site-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .desktop-primary-nav { order: 2; display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(10px, 1.4vw, 24px); min-width: 0; white-space: nowrap; }
    .desktop-primary-nav a { padding: 22px 0 19px; border-bottom: 3px solid transparent; color: #475569; font-size: 14px; font-weight: 650; transition: color var(--duration-fast), border-color var(--duration-fast); }
    .desktop-primary-nav a:hover, .desktop-primary-nav a:focus-visible { color: #2563eb; border-bottom-color: #2563eb; }
    .desktop-primary-nav .nav-divider { width: 1px; height: 18px; background: #dbe4ef; }
    .desktop-header > .header-action-btn { order: 3; flex: 0 0 auto; margin-left: -8px; }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .desktop-header { gap: 12px; padding: 0 16px; }
    .site-search { width: 190px; }
    .desktop-primary-nav { gap: 11px; }
    .desktop-primary-nav a { font-size: 13px; }
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --surface-page: #f5f7fa;
    --surface-card: #ffffff;
    --surface-hover: #f0f7ff;
    --accent-primary: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-ring: rgba(37, 99, 235, 0.1);
    --border-default: #e2e8f0;
    --text-primary: #333333;
    --text-secondary: #475569;
    --text-muted: #999999;
    --text-caption: #666666;
    --bargain: #e65100;
    --bargain-bg: #fff3e0;
    --overlay-backdrop: rgba(0, 0, 0, 0.5);
}

/* ========== Site Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 16px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 40px;
    display: block;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
    height: 40px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 14px;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    cursor: pointer;
    color: #2563eb;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.search-btn:hover {
    color: #1d4ed8;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-action-btn:hover {
    color: #ff6b35;
    background: #fff7ed;
}

.header-action-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Blue-Orange Accent Bar ---- */
.header-lightbar {
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #ff6b35 100%);
}

/* ---- Category Navigation ---- */
.header-cats-wrap {
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
}

.header-cats {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding: 8px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header-cats::-webkit-scrollbar {
    display: none;
}

.cat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 6px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    min-width: 72px;
}

.cat-item:hover {
    color: #ff6b35;
    background: #fff7ed;
    border-color: #ffedd5;
    transform: translateY(-1px);
}

.cat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

/* Bargain special treatment */
.cat-item--bargain {
    color: #e65100;
}

.cat-item--bargain .cat-label {
    color: #e65100;
}

.cat-item--bargain:hover {
    background: #fff3e0;
    border-color: #ffe0b2;
    color: #e65100;
}

/* ====== QR Overlay Popup ====== */
.qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--overlay-backdrop, rgba(0,0,0,0.5));
    justify-content: center;
    align-items: center;
}
.qr-overlay--open {
    display: flex;
}
.qr-card {
    position: relative;
    background: var(--surface-card, #ffffff);
    border-radius: 16px;
    min-width: 280px;
    max-width: 360px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #475569);
    transition: background 0.2s;
}
.qr-close:hover {
    background: #e4e7eb;
}
.qr-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary, #333333);
}
.qr-image {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.qr-caption {
    font-size: 12px;
    color: var(--text-muted, #999999);
    margin-top: 12px;
}

/* ====== Bookmark Toast ====== */
.bookmark-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}
.bookmark-toast--show {
    opacity: 1;
}

/* ====== 移动端 Header（蓝色主题） ====== */
@media (max-width: 768px) {
    .m-header {
        display: flex;
        align-items: center;
        padding: 0 10px;
        height: 50px;
        background: #2563eb;
        gap: 8px;
    }
    .m-logo {
        flex-shrink: 0;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }
    .m-search-wrap {
        flex: 1;
        min-width: 0;
        margin: 0 2px;
    }
    .m-search-form {
        position: relative;
        display: flex;
        align-items: center;
    }
    .m-search-input {
        width: 100%;
        height: 34px;
        padding: 0 32px 0 12px;
        border: none;
        border-radius: 17px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        font-size: 13px;
        outline: none;
        transition: background 0.2s;
    }
    .m-search-input::placeholder {
        color: rgba(255,255,255,0.7);
    }
    .m-search-input:focus {
        background: rgba(255,255,255,0.3);
    }
    .m-search-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255,255,255,0.7);
        pointer-events: none;
    }
    .m-menu-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
        border-radius: 6px;
    }
    .m-menu-btn:active {
        background: rgba(255,255,255,0.15);
    }
}

/* Template presentation helpers: keep all public-page styling in static CSS. */
.search-hot-empty { padding: 10px 0; color: #999; font-size: 13px; }
.footer-filing { margin-top: 5px; font-size: 13px; }
.footer-filing-link { color: inherit; text-decoration: none; }
.footer-police-icon { margin-right: 4px; vertical-align: -3px; }

/* ====== 浮动返回按钮 ====== */
.m-back-btn {
    position: fixed;
    top: 56px;
    left: 12px;
    z-index: 1100;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #2563eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.15s, opacity 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.m-back-btn:active {
    transform: scale(0.92);
}
.m-back-btn svg {
    display: block;
}

/* ====== 移动端下拉导航 ====== */
.m-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
}
.m-nav-overlay--open {
    display: block;
}
.m-nav-drop {
    display: none;
    position: fixed;
    top: 54px;
    right: 8px;
    z-index: 9999;
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 6px;
    animation: mNavIn 0.2s ease;
}
.m-nav-drop--open {
    display: block;
}
@keyframes mNavIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.m-navd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 450;
    border-radius: 8px;
    transition: background 0.15s;
}
.m-navd-item:active {
    background: #f3f4f6;
}
.m-navd-item svg {
    flex-shrink: 0;
    color: #6b7280;
}



/* ========== 主容器 ========== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.content {
    flex: 1;
    min-width: 600px;
}

.sidebar {
    flex: 0 0 300px;
    flex-shrink: 0;
    min-width: 0;
}

/* ========== 卡片基础 ========== */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    }

.card-body {
    padding: 20px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card .meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

    .btn:hover {
        background: #1d4ed8;
    }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

    .pagination a, .pagination span {
        padding: 6px 14px;
        border-radius: 4px;
        background: #fff;
        border: 1px solid #ddd;
        font-size: 14px;
        color: #333;
    }

    .pagination .current {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
    }

/* ========== 侧边栏 ========== */
.sidebar .card h4 {
    font-size: 16px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-h, 60px) + 12px);
    height: fit-content;
    align-self: start;
}

.sidebar ul {
    list-style: none;
}

    .sidebar ul li a {
        display: block;
        padding: 6px 0;
        font-size: 14px;
        color: #555;
        border-bottom: 1px dashed #eee;
    }

        .sidebar ul li a:hover {
            color: #2563eb;
        }

/* ========== 热门推荐 增强样式 ========== */
.hot-rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-rec-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}
.hot-rec-item:last-child {
    border-bottom: none;
}
.hot-rec-rank {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    background: #ccc;
}
.hot-rec-rank.rank-1 { background: #ff6b00; }
.hot-rec-rank.rank-2 { background: #ffb800; }
.hot-rec-rank.rank-3 { background: #ffd700; }

.hot-rec-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f7fa;
    flex-shrink: 0;
}
.hot-rec-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2563eb;
    flex-shrink: 0;
}
.hot-rec-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hot-rec-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;        /* 关键：防止长名字把 .hot-rec-details / .sidebar 撑开 */
    max-width: 100%;
}
.hot-rec-name.highlight {
    color: #ff6b00;
}
.hot-rec-cat {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-rec-btn {
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    background: #f0f2f5;
    border-radius: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.hot-rec-btn:hover {
    background: #e4e7eb;
    color: #333;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    background: #fff;
    margin-top: 40px;
}

/* ========== 卡片内部水平布局 ========== */
.card-horizontal {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

    .card-horizontal .card-logo {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        margin-right: 18px;
        border-radius: 12px;
        object-fit: contain;
        background: #f5f7fa;
    }

    .card-horizontal .card-logo-placeholder {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        margin-right: 18px;
        border-radius: 12px;
        background: #e8f0fe;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: #2563eb;
    }

    .card-horizontal .card-body-flex {
        flex: 1;
        min-width: 0;
    }

    .card-horizontal .card-title {
        font-size: 17px;
        font-weight: 600;
        color: #222;
        margin: 0 0 6px;
        line-height: 1.4;
    }

        .card-horizontal .card-title .version {
            font-size: 12px;
            font-weight: 400;
            color: #aaa;
            margin-left: 6px;
        }

    .card-horizontal .card-desc {
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin: 0 0 10px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .card-horizontal .card-meta {
        font-size: 12px;
        color: #999;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }

/* === 资讯列表图文卡片 (news-card) === */
.news-card {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

.news-card-cover {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-cover-ph {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    margin-right: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.4;
    text-decoration: none;
}

.news-card:hover .news-card-title {
    color: #2563eb;
}

.news-card-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* === 资讯分类标签 === */
.news-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    line-height: 1.6;
}
.news-cat-game_guide {
    background: #e8f5e9;
    color: #2e7d32;
}
.news-cat-game_news {
    background: #e3f2fd;
    color: #1565c0;
}
.news-cat-software_tutorial {
    background: #fff3e0;
    color: #e65100;
}
.news-cat-software_news {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* === 资讯列表页分类 Tab === */
.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.news-tab {
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    background: #f0f2f5;
    color: #666;
    transition: all 0.15s;
}
.news-tab.active,
.news-tab:hover {
    background: #2563eb;
    color: #fff;
}

/* === 资讯详情页 meta === */
.news-detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.news-detail-card {
    padding: 30px;
}

.news-detail-content {
    line-height: 1.8;
    margin-top: 20px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 6px;
}




/* ========== 通用卡片与间距适配 ========== */
.card-body-custom {
    padding: 24px 30px;
}

/* 详情页头部布局 */
.detail-header {
    display: flex;
    gap: 30px;
    padding: 20px 30px 24px;
}

.detail-logo {
    flex-shrink: 0;
    position: relative;
}

.detail-logo.game {
    width: 150px;
    height: 200px;
}

.detail-logo.standard {
    width: 120px;
    height: 120px;
}

/* 软件列表/首页卡片 Logo 尺寸 */
.card-logo-fixed {
    flex-shrink: 0;
    border-radius: 12px;
    background: #f5f7fa;
    object-fit: contain;
}
.card-logo-fixed.game {
    width: 60px;
    height: 80px;
    object-fit: cover;
}
.card-logo-fixed.standard {
    width: 80px;
    height: 80px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 0 auto;
        gap: 0;
        padding: 0;
    }

    .content {
        min-width: auto;
    }

    .sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .sidebar .card {
        position: static;
    }

    /* PC Header 较窄桌面压缩 */
    .header-main {
        padding: 8px 16px;
        gap: 12px;
    }
    .header-logo img {
        height: 36px;
    }
    .header-search {
        max-width: 360px;
    }
    .search-form {
        height: 36px;
    }
    .search-input {
        padding: 6px 12px;
        font-size: 13px;
    }
    .search-btn {
        padding: 6px 10px;
    }
    .search-btn svg {
        width: 18px;
        height: 18px;
    }
    .header-cats {
        gap: 3px;
        padding: 6px 16px;
    }
    .cat-item {
        padding: 8px 4px;
        min-width: 60px;
        gap: 2px;
        font-size: 11px;
        border-radius: 8px;
    }
    .cat-icon {
        width: 20px;
        height: 20px;
    }
    .cat-icon svg {
        width: 20px;
        height: 20px;
    }
    .cat-label {
        font-size: 10px;
    }
    .header-actions {
        gap: 0;
    }
    .header-action-btn {
        width: 32px;
        height: 32px;
    }
    .header-action-btn svg {
        width: 18px;
        height: 18px;
    }
    .hot-rec-item {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .hot-rec-details {
        min-width: 0 !important;
        flex: 1 !important;
    }
    .hot-rec-cat {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .detail-logo {
        margin: 0 auto 10px;
        width: auto !important;
        max-width: 150px;
        height: 120px; /* 设置固定高度，防止长图撑开 */
    }

    .detail-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* 强制裁剪填充，不再随原图高度伸缩 */
        border-radius: 12px;
    }

    .card-body-custom {
        padding: 15px;
    }

    .card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-horizontal .card-logo,
    .card-horizontal .card-logo-placeholder {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .card-horizontal .card-title {
        margin-bottom: 10px;
    }

    .card-horizontal .card-meta {
        justify-content: center;
    }

    .news-card {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .news-card-cover {
        width: 100%;
        height: auto;
        max-height: 200px;
        margin-right: 0;
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .news-card-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
    }

    .news-card-cover-ph {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .news-card-title {
        font-size: 15px;
    }

    .news-card-meta {
        gap: 10px;
    }
}


/* ========== 更多链接 ========== */
.more-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    color: #2563eb;
}

/* 移动端适配搜索框 */
@media (max-width: 768px) {
    .search-form {
        width: 100%;
        max-width: none;
    }
}

/* ========== 轮播图 ========== */
.carousel {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.carousel-caption h3 {
    font-size: 22px;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 40px;
    display: flex;
    gap: 8px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
}

.carousel-indicators button.active,
.carousel-indicators button:hover {
    background: #fff;
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
    transition: background 0.3s;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* ========== Breadcrumb ========== */
.breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid #f0f2f5;
  padding: 0;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 13px;
  color: #94a3b8;
}

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

.breadcrumb-inner a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumb-inner span {
  color: #475569;
}


@media (max-width: 768px) {
    .carousel-slide img {
        height: 180px;
    }
    .carousel-caption {
        padding: 15px 20px;
    }
    .carousel-caption h3 {
        font-size: 16px;
    }
    .carousel-caption p {
        font-size: 12px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .carousel-indicators {
        right: 20px;
        bottom: 10px;
    }
}
