/* ============ 预测页 · 全新视觉 ============ */

/* 主题变量 */
body.page-predict {
    --y28-bg: #eef1f9;
    --y28-fg: #0f172a;
    --y28-card: #ffffff;
    --y28-muted: #f2f5fc;
    --y28-muted-fg: #64748b;
    --y28-border: #e3e9f5;
    --y28-primary: #6366f1;
    --y28-primary-2: #8b5cf6;
    --y28-accent: #eef0ff;
    --y28-glow: rgba(99, 102, 241, .28);
    --y28-dt-dragon: #ef4444;
    --y28-dt-tiger: #3b82f6;
    --y28-dt-tie: #a855f7;
    --y28-sum-bg: linear-gradient(135deg, #6366f1, #8b5cf6);
    --y28-sum-fg: #ffffff;
    --y28-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
}
html.theme-dark body.page-predict {
    --y28-bg: #070b15;
    --y28-fg: #e8eefc;
    --y28-card: #101828;
    --y28-muted: #1a2540;
    --y28-muted-fg: #93a4c4;
    --y28-border: rgba(255, 255, 255, .08);
    --y28-primary: #818cf8;
    --y28-primary-2: #a78bfa;
    --y28-accent: #18243f;
    --y28-glow: rgba(129, 140, 248, .35);
    --y28-dt-dragon: #ef4444;
    --y28-dt-tiger: #3b82f6;
    --y28-dt-tie: #a855f7;
    --y28-sum-bg: linear-gradient(135deg, #818cf8, #a78bfa);
    --y28-sum-fg: #0b1020;
    --y28-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
}
html.theme-blue body.page-predict {
    --y28-bg: #061426;
    --y28-fg: #e0f2fe;
    --y28-card: #0c1f38;
    --y28-muted: #122a48;
    --y28-muted-fg: #8fb3d9;
    --y28-border: rgba(125, 190, 255, .14);
    --y28-primary: #38bdf8;
    --y28-primary-2: #60a5fa;
    --y28-accent: #0d2038;
    --y28-glow: rgba(56, 189, 248, .32);
    --y28-dt-dragon: #ef4444;
    --y28-dt-tiger: #3b82f6;
    --y28-dt-tie: #a855f7;
    --y28-sum-bg: linear-gradient(135deg, #38bdf8, #60a5fa);
    --y28-sum-fg: #04121f;
    --y28-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .65);
}

body.page-predict {
    background: var(--y28-bg);
    color: var(--y28-fg);
    transition: background .3s ease, color .3s ease;
}
body.page-predict::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 45% at 50% 0%, var(--y28-glow), transparent 70%),
        radial-gradient(40% 30% at 100% 100%, var(--y28-glow), transparent 70%);
    opacity: .55;
    pointer-events: none;
}
body.page-predict #bg-particles,
body.page-predict #bg-image,
body.page-predict .wm { display: none; }

/* ============ 头部 ============ */
body.page-predict .page-inner { padding-top: 22px; }
.pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--y28-border);
    border-radius: 20px;
    background: var(--y28-card);
    box-shadow: var(--y28-shadow);
}
.pd-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pd-logo { margin-bottom: 0; min-height: 0; flex-shrink: 0; }
.pd-logo .logo-img { max-height: 46px; }
.pd-heading { min-width: 0; }
.pd-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.2;
    color: var(--y28-fg);
    white-space: nowrap;
}
.pd-title span {
    background: linear-gradient(120deg, var(--y28-primary), var(--y28-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 6px;
}
.pd-sub { margin: 4px 0 0; font-size: 12px; letter-spacing: 1.5px; color: var(--y28-muted-fg); }
.pd-toolbar { display: flex; align-items: center; gap: 12px; }
.pd-live {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--y28-muted-fg);
    font-variant-numeric: tabular-nums;
}
.pd-live time { color: var(--y28-fg); font-weight: 600; }
.pd-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    animation: pd-pulse 1.8s ease-out infinite;
}
@keyframes pd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pd-refresh {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid transparent; border-radius: 999px;
    padding: 8px 18px; font: inherit; font-size: 13px; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--y28-primary), var(--y28-primary-2));
    box-shadow: 0 6px 16px -6px var(--y28-glow);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.pd-refresh svg { width: 14px; height: 14px; }
.pd-refresh:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px var(--y28-glow); }
.pd-refresh:active { transform: translateY(0) scale(.97); }
.pd-refresh:disabled { opacity: .55; cursor: default; box-shadow: none; }
.pd-refresh.is-loading svg { animation: y28-spin .8s linear infinite; }

/* ============ 仪表盘布局 ============ */
.pd-dashboard { display: flex; flex-direction: column; gap: 16px; }

/* ============ 倒计时 Hero ============ */
.pd-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid var(--y28-border);
    background:
        radial-gradient(120% 140% at 100% 0%, var(--y28-glow), transparent 55%),
        var(--y28-card);
    box-shadow: var(--y28-shadow);
    animation: pd-rise .5s ease both;
}
.pd-hero::after {
    content: "";
    position: absolute;
    width: 190px; height: 190px;
    right: -50px; top: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--y28-glow), transparent 70%);
    opacity: .7;
    pointer-events: none;
}
.pd-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-hero-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--y28-muted-fg);
}
.pd-hero-label svg { width: 15px; height: 15px; color: var(--y28-primary); }
.pd-hero-period {
    font-size: 12px; color: var(--y28-muted-fg);
    padding: 4px 12px; border-radius: 999px;
    background: var(--y28-muted);
    font-variant-numeric: tabular-nums;
}
.pd-hero-period b { color: var(--y28-fg); font-size: 13px; }
.pd-hero-timer {
    margin: 14px 0 16px;
    font-size: clamp(38px, 10vw, 56px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, var(--y28-primary), var(--y28-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pd-hero-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--y28-muted);
    overflow: hidden;
}
.pd-hero-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--y28-primary), var(--y28-primary-2));
    transition: width .4s linear;
}
.pd-hero-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 12px;
    font-size: 12px; color: var(--y28-muted-fg);
}
.pd-hero-open { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ 卡片通用 ============ */
.pd-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--y28-border);
    background: var(--y28-card);
    box-shadow: var(--y28-shadow);
    animation: pd-rise .5s ease both;
}
.pd-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 16px;
}
.pd-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--y28-fg);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.pd-card-head > span { font-size: 12px; color: var(--y28-muted-fg); }
.pd-hist-hint { font-size: 12px; color: var(--y28-muted-fg); }

@keyframes pd-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 双列网格 */
.pd-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) {
    .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

/* ============ 最新开奖 ============ */
.y28-lt-card { justify-content: flex-start; }
.y28-lt-card .pd-card-head { margin-bottom: 18px; }
.y28-lt-card .pd-card-title { font-size: 14px; font-weight: 600; color: var(--y28-muted-fg); }
.y28-lt-nbr { color: var(--y28-fg); font-weight: 800; font-size: 16px; }
.y28-lt-time { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--y28-muted-fg); font-variant-numeric: tabular-nums; }
.pd-mimi {
    flex-shrink: 0;
    font-size: 12px; font-weight: 700;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--y28-primary), var(--y28-primary-2));
    box-shadow: 0 5px 14px -6px var(--y28-glow);
    cursor: pointer;
    transition: transform .15s ease, filter .2s ease;
}
.pd-mimi:hover { filter: brightness(1.08); }
.pd-mimi:active { transform: scale(.95); }
.pd-mimi:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.y28-lt-body { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; flex: 1; }

/* 号码球 */
.y28-strip { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.y28-strip-empty { min-height: 46px; font-size: 15px; font-weight: 600; color: var(--y28-muted-fg); }
.y28-ball {
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--y28-border);
    background: var(--y28-muted);
    color: var(--y28-fg);
    font-size: 19px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -6px rgba(0, 0, 0, .35);
}
.y28-op { color: var(--y28-muted-fg); font-size: 18px; font-weight: 700; flex-shrink: 0; }
.y28-ball.y28-sum {
    background: var(--y28-sum-bg);
    color: var(--y28-sum-fg);
    border-color: transparent;
    box-shadow: 0 6px 16px -6px var(--y28-glow);
}
@media (min-width: 420px) {
    .y28-ball { width: 54px; height: 54px; font-size: 22px; }
    .y28-op { font-size: 21px; }
}
@media (min-width: 560px) {
    .y28-ball { width: 62px; height: 62px; font-size: 26px; }
    .y28-op { font-size: 24px; }
}

/* 咪牌刮奖 */
.y28-scratch { position: relative; border-radius: 14px; }
.y28-scratch-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border-radius: 14px;
    touch-action: none; cursor: pointer; z-index: 5;
}
.y28-scratch.y28-opened .y28-ball { animation: y28-ball-in .55s ease; }
@keyframes y28-ball-in {
    from { transform: scale(.6); opacity: .15; }
    to { transform: scale(1); opacity: 1; }
}

/* ============ 下期预测 ============ */
.pd-predict .pd-card-head { margin-bottom: 18px; }
.y28-predict-nbr {
    font-size: 12px; font-weight: 500; color: var(--y28-muted-fg);
    font-variant-numeric: tabular-nums;
}
.pd-copy {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--y28-border);
    border-radius: 999px;
    padding: 5px 13px;
    font: inherit; font-size: 12px; font-weight: 600;
    color: var(--y28-muted-fg);
    background: var(--y28-muted);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .15s ease;
}
.pd-copy svg { width: 13px; height: 13px; }
.pd-copy:hover { color: var(--y28-primary); background: var(--y28-accent); }
.pd-copy:active { transform: scale(.95); }
.y28-predict-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
@media (max-width: 420px) { .y28-predict-grid { grid-template-columns: repeat(2, 1fr); } }
.y28-predict-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 6px;
    border-radius: 14px;
    background: var(--y28-muted);
    border: 1px solid var(--y28-border);
    overflow: hidden;
    transition: transform .18s ease, border-color .2s ease;
}
.y28-predict-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--y28-primary), var(--y28-primary-2));
    opacity: .85;
}
.y28-predict-item:hover { transform: translateY(-2px); border-color: var(--y28-primary); }
.y28-predict-label { font-size: 12px; color: var(--y28-muted-fg); }
.y28-predict-val {
    font-size: 20px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, var(--y28-primary), var(--y28-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.y28-predict-note { margin-top: 14px; font-size: 11px; color: var(--y28-muted-fg); text-align: center; }

/* ============ 近期走势 ============ */
.y28-trend-grid { display: flex; flex-direction: column; gap: 16px; }
.y28-trend-item { display: flex; flex-direction: column; gap: 8px; }
.y28-trend-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 12px; color: var(--y28-muted-fg);
}
.y28-trend-top b { color: var(--y28-fg); font-weight: 700; }
.y28-trend-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--y28-muted);
}
.y28-trend-bar i { display: block; height: 100%; transition: width .5s ease; }
.y28-trend-bar .is-da { background: #ef4444; }
.y28-trend-bar .is-xiao { background: #3b82f6; }
.y28-trend-bar .is-dan { background: #a855f7; }
.y28-trend-bar .is-shuang { background: #22c55e; }
.y28-trend-bar .is-dragon { background: #ef4444; }
.y28-trend-bar .is-tiger { background: #3b82f6; }
.y28-trend-bar .is-tie { background: #a855f7; }

/* ============ 历史表格 ============ */
.y28-hist-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--y28-border);
    border-radius: 14px;
    background: var(--y28-card);
}
.y28-table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 13px; }
.y28-table thead th {
    border-bottom: 1px solid var(--y28-border);
    background: var(--y28-muted);
    padding: 11px 14px;
    text-align: left;
    color: var(--y28-muted-fg);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.y28-table tbody td {
    border-bottom: 1px solid var(--y28-border);
    padding: 11px 14px;
    color: var(--y28-fg);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.y28-table tbody tr:last-child td { border-bottom: none; }
.y28-table tbody tr { transition: background .15s ease; }
.y28-table tbody tr:nth-child(2n) { background: var(--y28-muted); }
.y28-table tbody tr:hover { background: var(--y28-accent); }
.y28-nbr { font-weight: 700; }
.y28-time { color: var(--y28-muted-fg); }

/* 号码算式 */
.y28-eq { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.y28-digit { font-weight: 600; }
.y28-eqop { color: var(--y28-muted-fg); font-weight: 500; margin: 0 1px; }
.y28-eqsum { color: var(--y28-primary); font-weight: 800; }

/* 号码眯牌遮罩 */
.y28-nums { position: relative; }
.y28-nums.y28-nums-coat { cursor: pointer; }
.y28-nums.y28-nums-coat::after {
    content: '';
    position: absolute;
    inset: 3px -3px;
    border-radius: 6px;
    background: linear-gradient(135deg, #8f99a7, #c6cdd8 45%, #97a1af);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .55), inset 0 -1px 2px rgba(60, 70, 85, .35);
    z-index: 1;
}
.y28-nums.y28-nums-coat::before {
    content: '眯牌';
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(45, 56, 72, .72);
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    z-index: 2; pointer-events: none;
}
.y28-nums.y28-nums-coat:hover::after { filter: brightness(1.07); }
.y28-nums.y28-nums-coat:active::after { filter: brightness(.92); }
.y28-nums .y28-eq { transition: opacity .3s ease; }
.y28-nums.y28-nums-coat .y28-eq { opacity: 0; }

/* 彩色 chip */
.y28-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; padding: 3px 11px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 12px; font-weight: 700;
    line-height: 1.6;
}
.y28-chip-dragon { background: var(--y28-dt-dragon); }
.y28-chip-tiger { background: var(--y28-dt-tiger); }
.y28-chip-tie { background: var(--y28-dt-tie); }

/* 软标签 */
.y28-soft {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
body.page-predict .y28-pat-za { color: #2e7d32; background: rgba(67, 160, 71, .14); }
body.page-predict .y28-pat-dui { color: #bf360c; background: rgba(249, 168, 37, .16); }
body.page-predict .y28-pat-shun { color: #6a1b9a; background: rgba(142, 36, 170, .14); }
body.page-predict .y28-pat-baozi { color: #c62828; background: rgba(229, 57, 53, .14); }
body.page-predict .y28-pat-ban { color: #00695c; background: rgba(0, 137, 123, .14); }
body.page-predict .y28-loc-da { color: #c62828; background: rgba(229, 57, 53, .14); }
body.page-predict .y28-loc-xiao { color: #1565c0; background: rgba(30, 136, 229, .14); }
body.page-predict .y28-loc-zhong { color: var(--y28-muted-fg); background: var(--y28-muted); }
body.page-predict .y28-ext-da { color: #c62828; background: rgba(229, 57, 53, .14); }
body.page-predict .y28-ext-xiao { color: #1565c0; background: rgba(30, 136, 229, .14); }
html.theme-dark body.page-predict .y28-pat-za,
html.theme-blue body.page-predict .y28-pat-za { color: #a5d6a7; background: rgba(102, 187, 106, .22); }
html.theme-dark body.page-predict .y28-pat-dui,
html.theme-blue body.page-predict .y28-pat-dui { color: #ffe082; background: rgba(249, 168, 37, .24); }
html.theme-dark body.page-predict .y28-pat-shun,
html.theme-blue body.page-predict .y28-pat-shun { color: #ce93d8; background: rgba(206, 147, 216, .22); }
html.theme-dark body.page-predict .y28-pat-baozi,
html.theme-blue body.page-predict .y28-pat-baozi { color: #ef9a9a; background: rgba(239, 83, 80, .22); }
html.theme-dark body.page-predict .y28-pat-ban,
html.theme-blue body.page-predict .y28-pat-ban { color: #80cbc4; background: rgba(38, 166, 154, .22); }
html.theme-dark body.page-predict .y28-loc-da,
html.theme-blue body.page-predict .y28-loc-da { color: #ef9a9a; background: rgba(239, 83, 80, .22); }
html.theme-dark body.page-predict .y28-loc-xiao,
html.theme-blue body.page-predict .y28-loc-xiao { color: #90caf9; background: rgba(66, 165, 245, .22); }
html.theme-dark body.page-predict .y28-ext-da,
html.theme-blue body.page-predict .y28-ext-da { color: #ef9a9a; background: rgba(239, 83, 80, .22); }
html.theme-dark body.page-predict .y28-ext-xiao,
html.theme-blue body.page-predict .y28-ext-xiao { color: #90caf9; background: rgba(66, 165, 245, .22); }
.y28-mute { color: var(--y28-muted-fg); }

/* 移动端隐藏桌面列 */
.y28-desk { display: table-cell; }
@media (max-width: 768px) {
    .y28-desk { display: none; }
    .y28-table { min-width: 23rem; }
}

/* 移动端历史表格首列吸附 */
.y28-table th:first-child,
.y28-table td:first-child { position: sticky; left: 0; background: var(--y28-card); }
.y28-table th:first-child { z-index: 3; background: var(--y28-muted); }
.y28-table td:first-child { z-index: 1; box-shadow: 1px 0 0 var(--y28-border); }
.y28-table tbody tr:nth-child(2n) td:first-child { background: var(--y28-muted); }
.y28-table tbody tr:hover td:first-child { background: var(--y28-accent); }

.y28-hist-scroll::-webkit-scrollbar { height: 6px; }
.y28-hist-scroll::-webkit-scrollbar-thumb { background: var(--y28-border); border-radius: 3px; }

/* ============ 状态 / 加载 ============ */
.predict-foot { text-align: center; font-size: 11px; color: var(--y28-muted-fg); padding-top: 4px; }
.predict-empty { color: var(--y28-muted-fg); font-size: 13px; text-align: center; padding: 24px 0; }
.predict-loading {
    position: fixed; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 120;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 170px; padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid var(--y28-border);
    background: var(--y28-card);
    box-shadow: var(--y28-shadow);
    color: var(--y28-fg);
    font-size: 14px; font-weight: 600; text-align: center;
}
.predict-loading::before {
    content: '';
    width: 18px; height: 18px; flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--y28-primary);
    border-top-color: transparent;
    animation: y28-spin .8s linear infinite;
}
@keyframes y28-spin { to { transform: rotate(360deg); } }
.predict-err { color: #ef6b6b; font-size: 12px; text-align: center; padding: 4px 0 12px; word-break: break-all; }

/* 加载骨架 */
.predict-skeleton { display: flex; flex-direction: column; gap: 16px; }
.sk-card {
    position: relative; overflow: hidden;
    height: 120px;
    border: 1px solid var(--y28-border);
    border-radius: 20px;
    background: var(--y28-card);
}
.sk-card.short { height: 64px; }
.sk-card.tall { height: 240px; }
.sk-card::after {
    content: "";
    position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--y28-glow), transparent);
    opacity: .5;
    animation: y28-shimmer 1.4s ease-in-out infinite;
}
@keyframes y28-shimmer { 100% { transform: translateX(100%); } }

/* 状态提示（空/错误） */
.predict-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; }
.predict-retry {
    margin-top: 14px;
    border: 1px solid transparent; border-radius: 999px;
    padding: 9px 28px;
    font: inherit; font-size: 13px; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--y28-primary), var(--y28-primary-2));
    box-shadow: 0 6px 16px -6px var(--y28-glow);
    cursor: pointer;
    transition: transform .15s ease, filter .2s ease;
}
.predict-retry:hover { filter: brightness(1.08); }
.predict-retry:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
    .sk-card::after, .pd-live-dot, .pd-hero, .pd-card { animation: none; }
    .y28-trend-bar i { transition: none; }
}

/* 小屏头部堆叠 */
@media (max-width: 560px) {
    .pd-header { padding: 14px 16px; border-radius: 16px; }
    .pd-title { font-size: 19px; }
    .pd-toolbar { width: 100%; justify-content: space-between; }
}
