/* ============================================================
   ui.css —— 界面美化增强层 v3.0（全面重设计）
   原则：不改变原有类名，只做增量覆盖与新增样式
   ============================================================ */

:root {
    --brand: #2563EB;
    --brand-2: #3B82F6;
    --brand-3: #60A5FA;
    --brand-soft: #EFF4FF;
    --brand-soft-2: #DBEAFE;
    --ink: #1f2937;
    --ink-2: #374151;
    --muted: #6b7280;
    --muted-2: #9ca3af;
    --line: #e5e7eb;
    --line-soft: #f3f4f6;
    --bg: #f5f7fb;
    --card: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 30px;
    --shadow-1: 0 1px 3px rgba(17, 24, 39, .05);
    --shadow-2: 0 2px 10px rgba(17, 24, 39, .06);
    --shadow-3: 0 10px 30px rgba(17, 24, 39, .10);
    --shadow-brand: 0 6px 20px rgba(37, 99, 235, .28);
    --shadow-brand-lg: 0 4px 16px rgba(17, 24, 39, .08);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    /* ===== 补充语义色 ===== */
    --brand-line: #BFDBFE;
    --success-2: #34D399;
    --success-soft: #ECFDF5;
    --warning-2: #FBBF24;
    --warning-soft: #FFFBEB;
    --danger-soft: #FEF2F2;
    --star: #F59E0B;
    --ink-3: #374151;
    --muted-3: #D1D5DB;
    /* ===== 补充圆角别名 ===== */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-pill: 999px;
    /* ===== 补充阴影别名 ===== */
    --sh-1: 0 1px 2px rgba(17,24,39,.04);
    --sh-2: 0 2px 10px rgba(17,24,39,.06);
    --sh-3: 0 10px 30px rgba(17,24,39,.10);
    --sh-brand: 0 6px 18px rgba(37,99,235,.25);
    --sh-success: 0 6px 18px rgba(16,185,129,.22);
    --sh-warning: 0 6px 18px rgba(245,158,11,.22);
    --sh-danger: 0 6px 18px rgba(239,68,68,.22);
}

/* ---------- 全局过渡 ---------- */
a, button, .nav-item, .category-item, .post-card, .resource-card,
.state-btn, .banner-btn, .category-tab, .fab-btn, .modal-btn,
.page-btn, .nav-link, .forum-section-item, .resource-tag,
input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

/* ---------- 首页容器 ---------- */
.home-container {
    padding-bottom: 20px;
}

/* ---------- Banner 重设计 ---------- */
.home-banner {
    position: relative;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 40%, #3B82F6 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 12px;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-brand-lg);
}
.banner-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.banner-decor-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    top: -60px;
    right: -40px;
}
.banner-decor-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    bottom: -40px;
    left: -20px;
}
.banner-content {
    position: relative;
    z-index: 1;
}
.banner-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.banner-content p {
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 14px;
}
.banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s var(--ease-out);
}
.banner-btn-primary {
    background: white;
    color: var(--brand);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.banner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.banner-btn-ghost {
    background: rgba(255,255,255,0.18);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.banner-btn-ghost:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}
.banner-btn:active {
    transform: scale(0.96);
}

/* ---------- 公告横幅（参考设计文件，简洁风格） ---------- */
.home-announce {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(245,158,11,.08), rgba(245,158,11,.03));
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 16px;
}
.announce-ico {
    color: #F59E0B;
    font-size: 14px;
    flex-shrink: 0;
}
.announce-lbl {
    font-size: 12px;
    color: #F59E0B;
    font-weight: 600;
    flex-shrink: 0;
}
.announce-msg {
    flex: 1;
    font-size: 12px;
    color: #4B5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    min-width: 0;
}
.announce-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .2s ease;
}
.announce-close:hover {
    background: rgba(0,0,0,.06);
    color: #111827;
}
    background: rgba(0,0,0,0.06);
}

/* ---------- 分类图标区重设计 ---------- */
.home-categories {
    background: white;
    border-radius: var(--radius);
    padding: 18px 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(17,24,39,.04);
}
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 20px;
    transition: all .25s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.category-icon-1 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.category-icon-2 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563EB; }
.category-icon-3 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.category-icon-4 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.category-icon-5 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.category-item span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    transition: color .2s;
}
@media (hover: hover) {
    .category-item:hover .category-icon {
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }
    .category-item:hover span {
        color: var(--ink);
        font-weight: 600;
    }
}
.category-item:active .category-icon {
    transform: scale(0.92);
}

/* ---------- 区块标题重设计 ---------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}
.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-icon {
    font-size: 18px;
}
.section-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.3px;
}
.section-link {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
    font-weight: 500;
}
.section-link:hover {
    color: var(--brand);
}
.section-link i {
    font-size: 10px;
}

/* ---------- 热门下载重设计 ---------- */
.hot-section {
    background: white;
    border-radius: var(--radius);
    padding: 14px 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(17,24,39,.04);
}
.hot-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
.hot-scroll::-webkit-scrollbar {
    display: none;
}
.hot-item {
    flex: 0 0 80px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s var(--ease-out);
}
.hot-item-img-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all .2s var(--ease-out);
    background: var(--line-soft);
}
.hot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hot-item-info {
    text-align: center;
}
.hot-item .title {
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
    transition: color .15s;
}
.hot-item .downloads {
    font-size: 10px;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.hot-item .downloads i {
    font-size: 9px;
}
@media (hover: hover) {
    .hot-item:hover {
        transform: translateY(-3px);
    }
    .hot-item:hover .hot-item-img-wrap {
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
    }
    .hot-item:hover .title {
        color: var(--brand);
    }
}

/* ---------- 资源卡片增强 ---------- */
.resource-card {
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(17,24,39,.04);
    background: white;
    transition: all .2s var(--ease-out);
}
@media (hover: hover) {
    .resource-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-3);
        border-color: rgba(37, 99, 235, .15);
    }
    .resource-card:hover .resource-card-title {
        color: var(--brand);
    }
}
.resource-card:active {
    transform: translateY(0) scale(.99);
}
.resource-card-icon {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.04);
}
.resource-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    transition: color .15s;
}
.home-grid {
    gap: 12px;
    margin-bottom: 20px;
}
.home-grid-last {
    margin-bottom: 0;
}

/* ---------- 按钮增强 ---------- */
.btn-sm {
    border-radius: var(--radius-pill);
    font-weight: 700;
    padding: 5px 0;
    transition: all .2s var(--ease-out);
}
.btn-download {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.btn-run {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 2px 8px rgba(16, 185, 129, .25);
}
@media (hover: hover) {
    .btn-download:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(37, 99, 235, .4);
    }
    .btn-run:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(16, 185, 129, .4);
    }
}
.btn-sm:active {
    transform: scale(0.94);
}

/* ---------- 标签增强 ---------- */
.resource-tag {
    border-radius: 6px;
    font-weight: 600;
    padding: 2px 8px;
}

/* ---------- 顶部栏 / 底部导航 ---------- */
.app-header {
    backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}
.header-logo-icon {
    width: 32px;
    height: 32px;
    padding: 3px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}
.header-logo-text {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}
.bottom-nav {
    backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
}
.nav-item {
    transition: color .2s var(--ease-out), transform .15s var(--ease-out);
    color: var(--muted-2);
}
.nav-item.active {
    font-weight: 700;
    color: var(--brand);
}
.nav-item.active i {
    transform: translateY(-1px);
}
@media (hover: hover) {
    .nav-item:hover { color: var(--brand); }
    .nav-item:hover i { transform: translateY(-2px); }
}

/* ---------- 空状态优化 ---------- */
.state-wrapper {
    padding: 48px 24px;
}
.state-icon {
    font-size: 40px;
    margin-bottom: 14px;
    color: var(--muted-2);
    background: var(--line-soft);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.state-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}
.state-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.6;
}
.state-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 10px 32px;
}
@media (hover: hover) {
    .state-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-brand);
    }
}

/* ---------- 输入框聚焦 ---------- */
input, textarea, select {
    font-family: inherit;
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
input:focus, textarea:focus, select:focus {
    outline: none;
}
.search-bar:focus-within {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
input[type="text"]:focus, input[type="password"]:focus,
input[type="email"]:focus, input[type="number"]:focus,
textarea:focus, select:focus {
    border-color: var(--brand-2) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

/* ---------- 论坛卡片 ---------- */
.post-card, .forum-section-card, .section-info-bar {
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(17,24,39,.04);
    transition: all .2s var(--ease-out);
}
@media (hover: hover) {
    .post-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-3);
    }
    .post-card:hover .post-title {
        color: var(--brand);
    }
}
.forum-section-item {
    border-radius: var(--radius-sm);
    transition: all .2s var(--ease-out);
}
@media (hover: hover) {
    .forum-section-item:hover {
        background: var(--brand-soft);
        transform: translateY(-1px);
    }
    .forum-section-item:hover .forum-section-icon {
        transform: scale(1.1);
    }
}

/* ---------- 模态 / 弹层 ---------- */
.modal-content, .confirm-box, .modal-box {
    box-shadow: 0 24px 60px rgba(17, 24, 39, .22);
    border-radius: var(--radius);
}
.toast-message {
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ---------- 细腻滚动条 ---------- */
@media (hover: hover) {
    .app-main::-webkit-scrollbar,
    main::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar,
    .modal-box::-webkit-scrollbar { width: 8px; height: 8px; }
    .app-main::-webkit-scrollbar-thumb,
    main::-webkit-scrollbar-thumb,
    .modal-content::-webkit-scrollbar-thumb,
    .modal-box::-webkit-scrollbar-thumb {
        background: rgba(17, 24, 39, .14);
        border-radius: 8px;
    }
    .app-main::-webkit-scrollbar-thumb:hover,
    main::-webkit-scrollbar-thumb:hover { background: rgba(17, 24, 39, .24); }
    .app-main::-webkit-scrollbar-track,
    main::-webkit-scrollbar-track { background: transparent; }
}

/* ---------- 文本可读性 ---------- */
.post-content, .comment-content, .forum-content {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

/* ---------- FAB 按钮 ---------- */
.fab-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: var(--shadow-brand);
}
@media (hover: hover) {
    .fab-btn:hover {
        box-shadow: var(--shadow-brand-lg);
        transform: translateY(-2px) scale(1.05);
    }
}

/* ---------- 分类标签按钮 ---------- */
.filter-bar {
    border-radius: var(--radius-pill);
    padding: 5px;
    box-shadow: var(--shadow-2);
}
.category-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 10px rgba(37, 99, 235, .30);
    font-weight: 700;
}

/* ---------- 分页 ---------- */
.page-btn {
    border-radius: var(--radius-sm);
    transition: all .15s var(--ease-out);
}
.page-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
    border-color: var(--brand);
}
@media (hover: hover) {
    .page-btn:hover:not(.active):not(:disabled) {
        border-color: var(--brand-2);
        color: var(--brand);
        transform: translateY(-1px);
    }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 桌面端适配 ---------- */
@media (min-width: 1024px) {
    .app-view, .detail-view, .resources-view, .post-detail,
    .rank-view, .list-view, .page-content {
        padding-left: 32px;
        padding-right: 32px;
    }
    .home-banner {
        padding: 32px 28px;
    }
    .banner-content h2 {
        font-size: 24px;
    }
    .home-categories {
        padding: 20px 16px;
    }
    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* ---------- 图标响应式适配（与原项目一致） ---------- */
@media (max-width: 399px) {
    .resource-card-icon { width: 56px; height: 56px; border-radius: 10px; }
    .hot-item-img-wrap { width: 58px; height: 58px; border-radius: 10px; }
    .hot-item { flex: 0 0 74px; }
}
@media (min-width: 400px) and (max-width: 599px) {
    .resource-card-icon { width: 64px; height: 64px; border-radius: 12px; }
    .hot-item-img-wrap { width: 68px; height: 68px; border-radius: 12px; }
    .hot-item { flex: 0 0 84px; }
}
@media (min-width: 600px) and (max-width: 767px) {
    .resource-card-icon { width: 76px; height: 76px; border-radius: 14px; }
    .hot-item-img-wrap { width: 80px; height: 80px; border-radius: 14px; }
    .hot-item { flex: 0 0 96px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .resource-card-icon { width: 84px; height: 84px; border-radius: 14px; }
    .hot-item-img-wrap { width: 92px; height: 92px; border-radius: 14px; }
    .hot-item { flex: 0 0 108px; }
}
@media (min-width: 1024px) and (max-width: 1399px) {
    .resource-card-icon { width: 84px; height: 84px; border-radius: 14px; }
    .hot-item-img-wrap { width: 92px; height: 92px; border-radius: 14px; }
    .hot-item { flex: 0 0 108px; }
}
@media (min-width: 1400px) {
    .resource-card-icon { width: 92px; height: 92px; border-radius: 16px; }
    .hot-item-img-wrap { width: 104px; height: 104px; border-radius: 16px; }
    .hot-item { flex: 0 0 120px; }
}
/* ========= 公告跑马灯滚动 v3（无缝） ========= */
.home-announce .announce-marquee {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    cursor: pointer;
    position: relative;
}
.home-announce .announce-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: announce-marquee 30s linear infinite;
}
.home-announce .announce-marquee-content {
    display: inline-block;
    white-space: nowrap;
    color: #92400E;
    font-size: 13px;
    font-weight: 500;
    padding-right: 60px;
    flex-shrink: 0;
}
.home-announce .announce-track.marquee-static {
    animation: none;
}
.home-announce .announce-track.marquee-static .announce-marquee-content[aria-hidden="true"] {
    display: none;
}
.home-announce .announce-marquee:hover .announce-track {
    animation-play-state: paused;
}
@keyframes announce-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.home-announce .announce-msg {
    display: none;
}

/* ========= 全局组件优化 v4 ========= */

/* Banner 加柔和高光 */
.home-banner {
    position: relative;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(96,165,250,.55) 0%, transparent 55%),
        linear-gradient(135deg, #1D4ED8 0%, #2563EB 55%, #3B82F6 100%);
    border-radius: var(--r-lg);
    padding: 26px 22px;
    margin-bottom: 14px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37,99,235,.25);
}

/* 区块标题加左侧品牌色指示条 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 2px 12px;
}
.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 12px;
}
.section-title-wrap::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 16px;
    background: linear-gradient(180deg, #3B82F6, #2563EB);
    border-radius: 3px;
}
.section-icon { font-size: 16px; }
.section-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .2px;
}
.section-link {
    font-size: 12px;
    color: var(--muted-2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--line-soft);
    transition: all .18s var(--ease-out);
}
@media (hover:hover) {
    .section-link:hover {
        background: var(--brand-soft);
        color: var(--brand);
    }
}

/* 搜索框聚焦动效 */
.search-bar {
    background: var(--card);
    border-radius: var(--r-pill);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    transition: all .2s var(--ease-out);
}
.search-bar:focus-within {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(37,99,235,.10), var(--sh-2);
}
.search-bar i {
    color: var(--muted-2);
    font-size: 15px;
    transition: color .2s;
}
.search-bar:focus-within i { color: var(--brand); }

/* 底部导航加 -webkit- 前缀 */
.bottom-nav {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
/* ============================================================
   暗色主题（对齐 App values-night/colors.xml）
   ------------------------------------------------------------
   App 夜间色板为 Slate 蓝灰体系：
     页面 #0F172A / 卡片 #1E293B / 输入与边框 #334155
     分隔线 #475569 / 主文字 #F1F5F9 / 次文字 #94A3B8
     主色 #3B82F6，成功 #34D399，警告 #FBBF24，错误 #F87171
   ============================================================ */
:root { --text-body: #4B5563; }

[data-theme="dark"] {
    --brand: #3B82F6;
    --brand-2: #60A5FA;
    --brand-3: #93C5FD;
    --brand-soft: #1E3A5F;
    --brand-soft-2: #1E3A5F;
    --brand-line: #1E40AF;

    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --ink-3: #CBD5E1;
    --text-body: #94A3B8;
    --muted: #94A3B8;
    --muted-2: #94A3B8;
    --muted-3: #64748B;

    --line: #334155;
    --line-soft: #334155;

    --bg: #0F172A;
    --card: #1E293B;

    --success: #34D399;
    --success-2: #6EE7B7;
    --success-soft: #064E3B;
    --warning: #FBBF24;
    --warning-2: #FCD34D;
    --warning-soft: #451A03;
    --danger: #F87171;
    --danger-soft: #450A0A;
    --star: #FBBF24;

    --shadow-1: 0 1px 3px rgba(2, 6, 23, .45);
    --shadow-2: 0 2px 10px rgba(2, 6, 23, .50);
    --shadow-3: 0 10px 30px rgba(2, 6, 23, .60);
    --shadow-brand: 0 6px 20px rgba(59, 130, 246, .30);
    --shadow-brand-lg: 0 4px 16px rgba(2, 6, 23, .50);

    --sh-1: 0 1px 2px rgba(2, 6, 23, .45);
    --sh-2: 0 2px 10px rgba(2, 6, 23, .50);
    --sh-3: 0 10px 30px rgba(2, 6, 23, .60);
}