/* ================================================================================
   Home Page Styles
   页面独有样式 - 从 home.html 迁移
   ================================================================================ */

/* ---------- 背景层 ---------- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('/static/background333.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slowDrift 30s infinite alternate ease-in-out;
    filter: brightness(0.7);
}

@keyframes slowDrift {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(-1%, -1%); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

/* ---------- 粒子效果 ---------- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 25s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ---------- 轮播图 ---------- */
.carousel-container {
    width: 100%;
    max-width: 800px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 50;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #1a1a2a;
    position: relative;
    margin: 30px auto;
}

.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2a;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-slide span {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 51;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 51;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot.active {
    background: #667eea;
    transform: scale(1.3);
    box-shadow: 0 0 15px #667eea;
}

/* ---------- 主内容容器 ---------- */
.home-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-wrapper {
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 42px 50px 50px;
    background: rgba(10, 10, 20, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

/* 加载占位 */
.loading-placeholder {
    color: #888;
    text-align: center;
    padding: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 功能入口卡片 ---------- */
.feature-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.feature-card {
    position: relative;
    width: 240px;
    padding: 40px 20px;
    background: rgba(18, 24, 34, 0.56);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(214, 229, 245, 0.13);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: cardAppear 0.8s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 167, 101, 0.28);
    box-shadow:
        0 16px 28px rgba(6, 11, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: rgba(22, 30, 42, 0.7);
}

.icon {
    --icon-stroke: #d8e4f1;
    --icon-stroke-soft: #93a4ba;
    --icon-fill: rgba(216, 228, 241, 0.08);
    --icon-accent: #c5a15f;
    --icon-accent-fill: rgba(197, 161, 95, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
    color: var(--icon-stroke);
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.home-feature-icon {
    width: 78px;
    height: 78px;
    overflow: visible;
}

.home-feature-icon .icon-line {
    stroke: var(--icon-stroke);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-feature-icon .icon-line-strong {
    stroke-width: 3.1;
}

.home-feature-icon .icon-line-soft {
    stroke: var(--icon-stroke-soft);
}

.home-feature-icon .icon-card-fill {
    fill: var(--icon-fill);
}

.home-feature-icon .icon-card-back {
    opacity: 0.62;
}

.home-feature-icon .icon-accent {
    stroke: var(--icon-accent);
}

.home-feature-icon .icon-accent-fill {
    fill: var(--icon-accent-fill);
    stroke: var(--icon-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-feature-icon .icon-rank-number {
    stroke: #f7f0df;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card:hover .icon {
    --icon-stroke: #f4f8fc;
    --icon-stroke-soft: #b9c8d8;
    --icon-fill: rgba(238, 244, 250, 0.12);
    --icon-accent-fill: rgba(202, 169, 104, 0.26);
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.26));
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #f4f7fb;
    transition: color 0.22s ease;
}

.feature-card:hover h3 {
    color: #f7f0df;
}

/* ---------- 价格摘要区域 ---------- */
.price-summary-section {
    margin-top: 40px;
    width: 100%;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.summary-card h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.summary-card h3.rise { color: var(--price-rise-color); }
.summary-card h3.fall { color: var(--price-fall-color); }
.summary-card h3.popularity { color: #f093fb; }

/* 榜单项样式 */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.summary-item:hover,
.summary-item-hover {
    background: rgba(255,255,255,0.05);
}

.summary-name {
    color: #fff;
}

.change-up {
    color: var(--price-rise-color);
    font-weight: bold;
}

.change-down {
    color: var(--price-fall-color);
    font-weight: bold;
}

.trend-icon {
    font-weight: bold;
}

.trend-up {
    color: #38ef7d;
    font-weight: bold;
}

.trend-down {
    color: #f45c43;
    font-weight: bold;
}

.trend-flat {
    color: #94a3b8;
    font-weight: bold;
}

.summary-more {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.summary-more:hover {
    color: #764ba2;
}
.card-thumb-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card-thumb-tooltip.visible {
    opacity: 1;
}

.card-thumb-tooltip img {
    width: 120px;
    height: 168px;
    object-fit: cover;
    border-radius: 6px;
}

.card-thumb-tooltip .loading {
    width: 120px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
}

.card-name-hover {
    position: relative;
}

/* ---------- 加载条 ---------- */
.loading-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    z-index: 100;
}

.loading-progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(300%); }
}

.mobile-home-shell {
    display: none;
}

@media (max-width: 768px) {
    /* Home / Search 移动筛选控件统一为同一套尺寸节奏。 */
    body.mobile-home-page .mobile-home-searchbar {
        min-height: 46px;
        padding: 0.22rem;
        border-radius: 14px;
    }

    body.mobile-home-page .mobile-home-searchbar input {
        height: 38px;
        padding: 0 0.68rem;
        font-size: 0.94rem;
    }

    body.mobile-home-page .mobile-home-searchbar button {
        width: 52px;
        min-width: 52px;
        height: 38px;
        min-height: 38px;
        border-radius: 10px;
    }

    body.mobile-home-page .mobile-home-filter-grid {
        gap: 0.42rem;
    }

    body.mobile-home-page .mobile-home-filter select,
    body.mobile-home-page .mobile-home-advanced-link {
        min-height: 36px;
        padding: 0 0.58rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 800;
    }

    body.mobile-home-page .mobile-home-advanced-link {
        padding: 0 0.64rem;
    }
}

@media (min-width: 769px) {
    /* 桌面保护：移动端 Home 结构不参与桌面门户布局。 */
    .mobile-home-shell {
        display: none !important;
    }

    .home-container {
        display: flex;
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .particles,
    .carousel-container,
    .loading-bar,
    .home-container {
        display: none;
    }

    .bg-image {
        animation: none;
        filter: brightness(0.58) saturate(0.9);
    }

    .bg-overlay {
        background:
            linear-gradient(180deg, rgba(6, 10, 20, 0.32) 0%, rgba(8, 13, 26, 0.78) 36%, rgba(9, 15, 28, 0.94) 100%),
            radial-gradient(circle at top, rgba(255, 215, 106, 0.12), transparent 38%);
    }

    .mobile-home-shell {
        position: relative;
        z-index: 10;
        display: flex;
        min-height: calc(100vh - var(--mobile-tabbar-space, 96px));
        flex-direction: column;
        gap: 1rem;
        padding:
            calc(var(--mobile-topbar-offset, 72px) + 0.85rem)
            var(--mobile-page-gutter, 0.9rem)
            calc(var(--mobile-tabbar-space, 96px) + 1rem);
    }

    .mobile-home-hero,
    .mobile-home-tools,
    .mobile-home-snapshot {
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(16px);
    }

    .mobile-home-hero {
        padding: 1.15rem 1rem 1rem;
        background:
            linear-gradient(155deg, rgba(11, 18, 34, 0.94), rgba(29, 45, 78, 0.86)),
            radial-gradient(circle at top right, rgba(255, 215, 106, 0.16), transparent 44%);
    }

    .mobile-home-kicker,
    .mobile-home-section-kicker {
        margin: 0 0 0.32rem;
        color: #ffd76a;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .mobile-home-hero h1,
    .mobile-home-section-head h2 {
        margin: 0;
        color: #f8fafc;
    }

    .mobile-home-hero h1 {
        font-size: 1.7rem;
        line-height: 1.05;
    }

    .mobile-home-copy {
        margin: 0.5rem 0 0;
        color: #c7d3ea;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .mobile-home-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.55rem;
        margin-top: 1rem;
        padding: 0.4rem;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-home-search input {
        min-width: 0;
        border: none;
        background: transparent;
        color: #f8fafc;
        padding: 0 0.8rem;
        font-size: 0.96rem;
        outline: none;
    }

    .mobile-home-search input::placeholder {
        color: #8fa0c2;
    }

    .mobile-home-search button {
        min-height: 46px;
        padding: 0 1rem;
        border: none;
        border-radius: 18px;
        background: linear-gradient(135deg, #ffd76a, #ffb703);
        color: #111827;
        font-size: 0.92rem;
        font-weight: 800;
    }

    .mobile-home-quick-links {
        display: flex;
        gap: 0.55rem;
        flex-wrap: wrap;
        margin-top: 0.75rem;
    }

    .mobile-home-quick-links a {
        padding: 0.48rem 0.82rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #d9e3f7;
        font-size: 0.79rem;
        font-weight: 700;
    }

    .mobile-home-snapshot,
    .mobile-home-tools {
        padding: 1rem;
        background: linear-gradient(160deg, rgba(14, 22, 40, 0.92), rgba(28, 39, 64, 0.84));
    }

    .mobile-home-section-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.8rem;
        margin-bottom: 0.9rem;
    }

    .mobile-home-section-head h2 {
        font-size: 1.08rem;
    }

    .mobile-home-section-head a {
        color: #ffd76a;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .mobile-snapshot-grid {
        display: grid;
        gap: 0.75rem;
    }

    .mobile-snapshot-card {
        padding: 0.9rem 0.85rem;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(9, 15, 28, 0.72);
    }

    .mobile-snapshot-card.rise {
        box-shadow: inset 0 0 0 1px rgba(77, 189, 116, 0.08);
    }

    .mobile-snapshot-card.fall {
        box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.08);
    }

    .mobile-snapshot-title {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 0.7rem;
        color: #eef3ff;
    }

    .mobile-snapshot-title span {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .mobile-snapshot-title strong {
        color: #ffd76a;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
    }

    .mobile-snapshot-list {
        display: grid;
        gap: 0.4rem;
    }

    .mobile-home-state {
        padding: 0.85rem 0.3rem;
        color: #aeb9d5;
        font-size: 0.86rem;
        text-align: center;
    }

    .mobile-snapshot-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
        padding: 0.62rem 0.05rem;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        background: transparent;
        color: #f8fafc;
        cursor: pointer;
        font: inherit;
        text-decoration: none;
        text-align: left;
    }

    .mobile-snapshot-row:first-child {
        border-top: none;
    }

    .mobile-snapshot-rank {
        color: #8fa0c2;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .mobile-snapshot-name {
        min-width: 0;
        font-size: 0.88rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-snapshot-change {
        font-size: 0.82rem;
        font-weight: 800;
    }

    .mobile-snapshot-change.up {
        color: var(--price-rise-color);
    }

    .mobile-snapshot-change.down {
        color: var(--price-fall-color);
    }

    .mobile-tool-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .mobile-tool-card {
        display: grid;
        gap: 0.38rem;
        min-height: 88px;
        padding: 0.85rem 0.9rem;
        border-radius: 20px;
        background: rgba(8, 13, 25, 0.62);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #eef3ff;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
    }

    .mobile-tool-icon {
        font-size: 1.25rem;
    }

    .mobile-tool-card span:last-child {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.35;
    }
}

/* ===== 手机端结构重做最终覆盖：保持在文件末尾，避免旧移动样式回压 ===== */
@media (max-width: 768px) {
    .mobile-home-shell {
        gap: 0.68rem;
        min-height: auto;
        padding:
            calc(var(--mobile-topbar-offset, 56px) + 0.35rem)
            0.7rem
            calc(var(--mobile-tabbar-space, 64px) + 0.65rem);
    }

    .mobile-home-hero,
    .mobile-home-snapshot,
    .mobile-home-tools,
    .mobile-snapshot-card {
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .mobile-home-hero {
        padding: 0;
    }

    .mobile-home-kicker,
    .mobile-home-hero h1,
    .mobile-home-copy,
    .mobile-home-tools {
        display: none;
    }

    .mobile-home-search {
        margin: 0;
        padding: 0.28rem;
        border-radius: 18px;
        background: rgba(246, 248, 252, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .mobile-home-search input {
        color: #0f172a;
        padding: 0 0.7rem;
        font-size: 0.94rem;
    }

    .mobile-home-search input::placeholder {
        color: #69758b;
    }

    .mobile-home-search button {
        min-height: 40px;
        padding: 0 0.88rem;
        border-radius: 14px;
        font-size: 0.86rem;
    }

    .mobile-home-quick-links {
        margin-top: 0.45rem;
        gap: 0.4rem;
    }

    .mobile-home-quick-links a {
        min-height: 32px;
        padding: 0.38rem 0.72rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffd76a;
        font-size: 0.78rem;
    }

    .mobile-home-snapshot {
        padding: 0;
    }

    .mobile-home-section-head {
        margin: 0.28rem 0 0.3rem;
        padding: 0 0.05rem;
    }

    .mobile-home-section-kicker {
        display: none;
    }

    .mobile-home-section-head h2 {
        font-size: 0.98rem;
    }

    .mobile-home-section-head a {
        min-height: 30px;
        color: #ffd76a;
        font-size: 0.78rem;
    }

    .mobile-snapshot-grid {
        gap: 0.25rem;
    }

    .mobile-snapshot-card {
        padding: 0;
    }

    .mobile-snapshot-title {
        margin: 0;
        padding: 0.42rem 0.05rem 0.24rem;
    }

    .mobile-snapshot-title span {
        color: #eef3ff;
        font-size: 0.84rem;
    }

    .mobile-snapshot-title strong {
        font-size: 0.68rem;
    }

    .mobile-snapshot-list {
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-snapshot-row {
        min-height: 44px;
        padding: 0.56rem 0.05rem;
    }
}

/* ===== Home mobile 从 0 重做：搜索首页 / 市场入口页 ===== */
@media (max-width: 768px) {
    body.mobile-home-page .bg-layer,
    body.mobile-home-page .bg-overlay,
    body.mobile-home-page .particles {
        display: none !important;
    }

    body.mobile-home-page .mobile-home-shell {
        box-sizing: border-box;
        width: 100%;
        min-height: calc(100vh - var(--mobile-tabbar-space, 60px));
        padding: 0.45rem 0.65rem calc(var(--mobile-tabbar-space, 60px) + 0.75rem);
        gap: 0.7rem;
        background: #f4f6fa;
    }

    body.mobile-home-page .mobile-home-hero {
        display: block;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.mobile-home-page .mobile-home-kicker,
    body.mobile-home-page .mobile-home-hero h1,
    body.mobile-home-page .mobile-home-copy,
    body.mobile-home-page .mobile-home-tools {
        display: none !important;
    }

    body.mobile-home-page .mobile-home-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 0.25rem;
        border: 1px solid #dbe2ec;
        border-radius: 14px;
        background: #fff;
        box-shadow: none;
    }

    body.mobile-home-page .mobile-home-search input {
        min-width: 0;
        height: 40px;
        padding: 0 0.75rem;
        border: 0;
        background: transparent;
        color: #111827;
        font-size: 0.96rem;
        outline: none;
    }

    body.mobile-home-page .mobile-home-search button {
        min-width: 56px;
        min-height: 40px;
        padding: 0 0.9rem;
        border: 0;
        border-radius: 11px;
        background: #1d4ed8;
        color: #fff;
        font-size: 0.86rem;
        font-weight: 800;
    }

    body.mobile-home-page .mobile-home-quick-links {
        display: flex;
        margin: 0.42rem 0 0;
        padding: 0;
        gap: 0.45rem;
    }

    body.mobile-home-page .mobile-home-quick-links a {
        min-height: 30px;
        padding: 0.32rem 0.7rem;
        border: 1px solid #dbe2ec;
        border-radius: 999px;
        background: #fff;
        color: #1d4ed8;
        font-size: 0.78rem;
        font-weight: 800;
    }

    body.mobile-home-page .mobile-home-snapshot {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.mobile-home-page .mobile-home-section-head {
        margin: 0.1rem 0 0.35rem;
        padding: 0 0.1rem;
    }

    body.mobile-home-page .mobile-home-section-kicker {
        display: none;
    }

    body.mobile-home-page .mobile-home-section-head h2 {
        color: #111827;
        font-size: 0.98rem;
        font-weight: 900;
    }

    body.mobile-home-page .mobile-home-section-head a {
        min-height: 30px;
        color: #1d4ed8;
        font-size: 0.78rem;
        font-weight: 800;
    }

    body.mobile-home-page .mobile-snapshot-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    body.mobile-home-page .mobile-snapshot-card {
        padding: 0;
        border: 1px solid #e5eaf2;
        border-radius: 14px;
        background: #fff;
        box-shadow: none;
        overflow: hidden;
    }

    body.mobile-home-page .mobile-snapshot-title {
        margin: 0;
        padding: 0.62rem 0.75rem 0.4rem;
        border-bottom: 1px solid #eef2f7;
    }

    body.mobile-home-page .mobile-snapshot-title span {
        color: #111827;
        font-size: 0.86rem;
        font-weight: 850;
    }

    body.mobile-home-page .mobile-snapshot-title strong {
        color: #64748b;
        font-size: 0.68rem;
    }

    body.mobile-home-page .mobile-snapshot-list {
        gap: 0;
        border: 0;
    }

    body.mobile-home-page .mobile-snapshot-row {
        min-height: 42px;
        padding: 0.58rem 0.75rem;
        border-top: 1px solid #eef2f7;
        color: #111827;
    }

    body.mobile-home-page .mobile-snapshot-row:first-child {
        border-top: 0;
    }

    body.mobile-home-page .mobile-snapshot-name {
        color: #111827;
    }

    body.mobile-home-page .mobile-snapshot-rank {
        color: #94a3b8;
    }
}

/* ===== 本轮限定：Home mobile 搜索工具页最终结构 ===== */
@media (max-width: 768px) {
    body.mobile-home-page .mobile-home-shell {
        width: 100%;
        min-height: calc(100vh - var(--mobile-tabbar-space, 60px));
        padding: 0.42rem 0.55rem calc(var(--mobile-tabbar-space, 60px) + 0.72rem);
        gap: 0.68rem;
        background: #f4f6fa;
    }

    body.mobile-home-page .mobile-home-search-panel {
        display: block;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.mobile-home-page .mobile-home-search-form {
        display: grid;
        gap: 0.48rem;
        margin: 0;
    }

    body.mobile-home-page .mobile-home-searchbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        min-height: 48px;
        padding: 0.18rem;
        border: 1px solid #d7dee9;
        border-radius: 14px;
        background: #fff;
        box-shadow: none;
    }

    body.mobile-home-page .mobile-home-searchbar input {
        min-width: 0;
        height: 42px;
        padding: 0 0.78rem;
        border: 0;
        background: transparent;
        color: #111827;
        font-size: 0.95rem;
        outline: none;
    }

    body.mobile-home-page .mobile-home-searchbar input::placeholder {
        color: #94a3b8;
    }

    body.mobile-home-page .mobile-home-searchbar button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: #1d4ed8;
        color: #fff;
    }

    body.mobile-home-page .mobile-home-searchbar svg {
        width: 19px;
        height: 19px;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.mobile-home-page .mobile-home-filter-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.42rem;
    }

    body.mobile-home-page .mobile-home-filter {
        display: grid;
        min-width: 0;
        gap: 0.16rem;
        margin: 0;
    }

    body.mobile-home-page .mobile-home-filter span {
        padding-left: 0.08rem;
        color: #64748b;
        font-size: 0.65rem;
        font-weight: 800;
        line-height: 1;
    }

    body.mobile-home-page .mobile-home-filter select,
    body.mobile-home-page .mobile-home-advanced-link {
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding: 0 0.52rem;
        border: 1px solid #d7dee9;
        border-radius: 11px;
        background: #fff;
        color: #111827;
        font-size: 0.75rem;
        font-weight: 800;
        box-shadow: none;
    }

    body.mobile-home-page .mobile-home-filter select {
        appearance: auto;
    }

    body.mobile-home-page .mobile-home-advanced-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: end;
        text-decoration: none;
        color: #1d4ed8;
    }

    body.mobile-home-page .mobile-home-snapshot {
        padding: 0;
    }

    body.mobile-home-page .mobile-home-section-head {
        margin: 0.1rem 0 0.38rem;
        padding: 0 0.08rem;
    }

    body.mobile-home-page .mobile-home-section-head h2 {
        font-size: 0.98rem;
    }

    body.mobile-home-page .mobile-snapshot-grid {
        grid-template-columns: 1fr;
        gap: 0.44rem;
    }

    body.mobile-home-page .mobile-snapshot-card {
        border-radius: 12px;
    }
}

/* ===== 本轮限定：Home mobile 深色视觉回调，只改颜色/质感，不改变结构层级 ===== */
@media (max-width: 768px) {
    body.mobile-home-page {
        background:
            radial-gradient(circle at top, rgba(255, 215, 106, 0.1), transparent 26%),
            linear-gradient(180deg, #111a2e 0%, #0b1220 38%, #0a1020 100%) !important;
        color: #f8fafc;
        padding-bottom: var(--mobile-tabbar-space, 60px) !important;
    }

    body.mobile-home-page .navbar {
        /* 保险覆盖：即使旧 mobile.css 被缓存，Home 也不能露出 GA/Home 移动页头。 */
        display: none !important;
    }

    body.mobile-home-page .main-content {
        padding-top: 0 !important;
        background: transparent;
    }

    body.mobile-home-page .bg-layer,
    body.mobile-home-page .bg-overlay {
        display: block !important;
    }

    body.mobile-home-page .particles {
        display: none !important;
    }

    body.mobile-home-page .bg-image {
        animation: none;
        filter: brightness(0.5) saturate(0.92);
        transform: none;
    }

    body.mobile-home-page .bg-overlay {
        background:
            linear-gradient(180deg, rgba(11, 18, 32, 0.38) 0%, rgba(11, 18, 32, 0.76) 36%, rgba(10, 16, 32, 0.96) 100%),
            radial-gradient(circle at 20% 0%, rgba(255, 215, 106, 0.14), transparent 34%);
    }

    body.mobile-home-page .mobile-home-shell {
        color: #f8fafc;
        background: transparent;
    }

    body.mobile-home-page .mobile-home-searchbar {
        border-color: rgba(255, 215, 106, 0.2);
        background: rgba(17, 26, 46, 0.9);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(14px);
    }

    body.mobile-home-page .mobile-home-searchbar input {
        color: #f8fafc;
    }

    body.mobile-home-page .mobile-home-searchbar input::placeholder {
        color: #8fa0c2;
    }

    body.mobile-home-page .mobile-home-searchbar button {
        background: linear-gradient(135deg, #ffd76a, #ffb703);
        color: #111827;
        box-shadow: 0 8px 18px rgba(255, 183, 3, 0.22);
    }

    body.mobile-home-page .mobile-home-filter {
        position: relative;
        display: block;
    }

    body.mobile-home-page .mobile-home-filter span {
        /* 视觉上让下拉控件自己承载字段名，避免回到“标签+控件”展板感。 */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    body.mobile-home-page .mobile-home-filter select,
    body.mobile-home-page .mobile-home-advanced-link {
        min-height: 36px;
        border-color: rgba(255, 215, 106, 0.14);
        background: rgba(17, 26, 46, 0.84);
        color: #e8eefc;
        box-shadow: none;
        backdrop-filter: blur(12px);
    }

    body.mobile-home-page .mobile-home-filter select {
        color-scheme: dark;
    }

    body.mobile-home-page .mobile-home-filter select option {
        background: #111a2e;
        color: #f8fafc;
    }

    body.mobile-home-page .mobile-home-advanced-link {
        color: #ffd76a;
    }

    body.mobile-home-page .mobile-home-section-head h2 {
        color: #f8fafc;
    }

    body.mobile-home-page .mobile-home-section-head a {
        color: #ffd76a;
    }

    body.mobile-home-page .mobile-snapshot-card {
        border: 1px solid rgba(255, 215, 106, 0.12);
        background: rgba(17, 26, 46, 0.84);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(12px);
    }

    body.mobile-home-page .mobile-snapshot-title {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body.mobile-home-page .mobile-snapshot-title span {
        color: #f8fafc;
    }

    body.mobile-home-page .mobile-snapshot-title strong,
    body.mobile-home-page .mobile-snapshot-rank {
        color: #93a4c2;
    }

    body.mobile-home-page .mobile-snapshot-row {
        border-top-color: rgba(255, 255, 255, 0.08);
        color: #f8fafc;
    }

    body.mobile-home-page .mobile-snapshot-name {
        color: #f8fafc;
    }

    body.mobile-home-page .mobile-home-state {
        color: #aeb9d5;
    }
}

@media (max-width: 768px) {
    body.mobile-home-page .mobile-home-tools {
        display: block !important;
        padding: 0 !important;
        margin-top: 0.1rem;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    body.mobile-home-page .mobile-home-tools-head {
        margin: 0.08rem 0 0.42rem;
        padding: 0 0.08rem;
    }

    body.mobile-home-page .mobile-home-tools-head h2 {
        margin: 0;
        color: #f8fafc;
        font-size: 0.95rem;
        font-weight: 850;
    }

    body.mobile-home-page .mobile-home-tool-link {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.72rem;
        min-height: 58px;
        padding: 0.84rem 0.92rem;
        border: 1px solid rgba(255, 215, 106, 0.12);
        border-radius: 14px;
        background: rgba(17, 26, 46, 0.84);
        color: #f8fafc;
        text-decoration: none;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(12px);
    }

    body.mobile-home-page .mobile-home-tool-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        color: #d8e4f1;
    }

    body.mobile-home-page .mobile-home-tool-icon svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.mobile-home-page .mobile-home-tool-icon g:last-child rect {
        stroke: #c5a15f;
    }

    body.mobile-home-page .mobile-home-tool-label {
        min-width: 0;
        color: #f8fafc;
        font-size: 0.92rem;
        font-weight: 800;
        line-height: 1.2;
    }

    body.mobile-home-page .mobile-home-tool-arrow {
        color: #ffd76a;
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1;
    }
}

/* ===== 正文去边框（按钮边框保持不变） ===== */
@media (max-width: 768px) {
    /* 本周波动卡片外框去掉 */
    body.mobile-home-page .mobile-snapshot-card {
        border: none !important;
    }

    /* 标题与行内分割线去掉 */
    body.mobile-home-page .mobile-snapshot-title {
        border-bottom: none !important;
    }

    body.mobile-home-page .mobile-snapshot-row,
    body.mobile-home-page .mobile-snapshot-row:first-child {
        border-top: none !important;
    }

    /* 工具区正文卡片外框去掉 */
    body.mobile-home-page .mobile-home-tool-link {
        border: none !important;
    }
}
