/* ===== 全局重置 & 布局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
html,
body {
    height: 100%;
    background: #eef1f5;
}
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}
.app-wrapper {
    width: 1200px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    padding: 22px 28px 20px;
    position: relative;
}

/* ===== 头部 ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #e6ecf3;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.header-title {
    font-size: 26px;
    font-weight: 700;
    color: #0b2a4a;
    letter-spacing: 2px;
}
.header-title span {
    color: #b22222;
}
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.header-actions a,
.header-actions .nav-toggle-btn {
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #c8d2de;
    color: #1f3a57;
    background: #f8fafc;
    transition: 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.header-actions a:hover,
.header-actions .nav-toggle-btn:hover {
    background: #0b2a4a;
    color: #fff;
    border-color: #0b2a4a;
}
.header-actions .nav-toggle-btn {
    display: none;
    /* 默认隐藏，移动端显示 */
    ;
}

/* ===== 主体 ===== */
.main {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
    padding: 16px 0 12px;
    position: relative;
}

/* ===== 左侧导航 ===== */
.left {
    width: 22%;
    flex-shrink: 0;
    background: #f6f8fb;
    border-radius: 10px;
    padding: 14px 12px 18px;
    border: 1px solid #e2e8f0;
    overflow-y: auto;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.left::-webkit-scrollbar {
    width: 4px;
}
.left::-webkit-scrollbar-thumb {
    background: #bac6d4;
    border-radius: 4px;
}

/* ===== 右侧内容 ===== */
.right {
    width: 78%;
    flex-shrink: 0;
    background: #fafcfe;
    border-radius: 10px;
    padding: 14px 16px 20px;
    border: 1px solid #e2e8f0;
    overflow-y: auto;
    height: 100%;
}
.right::-webkit-scrollbar {
    width: 4px;
}
.right::-webkit-scrollbar-thumb {
    background: #bac6d4;
    border-radius: 4px;
}

/* ===== 移动端遮罩 ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
    /* 默认隐藏 */
    ;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== 左侧控制栏 ===== */
.left-control {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    align-items: center;
}
.left-control .btn {
    padding: 4px 16px;
    border-radius: 30px;
    border: 1px solid #c8d2de;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    color: #1f3a57;
    white-space: nowrap;
}
.left-control .btn:hover {
    background: #0b2a4a;
    color: #fff;
    border-color: #0b2a4a;
}
.left-control .search-box {
    flex: 1;
    min-width: 80px;
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid #c8d2de;
    font-size: 13px;
    outline: none;
    background: #fff;
}
.left-control .search-box:focus {
    border-color: #0b2a4a;
}

/* ===== 导航树 ===== */
.nav-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-tree li {
    list-style: none;
}
.nav-item {
    border-radius: 6px;
    margin-bottom: 1px;
}
.nav-item .label {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.12s;
    font-size: 14px;
    color: #1a2c40;
    font-weight: 500;
}
.nav-item .label:hover {
    background: #e1e7ef;
}
.nav-item .label .ico {
    font-size: 18px;
    margin-right: 8px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.nav-item .label .arrow {
    margin-left: auto;
    font-size: 12px;
    color: #7e92a8;
    transition: transform 0.25s;
}
.nav-item .label .arrow.open {
    transform: rotate(90deg);
}
.nav-item .children {
    padding-left: 18px;
    display: none;
    overflow: hidden;
}
.nav-item .children.open {
    display: block;
}
.nav-item .children .child-label {
    padding: 4px 10px 4px 28px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: #2a4058;
    transition: background 0.1s;
    position: relative;
}
.nav-item .children .child-label:hover {
    background: #e1e7ef;
}
.nav-item .children .child-label.active {
    background: #d3deec;
    font-weight: 600;
    color: #0b2a4a;
}
.nav-item .children .child-label .dot {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a8b8cb;
}
.nav-item .children .child-label.active .dot {
    background: #0b2a4a;
}
.nav-item .children .child-label.search-highlight {
    background: #fff3cd;
    font-weight: 600;
    color: #0b2a4a;
}
.nav-item .children .child-label.search-highlight .dot {
    background: #b22222;
}

/* ===== 右侧内容 ===== */
.right-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b2a4a;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.right-title .badge {
    font-size: 13px;
    font-weight: 400;
    color: #6f859c;
    background: #eef2f7;
    padding: 0 14px;
    border-radius: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}
.grid-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    transition: 0.2s;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #b0c4da;
}
.grid-item a {
    text-decoration: none;
    color: #0b2a4a;
    font-size: 14px;
    font-weight: 500;
    display: block;
    word-break: break-all;
}
.grid-item a .url {
    display: block;
    font-size: 11px;
    color: #6f859c;
    font-weight: 400;
    margin-top: 4px;
    word-break: break-all;
}
.grid-item a:hover .url {
    color: #0b2a4a;
}
.grid-item .site-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}
.sub-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #0b2a4a;
    margin: 16px 0 10px 0;
    padding: 6px 14px;
    background: #ecf1f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #0b2a4a;
}
.sub-cat-title .sub-badge {
    font-size: 12px;
    font-weight: 400;
    color: #6f859c;
    background: #fff;
    padding: 0 12px;
    border-radius: 30px;
}
.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #99aec2;
    font-size: 16px;
}
.empty-state .big-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* ===== 底部 ===== */
.footer-links {
    flex-shrink: 0;
    padding-top: 14px;
    border-top: 2px solid #e2e8f0;
    margin-top: 0;
}
.footer-links .friend-title {
    font-size: 15px;
    font-weight: 600;
    color: #0b2a4a;
    margin-bottom: 8px;
}
.footer-links .friend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    font-size: 14px;
}
.footer-links .friend-list a {
    color: #1f4a7a;
    text-decoration: none;
}
.footer-links .friend-list a:hover {
    text-decoration: underline;
    color: #b22222;
}
.footer-links .icp {
    margin-top: 8px;
    font-size: 13px;
    color: #6f859c;
    text-align: center;
}
.footer-links .icp a {
    color: #6f859c;
    text-decoration: none;
}
.footer-links .icp a:hover {
    color: #0b2a4a;
    text-decoration: underline;
}

/* ===== 通用组件 ===== */
.city-group {
    margin-bottom: 6px;
}
.city-group .city-title {
    font-weight: 600;
    color: #0b2a4a;
    font-size: 14px;
    padding: 6px 12px;
    background: #e8eef6;
    border-radius: 4px;
    margin: 10px 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.city-group .city-title .count {
    font-weight: 400;
    color: #6f859c;
    font-size: 12px;
}
.city-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    padding-left: 4px;
}
.level-high {
    background: #f0f4fa;
    border-left: 3px solid #b22222;
}
.level-mid {
    background: #f6f8fb;
}
.level-base {
    background: #fafcfe;
}

/* ===== 首页使用说明区域 ===== */
.usage-instructions {
    text-align: left;
    margin-top: 24px;
    padding: 16px 20px 18px;
    background: #f6f8fb;
    border-radius: 8px;
    border-left: 4px solid #0b2a4a;
    max-width: 100%;
    width: 100%;
}
.usage-instructions .usage-title {
    font-weight: 700;
    color: #0b2a4a;
    margin-bottom: 8px;
    font-size: 18px;
}
.usage-instructions .usage-content {
    font-size: 16px;
    color: #1a2c40;
    line-height: 1.9;
}
.usage-instructions .usage-content .highlight-link {
    color: #b22222;
    font-weight: 500;
    text-decoration: none;
}
.usage-instructions .usage-content .highlight-link:hover {
    text-decoration: underline;
}

/* ===== 分享按钮区域（新增） ===== */
.share-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    width: 100%;
    margin: 18px auto 0;
    flex-wrap: wrap;
}
.share-btn {
    padding: 10px 32px;
    background: #0b2a4a;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(11, 42, 74, 0.20);
    user-select: none;
}
.share-btn:hover {
    background: #1a3f62;
}
.share-btn:active {
    transform: scale(0.97);
}
.share-toast {
    padding: 8px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    animation: toastFadeIn 0.35s ease;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.30);
    white-space: nowrap;
}
@keyframes toastFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.share-toast.hide {
    animation: toastFadeOut 0.25s ease forwards;
}
@keyframes toastFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
}

/* ===== 首页二维码展示区 ===== */
.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.qr-item {
    text-align: center;
    flex: 0 0 auto;
}
.qr-item img {
    width: 200px;
    height: 220px;
    border: 1px solid #d0d8e0;
    border-radius: 10px;
    background: #ffffff;
    display: block;
    transition: box-shadow 0.2s;
}
.qr-item img:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.qr-item .qr-label {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0b2a4a;
    letter-spacing: 0.5px;
}

/* ===== 加载状态 ===== */
.loading-tip {
    text-align: center;
    padding: 60px 20px;
    color: #6f859c;
    font-size: 16px;
}
.loading-tip .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #0b2a4a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 首页居中样式 ===== */
.home-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 300px;
    text-align: center;
    padding: 40px 20px;
}
.home-center .main-slogan {
    font-size: 28px;
    font-weight: 700;
    color: #0b2a4a;
    margin-bottom: 20px;
    line-height: 1.4;
}
.home-center .sub-slogan {
    font-size: 18px;
    color: #4a6a8a;
}

/* ===== 搜索高亮标记 ===== */
.search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}
.grid-item .search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}
.highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ============================================================
           响应式设计
           ============================================================ */

/* ---- 大平板 / 小笔记本 (1024px ~ 1200px) ---- */
@media (max-width: 1200px) {
    .app-wrapper {
        width: 96%;
        padding: 18px 20px 16px;
        height: auto;
        min-height: calc(100vh - 40px);
    }
    .left {
        width: 26%;
    }
    .right {
        width: 74%;
    }
    .grid-4,
    .sub-grid,
    .city-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .header-title {
        font-size: 24px;
    }
}

/* ---- 平板 (768px ~ 1024px) ---- */
@media (max-width: 1024px) {
    .app-wrapper {
        padding: 16px 18px 14px;
        border-radius: 12px;
    }
    .main {
        gap: 14px;
        padding: 12px 0 10px;
    }
    .left {
        width: 30%;
        padding: 12px 10px 14px;
    }
    .right {
        width: 70%;
        padding: 12px 14px 16px;
    }
    .grid-4,
    .sub-grid,
    .city-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .header-title {
        font-size: 22px;
    }
    .header-actions a,
    .header-actions .nav-toggle-btn {
        padding: 4px 16px;
        font-size: 13px;
    }
    .right-title {
        font-size: 17px;
    }
    .home-center .main-slogan {
        font-size: 24px;
    }
    .home-center .sub-slogan {
        font-size: 16px;
    }
    .usage-instructions .usage-content {
        font-size: 15px;
    }
    .qr-section {
        gap: 30px;
    }
    .qr-item img {
        width: 170px;
        height: 170px;
    }
    .share-section {
        max-width: 500px;
        gap: 14px;
    }
    .share-btn {
        padding: 9px 28px;
        font-size: 15px;
    }
    .share-toast {
        font-size: 13px;
        padding: 7px 16px;
    }
}

/* ---- 手机 ( < 768px ) ---- */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    .app-wrapper {
        width: 100%;
        border-radius: 0;
        padding: 12px 14px 12px;
        min-height: 100vh;
        height: auto;
        box-shadow: none;
    }
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        padding-bottom: 10px;
        gap: 6px;
    }
    .header-title {
        font-size: 20px;
        letter-spacing: 1px;
    }
    .header-actions {
        gap: 6px;
    }
    .header-actions a {
        padding: 4px 12px;
        font-size: 12px;
    }
    .header-actions .nav-toggle-btn {
        display: inline-flex;
        padding: 4px 14px;
        font-size: 13px;
        background: #0b2a4a;
        color: #fff;
        border-color: #0b2a4a;
    }
    .header-actions .nav-toggle-btn:hover {
        background: #1a3f62;
        border-color: #1a3f62;
        color: #fff;
    }

    .main {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 6px;
        flex: none;
        height: auto;
        min-height: auto;
        position: relative;
    }

    /* 左侧导航：移动端作为覆盖层 */
    .left {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0 12px 12px 0;
        padding: 16px 14px 20px;
        background: #f6f8fb;
        border: none;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(-105%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            opacity 0.3s ease;
        overflow-y: auto;
        height: 100vh;
        pointer-events: none;
    }
    .left.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* 遮罩层 */
    .nav-overlay {
        display: block;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .right {
        width: 100%;
        padding: 12px 12px 16px;
        border: none;
        border-radius: 0;
        background: #fafcfe;
        height: auto;
        max-height: none;
        overflow-y: visible;
        min-height: 60vh;
    }

    .grid-4,
    .sub-grid,
    .city-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .left-control {
        gap: 4px;
        margin-bottom: 10px;
    }
    .left-control .btn {
        padding: 3px 12px;
        font-size: 12px;
    }
    .left-control .search-box {
        font-size: 13px;
        padding: 4px 10px;
        min-width: 60px;
    }

    .nav-item .label {
        font-size: 14px;
        padding: 6px 8px;
    }
    .nav-item .children .child-label {
        font-size: 13px;
        padding: 4px 8px 4px 24px;
    }
    .nav-item .children .child-label .dot {
        left: 8px;
        width: 5px;
        height: 5px;
    }
    .nav-item .children {
        padding-left: 12px;
    }

    .right-title {
        font-size: 16px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    .right-title .badge {
        font-size: 12px;
        padding: 0 10px;
    }

    .sub-cat-title {
        font-size: 14px;
        padding: 5px 12px;
        margin: 12px 0 8px 0;
    }
    .sub-cat-title .sub-badge {
        font-size: 11px;
        padding: 0 8px;
    }

    .grid-item {
        padding: 8px 8px;
    }
    .grid-item a {
        font-size: 13px;
    }
    .grid-item a .url {
        font-size: 10px;
    }
    .grid-item .site-icon {
        font-size: 18px;
    }

    .city-group .city-title {
        font-size: 13px;
        padding: 5px 10px;
        margin: 8px 0 4px 0;
    }
    .city-group .city-title .count {
        font-size: 11px;
    }

    .home-center {
        min-height: 200px;
        padding: 20px 12px;
    }
    .home-center .main-slogan {
        font-size: 20px;
        margin-bottom: 14px;
    }
    .home-center .sub-slogan {
        font-size: 15px;
    }

    .usage-instructions {
        margin-top: 16px;
        padding: 12px 14px 14px;
    }
    .usage-instructions .usage-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .usage-instructions .usage-content {
        font-size: 14px;
        line-height: 1.8;
    }

    /* 移动端二维码 */
    .qr-section {
        gap: 20px;
        margin-top: 16px;
    }
    .qr-item img {
        width: 150px;
        height: 150px;
    }
    .qr-item .qr-label {
        font-size: 13px;
        margin-top: 6px;
    }

    .footer-links {
        padding-top: 10px;
    }
    .footer-links .friend-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .footer-links .friend-list {
        gap: 10px 20px;
        font-size: 13px;
    }
    .footer-links .icp {
        font-size: 12px;
        line-height: 1.6;
    }

    .empty-state {
        padding: 40px 16px;
        font-size: 14px;
    }
    .empty-state .big-icon {
        font-size: 36px;
    }
    .loading-tip {
        padding: 40px 16px;
        font-size: 14px;
    }
    .loading-tip .spinner {
        width: 28px;
        height: 28px;
        border-width: 3px;
    }

    /* 关闭按钮（移动端导航内） */
    .nav-close-btn {
        display: flex;
        justify-content: flex-end;
        padding: 4px 0 10px 0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 12px;
    }
    .nav-close-btn button {
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: #4a6a8a;
        padding: 0 6px;
        line-height: 1;
    }
    .nav-close-btn button:hover {
        color: #b22222;
    }

    /* 移动端分享按钮调整 */
    .share-section {
        max-width: 100%;
        gap: 12px;
        margin-top: 14px;
    }
    .share-btn {
        padding: 8px 22px;
        font-size: 14px;
        white-space: nowrap;
    }
    .share-toast {
        font-size: 13px;
        padding: 6px 14px;
        white-space: nowrap;
    }
}

/* ---- 小手机 ( < 480px ) ---- */
@media (max-width: 480px) {
    .app-wrapper {
        padding: 8px 10px 10px;
    }
    .header-title {
        font-size: 18px;
    }
    .header-actions a {
        padding: 3px 10px;
        font-size: 11px;
    }
    .header-actions .nav-toggle-btn {
        padding: 3px 12px;
        font-size: 12px;
    }
    .grid-4,
    .sub-grid,
    .city-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .right {
        padding: 8px 8px 12px;
    }
    .left {
        width: 88%;
        max-width: 320px;
        padding: 12px 10px 16px;
    }
    .right-title {
        font-size: 15px;
    }
    .grid-item {
        padding: 6px 6px;
    }
    .grid-item a {
        font-size: 12px;
    }
    .grid-item a .url {
        font-size: 9px;
    }
    .grid-item .site-icon {
        font-size: 16px;
    }
    .sub-cat-title {
        font-size: 13px;
        padding: 4px 10px;
    }
    .home-center .main-slogan {
        font-size: 17px;
    }
    .home-center .sub-slogan {
        font-size: 13px;
    }
    .usage-instructions .usage-content {
        font-size: 13px;
    }
    .footer-links .friend-list {
        gap: 6px 14px;
        font-size: 12px;
    }
    .footer-links .icp {
        font-size: 11px;
    }
    .nav-item .label {
        font-size: 13px;
        padding: 5px 6px;
    }
    .nav-item .children .child-label {
        font-size: 12px;
        padding: 3px 6px 3px 20px;
    }
    .nav-item .children .child-label .dot {
        left: 6px;
        width: 4px;
        height: 4px;
    }
    .nav-item .children {
        padding-left: 8px;
    }
    .left-control .btn {
        padding: 2px 10px;
        font-size: 11px;
    }
    .left-control .search-box {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 50px;
    }
    .qr-item img {
        width: 130px;
        height: 130px;
    }
    .qr-section {
        gap: 14px;
    }
    /* 小手机分享按钮 */
    .share-btn {
        padding: 7px 18px;
        font-size: 13px;
    }
    .share-toast {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* ---- 超小屏 ( < 380px ) ---- */
@media (max-width: 380px) {
    .grid-4,
    .sub-grid,
    .city-grid {
        grid-template-columns: 1fr;
    }
    .header-title {
        font-size: 16px;
    }
    .header-actions a,
    .header-actions .nav-toggle-btn {
        font-size: 10px;
        padding: 2px 8px;
    }
    .right-title {
        font-size: 14px;
    }
    .home-center .main-slogan {
        font-size: 15px;
    }
    .qr-item img {
        width: 110px;
        height: 110px;
    }
    .share-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .share-toast {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ---- 修复：右侧 .sub-cat-title 第一个无上边距 ---- */
.right .sub-cat-title:first-of-type {
    margin-top: 0;
}

/* ---- 隐藏移动端关闭按钮（PC） ---- */
.nav-close-btn {
    display: none;
}
@media (max-width: 768px) {
    .nav-close-btn {
        display: flex;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .header-actions .nav-toggle-btn,
    .nav-overlay,
    .nav-close-btn,
    .share-section {
        display: none !important;
    }
    .left {
        width: 100% !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        border: 1px solid #ddd !important;
    }
    .right {
        width: 100% !important;
    }
    .main {
        flex-direction: column !important;
    }
    .app-wrapper {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .grid-4,
    .sub-grid,
    .city-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}