/* 名人K线图主页（紫夜金声）
 * 手机：竖屏单列、每页 10 位；PC：内容 1200px 居中、顶部栏横贯全屏、指数单列、行更扁
 * 列表随页面滚动，不出现独立滚动条 */
html.page-home { display: block; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
html.page-home::-webkit-scrollbar { width: 0; height: 0; display: none; }
body.page-home {
    width: 100%; max-width: none; height: auto; min-height: 100vh; min-height: 100dvh;
    overflow: visible;
}
#app.home { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
.home { background: radial-gradient(120% 60% at 50% 0%, #1d1540 0%, #0a0714 55%); }

/* 顶部介绍栏：背景横贯全屏，内容对齐 1200 容器 */
.home-top { display: block; padding: 0; flex: none; border-bottom: 1px solid var(--line); }
.home-top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px 16px 14px; max-width: 1200px; margin: 0 auto; }
.home-badge {
    width: 52px; height: 52px; border-radius: 14px; flex: none;
    background: linear-gradient(180deg, #b79dff 0%, #6d4fd8 100%);
    color: #fff; font-size: 28px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 32px rgba(155, 124, 245, .45);
}
.home-meta { flex: 1; min-width: 0; }
.home-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.home-sub { font-size: 11px; color: var(--dim); margin-top: 3px; letter-spacing: .5px; }
.home-tip { flex: none; font-size: 10px; color: #6b6187; border: 1px solid #2d2448; border-radius: 10px; padding: 3px 8px; letter-spacing: 1px; }

/* 顶部右侧：搜索名人姓名 */
.home-search {
    order: 3; flex: 1 0 100%;
    display: flex; align-items: center;
    height: 36px; padding: 0 4px 0 11px;
    background: #120d24; border: 1px solid #2d2448; border-radius: 11px;
    transition: border-color .14s, background .14s;
}
.home-search:focus-within { border-color: rgba(233, 194, 106, .55); background: #171030; }
.hs-ico { width: 15px; height: 15px; flex: none; color: #6b6187; }
.home-search:focus-within .hs-ico { color: #e9c26a; }
.hs-input {
    flex: 1; min-width: 0; height: 100%; padding: 0 9px;
    border: 0; background: none; outline: none; font-family: inherit;
    font-size: 13px; color: #efe9ff; -webkit-appearance: none; appearance: none;
}
.hs-input::placeholder { color: #5b5178; }
.hs-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hs-btn {
    flex: none; height: 27px; padding: 0 13px; border: 0; border-radius: 8px;
    background: linear-gradient(180deg, #f6e2ad 0%, #e9c26a 100%); color: #241a08;
    font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
}
.hs-btn:active { transform: scale(.96); }

.home-list { padding: 12px 12px 4px; }
.home-cols { display: none; }

.home-card {
    display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 3px;
    align-items: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px; margin-bottom: 11px;
    transition: border-color .12s, background .12s;
    box-shadow: 0 6px 22px rgba(8, 4, 20, .45);
}
.hc-main {
    grid-column: 1; grid-row: 1 / span 2;
    display: flex; align-items: center; gap: 12px; min-width: 0;
    text-decoration: none; color: inherit;
}
.home-card:active { border-color: #4b3a80; }
.home-card .badge { width: 46px; height: 46px; font-size: 22px; border-radius: 12px; }
.hc-mid { flex: 1; min-width: 0; }
.hc-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.hc-sub { font-size: 11px; color: var(--dim); margin-top: 3px; }
.hc-intro {
    font-size: 10.5px; color: #c3b6e0; margin-top: 5px; line-height: 1.45;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hc-event {
    font-size: 10.5px; color: #8e84aa; margin-top: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.home-empty { text-align: center; font-size: 12px; color: #5b5276; padding: 40px 0; letter-spacing: 1px; line-height: 2; }
.he-link { display: inline-block; margin-top: 6px; font-size: 12px; color: #e9c26a; text-decoration: none; border-bottom: 1px solid rgba(233, 194, 106, .4); padding-bottom: 1px; }

/* 指数单列 */
.hc-stats { grid-column: 2; grid-row: 1; text-align: right; }
.hc-pct { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hc-pct.up { color: var(--up); }
.hc-pct.down { color: var(--down); }
.hc-price { font-size: 10.5px; color: var(--dim); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 最右：查看K线入口 */
.hc-go {
    grid-column: 2; grid-row: 2; justify-self: end; white-space: nowrap;
    font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
    color: var(--gold); text-decoration: none;
}
.hc-go i { font-style: normal; margin-left: 2px; }

/* 分页条 */
.home-page {
    flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 12px 6px;
}
.home-page .pg {
    min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; letter-spacing: .5px; text-decoration: none;
    color: #9a8fbb; border: 1px solid var(--line); background: rgba(22, 16, 44, .7);
    font-variant-numeric: tabular-nums;
}
.home-page .pg.on { color: #0a0714; background: var(--gold); border-color: var(--gold); font-weight: 800; }
.home-page .pg-dot { border: 0; background: none; color: #574d73; }
.home-page .pg-info { font-size: 10.5px; color: #5b5276; margin-left: 4px; letter-spacing: .5px; }

.home-foot { flex: none; text-align: center; font-size: 9.5px; color: #4a4162; padding: 6px 0 14px; letter-spacing: .5px; }

/* ============ PC 宽屏 ============ */
@media (min-width: 720px) {
    .home-top-in { padding: 18px 20px 15px; }
    .home-badge { width: 48px; height: 48px; font-size: 25px; border-radius: 12px; }
    .home-name { font-size: 22px; }
    .home-sub { font-size: 12px; }
    .home-tip { font-size: 11px; padding: 4px 10px; }
    /* PC：搜索框回到顶部右侧同一行 */
    .home-search { order: 0; flex: 0 0 300px; height: 38px; }
    .hs-input { font-size: 13px; }
    .hs-btn { height: 28px; }

    .home-list { padding: 14px 20px 6px; width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }

    .home-cols {
        display: grid; grid-template-columns: 1fr 170px 150px;
        align-items: center; padding: 0 16px 6px; font-size: 11px; color: #6a6188; letter-spacing: .5px;
    }
    .home-cols span:nth-child(2) { text-align: right; padding-right: 18px; }
    .home-cols span:nth-child(3) { text-align: right; }

    .home-card {
        grid-template-columns: 1fr 170px 150px; column-gap: 0; row-gap: 0;
        padding: 8px 16px; margin-bottom: 7px; border-radius: 11px;
    }
    .home-card:hover { border-color: #4b3a80; background: #191233; }
    .home-card .badge { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
    .hc-main { grid-column: 1; grid-row: 1; gap: 10px; }
    .hc-mid { display: grid; grid-template-columns: 190px 1fr; column-gap: 18px; align-items: center; row-gap: 1px; }
    .hc-name { grid-column: 1; grid-row: 1; font-size: 15.5px; }
    .hc-sub { grid-column: 1; grid-row: 2; margin-top: 0; font-size: 10.5px; }
    .hc-intro { grid-column: 2; grid-row: 1; margin-top: 0; -webkit-line-clamp: 1; font-size: 11px; }
    .hc-event { grid-column: 2; grid-row: 2; margin-top: 0; font-size: 10.5px; }

    .hc-stats {
        grid-column: 2; grid-row: 1; text-align: right;
        padding: 4px 18px 4px 0; border-right: 1px solid var(--line);
    }
    .hc-pct { font-size: 15px; }
    .hc-price { font-size: 10.5px; margin-top: 1px; }

    .hc-go {
        grid-column: 3; grid-row: 1; justify-self: end;
        font-size: 11.5px; padding: 5px 10px; border-radius: 6px;
        border: 1px solid rgba(245, 197, 66, .5); background: rgba(245, 197, 66, .08);
        transition: background .12s, color .12s;
    }
    .hc-go:hover { background: var(--gold); color: #0a0714; }

    .home-page { padding: 12px 20px 4px; gap: 7px; }
    .home-page .pg { min-width: 32px; height: 32px; font-size: 12.5px; }
    .home-page .pg:hover { border-color: #4b3a80; color: #e8e2ff; }
    .home-page .pg.on:hover { color: #0a0714; }
    .home-page .pg-info { font-size: 11.5px; }

    .home-foot { font-size: 11px; padding: 8px 0 18px; }
}
