body {
    background:
        linear-gradient(180deg,
            rgba(var(--bs-body-bg-rgb), .01),
            rgba(var(--bs-body-bg-rgb), 1) 85%),
        radial-gradient(ellipse at top left,      rgba(var(--bs-primary-rgb), .35), transparent 50%),
        radial-gradient(ellipse at top right,     rgba(var(--bd-accent-rgb), .30), transparent 50%),
        radial-gradient(ellipse at center right,  rgba(var(--bd-violet-rgb), .30), transparent 50%),
        radial-gradient(ellipse at center left,   rgba(var(--bd-pink-rgb), .25), transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

.md-shell { max-width: 1200px; margin: 0 auto; padding: 20px 16px 56px; color: #3d2f1e;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* ---------- 通用浅色毛玻璃卡片 ---------- */
.md-item, .md-panel {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 26px rgba(120, 90, 40, .08);
}

/* ---------- 面包屑 / 页头 ---------- */
.md-crumb { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem;
            color: #8c8273; text-decoration: none; margin-bottom: 14px; }
.md-crumb:hover { color: #b08756; }

.md-page-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.md-page-head h1 { margin: 0; font-size: 1.35rem; font-weight: 800; color: #2b1f12; }
.md-page-tip { margin: 0 0 6px; font-size: .78rem; color: #6a5230; }

/* ---------- 赛事卡片（列表项） ---------- */
.md-item { height: 100%; display: flex; flex-direction: column; gap: 8px; border-radius: 0;
           padding: 12px; cursor: pointer; text-decoration: none; min-width: 0;
           transition: transform .15s ease, box-shadow .15s ease; }
.md-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.86);
                 box-shadow: 0 14px 30px rgba(120,90,40,.12); }

/* ⚠ 封面写真 src + 原生 loading=lazy（不 lazysizes：data-src 爬虫看不见，SEO 硬伤） */
.md-item-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0;
               display: block; background: rgba(176, 135, 86, .06);
               transition: opacity .35s ease, transform .35s ease; }
.md-item:hover .md-item-img { transform: scale(1.02); }

.md-item-name { font-size: .86rem; font-weight: 700; line-height: 1.4; color: #2b1f12; padding: 0 4px;
                min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-item-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .72rem; color: #8c8273; padding: 0 4px; }
.md-item-meta i { margin-right: 3px; color: #b08756; }
.md-item-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 4px; margin-top: auto; }
.md-item-tags em { font-style: normal; font-size: .66rem; color: #6a5230;
                   background: rgba(176, 135, 86, .08); border-radius: 999px; padding: 1px 8px; }
.md-item h4 { margin: 0; }

/* ---------- 金星专属认证徽标（诚信标杆）：金星赛事封面统一挂角标 ----------
   ⚠ rank / star 页用了 md-green-badge 等类却没拿到样式（徽标退化成裸文本），
      这里补上共享样式，三页视觉统一（index 本地原本就有这一套）。 */
.md-green-star-icons { color: #f97316; font-size: 1.4rem; letter-spacing: 2px; }
.md-green-star-icons i { font-size: 1.1em; }
.md-green-item { position: relative; }
.md-green-cover { position: relative; display: flex; align-items: center; justify-content: center;
                  color: #ffd064; font-size: 1.9rem; text-shadow: 0 2px 8px rgba(0,0,0,.22); overflow: hidden; }
.md-green-cover-glyph { filter: drop-shadow(0 2px 6px rgba(0,0,0,.28)); }
.md-green-badge { position: absolute; top: 8px; left: 8px; z-index: 2;
                  display: inline-flex; align-items: center; gap: 3px; font-size: .64rem; font-weight: 700;
                  color: #ffd064; background: #14110F99;
                  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
                  border: 1px solid rgba(255,208,100,.40);
                  border-radius: 999px;
                  padding: 2px 9px; box-shadow: 0 4px 14px rgba(20,17,15,.18); letter-spacing: .5px; }
.md-green-tag { color: #ffd064 !important; background: #14110F !important; }

/* ---------- 地点切换按钮 / 通用小按钮（排行榜页与城市页都用） ---------- */
.md-switch { display: inline-flex; align-items: center; gap: 5px; flex: none; text-decoration: none;
             font-size: .8rem; font-weight: 600; color: #b08756; background: rgba(176,135,86,.08);
             border: 1px solid rgba(176,135,86,.32); border-radius: 999px; padding: 4px 14px; }
.md-switch:hover { background: rgba(176,135,86,.16); color: #a97c43; }

/* ---------- 小节标题 / 空态 / 错误条 / toast ---------- */
.md-sec-title { font-size: 1.12rem; font-weight: 800; color: #2b1f12; }
.md-sec-title i { color: #b08756; margin-right: 6px; }

.md-empty { padding: 34px 20px; text-align: center; border-radius: 22px; color: #8c8273; font-size: .84rem; }
.md-empty i { display: block; font-size: 1.6rem; color: #c9b79a; margin-bottom: 8px; }

.md-load-error { margin-bottom: 14px; padding: 10px 16px; border-radius: 12px; font-size: .82rem;
                 color: #a04a3f; background: rgba(224, 120, 100, .10); border: 1px solid rgba(224, 120, 100, .3); }

.md-toast { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%); z-index: 3000;
            background: rgba(255,255,255,.95); color: #3d2f1e; font-size: .84rem; border-radius: 999px;
            padding: 9px 22px; border: 1px solid rgba(176,135,86,.3); opacity: 0;
            pointer-events: none; transition: opacity .25s ease; box-shadow: 0 8px 26px rgba(120,90,40,.15); }

/* ---------- 分页器（排行榜 / 搜索结果页共用，每页 50 条） ---------- */
.md-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
            gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 16px;
            background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
            box-shadow: 0 6px 20px rgba(120,90,40,.07); }
.md-pager-info { font-size: .74rem; color: #8c8273; }
.md-pager-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.md-pager-btn, .md-pager-num { display: inline-flex; align-items: center; justify-content: center;
            min-width: 34px; height: 34px; padding: 0 12px; font-size: .78rem; font-weight: 600;
            text-decoration: none; color: #6a5230; background: rgba(176,135,86,.06);
            border: 1px solid rgba(176,135,86,.22); border-radius: 9px; transition: all .15s ease; }
.md-pager-btn:hover, .md-pager-num:hover { background: rgba(176,135,86,.16); color: #a97c43; border-color: #b08756; }
.md-pager-num.is-on { color: #fff; background: linear-gradient(135deg, #c69a5e, #a97c43); border-color: transparent; }
.md-pager-btn.is-disabled, .md-pager-num.is-disabled { color: #c2bbae; background: rgba(176,135,86,.03);
            border-color: rgba(176,135,86,.12); cursor: default; pointer-events: none; }
.md-pager-gap { color: #b9ad99; padding: 0 2px; }