@charset "UTF-8";
/* ==========================================================================
   场馆视觉层 — 球场线稿 / 记分牌 / 运动项目配色
   原则：所有装饰均为背景层（pointer-events:none、低对比度），
        绝不影响任何按钮、字段、表格数据的可读性与可操作性。
   ========================================================================== */

/* --------------------------------------------------------------- 纹样素材 */
/* 羽毛球场地线稿 */
:root {
  --motif-badminton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200' viewBox='0 0 300 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Crect x='26' y='26' width='248' height='148'/%3E%3Cline x1='26' y1='100' x2='274' y2='100'/%3E%3Cline x1='150' y1='26' x2='150' y2='174'/%3E%3Cline x1='26' y1='58' x2='98' y2='58'/%3E%3Cline x1='26' y1='142' x2='98' y2='142'/%3E%3Cline x1='202' y1='58' x2='274' y2='58'/%3E%3Cline x1='202' y1='142' x2='274' y2='142'/%3E%3C/g%3E%3C/svg%3E");
  /* 篮球半场线稿 */
  --motif-basketball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Crect x='20' y='16' width='280' height='188'/%3E%3Cline x1='160' y1='16' x2='160' y2='204'/%3E%3Ccircle cx='160' cy='110' r='30'/%3E%3Cpath d='M20 26h56v168H20'/%3E%3Cpath d='M76 62h44v96H76'/%3E%3Cpath d='M120 110a26 26 0 0 1 0-48M120 110a26 26 0 0 0 0 48'/%3E%3C/g%3E%3C/svg%3E");
  /* 场馆结构弧线 */
  --motif-arena: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Ccircle cx='130' cy='130' r='44'/%3E%3Ccircle cx='130' cy='130' r='86'/%3E%3Ccircle cx='130' cy='130' r='128'/%3E%3Cpath d='M2 130h256M130 2v256'/%3E%3C/g%3E%3C/svg%3E");
  /* 场馆看台阶梯 */
  --motif-stands: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M4 66h112M12 52h96M22 38h76M32 24h56M42 10h36'/%3E%3C/g%3E%3C/svg%3E");
  /* 地板木纹 */
  --floor-planks: repeating-linear-gradient(102deg, rgba(255,255,255,.055) 0 2px, transparent 2px 26px);
}

/* ------------------------------------------------------------ 通用纹样层 */
.motif-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: repeat;
}
.motif-badminton { background-image: var(--motif-badminton); background-size: 300px 200px; }
.motif-basketball { background-image: var(--motif-basketball); background-size: 320px 220px; }
.motif-arena { background-image: var(--motif-arena); background-size: 260px 260px; }
.motif-stands { background-image: var(--motif-stands); background-size: 120px 80px; }

/* ====================================================== 顶部欢迎横幅 */
.hero {
  background:
    var(--floor-planks),
    linear-gradient(118deg, #0A1A1C 0%, #0C3230 42%, #0E5C58 100%);
  border-radius: var(--r-lg);
  color: #EAF4F2;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  box-shadow: var(--sh-2);
  border: 1px solid rgba(255,255,255,.08);
}
.hero > .motif-layer { opacity: .085; }
.hero > .motif-badminton { background-size: 420px 280px; background-position: right -40px bottom -60px; }
/* 聚光灯 */
.hero .spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(120, 220, 205, .17), transparent 58%),
    radial-gradient(90% 70% at 12% 100%, rgba(224, 124, 46, .13), transparent 62%);
}
/* 运动品牌式斜切色带 */
.hero .slant {
  position: absolute; right: 0; top: 0; bottom: 0; width: 34%;
  pointer-events: none; z-index: 0;
  background: linear-gradient(112deg, transparent 42%, rgba(99, 180, 177, .10) 42.4%, rgba(99, 180, 177, .10) 50%, transparent 50.4%);
}
.hero .h-txt, .hero .h-stats { position: relative; z-index: 2; }
.hero h1 { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.hero .h-sub { font-size: 13px; color: #A6C5C1; margin-top: 5px; }
.hero .h-stats { margin-left: auto; display: flex; gap: 10px; }

/* 记分牌式数据块 */
.score-tile {
  min-width: 118px; padding: 10px 14px 9px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(6, 24, 24, .58), rgba(4, 18, 18, .34));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
  position: relative; overflow: hidden;
}
.score-tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-300), transparent);
  opacity: .85;
}
.score-tile .v {
  font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: -.6px; line-height: 1.12;
  font-family: "DIN Alternate", "Bahnschrift", "Oswald", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #FFFFFF; text-shadow: 0 0 16px rgba(99, 180, 177, .38);
}
.score-tile .l { font-size: 11px; color: #93B3AF; margin-top: 3px; letter-spacing: .4px; }
.score-tile .u { font-size: 12px; color: #7FA3A0; margin-left: 2px; font-weight: 600; }

/* 营业状态灯 */
.open-lamp {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 8px; border-radius: var(--r-pill);
  background: rgba(9, 32, 30, .58); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 11.5px; color: #B6D0CC; letter-spacing: .3px;
}
.open-lamp i {
  width: 7px; height: 7px; border-radius: 50%; background: #4CC47F;
  box-shadow: 0 0 0 3px rgba(76, 196, 127, .22); animation: lamp 2.4s infinite;
}
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ====================================================== 场馆时钟（顶栏） */
.venue-clock {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 12px 4px 10px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--line-soft);
}
.venue-clock .tm {
  font-family: "DIN Alternate", "Bahnschrift", "Oswald", ui-monospace, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: .6px;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.venue-clock .dt { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.venue-clock .sep { width: 1px; height: 22px; background: var(--line); }

/* ====================================================== 场地卡片 */
.court-card { position: relative; }
.court-card .sport-glyph {
  position: absolute; right: 9px; top: 7px; color: var(--sp, var(--text-3));
  opacity: .22; pointer-events: none;
}
.court-card .strip { box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.court-card .top { position: relative; z-index: 1; }
.court-card .code {
  font-family: "DIN Alternate", "Bahnschrift", "Oswald", "PingFang SC", sans-serif;
  font-size: 16px; letter-spacing: .5px;
}

/* 场地当日占用迷你时间轴 */
.mini-tl {
  display: flex; height: 7px; border-radius: 3px; overflow: hidden;
  background: var(--surface-3); margin-top: 10px; position: relative;
  border: 1px solid var(--line-soft);
}
.mini-tl .seg { height: 100%; }
.mini-tl .seg.busy { background: var(--accent); }
.mini-tl .seg.next { background: var(--info); }
.mini-tl .seg.pending { background: var(--warn); }
.mini-tl .seg.gap { background: var(--surface-3); }
.mini-tl .now {
  position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--danger);
  border-radius: 1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
}
.mini-tl-legend {
  display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-4);
  margin-top: 3px; font-variant-numeric: tabular-nums;
}

/* ====================================================== 排期日历（场馆看板） */
.cal { position: relative; }
.cal-weekbar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.cal-day {
  flex: 1 1 0; min-width: 0; padding: 6px 8px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; text-align: left;
  transition: all .14s; display: flex; flex-direction: column; gap: 1px;
}
.cal-day:hover { background: var(--surface-3); }
.cal-day .d { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.cal-day .d b { color: var(--text-3); font-weight: 600; font-size: 11.5px; }
.cal-day .s { font-size: 10.5px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.cal-day.on {
  background: var(--brand-50); border-color: var(--brand-100);
}
.cal-day.on .d { color: var(--brand-700); font-weight: 700; }
.cal-day.on .d b { color: var(--brand); }
.cal-day.on .s { color: var(--brand-300); }
.cal-day.is-weekend .d { color: var(--accent); }

.cal .cal-hd {
  background:
    var(--motif-stands),
    var(--surface-2);
  background-size: 120px 80px, auto;
  background-position: right 10px center, 0 0;
  background-blend-mode: soft-light;
}
.cal .cal-court {
  background: linear-gradient(90deg, var(--surface) 82%, var(--surface-2));
}
.cal .cal-court .code {
  font-family: "DIN Alternate", "Bahnschrift", "Oswald", "PingFang SC", sans-serif;
  letter-spacing: .6px; font-size: 14px;
}
.cal-ev { box-shadow: 0 1px 2px rgba(14, 32, 30, .06); }
.cal-ev .t { font-weight: 650; }
.cal-grid .now-line {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger);
  z-index: 5; pointer-events: none; box-shadow: 0 0 8px rgba(204, 66, 57, .45);
}
.cal-grid .now-line::before {
  content: ""; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(204, 66, 57, .2);
}
.cal-axis .now-line {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger);
  pointer-events: none; box-shadow: 0 0 8px rgba(204, 66, 57, .45);
}
.cal-axis .now-line::before {
  content: ""; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(204, 66, 57, .2);
}

/* ====================================================== 记分牌数字 */
.scoreboard {
  background: linear-gradient(180deg, #0C1A1C, #081315);
  border-radius: 10px; padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  position: relative; overflow: hidden;
}
.scoreboard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}
.scoreboard .lbl {
  font-size: 10.5px; letter-spacing: 1.6px; color: #7FA3A0; text-transform: uppercase; font-weight: 600;
}
.scoreboard .digits {
  font-family: "DIN Alternate", "Bahnschrift", "Oswald", ui-monospace, "SFMono-Regular", monospace;
  font-size: 40px; font-weight: 700; letter-spacing: 2px; line-height: 1.06;
  color: #5FE0D0; text-shadow: 0 0 18px rgba(95, 224, 208, .42);
  font-variant-numeric: tabular-nums;
}
.scoreboard .digits .sep { opacity: .55; margin: 0 2px; }
.scoreboard .side {
  font-size: 10.5px; color: #7FA3A0; letter-spacing: .4px; text-align: right; line-height: 1.7;
}
.scoreboard .side b { display: block; color: #CFE7E5; font-size: 12.5px; font-weight: 600; }

/* ====================================================== 运动项目配色 */
.sport-badminton { --sp: #0E7C7B; --sp-soft: #E8F4F3; }
.sport-basketball { --sp: #E07C2E; --sp-soft: #FBF0E4; }
.sport-tabletennis { --sp: #6B4FBB; --sp-soft: #F0ECFA; }

.sport-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600;
  background: var(--sp-soft, var(--surface-3)); color: var(--sp, var(--text-2));
}

/* ====================================================== 赛事海报封面 */
.event-card .e-cover { position: relative; overflow: hidden; }
.event-card .e-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(116deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 22px),
    radial-gradient(80% 120% at 88% 110%, rgba(255, 255, 255, .16), transparent 60%);
}
.event-card .e-cover .glyph {
  position: absolute; right: -8px; bottom: -12px; color: #fff;
  opacity: .17; pointer-events: none;
}
.event-card .e-cover .ttl { position: relative; z-index: 2; }

/* ====================================================== 场馆公告屏 */
.board-screen {
  background: linear-gradient(165deg, #0A1A1C, #0C3A37 70%, #0E5754);
  color: #E6F2F0; border-radius: var(--r); padding: 18px 20px; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.board-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
}
.board-screen .ttl { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.board-screen .bd { font-size: 12px; color: #A8C6C2; line-height: 1.85; }

/* ====================================================== 空状态（运动图形） */
.empty .ic {
  background: linear-gradient(160deg, var(--surface-3), #E7EEEC);
  color: var(--text-4); position: relative; overflow: hidden;
}
.empty .ic::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--motif-badminton);
  background-size: 90px 60px; opacity: .10;
}

/* ====================================================== 侧边栏 */
.sidebar {
  background:
    radial-gradient(90% 40% at 0% 100%, rgba(14, 124, 123, .20), transparent 60%),
    linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 100%);
}
.sidebar .nav { position: relative; }
.sidebar::after {
  content: ""; position: absolute; right: -20px; bottom: 60px; width: 200px; height: 200px;
  background-image: var(--motif-arena); background-size: 200px 200px;
  opacity: .05; pointer-events: none; border-radius: 50%;
}
.brand-mark {
  background: linear-gradient(135deg, #6FC6C0 0%, #0E7C7B 52%, #0A4F4E 100%);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--motif-badminton); background-size: 56px 38px;
  opacity: .22;
}
.brand-mark svg { position: relative; z-index: 1; }

/* ====================================================== 场馆导视条 */
.venue-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 9px 16px; border-radius: var(--r);
  background: linear-gradient(100deg, var(--brand-50), #F2F8F7 60%, var(--accent-50));
  border: 1px solid var(--brand-100);
  font-size: 12.5px; color: var(--text-2);
}
.venue-strip .sep { width: 1px; height: 15px; background: var(--line-strong); }
.venue-strip b { color: var(--text); font-weight: 650; }

/* ====================================================== 表格中的场地记号 */
.court-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 22px; padding: 0 6px; border-radius: 5px;
  font-family: "DIN Alternate", "Bahnschrift", "Oswald", "PingFang SC", sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  background: var(--sp-soft, var(--surface-3)); color: var(--sp, var(--text-2));
  border: 1px solid rgba(14, 32, 30, .06);
}
