/* ============================================================
   玻璃拟态设计系统 - 全站通用
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color: #1c1c1e; min-height: 100vh; overflow-x: hidden; background: #eef1f7;
}
a { text-decoration: none; color: inherit; }

/* ---- 背景光斑 ---- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #fbfcff 0%, #eef1f7 55%, #e6ebf4 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .45; }
.b1 { width: 440px; height: 440px; background: radial-gradient(circle, #ff9a5c, #ff6b2c); top: -140px; left: -100px; animation: drift1 28s ease-in-out infinite; }
.b2 { width: 400px; height: 400px; background: radial-gradient(circle, #6cb8ff, #0a84ff); top: 100px; right: -120px; animation: drift2 34s ease-in-out infinite; }
.b3 { width: 360px; height: 360px; background: radial-gradient(circle, #b79bff, #7d5cff); bottom: 80px; left: 30%; animation: drift3 30s ease-in-out infinite; }
.b4 { width: 300px; height: 300px; background: radial-gradient(circle, #7de8d8, #30d5c8); bottom: -80px; right: -60px; opacity: .32; animation: drift1 40s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(40px,-30px);} }
@keyframes drift2 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-46px,36px);} }
@keyframes drift3 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(32px,44px);} }

/* ---- 玻璃卡片基类 ---- */
.glass {
  position: relative;
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 6px 24px -10px rgba(16,24,40,.16), inset 0 1px 0 rgba(255,255,255,.7);
  border-radius: 22px;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.6), rgba(255,255,255,.08) 50%, rgba(255,255,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- 顶部导航 ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  margin: 14px auto 0; width: min(1200px, calc(100% - 32px));
  border-radius: 22px; padding: 10px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: 0 8px 30px -10px rgba(16,24,40,.2); }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(120deg, #ff6b2c, #0a84ff); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-link { padding: 8px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #3a3a3c;
  transition: background .2s, color .2s; cursor: pointer; border: none; background: transparent; font-family: inherit; }
.nav-link:hover { background: rgba(120,120,128,.12); color: #ff6b2c; }
.nav-user { font-weight: 600; color: #1c1c1e; }

/* ---- 容器与栅格 ---- */
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 60px; }
.wrap-sm { width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 60px; }
.grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---- 卡片 ---- */
.card { border-radius: 22px; padding: 22px; margin-bottom: 20px; overflow: hidden; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 20px; font-weight: 700; letter-spacing: -.4px; margin: 0; }
.card-title-sm { font-size: 16px; font-weight: 700; margin: 0; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin: 0 0 20px;
  background: linear-gradient(120deg, #1c1c1e 25%, #4a4a52 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- 按钮 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #ffa45c, #ff6b2c); box-shadow: 0 4px 12px -2px rgba(255,107,44,.4); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -2px rgba(255,107,44,.5); }
.btn-outline { color: #3a3a3c; background: rgba(255,255,255,.5); border: 1.5px solid rgba(120,120,128,.25); }
.btn-outline:hover { background: rgba(255,255,255,.85); border-color: #ff6b2c; color: #ff6b2c; }
.btn-danger { color: #fff; background: linear-gradient(135deg, #ff6b5e, #d92b1f); box-shadow: 0 4px 12px -2px rgba(217,43,31,.4); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }

/* ---- 表单 ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: #3a3a3c; margin-bottom: 7px; }
.form-label .req { color: #ff3b30; }
.form-control, .form-select {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid rgba(120,120,128,.2);
  background: rgba(255,255,255,.7); font-size: 14px; color: #1c1c1e; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus { outline: none; border-color: #ff6b2c; box-shadow: 0 0 0 3px rgba(255,107,44,.15); }
.form-control::placeholder { color: #b0b0b6; }
textarea.form-control { resize: vertical; }
.form-text { font-size: 12px; color: #98989d; margin-top: 6px; display: block; }

/* ---- 提示框 ---- */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.alert-danger { background: rgba(255,59,48,.1); color: #d92b1f; border: 1px solid rgba(255,59,48,.2); }
.alert-success { background: rgba(48,209,88,.1); color: #1f9e4e; border: 1px solid rgba(48,209,88,.2); }
.alert-warning { background: rgba(255,159,10,.1); color: #d98200; border: 1px solid rgba(255,159,10,.2); }

/* ---- 徽章 ---- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge-success { background: rgba(48,209,88,.15); color: #1f9e4e; }
.badge-warning { background: rgba(255,159,10,.15); color: #d98200; }
.badge-danger { background: rgba(255,59,48,.15); color: #d92b1f; }
.badge-secondary { background: rgba(120,120,128,.15); color: #6b6b70; }
.badge-info { background: rgba(10,132,255,.15); color: #0a6ed1; }

/* ---- 统计卡 ---- */
.stat-card { text-align: center; padding: 20px; }
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, #ffa45c, #ff6b2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: #86868b; margin-top: 4px; font-weight: 500; }

/* ---- 表格 ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; font-weight: 700; color: #6b6b70; font-size: 13px; border-bottom: 1.5px solid rgba(120,120,128,.15); }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(120,120,128,.1); color: #1c1c1e; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255,255,255,.35); }
.table tbody tr:last-child td { border-bottom: none; }

/* ---- 列表组 ---- */
.list-group { display: flex; flex-direction: column; }
.list-item { padding: 12px 16px; font-size: 14px; font-weight: 600; color: #3a3a3c; border-radius: 12px; margin-bottom: 4px; transition: background .2s, color .2s; cursor: pointer; }
.list-item:hover { background: rgba(120,120,128,.1); color: #ff6b2c; }
.list-item.active { background: rgba(255,107,44,.13); color: #ff6b2c; }

/* ---- 赛程行 ---- */
.match-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; margin-bottom: 10px; transition: background .2s; }
.match-row:hover { background: rgba(255,255,255,.45); }
.mr-time { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; flex-shrink: 0; }
.mr-time .t { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mr-time .s { font-size: 10px; font-weight: 600; color: #98989d; letter-spacing: .3px; text-transform: uppercase; }
.mr-body { flex: 1; min-width: 0; }
.mr-team { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.mr-name { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-name.win { font-weight: 700; }
.mr-score { margin-left: auto; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: #1c1c1e; flex-shrink: 0; }
.mr-score.lose { color: #b0b0b6; font-weight: 600; }
.mr-venue { font-size: 12px; color: #98989d; margin-left: auto; flex-shrink: 0; max-width: 120px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-status { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 11px; white-space: nowrap; }
.st-live { background: rgba(255,59,48,.13); color: #e0241a; }
.st-soon { background: rgba(10,132,255,.12); color: #0a6ed1; }
.st-end  { background: rgba(120,120,128,.12); color: #86868b; }

/* ---- 积分榜 ---- */
.rank-row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; }
.rank-row + .rank-row { border-top: 1px solid rgba(120,120,128,.12); }
.rk-badge { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rk-1 { background: linear-gradient(150deg, #ffd76b, #f5a623); color: #7a4a00; }
.rk-2 { background: linear-gradient(150deg, #d6dde5, #a8b4c2); color: #4a5560; }
.rk-3 { background: linear-gradient(150deg, #f0b48a, #d1804a); color: #6b3410; }
.rk-n { background: rgba(120,120,128,.1); color: #86868b; }
.rk-info { flex: 1; min-width: 0; }
.rk-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-rec { font-size: 12px; color: #98989d; margin-top: 2px; }
.rk-pts { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ff6b2c; }
.rk-pts span { font-size: 11px; font-weight: 600; color: #b0b0b6; margin-left: 2px; }

/* ---- 信息行 ---- */
.info-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(120,120,128,.1); font-size: 14px; }
.info-line:last-child { border-bottom: none; }
.info-line .k { color: #86868b; font-weight: 500; }
.info-line .v { font-weight: 600; color: #1c1c1e; }

/* ---- 空状态 ---- */
.empty-state { text-align: center; padding: 40px 20px; color: #98989d; }
.empty-state .big { font-size: 44px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; margin: 0; }

/* ---- 工具 ---- */
.text-center { text-align: center; }
.text-muted { color: #86868b; }
.text-danger { color: #d92b1f; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.d-none { display: none; }
.link { color: #ff6b2c; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---- 页脚 ---- */
.footer { text-align: center; padding: 30px 0; color: #98989d; font-size: 13px; }

/* ---- 淡入 ---- */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .19s; }

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .grid { grid-template-columns: 1fr; }
  .col-3 { grid-column: span 12; }
  .col-4 { grid-column: span 6; }
  .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 10px 16px; }
  .nav-links { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .page-title { font-size: 24px; }
  .card { padding: 18px; border-radius: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .col-6 { grid-column: span 12; }
}
@media (max-width: 480px) {
  .wrap, .wrap-sm { width: calc(100% - 20px); }
  .navbar { width: calc(100% - 20px); padding: 8px 14px; }
  .brand { font-size: 18px; }
  .nav-link { padding: 7px 12px; font-size: 13px; }
  .page-title { font-size: 22px; }
}
