/* ==========================================================================
   Arena · php-cms-11 首页版式（2026-11-03）
   深夜球场：蓝黑底 + 球场绿（直播中/足球）+ 皮革橙（篮球），比分用等宽数字。
   只服务首页（home.php 自带 head/页脚，不套 layout_top/bottom）；
   站内其它页仍是 a5.css，不受影响。
   ========================================================================== */

:root {
    color-scheme: dark;

    /* 底色三层：页面 / 沉一层 / 卡片 */
    --ar-bg: #0d1728;
    --ar-bg-2: #111e32;
    --ar-card: #182541;
    --ar-card-2: #1e2f4d;
    --ar-card-3: #253a5e;

    --ar-line: rgba(146, 164, 190, 0.13);
    --ar-line-2: rgba(146, 164, 190, 0.24);

    --ar-text: #e8eef8;
    --ar-text-2: #a7b4c8;
    --ar-text-3: #69788f;

    /* 语义色：球场绿 = 直播中 / 足球；皮革橙 = 篮球 */
    --ar-live: #23e58a;
    --ar-live-soft: color-mix(in srgb, var(--ar-live) 12%, transparent);
    --ar-live-line: color-mix(in srgb, var(--ar-live) 38%, transparent);
    --ar-ball: #ffab2e;
    --ar-ball-soft: rgba(255, 171, 46, 0.13);

    --ar-accent: #4c8dff;
    --ar-accent-soft: rgba(76, 141, 255, 0.14);
    --ar-gold: #ffd166;
    --ar-silver: #c3cede;
    --ar-bronze: #d99058;

    --ar-radius: 16px;
    --ar-radius-sm: 10px;

    --ar-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ar-num: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Roboto Mono", monospace;

    --ar-container: 1360px;
    --ar-shadow: 0 18px 44px rgba(2, 6, 16, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 480px at 78% -180px, color-mix(in srgb, var(--ar-accent) 16%, transparent), transparent 62%),
        radial-gradient(900px 420px at 8% -140px, color-mix(in srgb, var(--ar-live) 7%, transparent), transparent 60%),
        var(--ar-bg);
    background-color: var(--ar-bg);
    color: var(--ar-text);
    font-family: var(--ar-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ar-text); }
img { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.ar-container { max-width: var(--ar-container); margin: 0 auto; padding: 0 24px; }

.ar-num { font-family: var(--ar-num); font-variant-numeric: tabular-nums; }

.ar-sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
}

/* 跳到主要内容 */
.ar-skip {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    padding: 8px 14px; border-radius: 8px; background: var(--ar-accent); color: #fff;
    transition: top 0.2s ease;
}
.ar-skip:focus { top: 12px; }

/* ==========================================================================
   通用元件
   ========================================================================== */

/* 板块卡片 */
.ar-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 34%), var(--ar-card);
    border: 1px solid var(--ar-line);
    border-radius: var(--ar-radius);
}

/* 板块头：左竖条 + 标题 + 副题，右侧操作 */
.ar-head {
    display: flex; align-items: baseline; gap: 12px;
    padding: 18px 20px 0;
}
.ar-head-main { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.ar-title {
    position: relative; padding-left: 12px;
    font-size: 19px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.35;
}
.ar-title::before {
    content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
    width: 4px; height: 17px; border-radius: 2px;
    background: linear-gradient(180deg, var(--ar-live), #17b56c);
}
.ar-title--ball::before { background: linear-gradient(180deg, var(--ar-ball), #e07f14); }
.ar-sub { font-size: 12.5px; color: var(--ar-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-more {
    margin-left: auto; flex: none;
    font-size: 12.5px; color: var(--ar-text-3);
    display: inline-flex; align-items: center; gap: 3px;
    transition: color 0.15s ease;
}
.ar-more:hover { color: var(--ar-live); }
.ar-more::after { content: "→"; font-family: var(--ar-num); }

/* 状态胶囊 */
.ar-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.ar-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ar-pill--live { background: var(--ar-live-soft); color: var(--ar-live); border: 1px solid var(--ar-live-line); }
.ar-pill--live i { animation: ar-pulse 1.3s ease-in-out infinite; }
.ar-pill--wait { background: rgba(146, 164, 190, 0.1); color: var(--ar-text-2); border: 1px solid var(--ar-line); }
.ar-pill--done { background: rgba(146, 164, 190, 0.08); color: var(--ar-text-3); }
.ar-pill--ball { background: var(--ar-ball-soft); color: var(--ar-ball); border: 1px solid rgba(255, 171, 46, 0.32); }

@keyframes ar-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* 队徽：图上不压字，加载失败退回首字底色 */
.ar-crest {
    position: relative; display: inline-flex; width: 26px; height: 26px; flex: none;
    align-items: center; justify-content: center;
    border-radius: 50%; background: var(--ar-card-3); overflow: hidden;
}
.ar-crest img { width: 78%; height: 78%; object-fit: contain; }
.ar-crest::after {
    content: attr(data-initial); position: absolute; inset: 0;
    display: none; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--ar-text-2);
}
.ar-crest--fb::after { display: flex; }
.ar-crest--lg { width: 84px; height: 84px; }
.ar-crest--lg::after { font-size: 30px; }
.ar-crest--xl { width: 96px; height: 96px; background: rgba(255, 255, 255, 0.92); }
.ar-crest--xl::after { font-size: 34px; color: #33415c; }
.ar-crest--sm { width: 20px; height: 20px; }
.ar-crest--sm::after { font-size: 10px; }

/* ==========================================================================
   页头
   ========================================================================== */

.ar-masthead {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 23, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ar-line);
}
.ar-masthead-inner { display: flex; align-items: center; gap: 22px; min-height: 62px; }

.ar-wordmark { display: flex; align-items: center; gap: 10px; flex: none; }
.ar-wordmark img, .ar-wordmark-mark {
    width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none;
}
.ar-wordmark-mark--mono {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ar-live), color-mix(in srgb, var(--ar-live) 78%, #04150c)); color: #04150c;
    font-weight: 900; font-size: 17px;
}
.ar-wordmark-name { font-size: 18.5px; font-weight: 800; letter-spacing: 0.01em; }
.ar-wordmark-sub { font-size: 11.5px; color: var(--ar-text-3); letter-spacing: 0.14em; }

.ar-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ar-nav > a, .ar-navdrop > summary {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--ar-text-2);
    cursor: pointer; user-select: none; list-style: none;
    transition: color 0.15s ease, background 0.15s ease;
}
.ar-nav > a:hover, .ar-navdrop > summary:hover { color: var(--ar-text); background: rgba(146, 164, 190, 0.09); }
.ar-nav > a[aria-current="page"] { background: var(--ar-text); color: #0a0e17; }
.ar-navdrop > summary::-webkit-details-marker { display: none; }
.ar-navdrop > summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); }
.ar-navdrop { position: relative; }
.ar-navdrop-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 168px; padding: 7px;
    background: var(--ar-card-2); border: 1px solid var(--ar-line-2); border-radius: 12px;
    box-shadow: var(--ar-shadow);
    display: flex; flex-direction: column; gap: 1px;
}
.ar-navdrop-menu a { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ar-text-2); }
.ar-navdrop-menu a:hover { background: rgba(146, 164, 190, 0.1); color: var(--ar-text); }
.ar-navdrop-menu a[aria-current="page"] { color: var(--ar-live); font-weight: 700; }

.ar-nav-cta {
    margin-left: 6px; padding: 8px 16px; border-radius: 999px;
    background: linear-gradient(135deg, var(--ar-live), color-mix(in srgb, var(--ar-live) 78%, #04150c)); color: #04150c !important;
    font-weight: 800;
}
/*
 * 「全部赛程」是实心绿胶囊：上面 .ar-nav > a:hover 那条（特异性 0,2,1）
 * 会把 background 简写覆盖成一层灰，深色文字压在深底上就看不见了。
 * 这里用同等级别再加 :hover 把它压回去，只把绿色提亮。
 */
.ar-nav > a.ar-nav-cta,
.ar-nav > a.ar-nav-cta:hover,
.ar-nav > a.ar-nav-cta:focus-visible {
    background: linear-gradient(135deg, var(--ar-live), color-mix(in srgb, var(--ar-live) 78%, #04150c));
    color: #04150c;
}
.ar-nav > a.ar-nav-cta:hover,
.ar-nav > a.ar-nav-cta:focus-visible {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ar-live) 74%, #ffffff), color-mix(in srgb, var(--ar-live) 84%, #ffffff));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--ar-live) 28%, transparent);
}

/* ==========================================================================
   首屏
   ========================================================================== */

.ar-hero { padding: 34px 0 26px; }
/* 右栏宽度与下方主体区 .ar-main 的 372px 对齐，上下边线齐平 */
.ar-hero-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 372px; align-items: stretch; }

/* 左侧：标题区 + 焦点比赛 */
.ar-hero-main { display: flex; min-width: 0; flex-direction: column; gap: 18px; }

.ar-kicker {
    display: flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--ar-live);
    text-transform: uppercase;
}
.ar-kicker::before { content: ""; width: 26px; height: 2px; background: var(--ar-live); border-radius: 1px; }

.ar-hero h1 {
    margin: 2px 0 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.22; letter-spacing: 0.01em;
}
.ar-hero-lead { margin-top: 10px; max-width: 640px; font-size: 15.5px; color: var(--ar-text-2); }
.ar-hero-lead b { color: var(--ar-live); font-weight: 800; font-family: var(--ar-num); }

.ar-hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.ar-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px; border-radius: 999px;
    border: 1px solid var(--ar-line-2);
    font-size: 13px; font-weight: 600; color: var(--ar-text-2);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ar-chip:hover { border-color: var(--ar-live-line); color: var(--ar-live); }
.ar-chip b { font-family: var(--ar-num); font-weight: 800; }
.ar-chip--live { border-color: var(--ar-live-line); color: var(--ar-live); background: var(--ar-live-soft); }
.ar-chip--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ar-live); animation: ar-pulse 1.3s ease-in-out infinite; }
.ar-chip--ball:hover { border-color: rgba(255, 171, 46, 0.45); color: var(--ar-ball); }

/* 焦点比赛卡 */
.ar-feature {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--ar-radius); border: 1px solid var(--ar-line);
    background:
        radial-gradient(640px 240px at 50% -90px, rgba(76, 141, 255, 0.16), transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 40%),
        var(--ar-card);
    padding: 20px 26px 18px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ar-feature:hover { border-color: var(--ar-line-2); transform: translateY(-1px); }
.ar-feature--live {
    border-color: var(--ar-live-line);
    background:
        radial-gradient(640px 260px at 50% -100px, color-mix(in srgb, var(--ar-live) 16%, transparent), transparent 66%),
        linear-gradient(180deg, color-mix(in srgb, var(--ar-live) 5%, transparent), rgba(255, 255, 255, 0) 42%),
        var(--ar-card);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ar-live) 6%, transparent), 0 20px 50px rgba(2, 8, 6, 0.45);
}

.ar-feature-top { display: flex; align-items: center; gap: 10px; }
.ar-feature-league {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--ar-text);
}
.ar-feature-league::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--ar-accent); }
.ar-feature-time { font-size: 12.5px; color: var(--ar-text-3); font-family: var(--ar-num); }
.ar-feature-top .ar-pill { margin-left: auto; }

.ar-feature-body {
    display: grid; align-items: center; gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 26px 6px 20px;
}
.ar-feature-side { display: flex; min-width: 0; align-items: center; gap: 16px; }
.ar-feature-side--away { flex-direction: row-reverse; text-align: right; }
.ar-feature-name { font-size: clamp(17px, 2vw, 22px); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ar-feature-score {
    font-family: var(--ar-num); font-variant-numeric: tabular-nums;
    font-size: clamp(44px, 6vw, 66px); font-weight: 600; letter-spacing: 0.02em; line-height: 1;
    color: var(--ar-text);
}
.ar-feature--live .ar-feature-score { color: var(--ar-live); text-shadow: 0 0 34px color-mix(in srgb, var(--ar-live) 35%, transparent); }
.ar-feature-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-top: 1px dashed var(--ar-line); padding-top: 13px;
    font-size: 12.5px; color: var(--ar-text-3);
}
.ar-feature-go { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ar-text-2); transition: color 0.15s ease; }
.ar-feature:hover .ar-feature-go { color: var(--ar-live); }
.ar-feature-go::after { content: "→"; font-family: var(--ar-num); }

/* 右：实时比分面板 */
.ar-liveboard { display: flex; min-height: 0; flex-direction: column; overflow: hidden; }
.ar-liveboard-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.ar-liveboard-title { font-size: 15.5px; font-weight: 800; }
.ar-liveboard-count { margin-left: auto; }
.ar-liveboard-list { display: flex; flex-direction: column; padding: 0 8px 8px; overflow-y: auto; }

.ar-mini {
    display: grid; align-items: center; gap: 8px;
    grid-template-columns: 46px minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 9px 10px; border-radius: var(--ar-radius-sm);
    transition: background 0.15s ease;
}
.ar-mini:hover { background: rgba(146, 164, 190, 0.07); }
.ar-mini-time { font-size: 11.5px; color: var(--ar-text-3); font-family: var(--ar-num); line-height: 1.35; }
.ar-mini-time b { display: block; color: var(--ar-text-2); font-size: 12.5px; font-weight: 600; }
.ar-mini-team { display: flex; min-width: 0; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.ar-mini-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-mini-team--away { flex-direction: row-reverse; }
.ar-mini-team--away span { text-align: right; }
.ar-mini-score { font-family: var(--ar-num); font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 700; color: var(--ar-text-2); white-space: nowrap; }
.ar-mini--live .ar-mini-score { color: var(--ar-live); }
.ar-mini--live { background: linear-gradient(90deg, var(--ar-live-soft), transparent 70%); }
.ar-mini--live:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--ar-live) 16%, transparent), rgba(146, 164, 190, 0.05) 70%); }

.ar-liveboard-foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border-top: 1px solid var(--ar-line); padding: 11px 18px;
    font-size: 12px; color: var(--ar-text-3);
}
.ar-liveboard-foot a { font-weight: 700; color: var(--ar-text-2); }
.ar-liveboard-foot a:hover { color: var(--ar-live); }

/* 首屏底部数字带 */
.ar-quickstats {
    display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr);
    margin-top: 20px; overflow: hidden;
    border: 1px solid var(--ar-line); border-radius: var(--ar-radius);
    background: var(--ar-line);
}
.ar-quickstat { background: var(--ar-bg-2); padding: 15px 22px; display: flex; align-items: baseline; gap: 10px; }
.ar-quickstat b { font-family: var(--ar-num); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; color: var(--ar-text); }
.ar-quickstat span { font-size: 12.5px; color: var(--ar-text-3); }
.ar-quickstat--live b { color: var(--ar-live); }

/* ==========================================================================
   足球 / 篮球频道卡（CSS 画场：绿茵条纹 + 中圈禁区 / 木地板 + 三分弧底线）
   ========================================================================== */

.ar-channels { padding: 10px 0 4px; }
.ar-channels-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

.ar-channel {
    position: relative; display: grid; overflow: hidden;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: 18px; align-items: center;
    min-height: 168px; padding: 22px 26px;
    border-radius: var(--ar-radius); border: 1px solid var(--ar-line);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ar-channel:hover { transform: translateY(-2px); }
.ar-channel:active { transform: translateY(0); }

/* ── 足球：绿茵场 ── */
.ar-channel--fb {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 42px, rgba(0, 0, 0, 0.055) 42px 84px),
        linear-gradient(120deg, #0b3524 0%, #105a35 52%, #0c4227 100%);
    border-color: color-mix(in srgb, var(--ar-live) 30%, transparent);
    box-shadow: inset 0 0 60px rgba(2, 8, 6, 0.35);
}
/* 中圈 + 中线 */
.ar-channel--fb::before {
    content: ""; position: absolute; right: -74px; top: 50%; translate: 0 -50%;
    width: 220px; height: 220px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.ar-channel--fb::after {
    content: ""; position: absolute; right: 96px; top: -20%; bottom: -20%;
    width: 1.5px; background: rgba(255, 255, 255, 0.14);
}
.ar-channel--fb:hover { border-color: color-mix(in srgb, var(--ar-live) 55%, transparent); box-shadow: inset 0 0 60px rgba(2, 8, 6, 0.35), 0 14px 34px rgba(3, 16, 10, 0.55); }

/* ── 篮球：木地板 ── */
.ar-channel--bb {
    background:
        repeating-linear-gradient(90deg, rgba(255, 235, 200, 0.035) 0 30px, rgba(30, 10, 0, 0.08) 30px 60px),
        linear-gradient(120deg, #3d1f07 0%, #7a3d0f 52%, #462208 100%);
    border-color: rgba(255, 171, 46, 0.34);
    box-shadow: inset 0 0 60px rgba(26, 10, 0, 0.4);
}
/* 三分弧 + 底线 */
.ar-channel--bb::before {
    content: ""; position: absolute; right: -66px; top: 50%; translate: 0 -50%;
    width: 210px; height: 210px; border-radius: 50%;
    border: 1.5px solid rgba(255, 228, 190, 0.24);
}
.ar-channel--bb::after {
    content: ""; position: absolute; right: 0; top: -12%; bottom: -12%;
    width: 1.5px; background: rgba(255, 228, 190, 0.2);
}
.ar-channel--bb:hover { border-color: rgba(255, 171, 46, 0.58); box-shadow: inset 0 0 60px rgba(26, 10, 0, 0.4), 0 14px 34px rgba(61, 25, 3, 0.55); }

/* 卡内信息 */
.ar-channel-info { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.ar-channel-title { font-size: clamp(19px, 2vw, 23px); font-weight: 900; letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.ar-channel-count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }
.ar-channel-count b { font-weight: 700; color: rgba(255, 255, 255, 0.92); }
.ar-channel-live { display: inline-flex; align-items: center; gap: 6px; }
.ar-channel-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.9); animation: ar-pulse 1.3s ease-in-out infinite; }
.ar-channel-go {
    margin-top: 4px; display: inline-flex; align-items: center;
    padding: 6px 15px; align-self: flex-start; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12.5px; font-weight: 700; color: #fff;
    backdrop-filter: blur(2px);
    transition: background 0.15s ease;
}
.ar-channel:hover .ar-channel-go { background: rgba(255, 255, 255, 0.22); }

/* 卡内比赛橱窗 */
.ar-channel-matches { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.ar-channel-match {
    display: grid; align-items: center; gap: 8px;
    grid-template-columns: 38px minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 8px 13px; border-radius: 10px;
    background: rgba(4, 10, 6, 0.34); border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(3px);
}
.ar-channel--bb .ar-channel-match { background: rgba(20, 8, 0, 0.36); }
.ar-channel-match .cm-time { font-family: var(--ar-num); font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.62); }
.ar-channel-match .cm-team { display: flex; min-width: 0; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #fff; }
.ar-channel-match .cm-team i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-channel-match .cm-team--away { flex-direction: row-reverse; }
.ar-channel-match .cm-score { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.03em; white-space: nowrap; }
.ar-channel-match .ar-crest { background: rgba(255, 255, 255, 0.9); }
.ar-channel-match .ar-crest::after { color: #33415c; }
.ar-channel-empty { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }

/* ==========================================================================
   主栏 / 侧栏
   ========================================================================== */

/* 注意：这个元素同时挂着 .ar-container（padding 0 24px），
   这里的左右内边距必须保持 24px，否则会比上面的首屏宽 48px */
.ar-main { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 372px; align-items: start; padding: 20px 24px 8px; }
.ar-col { display: flex; min-width: 0; flex-direction: column; gap: 22px; }
.ar-rail { display: flex; min-width: 0; flex-direction: column; gap: 22px; }

/* ==========================================================================
   赛程板块
   ========================================================================== */

.ar-sched-groups { display: flex; flex-direction: column; padding: 10px 10px 12px; }
.ar-sched-group + .ar-sched-group { margin-top: 10px; }
.ar-sched-grouphead {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px 7px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
}
.ar-sched-grouphead i { width: 7px; height: 7px; border-radius: 50%; background: var(--ar-live); animation: ar-pulse 1.3s ease-in-out infinite; }
.ar-sched-grouphead--wait i { background: var(--ar-text-3); animation: none; }
.ar-sched-grouphead b { font-family: var(--ar-num); color: var(--ar-text-3); font-weight: 600; margin-left: auto; }

/* 完整赛程行 */
.ar-mrow {
    display: grid; align-items: center; gap: 10px;
    grid-template-columns: 50px 108px minmax(0, 1fr) 86px minmax(0, 1fr) 84px;
    padding: 10px 12px; border-radius: var(--ar-radius-sm);
    transition: background 0.15s ease;
}
.ar-mrow:hover { background: rgba(146, 164, 190, 0.07); }
.ar-mrow-time { font-family: var(--ar-num); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 700; color: var(--ar-text-2); }
.ar-mrow-league { font-size: 12px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-mrow-team { display: flex; min-width: 0; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.ar-mrow-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-mrow-team--home { justify-content: flex-end; text-align: right; }
.ar-mrow-score {
    font-family: var(--ar-num); font-variant-numeric: tabular-nums; text-align: center;
    font-size: 15.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--ar-text);
}
.ar-mrow--live .ar-mrow-score { color: var(--ar-live); }
.ar-mrow--live .ar-mrow-time { color: var(--ar-live); }
.ar-mrow--vs .ar-mrow-score { color: var(--ar-text-3); font-weight: 600; }
.ar-mrow .ar-pill { justify-self: end; }
.ar-mrow--live { background: linear-gradient(90deg, var(--ar-live-soft), transparent 65%); }
.ar-mrow--live:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--ar-live) 15%, transparent), rgba(146, 164, 190, 0.05) 65%); }

.ar-sched-foot { border-top: 1px solid var(--ar-line); padding: 12px 20px; font-size: 12.5px; color: var(--ar-text-3); }
.ar-sched-foot a { color: var(--ar-text-2); font-weight: 700; }
.ar-sched-foot a:hover { color: var(--ar-live); }

/* ==========================================================================
   积分榜 / 数据榜
   ========================================================================== */

.ar-boards { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.ar-board { overflow: hidden; }
.ar-board-head { display: flex; align-items: center; gap: 8px; padding: 15px 18px 0; }
.ar-board-name { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-board-tag { flex: none; }
.ar-board-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.ar-board-table th {
    font-size: 11px; font-weight: 600; color: var(--ar-text-3); text-align: center;
    padding: 6px 8px; border-bottom: 1px solid var(--ar-line);
}
.ar-board-table th:first-child { text-align: left; padding-left: 18px; }
.ar-board-table th:last-child { text-align: right; padding-right: 18px; }
.ar-board-table td { padding: 8px 8px; border-bottom: 1px solid rgba(146, 164, 190, 0.07); font-size: 13px; text-align: center; }
.ar-board-table tbody tr:last-child td { border-bottom: 0; }
.ar-board-table td:first-child { text-align: left; padding-left: 18px; }
.ar-board-table td:last-child { text-align: right; padding-right: 18px; }
.ar-board-rank {
    display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center;
    border-radius: 6px; font-family: var(--ar-num); font-size: 11.5px; font-weight: 700;
    background: rgba(146, 164, 190, 0.1); color: var(--ar-text-2);
}
.ar-board-table tr:nth-child(1) .ar-board-rank { background: var(--ar-gold); color: #241a02; }
.ar-board-table tr:nth-child(2) .ar-board-rank { background: var(--ar-silver); color: #1c2330; }
.ar-board-table tr:nth-child(3) .ar-board-rank { background: var(--ar-bronze); color: #2a1604; }
.ar-board-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.ar-board-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-board-val { font-family: var(--ar-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13.5px; }
.ar-board-note { padding: 10px 18px 13px; font-size: 11.5px; color: var(--ar-text-3); border-top: 1px dashed var(--ar-line); }

/* 数据榜（进球 / 得分）行内小榜 */
.ar-ranklist { padding: 8px 10px 10px; }
.ar-rankrow {
    display: grid; align-items: center; gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 8px 10px; border-radius: var(--ar-radius-sm);
    transition: background 0.15s ease;
}
.ar-rankrow:hover { background: rgba(146, 164, 190, 0.07); }
.ar-rankrow .no { font-family: var(--ar-num); font-size: 12.5px; font-weight: 800; color: var(--ar-text-3); text-align: center; }
.ar-rankrow:nth-child(1) .no, .ar-rankrow:nth-child(2) .no, .ar-rankrow:nth-child(3) .no { color: var(--ar-gold); }
.ar-rankrow .who { min-width: 0; }
.ar-rankrow .who b { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-rankrow .who span { display: block; font-size: 11.5px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-rankrow .val { font-family: var(--ar-num); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 800; }
.ar-rankrow .val small { font-size: 10.5px; font-weight: 500; color: var(--ar-text-3); margin-left: 2px; }

/* ==========================================================================
   资讯板块
   ========================================================================== */

.ar-news-cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.ar-newscol { overflow: hidden; }
.ar-newscol-list { padding: 8px 12px 12px; }
.ar-news-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--ar-radius-sm);
    transition: background 0.15s ease;
}
.ar-news-item:hover { background: rgba(146, 164, 190, 0.07); }
.ar-news-dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ar-text-3); }
.ar-news-item .t { min-width: 0; flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-news-item .d { flex: none; font-family: var(--ar-num); font-size: 11.5px; color: var(--ar-text-3); }

/* 有封面的首条 */
.ar-news-lead { display: flex; gap: 14px; margin: 12px 12px 4px; padding: 12px; border-radius: var(--ar-radius-sm); background: rgba(146, 164, 190, 0.06); transition: background 0.15s ease; }
.ar-news-lead:hover { background: rgba(146, 164, 190, 0.1); }
.ar-news-lead img { width: 128px; height: 84px; flex: none; object-fit: cover; border-radius: 8px; }
.ar-news-lead .t { font-size: 14.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-news-lead .d { margin-top: 6px; font-family: var(--ar-num); font-size: 11.5px; color: var(--ar-text-3); }

/* ==========================================================================
   赛事回顾
   ========================================================================== */

.ar-reviews { padding: 8px 12px 12px; }
.ar-review {
    display: grid; align-items: center; gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 9px 10px; border-radius: var(--ar-radius-sm);
    transition: background 0.15s ease;
}
.ar-review:hover { background: rgba(146, 164, 190, 0.07); }
.ar-review-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 44px; border-radius: 9px;
    background: var(--ar-card-2); border: 1px solid var(--ar-line);
    font-family: var(--ar-num); line-height: 1.2;
}
.ar-review-date b { font-size: 15px; font-weight: 800; }
.ar-review-date span { font-size: 10px; color: var(--ar-text-3); }
.ar-review-main { min-width: 0; }
.ar-review-main .t { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-review-main .s { display: block; margin-top: 2px; font-size: 12px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-review-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ar-review-side .chars { font-family: var(--ar-num); font-size: 11px; color: var(--ar-text-3); }
.ar-sportdot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ar-text-3); }
.ar-sportdot i { width: 6px; height: 6px; border-radius: 50%; }
.ar-sportdot--fb i { background: var(--ar-live); }
.ar-sportdot--bb i { background: var(--ar-ball); }

/* ==========================================================================
   右栏小卡
   ========================================================================== */

.ar-sidecard { overflow: hidden; }
.ar-sidecard-body { padding: 12px 14px 14px; }

/* 热门新闻：奖牌序号 */
.ar-hotnews { display: flex; flex-direction: column; padding: 6px 8px 10px; }
.ar-hotrow { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--ar-radius-sm); transition: background 0.15s ease; }
.ar-hotrow:hover { background: rgba(146, 164, 190, 0.07); }
.ar-hotno {
    flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; font-family: var(--ar-num); font-size: 12px; font-weight: 800;
    background: rgba(146, 164, 190, 0.1); color: var(--ar-text-2);
}
.ar-hotrow:nth-child(1) .ar-hotno { background: var(--ar-gold); color: #241a02; }
.ar-hotrow:nth-child(2) .ar-hotno { background: var(--ar-silver); color: #1c2330; }
.ar-hotrow:nth-child(3) .ar-hotno { background: var(--ar-bronze); color: #2a1604; }
.ar-hotrow .t { min-width: 0; flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 文本清单（集锦 / 简单列表） */
.ar-lines { display: flex; flex-direction: column; padding: 6px 8px 10px; }
.ar-line { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--ar-radius-sm); transition: background 0.15s ease; }
.ar-line:hover { background: rgba(146, 164, 190, 0.07); }
.ar-line i { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ar-text-3); }
.ar-line .t { min-width: 0; flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-line .d { flex: none; font-family: var(--ar-num); font-size: 11.5px; color: var(--ar-text-3); }

/* 教练与球队 */
.ar-ct-groups { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.ar-ct-label { display: flex; align-items: center; gap: 7px; margin: 6px 2px 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--ar-text-3); }
.ar-ct-label::before { content: ""; width: 8px; height: 2px; background: var(--ar-text-3); border-radius: 1px; }
.ar-ct-grid { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; }
.ar-ct {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    padding: 10px 11px; border-radius: var(--ar-radius-sm);
    background: rgba(146, 164, 190, 0.05); border: 1px solid transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}
a.ar-ct:hover { border-color: var(--ar-line-2); background: rgba(146, 164, 190, 0.09); }
.ar-ct-logo {
    width: 42px; height: 42px; flex: none; border-radius: 50%;
    background: var(--ar-card-3); display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; font-size: 0;
}
.ar-ct-logo img { width: 76%; height: 76%; object-fit: contain; }
.ar-ct-logo::after {
    content: attr(data-initial); position: absolute; inset: 0; display: none;
    align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--ar-text-2);
}
.ar-ct-logo--fb::after { display: flex; }
.ar-ct-main { min-width: 0; flex: 1; }
.ar-ct-name { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-ct-sub { display: block; font-size: 11.5px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-ct-meta { display: block; margin-top: 1px; font-size: 10.5px; color: var(--ar-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 标签 */
.ar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-tag {
    padding: 5px 13px; border-radius: 999px;
    background: rgba(146, 164, 190, 0.08); border: 1px solid var(--ar-line);
    font-size: 12.5px; color: var(--ar-text-2);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ar-tag:hover { color: var(--ar-live); border-color: var(--ar-live-line); background: var(--ar-live-soft); }

/* 站内数据 */
.ar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ar-stat { padding: 12px 8px 10px; border-radius: var(--ar-radius-sm); background: rgba(146, 164, 190, 0.05); text-align: center; }
.ar-stat b { display: block; font-family: var(--ar-num); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 800; }
.ar-stat span { display: block; margin-top: 2px; font-size: 11px; color: var(--ar-text-3); }

/* ==========================================================================
   页脚：与内页 layout_bottom 同一套数据（Logo+站名 / 介绍 / 友链 / 备案 / 地图）
   ========================================================================== */

.ar-foot {
    margin-top: 40px;
    border-top: 1px solid var(--ar-line);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}
.ar-foot-inner {
    display: flex; flex-direction: column; gap: 18px;
    padding: 34px 24px 26px; text-align: left;
}
/* 顶行：左边品牌，右边友情链接 */
.ar-foot-top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px 28px;
}
.ar-foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.ar-foot-brand img, .ar-foot-brand .ar-wordmark-mark { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.ar-foot-brand b { font-size: 16.5px; font-weight: 800; }

.ar-foot-intro { max-width: 78ch; font-size: 12.5px; line-height: 1.85; color: var(--ar-text-2); }

/* 友情链接：一行小标签 + 胶囊链接，太多自动换行 */
.ar-foot-links {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px;
    max-width: 860px;
}
.ar-foot-label { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--ar-text-3); }
.ar-foot-links a {
    padding: 3px 12px; border-radius: 999px;
    background: rgba(146, 164, 190, 0.07); border: 1px solid var(--ar-line);
    font-size: 12.5px; color: var(--ar-text-2);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ar-foot-links a:hover { color: var(--ar-live); border-color: var(--ar-live-line); }

/* 备案 / 版权：后台可信 HTML 原样输出 */
/* 底栏：版权在左、网站地图在右，一条细线隔开 */
.ar-foot-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 24px; padding-top: 16px;
    border-top: 1px solid var(--ar-line);
}
.ar-foot-copyright { font-size: 12px; line-height: 1.9; color: var(--ar-text-2); }
.ar-foot-copyright a { color: var(--ar-text-2); }
.ar-foot-copyright a:hover { color: var(--ar-live); }

.ar-foot-meta { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.ar-foot-meta a { font-size: 12.5px; color: var(--ar-text-3); transition: color 0.15s ease; }
.ar-foot-meta a:hover { color: var(--ar-live); }

/* ==========================================================================
   空态
   ========================================================================== */
.ar-empty { padding: 34px 16px; text-align: center; font-size: 13px; color: var(--ar-text-3); }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1240px) {
    .ar-hero-grid { grid-template-columns: minmax(0, 1fr) 332px; }
    .ar-main { grid-template-columns: minmax(0, 1fr) 332px; }
}

@media (max-width: 1024px) {
    .ar-hero-grid { grid-template-columns: 1fr; }
    .ar-liveboard-list { max-height: 330px; }
    .ar-main { grid-template-columns: 1fr; }
    .ar-rail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 760px) {
    .ar-container { padding: 0 16px; }
    .ar-masthead-inner { gap: 12px; min-height: 56px; }
    .ar-wordmark-sub { display: none; }
    .ar-nav { overflow-x: auto; scrollbar-width: none; }
    .ar-nav::-webkit-scrollbar { display: none; }
    .ar-nav > a, .ar-navdrop > summary { padding: 7px 11px; font-size: 13.5px; white-space: nowrap; }
    .ar-nav-cta { display: none; }
    .ar-navdrop-menu { position: fixed; left: 12px; right: 12px; top: 60px; }

    .ar-hero { padding: 22px 0 18px; }
    .ar-feature { padding: 16px 16px 14px; }
    .ar-feature-body { gap: 10px; padding: 20px 0 14px; }
    .ar-crest--xl { width: 64px; height: 64px; }
    .ar-crest--xl::after { font-size: 24px; }
    .ar-feature-side { flex-direction: column; gap: 8px; text-align: center; }
    .ar-feature-side--away { flex-direction: column; }
    .ar-feature-name { font-size: 15px; }

    .ar-quickstats { grid-template-columns: repeat(2, 1fr); }
    .ar-channels-grid { grid-template-columns: 1fr; }
    .ar-channel { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
    .ar-channel--fb::before { right: -90px; width: 180px; height: 180px; }
    .ar-channel--bb::before { right: -84px; width: 170px; height: 170px; }
    .ar-boards { grid-template-columns: 1fr; }
    .ar-news-cols { grid-template-columns: 1fr; }
    .ar-rail { grid-template-columns: 1fr; }

    .ar-mrow { grid-template-columns: 42px minmax(0, 1fr) auto minmax(0, 1fr); gap: 7px; padding: 9px 8px; }
    .ar-mrow-league { display: none; }
    .ar-mrow .ar-pill { display: none; }
    .ar-mrow .ar-crest { width: 20px; height: 20px; }
    .ar-mrow-team { font-size: 13px; }

    .ar-review { grid-template-columns: 50px minmax(0, 1fr); }
    .ar-review-side { display: none; }
}

@media (max-width: 420px) {
    .ar-quickstats { grid-template-columns: 1fr 1fr; }
    .ar-quickstat { padding: 12px 14px; }
    .ar-quickstat b { font-size: 21px; }
    .ar-feature-score { font-size: 40px; }
}
/* 宽版清单：赛事集锦搬到主栏后一行太长，宽屏下分两列 */
.ar-lines--wide { columns: 2; column-gap: 28px; }
.ar-lines--wide .ar-line { break-inside: avoid; }

@media (max-width: 900px) {
    .ar-lines--wide { columns: 1; }
}
/* ==========================================================================
   右栏里的赛事回顾 / 赛事集锦：窄栏改紧凑排版
   ========================================================================== */
.ar-rail .ar-reviews { padding: 6px 10px 10px; }
.ar-rail .ar-review {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 8px;
}
.ar-rail .ar-review-date { height: 40px; border-radius: 8px; }
.ar-rail .ar-review-date b { font-size: 14px; }
.ar-rail .ar-review-date span { font-size: 9.5px; }
/* 标题允许折两行：窄栏里一行只放得下十来个字，全截断就看不出是哪场 */
.ar-rail .ar-review-main .t {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    font-size: 13px;
    line-height: 1.45;
}
.ar-rail .ar-review-side .chars { display: none; }
.ar-rail .ar-lines { padding: 4px 6px 8px; }
.ar-rail .ar-line { padding: 7px 8px; }
.ar-rail .ar-line .t { font-size: 13px; }
/* ==========================================================================
   手机端：导航收进抽屉（首页和内页共用同一套）
   ========================================================================== */
.ar-burger {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ar-line-2);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
.ar-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: var(--ar-text);
}

@media (max-width: 900px) {
    .ar-nav { display: none; }
    .ar-burger { display: block; }
    .ar-wordmark-sub { display: none; }
}

/* 抽屉 */
.ar-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
html.ar-drawer-open .ar-drawer { display: block; }
html.ar-drawer-open body { overflow: hidden; }
.ar-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.62);
    backdrop-filter: blur(2px);
}
.ar-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(340px, 86vw);
    height: 100%;
    padding: 16px;
    background: var(--ar-card);
    border-left: 1px solid var(--ar-line-2);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.45);
    animation: ar-drawer-in 0.18s ease-out;
}
@keyframes ar-drawer-in {
    from { transform: translateX(16px); opacity: 0.5; }
    to { transform: none; opacity: 1; }
}
.ar-drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-drawer-title { font-size: 15px; font-weight: 800; }
.ar-drawer-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--ar-line-2);
    border-radius: 10px;
    background: transparent;
    color: var(--ar-text);
    cursor: pointer;
}
.ar-drawer-close svg { width: 16px; height: 16px; }
.ar-drawer-nav { display: grid; gap: 2px; margin-top: 2px; overflow-y: auto; }
.ar-drawer-nav a {
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ar-text-2);
}
.ar-drawer-nav a:hover { background: rgba(146, 164, 190, 0.09); color: var(--ar-text); }
.ar-drawer-nav a[aria-current="page"] { background: color-mix(in srgb, var(--ar-live) 14%, transparent); color: color-mix(in srgb, var(--ar-live) 62%, #ffffff); }

@media (prefers-reduced-motion: reduce) {
    .ar-drawer-panel { animation: none; }
}
/* ==========================================================================
   回到顶部（首页自己一份，内页的在 layout_bottom.php）
   ========================================================================== */
.ar-totop {
    position: fixed; right: 22px; bottom: 24px; z-index: 40;
    width: 46px; height: 46px; border: 0; border-radius: 999px;
    display: grid; place-items: center; cursor: pointer;
    background: linear-gradient(135deg, var(--ar-live), color-mix(in srgb, var(--ar-live) 74%, #04150c));
    color: #04150c;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--ar-live) 26%, transparent);
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.ar-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ar-totop:hover { filter: brightness(1.08); }
.ar-totop:focus-visible { outline: 2px solid var(--ar-live); outline-offset: 3px; }
@media (max-width: 640px) {
    .ar-totop { right: 16px; bottom: 18px; width: 42px; height: 42px; }
}

/* 首页页脚右下角是「网站地图」，别让悬浮球压上去（内页在 arena-inner.css 里也有一条） */
.ar-foot .ar-foot-bar { padding-right: 64px; }
@media (max-width: 640px) {
    .ar-foot .ar-foot-bar { padding-right: 0; }
    .ar-foot .ar-foot-inner { padding-bottom: 72px; }
}