/* =========================================================
   足球料 - 移动端简约高端主题
   色板: deep black + warm gold + refined typography
   ========================================================= */
:root {
    --bg:        #0b0b0d;
    --bg-2:      #121216;
    --surface:   #16161b;
    --surface-2: #1c1c22;
    --line:      #2a2a33;
    --line-soft: #1f1f26;

    --text:      #f0efe9;
    --text-2:    #b8b6ae;
    --text-3:    #73716a;

    --gold:      #c9a961;
    --gold-soft: rgba(201,169,97,.14);
    --red:       #a63a3a;
    --red-soft:  rgba(166,58,58,.14);

    --radius-sm: 8px;
    --radius:   14px;
    --radius-lg: 20px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

html {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Source Han Sans CN",
                 "Noto Sans SC", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 50% -40%, #1a1508 0%, transparent 60%),
        var(--bg);
    padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ========== 顶部 ========== */
.hero {
    padding: 28px 20px 12px;
    text-align: center;
    animation: fadeUp .6s cubic-bezier(.2,.8,.2,1);
}
.hero .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .18em;
    color: var(--gold); text-transform: uppercase;
}
.hero .brand .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.hero h1 {
    font-size: 34px; font-weight: 800; letter-spacing: -.02em;
    margin-top: 14px; line-height: 1.15;
    color: var(--text);
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--gold), #e8d49a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
    margin-top: 10px; font-size: 12.5px; color: var(--text-3);
    letter-spacing: .02em;
}

/* ========== 统计 ========== */
.stats {
    margin: 24px 18px 16px;
    padding: 18px 6px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) .06s both;
}
.stat {
    text-align: center;
    padding: 0 4px;
    border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat .v {
    font-family: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 26px; font-weight: 700; letter-spacing: -.02em;
    color: var(--gold); line-height: 1;
}
.stat .v.hit-all { color: var(--text); }
.stat .l {
    margin-top: 8px; font-size: 10.5px; color: var(--text-3);
    letter-spacing: .1em; text-transform: uppercase;
}

/* ========== 栏目 ========== */
.section {
    padding: 4px 18px 32px;
    animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) .12s both;
}
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 20px 0 14px;
}
.section-head h2 {
    font-size: 13px; font-weight: 600; letter-spacing: .12em;
    color: var(--text-2); text-transform: uppercase;
}
.section-head h2::before {
    content: ''; display: inline-block; width: 14px; height: 1px;
    background: var(--gold); margin-right: 8px; vertical-align: middle;
}
.section-head .count {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px; color: var(--text-3);
}

/* ========== 比赛卡片 ========== */
.match-card {
    margin-bottom: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: border-color .2s;
    animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both;
}
.match-card.hit   { border-color: rgba(201,169,97,.45); }
.match-card.miss  { border-color: rgba(166,58,58,.35); }
.match-card.hit::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--gold), #7a6130);
}
.match-card.miss::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--red), #5a2020);
}

/* 联赛 + 日期 */
.match-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.league {
    font-size: 11px; font-weight: 600; letter-spacing: .12em;
    color: var(--text-3); text-transform: uppercase;
    padding: 3px 10px; border: 1px solid var(--line-soft);
    border-radius: 999px;
}
.match-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px; color: var(--text-3);
}

/* 队名 + 比分 */
.teams {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.team { text-align: center; }
.team .name {
    font-size: 15px; font-weight: 700;
    letter-spacing: .01em; color: var(--text);
}
.team .city {
    font-size: 10px; color: var(--text-3); margin-top: 2px;
    letter-spacing: .08em;
}
.score {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 28px; font-weight: 800; letter-spacing: -.03em;
    color: var(--gold); line-height: 1; min-width: 74px;
    text-align: center;
    text-shadow: 0 0 22px rgba(201,169,97,.25);
}
.score .sep { color: var(--text-3); font-weight: 400; margin: 0 2px; }
/* 上半场比分（括号小字） */
.score .ht {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: .02em;
    text-shadow: none;
}

/* 分割线 */
.divider {
    height: 1px; background: var(--line-soft); margin: 14px 0;
}

/* 推荐料 */
.tips { display: flex; flex-direction: column; gap: 8px; }
.tip {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    position: relative;
    border: 1px solid transparent;
}
.tip.type-win     .t-accent { color: #7fb36b; }
.tip.type-draw    .t-accent { color: #c2a165; }
.tip.type-lose    .t-accent { color: #d17a7a; }
.tip.type-over    .t-accent { color: #c9a961; }
.tip.type-under   .t-accent { color: #8a84c4; }
.tip.type-handicap .t-accent { color: #b090c6; }

.tip .label {
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-3);
    padding: 2px 8px; background: var(--surface-2);
    border-radius: 6px;
    flex-shrink: 0;
}
.tip .value { font-weight: 700; color: var(--text); }
.tip .badge {
    margin-left: auto;
    font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
    padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.tip .calc {
    width: 100%;
    margin-top: 6px;
    font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
    font-size: 11px; color: var(--text-3);
    letter-spacing: .02em;
}
.tip .calc b {
    color: var(--gold); font-weight: 800;
}
.tip.miss .calc b {
    color: var(--red);
}

/* 命中时入球数：高辨识度展示 */
.tip .calc-strong {
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(201,169,97,.10);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 8px;
}
.tip .calc-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}
.tip .calc-score {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
}
.tip .calc-strong b {
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: var(--gold);
    margin: 0 2px;
}
.tip.miss .calc-strong {
    background: rgba(166,58,58,.12);
}
.tip.miss .calc-strong b {
    color: var(--red);
}
.tip .calc-note {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-3);
    margin-left: 2px;
}

.tip.hit  { border-color: rgba(201,169,97,.3); }
.tip.hit  .badge {
    background: var(--gold-soft); color: var(--gold);
}
.tip.miss { border-color: rgba(166,58,58,.25); }
.tip.miss .badge {
    background: var(--red-soft); color: var(--red);
}

/* ========== 日期分组 ========== */
.date-group {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 20px 2px 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(201,169,97,.20);
}
.date-group:first-child { margin-top: 2px; }
.date-bar {
    font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--gold);
}
.date-count {
    font-size: 10.5px;
    color: var(--text-3);
}

/* ========== 公告条 ========== */
.notice {
    margin: 0 16px 6px;
}
.notice-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(201,169,97,.16), rgba(201,169,97,.05));
    border: 1px solid rgba(201,169,97,.42);
    box-shadow: 0 0 20px rgba(201,169,97,.14);
    text-align: center;
}
.notice-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #0b0b0d;
    background: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
}
.notice p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text);
    text-align: center;
}
.notice p b {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: .05em;
}

/* ========== 客服悬浮按钮（足球） ========== */
.kf-float {
    position: fixed;
    right: 18px;
    bottom: 26px;
    z-index: 999;
    width: 58px;
    height: auto;
    padding: 8px 0 6px;
    border-radius: 29px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--gold);
    background: radial-gradient(circle at 32% 28%, #24242a, #101014 70%);
    border: 1px solid rgba(201,169,97,.45);
    box-shadow: 0 8px 22px rgba(0,0,0,.55), 0 0 20px rgba(201,169,97,.18);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.kf-float:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 26px rgba(0,0,0,.6), 0 0 28px rgba(201,169,97,.32);
}
.kf-float svg { width: 32px; height: 32px; display: block; }
.kf-float .kf-txt {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    color: var(--gold);
}

/* ========== 空状态 / 加载 ========== */
.loading, .empty {
    text-align: center; padding: 60px 20px;
    color: var(--text-3); font-size: 13px;
}
.empty .icon {
    font-size: 38px; margin-bottom: 14px; opacity: .5;
    filter: grayscale(1);
}

/* ========== 底部 ========== */
.footer {
    text-align: center; padding: 28px 20px 60px;
    font-size: 11px; color: var(--text-3);
    letter-spacing: .12em; text-transform: uppercase;
}
.footer .line {
    width: 40px; height: 1px; background: var(--line);
    margin: 0 auto 14px;
}

/* ========== 动画 ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== 断点 ========== */
@media (max-width: 479px) {
    .tip .calc-strong {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 10px;
    }
    .tip .calc-time { font-size: 11px; }
    .tip .calc-strong b { font-size: 22px; }
    .tip .calc-note { font-size: 9.5px; }
}
@media (min-width: 768px) {
    .hero h1 { font-size: 46px; }
    .section { max-width: 480px; margin: 0 auto; }
    .stats   { max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ========== 选择去除 ========== */
::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 0; height: 0; }
