/* =========================================================
   有球打 · 主样式
   ========================================================= */
:root {
    --ink: #111111;
    --ink-2: #111111;
    --ink-3: #1f4d16;
    --paper: #ffffff;
    --card: #ffffff;
    --orange: #0000ff;
    --orange-dark: #0000ff;
    --orange-soft: #e8e8e8;
    --lime: #a0ff61;
    --teal: #1f4d16;
    --teal-soft: #a0ff61;
    --blue: #4c5cff;
    --muted: #555555;
    --line: #e8e8e8;
    --line-dark: rgba(255,255,255,.12);
    --shadow: 0 14px 36px -30px rgba(17,17,17,.28);
    --shadow-lg: 0 30px 70px -42px rgba(17,17,17,.36);
    --radius: 24px;
    --radius-sm: 16px;
    --sidebar: 252px;
    --font: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --display: "Arial Black", "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", SimSun, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
    transition: background-color .3s ease, color .3s ease;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 85% 5%, rgba(0,0,255,.08), transparent 45%),
        radial-gradient(ellipse at 15% 90%, rgba(47,122,31,.07), transparent 50%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.icon { vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.035em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 布局 ---------- */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    width: var(--sidebar);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    padding: 28px 18px 22px;
    background: var(--ink);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 90% 0%, rgba(160,255,97,.12), transparent 34%),
        linear-gradient(160deg, rgba(0,0,255,.08), transparent 40%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px;
    background: var(--primary);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(0,0,255,.9);
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word .txt-strong { font-size: 23px; letter-spacing: .04em; }
.brand-word small { font-size: 11px; letter-spacing: .26em; color: rgba(255,255,255,.48); margin-top: 4px; }

.side-nav { margin-top: 38px; flex: 1; overflow-y: auto; padding-right: 2px; }
.nav-label {
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.36); padding: 0 12px; margin-bottom: 8px;
}
.nav-label-gap { margin-top: 26px; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 13px;
    color: rgba(255,255,255,.68);
    font-size: 16px; font-weight: 600;
    transition: background .18s, color .18s, transform .18s;
    position: relative;
}
.nav-item .icon { width: 19px; height: 19px; opacity: .86; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.nav-item.active { background: var(--lime); color: var(--ink); }
.nav-item.active .icon { opacity: 1; }
.nav-item.active::after {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); margin-left: auto;
}
.nav-hot {
    margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .08em;
    background: var(--primary); color: #fff; padding: 2px 6px; border-radius: 20px;
}
.nav-item.active .nav-hot { background: var(--ink); }
.sidebar-foot { border-top: 1px solid var(--line-dark); padding-top: 16px; margin-top: 12px; }
.side-user {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border-radius: 14px; transition: background .2s;
}
.side-user:hover { background: rgba(255,255,255,.06); }
.side-user > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.side-user .txt-strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { font-size: 13px; color: rgba(255,255,255,.46); }
.side-user > .icon { margin-left: auto; width: 15px; opacity: .4; }
.side-admin, .side-logout {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: rgba(255,255,255,.52); padding: 9px 12px;
    border-radius: 10px;
}
.side-admin:hover, .side-logout:hover { color: #fff; background: rgba(255,255,255,.05); }
.side-admin .icon, .side-logout .icon { width: 15px; height: 15px; }
.side-guest p { font-size: 14px; color: rgba(255,255,255,.55); margin: 0 0 10px 4px; }

.app-main { margin-left: var(--sidebar); width: calc(100% - var(--sidebar)); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    height: 74px; padding: 0 34px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(244,240,230,.82);
    backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 30;
}
.topbar-note { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); font-weight: 600; }
.topbar-note small { color: #777777; border-left: 1px solid var(--line); padding-left: 9px; font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0,0,255,.14); animation: pulse 2s infinite; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-avatar { display: inline-flex; margin-left: 4px; }
.mobile-menu-btn, .mobile-brand, .mobile-scrim, .bottom-nav { display: none; }

@media (max-width: 1320px) {
    .header-note { display: none; }
    .header-quick { display: none; }
}
@media (max-width: 1020px) {
    .site-header-inner { min-height: 64px; padding: 0 20px; gap: 14px; }
    .main-nav { display: none; }
    .app-main-top { min-height: calc(100vh - 64px); }
    .app-main-top .page { padding: 24px 20px 86px; }
    .user-menu-name { display: none; }
    .header-publish { display: none; }
    .header-vip { min-height: 32px; padding: 0 11px; }
    .user-menu summary { height: 36px; min-height: 36px; }
    .user-menu-panel { right: -4px; }
    .site-brand .brand-word .txt-strong { font-size: 19px; }
}
@media (max-width: 640px) {
    .site-header-inner { padding: 0 14px; }
    .site-brand .brand-word small { display: none; }
    .site-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
    .site-brand .brand-word .txt-strong { font-size: 18px; }
    .header-vip { padding: 0 9px; }
    .header-vip-text { display: none; }
    .user-menu-panel { position: fixed; left: 14px; right: 14px; top: 66px; width: auto; }
    .user-menu-panel::before { display: none; }
    .app-main-top .page { padding: 18px 14px 82px; }
}


/* ---------- 电脑端上下结构 ---------- */
.app-shell-top { display: block; }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg, #111111); color: #ffffff;
    box-shadow: 0 16px 40px -24px rgba(8,20,16,.55);
    background-image:
        radial-gradient(circle at 88% -20%, rgba(160,255,97,.13), transparent 36%),
        linear-gradient(100deg, rgba(0,0,255,.08), transparent 42%);
}
.site-header-inner {
    width: 100%; max-width: 1500px; min-height: 76px; margin: 0 auto;
    padding: 0 34px; display: flex; align-items: center; gap: 26px;
}
.site-brand { padding: 0; flex: 0 0 auto; }
.site-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.site-brand .brand-mark .icon { width: 21px; height: 21px; }
.site-brand .brand-word .txt-strong { color: #fff; font-size: 21px; }
.site-brand .brand-word small { color: rgba(255,255,255,.4); font-size: 10px; }
.main-nav { display: flex; align-items: center; gap: 3px; }
.main-nav .nav-link {
    display: flex; align-items: center; gap: 5px; padding: 9px 14px;
    border-radius: 999px; color: rgba(255,255,255,.64);
    font-size: 15px; font-weight: 650; white-space: nowrap;
    transition: background .18s, color .18s;
}
.main-nav .nav-link .icon { width: 17px; height: 17px; opacity: .85; }
.main-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-link.active { background: var(--lime); color: var(--ink); }
.main-nav .nav-link.active .icon { opacity: 1; }
.main-nav .nav-hot {
    margin-left: 1px; font-size: 9px; padding: 2px 5px;
    background: var(--primary); color: #fff;
}
.main-nav .nav-link.active .nav-hot { background: var(--ink); color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.theme-toggle {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06); color: #ffffff; display: grid; place-items: center;
    transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: rgba(255,255,255,.14); transform: rotate(12deg); }
.theme-toggle .icon { width: 16px; height: 16px; }
.theme-icon-sun, .theme-icon-moon { display: grid; place-items: center; }
html[data-theme="night"] .theme-icon-sun { display: none; }
html:not([data-theme="night"]) .theme-icon-moon { display: none; }
.header-note {
    display: flex; align-items: center; gap: 8px; margin-right: 5px;
    color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.header-note small {
    color: rgba(255,255,255,.32); border-left: 1px solid rgba(255,255,255,.16);
    padding-left: 8px; font-weight: 500;
}
.site-header .btn-ghost { border-color: rgba(255,255,255,.2); color: #ffffff; }
.site-header .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.site-header .btn-light { background: #fff; color: var(--ink); }
.header-quick { min-height: 34px; }
.header-vip { height: 36px; min-height: 36px; font-weight: 800; box-shadow: 0 10px 22px -12px rgba(160,255,97,.55); }
.main-nav .nav-link,
.user-menu summary {
    height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; box-sizing: border-box;
}

.user-menu { position: relative; }
.user-menu summary {
    list-style: none; display: flex; align-items: center; gap: 8px;
    padding: 4px 7px 4px 4px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.05);
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .avatar-sm { width: 28px; height: 28px; font-size: 13px; }
.user-menu summary:hover { background: rgba(255,255,255,.1); }
.user-menu summary > .icon { width: 14px; height: 14px; opacity: .5; }
.user-menu-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.user-menu-name .txt-strong { font-size: 14px; color: #fff; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-name small { font-size: 11px; color: var(--lime); margin-top: 3px; }
.user-menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 236px;
    background: #ffffff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 26px 60px -24px rgba(8,20,16,.5); padding: 8px;
    color: var(--ink); animation: slideIn .16s ease;
}
.user-menu-panel::before {
    content: ""; position: absolute; right: 22px; top: -6px; width: 11px; height: 11px;
    background: #ffffff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.user-menu-panel a {
    display: flex; align-items: center; gap: 9px; padding: 9px 10px;
    border-radius: 9px; font-size: 14px; font-weight: 600; color: #555555;
}
.user-menu-panel a:hover { background: #e8e8e8; color: var(--ink); }
.user-menu-panel a .icon { width: 16px; height: 16px; opacity: .7; }
.user-menu-head {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px 11px;
    margin-bottom: 5px; border-bottom: 1px solid var(--line);
}
.user-menu-head div { display: flex; flex-direction: column; min-width: 0; }
.user-menu-head .txt-strong { font-size: 15px; }
.user-menu-head small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.user-menu-logout { color: #000 !important; margin-top: 3px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px !important; }
.app-main-top { margin-left: 0; width: 100%; min-height: calc(100vh - 76px); }
.app-main-top .page { max-width: 1500px; padding: 34px 34px 56px; }

.page { width: 100%; max-width: 1500px; margin: 0 auto; padding: 34px 34px 56px; flex: 1; }
.announcement {
    display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 10px 14px; border: 1px solid #e8e8e8; border-radius: 13px;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    font-size: 13px; color: #000;
}
.announcement .badge { flex: 0 0 auto; }
@media (max-width: 480px) {
    .announcement { font-size: 12px; align-items: flex-start; }
}
.site-footer {
    display: flex; justify-content: space-between; gap: 16px;
    border-top: 1px solid var(--line); padding: 18px 34px 26px;
    font-size: 13px; color: #777777;
}

/* ---------- 通用组件 ---------- */
.eyebrow {
    font-size: 12px; letter-spacing: .18em; font-weight: 800;
    text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 3vw, 44px); font-weight: 800; }
.page-head p { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 640px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section { margin-top: 44px; }
.section-tight { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; }
.section-head p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.section-link { font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.section-link:hover { color: var(--orange); }
.section-link .icon { width: 14px; height: 14px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px;
    font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px -14px rgba(0,0,255,.9); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 16px 30px -14px rgba(0,0,255,.9); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: #e8e8e8; }
.btn-light { background: #fff; color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-danger { background: #e8e8e8; color: #000; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn .icon { width: 16px; height: 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; display: inline-grid; place-items: center;
}
.icon-btn:hover { border-color: #e8e8e8; }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card-dark { background: var(--ink); color: #fff; border-color: transparent; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: 1.65fr 1fr; gap: 22px; align-items: stretch; }
.split > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; letter-spacing: .04em; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 30px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em;
    background: #e8e8e8; color: var(--muted); white-space: nowrap;
}
.badge-green { background: var(--teal-soft); color: #1f4d16; }
.badge-orange { background: var(--orange-soft); color: #000; }
.badge-blue { background: #ffffff; color: #000; }
.badge-gray { background: #e8e8e8; color: #555555; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-lime { background: var(--lime); color: var(--ink); }
.badge-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.avatar {
    border-radius: 50%; display: inline-grid; place-items: center;
    color: #fff; font-weight: 800; flex: 0 0 auto; overflow: hidden;
    letter-spacing: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 26px; height: 26px; font-size: 13px; }
.avatar-sm { width: 36px; height: 36px; font-size: 16px; }
.avatar-md { width: 46px; height: 46px; font-size: 19px; }
.avatar-lg { width: 72px; height: 72px; font-size: 27px; }
.avatar-xl { width: 100px; height: 100px; font-size: 36px; }
.avatar-guest { background: #e8e8e8; color: var(--muted); }
.avatar-guest .icon { width: 18px; }
.avatar-ring { border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }

.level-1 { color: #555555; } .level-2 { color: var(--teal); } .level-3 { color: var(--blue); }
.level-4 { color: #000; } .level-5 { color: var(--orange); }

.empty {
    padding: 50px 20px; text-align: center; color: var(--muted);
    border: 1px dashed #e8e8e8; border-radius: var(--radius); background: rgba(255,255,255,.35);
}
.empty .icon { width: 34px; height: 34px; color: #e8e8e8; margin-bottom: 10px; }
.empty h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 14px; }

/* ---------- 首页 Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: 430px; padding: 46px 48px;
    border-radius: 30px;
    background: var(--ink);
    color: #fff;
    display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px;
    box-shadow: var(--shadow-lg);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 88% 14%, rgba(160,255,97,.2), transparent 26%),
        radial-gradient(circle at 74% 110%, rgba(0,0,255,.28), transparent 38%);
}
.hero::after {
    content: ""; position: absolute; right: -90px; bottom: -150px;
    width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.028), 0 0 0 140px rgba(255,255,255,.02);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--lime); border: 1px solid rgba(160,255,97,.32);
    padding: 7px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero-kicker .live-dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(160,255,97,.13); }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 4.7vw, 70px); line-height: 1.04; letter-spacing: -.055em; font-weight: 900; max-width: 700px; }
.hero h1 em { font-style: normal; color: var(--lime); position: relative; }
.hero h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
    background: var(--primary); opacity: .75; z-index: -1; transform: skewX(-12deg);
}
.hero p.lead { margin-top: 18px; color: rgba(255,255,255,.6); font-size: 16px; max-width: 480px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat .txt-strong { font-family: var(--display); font-size: 27px; font-weight: 900; letter-spacing: -.03em; display: block; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .08em; }
.hero-art { position: relative; z-index: 2; display: grid; place-items: center; min-height: 300px; }
.paddle-art { position: relative; width: 230px; height: 300px; transform: rotate(14deg); }
.paddle-blade {
    position: absolute; inset: 8px 15px 82px 15px; border-radius: 48% 48% 46% 46%;
    background: linear-gradient(145deg, #e8e8e8, #e8e8e8);
    border: 9px solid #0000cc;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.24), 0 30px 50px -20px rgba(0,0,0,.55);
}
.paddle-blade::after {
    content: ""; position: absolute; inset: 18px; border-radius: 50%;
    border: 1px dashed rgba(75,43,27,.26);
}
.paddle-handle {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 58px; height: 120px; border-radius: 14px 14px 22px 22px;
    background: linear-gradient(90deg, #0000cc, #0000ff 50%, #0000cc);
    border: 3px solid rgba(0,0,0,.25);
}
.paddle-handle::after {
    content: "P"; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
    color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px;
}
.hero-ball {
    position: absolute; right: -6px; top: 28px; width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff, #e8e8e8 58%, #0000ff);
    box-shadow: 0 20px 30px -14px rgba(0,0,0,.5);
    animation: float 4s ease-in-out infinite;
}
.hero-ball::after { content: ""; position: absolute; left: 12px; top: 16px; width: 10px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); filter: blur(2px); }
.hero-note {
    position: absolute; left: 12px; bottom: 18px; z-index: 3;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 13px;
    font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px;
}
.hero-note .txt-strong { color: var(--lime); }
.hero-note .icon { width: 15px; height: 15px; }

/* ---------- 统计 / 快捷入口 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-card { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: flex-start; gap: 13px; }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e8e8e8; color: var(--ink); }
.stat-card:nth-child(2) .stat-icon { background: var(--orange-soft); color: var(--orange); }
.stat-card:nth-child(3) .stat-icon { background: var(--teal-soft); color: var(--teal); }
.stat-card:nth-child(4) .stat-icon { background: #ffffff; color: var(--blue); }
.stat-card .txt-strong { font-family: var(--display); font-size: 28px; display: block; letter-spacing: -.04em; line-height: 1; }
.stat-card span { font-size: 13px; color: var(--muted); }
.stat-card small { font-size: 12px; color: #777777; display: block; margin-top: 4px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.quick-grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.quick-grid-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
@media (max-width: 1240px) {
    .quick-grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .quick-grid-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1020px) {
    .quick-grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .quick-grid-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
    .quick-grid-5 { grid-template-columns: 1fr; }
    .quick-grid-6 { grid-template-columns: 1fr; }
}
.quick-card {
    position: relative; overflow: hidden; padding: 22px;
    background: var(--card); border: 1px solid var(--line); border-radius: 19px;
    min-height: 144px; display: flex; flex-direction: column; justify-content: space-between;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e8e8e8; }
.quick-card .icon { width: 28px; height: 28px; }
.quick-card .txt-strong { font-size: 18px; display: block; margin-top: 14px; }
.quick-card span { font-size: 13px; color: var(--muted); }
.quick-card .quick-arrow { position: absolute; right: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.quick-card .quick-arrow .icon { width: 13px; height: 13px; }
.quick-card.accent { background: var(--primary); color: #fff; border-color: transparent; }
.quick-card.accent span { color: rgba(255,255,255,.68); }
.quick-card.accent .quick-arrow { border-color: rgba(255,255,255,.25); color: #fff; }
.quick-card.dark { background: var(--ink); color: #fff; border-color: transparent; }
.quick-card.dark span { color: rgba(255,255,255,.5); }
.quick-card.dark .quick-arrow { border-color: rgba(255,255,255,.2); color: #fff; }

/* ---------- 比赛卡片 ---------- */
.match-card {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
    padding: 18px 20px; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; transition: border-color .2s, box-shadow .2s;
}
.match-card:hover { border-color: #e8e8e8; box-shadow: var(--shadow); }
.match-card.is-live { border-color: rgba(0,0,255,.4); background: linear-gradient(180deg, #ffffff, var(--card)); }
.match-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.match-side.right { text-align: right; align-items: flex-end; }
.match-side .txt-strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.match-side small { font-size: 12px; color: var(--muted); }
.match-score { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 24px; letter-spacing: -.04em; }
.match-score span { min-width: 30px; text-align: center; }
.match-score em { font-style: normal; color: #e8e8e8; font-size: 17px; }
.match-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 12px; padding-top: 11px; border-top: 1px solid #e8e8e8; }
.match-meta .icon { width: 13px; height: 13px; }
.match-card-wrap { display: flex; flex-direction: column; }
.sets { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.match-card > .sets {
    grid-column: 1 / -1; margin-top: 4px; padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}
html[data-theme="night"] .match-card > .sets { border-top-color: #1f4d16; }
.set-chip {
    min-width: 25px; padding: 3px 6px; border-radius: 6px; background: #e8e8e8;
    font-size: 11px; font-weight: 800; color: var(--muted); text-align: center;
}
.set-chip.win { background: var(--ink); color: #fff; }
.set-chip.live { background: var(--primary); color: #fff; }
.set-chip.loss { background: #e8e8e8; color: #777777; }
.match-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; }
.match-row:last-child { border-bottom: 0; }
.match-row .match-row-main { flex: 1; min-width: 0; }
.match-row .txt-strong { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row small { font-size: 12px; color: var(--muted); }

/* ---------- 约球 ---------- */
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.booking-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 20px; display: flex; flex-direction: column; gap: 13px;
    transition: transform .2s, box-shadow .2s;
}
.booking-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.booking-top { display: flex; gap: 14px; align-items: flex-start; }
.booking-date {
    width: 56px; flex: 0 0 auto; border-radius: 13px; background: var(--ink); color: #fff;
    text-align: center; padding: 8px 4px 7px;
}
.booking-date .txt-strong { display: block; font-family: var(--display); font-size: 24px; line-height: 1; }
.booking-date span { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .06em; }
.booking-date.is-soon { background: var(--primary); }
.booking-main { flex: 1; min-width: 0; }
.booking-main h3 { font-size: 17px; margin-bottom: 5px; }
.booking-main p { font-size: 13px; color: var(--muted); }
.booking-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; font-size: 12px; color: var(--muted); }
.booking-meta span { display: inline-flex; align-items: center; gap: 4px; }
.booking-meta .icon { width: 13px; height: 13px; }
.booking-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #e8e8e8; }
.booking-people { display: flex; align-items: center; }
.booking-people .avatar { margin-left: -7px; border: 2px solid var(--card); }
.booking-people .avatar:first-child { margin-left: 0; }
.booking-people small { font-size: 12px; color: var(--muted); margin-left: 6px; }
.progress { height: 4px; border-radius: 99px; background: #e8e8e8; overflow: hidden; flex: 1; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.progress.lime span { background: var(--teal); }

/* ---------- 擂台 ---------- */
.arena-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.arena-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative;
}
.arena-card::after {
    content: "擂台"; position: absolute; right: 13px; top: 13px;
    font-size: 10px; letter-spacing: .1em; color: var(--orange); font-weight: 800;
    border: 1px solid rgba(0,0,255,.3); border-radius: 999px; padding: 2px 7px;
}
.arena-card .avatar { margin-bottom: 2px; }
.arena-card .txt-strong { font-size: 17px; }
.arena-card p { font-size: 12px; color: var(--muted); min-height: 30px; }
.arena-stats { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.arena-stats b { color: var(--ink); font-size: 15px; display: block; }
.arena-card .btn { margin-top: 4px; width: 100%; }

/* ---------- 资讯 ---------- */
.news-hero {
    position: relative; min-height: 310px; border-radius: 24px; overflow: hidden;
    background: linear-gradient(135deg, #111111, #111111 60%, #111111);
    color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end;
}
.news-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(160,255,97,.24), transparent 26%),
        repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,.025) 26px 27px);
}
.news-hero > * { position: relative; z-index: 2; }
.news-hero h2 { font-size: clamp(26px, 3vw, 40px); max-width: 620px; line-height: 1.12; }
.news-hero p { font-size: 14px; color: rgba(255,255,255,.62); max-width: 520px; margin-top: 12px; }
.news-hero .news-meta { margin-top: 18px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.news-meta .badge { background: rgba(255,255,255,.12); color: #fff; }
.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e8e8e8; align-items: flex-start; }
.news-row:last-child { border-bottom: 0; }
.news-index { font-family: var(--display); font-size: 15px; color: #e8e8e8; width: 22px; padding-top: 2px; }
.news-row-content { flex: 1; min-width: 0; }
.news-row h3 { font-size: 15px; line-height: 1.4; margin-bottom: 4px; }
.news-row p { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row .news-meta { color: #777777; margin-top: 6px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-cover {
    height: 170px; background: linear-gradient(135deg, var(--ink), #1f4d16);
    position: relative; display: flex; align-items: flex-end; padding: 16px;
}
.news-cover.cat-international { background: linear-gradient(135deg, #111111, #0000cc); }
.news-cover.cat-domestic { background: linear-gradient(135deg, #111111, #0000ff); }
.news-cover.cat-club { background: linear-gradient(135deg, #111111, #1f4d16); }
.news-cover::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 40%);
}
.news-cover .badge { position: relative; z-index: 1; background: rgba(255,255,255,.15); color: #fff; }
.news-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-body h3 { font-size: 18px; line-height: 1.35; }
.news-card-body p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .news-meta { color: #777777; margin-top: auto; padding-top: 10px; }
.article { max-width: 820px; margin: 0 auto; }
.article-cover { height: 260px; border-radius: 24px; margin-bottom: 28px; background: linear-gradient(135deg, #111111, #111111 60%, #111111); position: relative; overflow: hidden; }
.article-cover::after { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 50px rgba(255,255,255,.03); }
.article h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin-bottom: 14px; }
.article-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-body { font-size: 17px; line-height: 1.9; color: #1f4d16; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 26px; margin: 26px 0 12px; }
.article-body h3 { font-size: 21px; margin: 22px 0 10px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 14px 0; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 3px solid var(--orange); margin: 22px 0; padding: 6px 0 6px 18px; color: #555555; }
.article-body a { color: var(--teal); text-decoration: underline; }
.article-body img { border-radius: 16px; margin: 22px 0; max-width: 100%; height: auto; }
.detail-body h2 { font-size: 23px; margin: 18px 0 8px; }
.detail-body h3 { font-size: 19px; margin: 16px 0 8px; }
.detail-body ul, .detail-body ol { padding-left: 22px; margin: 12px 0; }
.detail-body blockquote { border-left: 3px solid var(--orange); margin: 16px 0; padding: 4px 0 4px 14px; color: #555555; }
.detail-body img { border-radius: 12px; max-width: 100%; height: auto; margin: 14px 0; }
.detail-body a { color: var(--teal); text-decoration: underline; }
.article-body img { border-radius: 16px; margin: 22px 0; }
.article-quote { border-left: 3px solid var(--orange); padding: 4px 0 4px 18px; color: var(--ink); font-weight: 600; margin: 24px 0; }

/* ---------- 广告位 ---------- */
.ad-section { margin: 26px 0 30px; }
.ad-banner {
    position: relative; display: flex; align-items: center; gap: 24px; overflow: hidden;
    min-height: 148px; padding: 26px 30px; border-radius: 24px;
    background: linear-gradient(112deg, #111111 0%, #111111 58%, #1f4d16 100%);
    color: #ffffff; isolation: isolate;
    box-shadow: 0 22px 50px -32px rgba(8,20,16,.65);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ad-banner:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -32px rgba(8,20,16,.8); }
.ad-banner::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at 84% 30%, rgba(160,255,97,.16), transparent 34%),
                radial-gradient(circle at 6% 100%, rgba(0,0,255,.2), transparent 38%);
}
.ad-copy { position: relative; z-index: 2; max-width: 620px; }
.ad-label {
    display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; font-weight: 800; color: var(--lime);
    border: 1px solid rgba(160,255,97,.3); padding: 3px 8px; border-radius: 999px;
}
.ad-copy h3 { margin-top: 10px; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.2; color: #fff; }
.ad-copy p { margin-top: 7px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.58); max-width: 500px; }
.ad-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 15px;
    font-size: 13px; font-weight: 800; color: var(--ink); background: var(--lime);
    padding: 7px 12px; border-radius: 999px;
}
.ad-cta .icon { width: 13px; height: 13px; }
.ad-image {
    position: absolute; right: 0; top: 0; bottom: 0; width: 38%; z-index: 0;
    mask-image: linear-gradient(90deg, transparent, #000 38%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
}
.ad-image img { width: 100%; height: 100%; object-fit: cover; }
.ad-deco {
    position: absolute; right: 36px; top: 50%; transform: translateY(-50%) rotate(-9deg);
    color: rgba(160,255,97,.28); z-index: 1;
}
.ad-deco .icon { width: 128px; height: 128px; stroke-width: .7; }
.ad-orbit {
    position: absolute; right: -76px; top: -100px; width: 310px; height: 310px;
    border: 1px solid rgba(160,255,97,.18); border-radius: 50%; z-index: 0;
}
.ad-orbit::after {
    content: ""; position: absolute; inset: 38px; border: 1px dashed rgba(255,255,255,.12); border-radius: 50%;
}
.ad-banner.ad-placement-market { background: linear-gradient(112deg, #111111, #0000cc 58%, #0000cc 100%); }
.ad-banner.ad-placement-market .ad-label { color: #e8e8e8; border-color: rgba(255,176,138,.35); }
.ad-banner.ad-placement-challenges,
.ad-banner.ad-placement-ranking,
.ad-banner.ad-placement-events { background: linear-gradient(112deg, #111111, #1f4d16 58%, #1f4d16 100%); }
.ad-banner.ad-placement-score { background: linear-gradient(112deg, #111111, #111111 58%, #1f4d16 100%); }
@media (max-width: 760px) {
    .ad-banner { min-height: 128px; padding: 20px; gap: 14px; }
    .ad-image { width: 46%; opacity: .45; }
    .ad-deco { right: 16px; opacity: .5; }
    .ad-deco .icon { width: 88px; height: 88px; }
    .ad-copy h3 { font-size: 20px; }
}
@media (max-width: 480px) {
    .ad-banner { min-height: 118px; padding: 18px; border-radius: 18px; }
    .ad-image { display: none; }
    .ad-copy p { display: none; }
}

/* ---------- 器材商城 ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.market-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    margin: -6px 0 22px; padding: 16px 20px; border-radius: 18px;
    background: linear-gradient(120deg, #111111, #111111 68%, #1f4d16);
    color: #ffffff; position: relative; overflow: hidden;
}
.market-strip::after {
    content: ""; position: absolute; right: -40px; top: -80px; width: 210px; height: 210px;
    border: 1px solid rgba(160,255,97,.2); border-radius: 50%;
}
.market-strip-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.market-strip-main .txt-strong { font-size: 17px; letter-spacing: -.02em; }
.market-strip-main > span:last-child { font-size: 12px; color: rgba(255,255,255,.48); }
.market-strip-tags { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.market-strip-tags span {
    font-size: 11px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px; color: rgba(255,255,255,.68);
}
@media (max-width: 760px) { .market-strip { align-items: flex-start; flex-direction: column; } }
.market-card { background: var(--card); border: 1px solid var(--line); border-radius: 19px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.market-cover {
    height: 170px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8, #e8e8e8);
    display: grid; place-items: center;
}
.market-cover.cat-blade { background: linear-gradient(135deg, #e8e8e8, #0000ff); }
.market-cover.cat-rubber { background: linear-gradient(135deg, #1a1a1a, #111111); color: rgba(255,255,255,.3); }
.market-cover.cat-racket { background: linear-gradient(135deg, #a0ff61, #7bbf43); }
.market-cover.cat-shoes { background: linear-gradient(135deg, #d9d9d9, #d9d9d9); }
.market-cover.cat-ball { background: linear-gradient(135deg, #e8e8e8, #0000ff); }
.market-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.market-card:hover .market-cover img { transform: scale(1.05); }
.market-cover .icon { width: 52px; height: 52px; opacity: .55; }
.market-cover .badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.84); color: var(--ink); backdrop-filter: blur(6px); }
.market-body { padding: 16px; }
.market-body h3 { font-size: 16px; line-height: 1.4; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.market-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.market-price .txt-strong { color: var(--orange); font-family: var(--display); font-size: 22px; }
.market-price span { font-size: 12px; color: var(--muted); }
.market-seller { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e8e8e8; font-size: 12px; color: var(--muted); }
.market-seller .avatar { width: 23px; height: 23px; font-size: 11px; }

/* ---------- 培训 ---------- */
.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.training-card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 19px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.training-card::before { content: ""; position: absolute; right: -30px; top: -32px; width: 120px; height: 120px; border-radius: 50%; background: var(--teal-soft); opacity: .8; }
.training-card.type-coach::before { background: var(--orange-soft); }
.training-card.type-venue::before { background: #ffffff; }
.training-card > * { position: relative; z-index: 1; }
.training-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.training-card h3 { font-size: 18px; line-height: 1.35; }
.training-card p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.training-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--muted); }
.training-meta span { display: inline-flex; align-items: center; gap: 4px; }
.training-meta .icon { width: 13px; height: 13px; }
.training-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid #e8e8e8; }
.training-price .txt-strong { color: var(--orange); font-family: var(--display); font-size: 22px; }
.training-price span { font-size: 12px; color: var(--muted); }

/* ---------- 筛选 / 标签 ---------- */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tabs { display: flex; gap: 4px; background: #e8e8e8; padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.filter-tabs a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-tabs a.active { background: var(--ink); color: #fff; }
.filter-tabs a:hover:not(.active) { color: var(--ink); }
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.filter-form .input, .filter-form .select { min-height: 38px; border-radius: 999px; padding: 0 14px; font-size: 14px; background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .icon { width: 13px; height: 13px; }
.hub-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.hub-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 4px; margin-right: 18px; font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.hub-tabs a.active { color: var(--ink); border-bottom-color: var(--orange); }
.hub-tabs a .icon { width: 16px; height: 16px; }

/* ---------- 表单 ---------- */
.form-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 800; letter-spacing: .03em; color: #555555; }
.field > label .req { color: var(--orange); }
.input, .select, .textarea {
    width: 100%; border: 1px solid #e8e8e8; background: #ffffff; border-radius: 12px;
    padding: 11px 13px; min-height: 44px; font-size: 15px; outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(0,0,255,.1); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c7772' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.hint { font-size: 12px; color: #777777; line-height: 1.5; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #555555; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--orange); margin-top: 1px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 8px; grid-column: span 2; }
.form-section-title { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 8px 0 2px; grid-column: span 2; }
.option-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option span { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--muted); transition: all .15s; cursor: pointer; }
.option input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.form-note { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); display: flex; gap: 9px; grid-column: span 2; }
.form-note .icon { width: 16px; height: 16px; color: var(--orange); flex: 0 0 auto; }

/* ---------- 富文本编辑器 / 图片上传 ---------- */
.rich-editor { border: 1px solid #e8e8e8; border-radius: 14px; background: #ffffff; overflow: hidden; }
.rich-toolbar {
    display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
    padding: 8px 10px; border-bottom: 1px solid #e8e8e8; background: #ffffff;
}
.rich-toolbar button {
    min-width: 30px; height: 28px; padding: 0 7px; border: 1px solid transparent;
    border-radius: 6px; background: transparent; color: #555555; font-size: 13px;
}
.rich-toolbar button:hover { background: #fff; border-color: #e8e8e8; color: var(--ink); }
.rich-sep { width: 1px; height: 18px; background: #e8e8e8; margin: 0 4px; }
.rich-status { margin-left: auto; font-size: 11px; color: var(--teal); }
.rich-status-error { color: #000; }
.rich-content {
    min-height: 300px; max-height: 620px; overflow-y: auto; padding: 18px 20px;
    font-size: 16px; line-height: 1.9; color: #1f4d16; outline: none;
}
.rich-content:empty::before { content: attr(data-placeholder); color: #e8e8e8; pointer-events: none; }
.rich-content h2 { font-size: 24px; margin: 16px 0 10px; letter-spacing: -.03em; }
.rich-content h3 { font-size: 20px; margin: 14px 0 8px; }
.rich-content p { margin: 0 0 10px; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin: 10px 0; }
.rich-content li { margin-bottom: 5px; }
.rich-content blockquote { margin: 14px 0; padding: 6px 0 6px 16px; border-left: 3px solid var(--orange); color: #555555; }
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.rich-content a { color: var(--teal); text-decoration: underline; }
.rich-content pre { background: #111111; color: #a0ff61; border-radius: 10px; padding: 12px; overflow: auto; font-size: 14px; }
.rich-content hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.image-upload-row { display: flex; gap: 8px; align-items: center; }
.image-upload-row .input { flex: 1; }
.image-preview {
    margin-top: 9px; width: 150px; height: 110px; border-radius: 11px;
    border: 1px solid var(--line); overflow: hidden; background: #e8e8e8;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview:empty { display: none; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #777777; font-weight: 800; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #ffffff; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #e8e8e8; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #ffffff; }
.table .cell-main { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.table .cell-main .txt-strong { display: block; font-size: 14px; }
.table .cell-main small { display: block; font-size: 11px; color: var(--muted); }
.table .actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.table .actions .btn { min-height: 29px; padding: 0 10px; font-size: 12px; }
.table a.link { color: var(--teal); font-weight: 700; }
.table-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 会员中心 ---------- */
.member-hero {
    background: var(--ink); color: #fff; border-radius: 26px; padding: 34px;
    display: flex; align-items: center; gap: 22px; position: relative; overflow: hidden;
}
.member-hero::before { content: ""; position: absolute; right: -60px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(160,255,97,.18), transparent 65%); }
.member-hero > * { position: relative; z-index: 1; }
.member-id { flex: 1; min-width: 0; }
.member-id h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.member-id p { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 6px; }
.member-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.member-tags .badge { background: rgba(255,255,255,.12); color: #fff; }
.member-tags .badge-lime { background: var(--lime); color: var(--ink); }
.member-hero .btn { flex: 0 0 auto; }
.member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.member-stat { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.member-stat .txt-strong { font-family: var(--display); font-size: 30px; display: block; letter-spacing: -.04em; line-height: 1; }
.member-stat span { font-size: 12px; color: var(--muted); }
.member-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.member-menu a { display: flex; align-items: center; gap: 9px; padding: 13px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.member-menu a:hover { border-color: #e8e8e8; background: #fff; }
.member-menu .icon { width: 17px; height: 17px; color: var(--orange); }
.quick-list { display: flex; flex-direction: column; }
.quick-list a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e8e8e8; }
.quick-list a:last-child { border-bottom: 0; }
.quick-list .icon { color: var(--muted); width: 17px; height: 17px; }
.quick-list span { font-size: 14px; flex: 1; }
.quick-list small { font-size: 12px; color: var(--muted); }
.profile-avatar { display: flex; align-items: center; gap: 16px; }
.profile-avatar .hint { max-width: 420px; }

/* ---------- 排行榜 ---------- */
.rank-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rank-podium { text-align: center; padding: 24px 14px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); position: relative; }
.rank-podium.first { background: var(--ink); color: #fff; border-color: transparent; transform: translateY(-8px); }
.rank-podium.first .muted, .rank-podium.first .rank-stats span { color: rgba(255,255,255,.55); }
.rank-medal { font-family: var(--display); font-size: 30px; color: var(--orange); line-height: 1; }
.rank-podium.first .rank-medal { color: var(--lime); }
.rank-podium .avatar { margin: 10px auto 8px; }
.rank-podium .txt-strong { display: block; font-size: 17px; }
.rank-stats { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.rank-stats b { display: block; font-size: 17px; color: var(--ink); }
.rank-podium.first .rank-stats b { color: #fff; }
.rank-table-name { display: flex; align-items: center; gap: 9px; }
.rank-no { width: 24px; font-family: var(--display); font-size: 14px; color: #777777; }

/* ---------- 详情页通用 ---------- */
.detail-hero { border-radius: 26px; background: var(--ink); color: #fff; padding: 34px; position: relative; overflow: hidden; }
.detail-hero::before { content: ""; position: absolute; right: -50px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 50px rgba(255,255,255,.02); }
.detail-hero > * { position: relative; z-index: 1; }
.detail-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; color: rgba(255,255,255,.55); font-size: 14px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta .icon { width: 15px; height: 15px; }
.detail-body { font-size: 16px; line-height: 1.85; color: #1f4d16; }
.detail-body p { margin-bottom: 16px; }
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
.info-row .txt-strong { text-align: right; font-weight: 700; }
.side-card { position: sticky; top: 96px; }
.buy-box { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
.buy-price { font-family: var(--display); font-size: 36px; color: var(--orange); letter-spacing: -.04em; line-height: 1; }
.buy-price small { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; display: block; margin-top: 5px; }
.contact-box { background: #ffffff; border-radius: 14px; padding: 14px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.contact-box .icon { color: var(--orange); width: 18px; height: 18px; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -23px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--paper); }
.timeline-item .txt-strong { font-size: 14px; display: block; }
.timeline-item small { font-size: 12px; color: var(--muted); }

/* ---------- 活动 / 动态 ---------- */
.activity { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8e8e8; }
.activity:last-child { border-bottom: 0; }
.activity-body { flex: 1; min-width: 0; }
.activity-body p { font-size: 14px; }
.activity-body small { font-size: 12px; color: var(--muted); }
.activity-score { font-family: var(--display); font-size: 16px; white-space: nowrap; }

/* ---------- 提示 / Toast ---------- */
.toast-stack { position: fixed; top: 86px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast {
    display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 13px;
    background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease both;
}
.toast-success { background: #1f4d16; }
.toast-error { background: #0000ff; }
.toast-info { background: #0000cc; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: 0 0 auto; }
.toast-icon .icon { width: 12px; height: 12px; }
.toast-close { background: none; border: 0; color: rgba(255,255,255,.55); padding: 0; margin-left: auto; display: grid; place-items: center; }
.toast-close .icon { width: 13px; height: 13px; }
.toast.is-out { animation: fadeOut .25s ease both; }

/* ---------- 登录 / 注册 ---------- */
.auth-body { background: var(--ink); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-aside {
    position: relative; overflow: hidden; padding: 48px; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(circle at 20% 10%, rgba(160,255,97,.12), transparent 35%), var(--ink);
}
.auth-aside::after {
    content: ""; position: absolute; right: -120px; bottom: -180px; width: 480px; height: 480px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.02);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-quote { max-width: 520px; }
.auth-quote h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.08; font-weight: 900; letter-spacing: -.05em; }
.auth-quote h2 em { font-style: normal; color: var(--lime); }
.auth-quote p { color: rgba(255,255,255,.55); font-size: 15px; margin-top: 18px; max-width: 400px; }
.auth-mini-stats { display: flex; gap: 30px; margin-top: 34px; }
.auth-mini-stats b { font-family: var(--display); font-size: 26px; display: block; }
.auth-mini-stats span { font-size: 12px; color: rgba(255,255,255,.45); }
.auth-panel { background: var(--paper); padding: 40px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { padding: 0; margin-bottom: 34px; color: var(--ink); }
.auth-card .brand-mark { color: #fff; }
.auth-card h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.auth-card > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.auth-alt a { color: var(--orange); font-weight: 700; }
.wechat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border-radius: 999px; background: #2f7a1f; color: #fff; font-size: 15px; font-weight: 700; }
.wechat-btn:hover { background: #2f7a1f; }
.divider { display: flex; align-items: center; gap: 10px; color: #777777; font-size: 12px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-accounts { margin-top: 18px; background: #ffffff; border: 1px dashed #e8e8e8; border-radius: 12px; padding: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.demo-accounts .txt-strong { color: var(--ink); }

/* ---------- 管理后台 ---------- */
.admin-body { background: #e8e8e8; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-side {
    width: 238px; position: fixed; inset: 0 auto 0 0; z-index: 40;
    background: #111111; color: #fff; padding: 26px 16px 20px; display: flex; flex-direction: column;
    background-image: radial-gradient(circle at 100% 0%, rgba(0,0,255,.12), transparent 34%);
}
.brand-admin .brand-mark { background: var(--lime); color: var(--ink); }
.admin-main { margin-left: 238px; width: calc(100% - 238px); min-height: 100vh; }
.admin-top {
    height: 88px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--line); background: rgba(242,238,228,.9); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 20;
}
.admin-top h1 { font-size: 24px; font-weight: 800; }
.admin-top .eyebrow { margin-bottom: 4px; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-content { padding: 28px 30px 50px; max-width: 1600px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.admin-stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.admin-stat .icon { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; color: #e8e8e8; }
.admin-stat .txt-strong { font-family: var(--display); font-size: 30px; display: block; line-height: 1; letter-spacing: -.04em; }
.admin-stat span { font-size: 12px; color: var(--muted); display: block; margin-top: 5px; }
.admin-stat small { font-size: 11px; color: #777777; }
.admin-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { font-size: 17px; }
.admin-panel-body { padding: 18px; }
.admin-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filters .input, .admin-filters .select { min-height: 38px; padding: 0 12px; font-size: 13px; width: auto; min-width: 130px; }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding: 10px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 40px; border-radius: 7px 7px 3px 3px; background: var(--ink); min-height: 3px; transition: height .3s; }
.chart-col:nth-child(7) .chart-bar { background: var(--primary); }
.chart-col span { font-size: 11px; color: var(--muted); }
.chart-col b { font-size: 12px; }

/* ---------- VIP / 钱包 / 支付 ---------- */
.vip-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(160,255,97,.2), transparent 26%),
        linear-gradient(120deg, #111111, #111111 70%, #111111);
}
.vip-crown {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px;
    background: var(--lime); color: var(--ink); font-size: 14px; letter-spacing: .03em;
    vertical-align: 6px; margin-left: 6px;
}
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.benefit-card {
    display: flex; align-items: center; gap: 12px; padding: 15px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.benefit-icon {
    width: 38px; height: 38px; border-radius: 12px; background: #e8e8e8;
    display: grid; place-items: center; color: var(--orange); flex: 0 0 auto;
}
.benefit-icon .icon { width: 18px; height: 18px; }
.benefit-card .txt-strong { display: block; font-size: 15px; }
.benefit-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.benefit-card .badge { margin-left: auto; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.plan-card {
    position: relative; padding: 28px; background: var(--card); border: 1px solid var(--line);
    border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
}
.plan-featured {
    background: var(--ink); color: #fff; border-color: transparent;
    box-shadow: 0 30px 60px -32px rgba(17,17,17,.8);
}
.plan-featured .muted, .plan-featured .plan-desc, .plan-featured .plan-list li { color: rgba(255,255,255,.55); }
.plan-badge {
    position: absolute; right: -34px; top: 18px; background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 800; padding: 4px 38px; transform: rotate(38deg);
}
.plan-card h3 { font-size: 25px; margin-bottom: 8px; }
.plan-price { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: -.05em; margin: 8px 0 12px; }
.plan-price small { font-family: var(--font); font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-featured .plan-price { color: var(--lime); }
.plan-featured .plan-price small { color: rgba(255,255,255,.45); }
.plan-desc { font-size: 13px; color: var(--muted); min-height: 36px; }
.plan-list { margin: 18px 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-list li { font-size: 13px; color: #555555; display: flex; align-items: center; gap: 7px; }
.plan-list li::before { content: "✓"; color: var(--teal); font-weight: 900; font-size: 12px; }
.plan-featured .plan-list li::before { color: var(--lime); }
.plan-card form { margin-top: auto; }
.vip-field { margin-bottom: 10px; }
.vip-field-label {
    display: block; margin-bottom: 5px; color: var(--muted);
    font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.vip-field .input, .vip-field .select {
    width: 100%; min-height: 38px; height: 38px; padding: 0 11px;
    border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13px;
}
.vip-field-hint { display: block; margin-top: 5px; color: #777777; font-size: 10px; line-height: 1.5; }
.plan-featured .vip-field-label { color: rgba(255,255,255,.48); }
.plan-featured .vip-field-hint { color: rgba(255,255,255,.35); }

/* Featured plan: improve secondary text contrast */
.plan-featured .eyebrow { color: var(--lime); }
.plan-featured .plan-desc,
.plan-featured .plan-list li,
.plan-featured .muted { color: rgba(255,255,255,.8); }
.plan-featured .plan-price small { color: rgba(255,255,255,.72); }
.plan-featured .vip-field-label { color: rgba(255,255,255,.8); }
.plan-featured .vip-field-hint { color: rgba(255,255,255,.6); }
.plan-featured .vip-field .input,
.plan-featured .vip-field .select {
    background: #ffffff; color: #111111; border-color: rgba(255,255,255,.18);
}

.wallet-hero {
    background: var(--ink); color: #fff; border-radius: 26px; padding: 30px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    position: relative; overflow: hidden;
}
.wallet-hero::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 260px; height: 260px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 40px rgba(255,255,255,.025);
}
.wallet-hero > * { position: relative; z-index: 1; }
.wallet-balance { font-family: var(--display); font-size: clamp(44px, 6vw, 66px); line-height: 1; letter-spacing: -.05em; margin: 8px 0; }
.wallet-hero p { color: rgba(255,255,255,.45); }
.recharge-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.recharge-grid form { display: block; }
.recharge-card {
    width: 100%; border: 1px solid var(--line); background: #ffffff; border-radius: 14px;
    padding: 16px 10px; text-align: center; transition: border-color .18s, background .18s;
}
.recharge-card:hover { border-color: var(--orange); background: #ffffff; }
.recharge-card .txt-strong { display: block; font-size: 21px; color: var(--orange); letter-spacing: -.03em; }
.recharge-card span { font-size: 11px; color: var(--muted); }
.tx-list { display: flex; flex-direction: column; }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; }
.tx-row:last-child { border-bottom: 0; }
.tx-icon {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-size: 20px; font-weight: 800; flex: 0 0 auto;
}
.tx-icon.in { background: var(--teal-soft); color: var(--teal); }
.tx-icon.out { background: var(--orange-soft); color: var(--orange); }
.tx-row .txt-strong { display: block; font-size: 14px; }
.tx-row small { display: block; font-size: 11px; color: var(--muted); }
.tx-amount { font-family: var(--display); font-size: 16px; white-space: nowrap; }
.tx-amount.in { color: var(--teal); }
.tx-amount.out { color: var(--orange); }

.pay-page { min-height: 100vh; background: #ffffff; padding: 26px; }
.pay-top { max-width: 560px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pay-top .brand { color: var(--ink); padding: 0; }
.pay-card {
    max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
    border-radius: 26px; padding: 34px; box-shadow: var(--shadow-lg);
}
.pay-card h1 { font-size: 30px; margin: 4px 0 8px; }
.pay-amount { font-family: var(--display); font-size: 54px; letter-spacing: -.06em; line-height: 1.1; margin: 18px 0 6px; color: var(--ink); }
.pay-panel { margin-top: 24px; padding: 24px; border: 1px dashed #e8e8e8; border-radius: 18px; text-align: center; background: #ffffff; }
.pay-panel h3 { font-size: 20px; margin: 8px 0; }
.pay-panel .btn { margin-top: 16px; }
.pay-icon {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto;
    background: var(--orange-soft); color: var(--orange); display: grid; place-items: center;
    font-weight: 900; font-size: 14px; letter-spacing: .04em;
}
.pay-qr { width: 240px; height: 240px; margin: 16px auto; border-radius: 12px; border: 1px solid var(--line); }
.pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pay-foot span { display: inline-flex; align-items: center; gap: 5px; }
.pay-foot .icon { width: 13px; height: 13px; }
.pay-result { text-align: center; }
.pay-result .info-list { margin-left: auto; margin-right: auto; }
.pay-success-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--teal-soft); color: var(--teal); display: grid; place-items: center;
}
.pay-success-icon .icon { width: 34px; height: 34px; }

@media (max-width: 900px) {
    .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .plan-grid { grid-template-columns: 1fr; }
    .plan-featured { order: -1; }
}
@media (max-width: 640px) {
    .benefit-grid { grid-template-columns: 1fr; }
    .recharge-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pay-page { padding: 16px; }
    .pay-card { padding: 24px 20px; }
    .pay-amount { font-size: 44px; }
    .wallet-hero { flex-direction: column; }
}
/* ---------- 优惠券 / 积分等级 ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.coupon-card {
    display: flex; align-items: stretch; overflow: hidden;
    background: var(--card); border: 1px solid #e8e8e8; border-radius: 16px;
    position: relative;
}
.coupon-card::before, .coupon-card::after {
    content: ""; position: absolute; left: 118px; width: 14px; height: 14px;
    background: var(--paper); border-radius: 50%; border: 1px solid #e8e8e8; z-index: 2;
}
.coupon-card::before { top: -8px; }
.coupon-card::after { bottom: -8px; }
.coupon-value {
    width: 124px; flex: 0 0 auto; background: #ffffff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px 8px; border-right: 1px dashed #e8e8e8;
}
.coupon-value .txt-strong { font-family: var(--display); font-size: 29px; color: var(--orange); letter-spacing: -.05em; line-height: 1; }
.coupon-value > span { font-size: 13px; color: var(--orange); }
.coupon-value small { font-size: 11px; color: #000; margin-top: 6px; text-align: center; }
.coupon-body { padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.coupon-body .txt-strong { font-size: 15px; line-height: 1.4; }
.coupon-body .badge { align-self: flex-start; margin-top: auto; }
.coupon-muted { opacity: .62; filter: grayscale(.2); }
.level-hero {
    display: flex; align-items: center; gap: 20px; padding: 28px 30px;
    border-radius: 26px; background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.level-hero::after { content: ""; position: absolute; right: -60px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(160,255,97,.2), transparent 65%); }
.level-hero > * { position: relative; z-index: 1; }
.level-icon {
    width: 74px; height: 74px; border-radius: 22px; background: rgba(255,255,255,.1);
    display: grid; place-items: center; font-size: 40px; flex: 0 0 auto;
}
.level-hero h2 { font-size: 32px; color: #fff; margin: 2px 0 4px; }
.level-hero p { color: rgba(255,255,255,.5); }
.level-progress { height: 5px; background: rgba(255,255,255,.15); border-radius: 99px; margin-top: 14px; max-width: 440px; overflow: hidden; }
.level-progress span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }
.level-points { text-align: right; }
.level-points .txt-strong { display: block; font-family: var(--display); font-size: 36px; color: var(--lime); letter-spacing: -.04em; }
.level-points span { font-size: 11px; color: rgba(255,255,255,.4); }
.level-list { display: flex; flex-direction: column; }
.level-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8e8e8; opacity: .55; }
.level-row:last-child { border-bottom: 0; }
.level-row.unlocked { opacity: 1; }
.level-emoji { width: 38px; height: 38px; border-radius: 12px; background: #e8e8e8; display: grid; place-items: center; font-size: 21px; }
.level-row .txt-strong { display: block; font-size: 15px; }
.level-row small { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
    .coupon-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .coupon-grid { grid-template-columns: 1fr; }
    .level-hero { flex-wrap: wrap; }
    .level-points { text-align: left; }
}

.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.error-page .brand { margin-bottom: 30px; }
.error-code { font-family: var(--display); font-size: 102px; line-height: 1; color: var(--orange); letter-spacing: -.06em; }
.error-page h1 { font-size: 30px; margin: 10px 0; }
.error-page p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .hero { grid-template-columns: 1fr .55fr; padding: 38px; }
    .stat-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .arena-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .market-grid, .training-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .admin-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1020px) {
    :root { --sidebar: 0px; }
    .sidebar {
        width: 280px; transform: translateX(-100%); transition: transform .28s ease;
        box-shadow: 30px 0 60px -30px rgba(0,0,0,.45);
    }
    .sidebar.is-open { transform: translateX(0); }
    .app-main { margin-left: 0; width: 100%; }
    .topbar { height: 64px; padding: 0 20px; }
    .mobile-menu-btn { display: inline-grid; }
    .mobile-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; }
    .mobile-brand .icon { width: 21px; height: 21px; color: var(--orange); }
    .topbar-note { display: none; }
    .topbar-actions .hide-sm { display: none; }
    .page { padding: 24px 20px 86px; }
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
        background: rgba(255,253,248,.96); backdrop-filter: blur(14px);
        border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #777777; padding: 5px 0; border-radius: 10px; }
    .bottom-nav a .icon { width: 20px; height: 20px; }
    .bottom-nav a.active { color: var(--orange); }
    .mobile-scrim { display: none; position: fixed; inset: 0; background: rgba(8,20,16,.45); z-index: 39; }
    .mobile-scrim.is-open { display: block; }
    .site-footer { display: none; }
    .split { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .admin-side { width: 220px; }
    .admin-main { margin-left: 220px; width: calc(100% - 220px); }
}
@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 30px 24px; }
    .hero-art { display: none; }
    .hero h1 { font-size: 42px; }
    .hero-stats { gap: 22px; margin-top: 28px; }
    .grid-2, .grid-3, .grid-4, .booking-grid, .market-grid, .training-grid, .arena-grid { grid-template-columns: 1fr; }
    .stat-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .page-head { flex-direction: column; align-items: flex-start; }
    .section-head { align-items: flex-start; }
    .filter-form { margin-left: 0; width: 100%; }
    .filter-form .input, .filter-form .select { flex: 1; min-width: 100px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2, .form-actions, .form-section-title, .form-note { grid-column: span 1; }
    .member-hero { flex-direction: column; align-items: flex-start; padding: 26px; }
    .member-stats { grid-template-columns: repeat(2, 1fr); }
    .member-menu { grid-template-columns: repeat(2, 1fr); }
    .rank-hero { grid-template-columns: 1fr; }
    .rank-podium.first { transform: none; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-panel { min-height: 100vh; padding: 28px 22px; }
    .toast-stack { top: 72px; left: 14px; right: 14px; max-width: none; }
    .topbar-actions .btn span { display: none; }
    .topbar-actions .btn { padding: 0 12px; }
    .article-cover { height: 190px; }
    .admin-side { display: none; }
    .admin-main { margin-left: 0; width: 100%; }
    .admin-top { padding: 0 18px; height: 76px; }
    .admin-content { padding: 20px 14px 40px; }
    .admin-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .chart { gap: 6px; }
}
@media (max-width: 480px) {
    .page { padding: 18px 14px 82px; }
    .topbar { padding: 0 14px; }
    .hero { padding: 26px 20px; border-radius: 24px; }
    .hero h1 { font-size: 36px; }
    .hero-actions .btn { flex: 1; }
    .stat-grid, .quick-grid { gap: 9px; }
    .stat-card { padding: 15px; }
    .quick-card { padding: 17px; min-height: 126px; }
    .booking-card { padding: 16px; }
    .member-stats { gap: 8px; }
    .member-stat { padding: 14px; }
    .member-stat .txt-strong { font-size: 25px; }
    .option-row { grid-template-columns: 1fr; }
    .toast-stack { top: 66px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 动效 ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   夜间模式 · Night Court
   ========================================================= */
html[data-theme="night"] {
    --paper: #111111;
    --card: #111111;
    --ink: #ffffff;
    --ink-2: #a0ff61;
    --ink-3: #a0ff61;
    --muted: #777777;
    --line: #1f4d16;
    --line-dark: rgba(255,255,255,.12);
    --orange: #e8e8e8;
    --orange-soft: #111111;
    --lime: #a0ff61;
    --teal: #7bbf43;
    --teal-soft: #111111;
    --blue: #d9d9d9;
    --shadow: 0 18px 40px -26px rgba(0,0,0,.8);
    --shadow-lg: 0 32px 80px -36px rgba(0,0,0,.9);
    color-scheme: dark;
}
html[data-theme="night"] body {
    background: var(--paper);
    color: var(--ink);
}
html[data-theme="night"] body::before {
    background:
        radial-gradient(ellipse at 85% 5%, rgba(0,0,255,.12), transparent 45%),
        radial-gradient(ellipse at 15% 90%, rgba(47,122,31,.16), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(160,255,97,.03), transparent 62%);
}
html[data-theme="night"] ::selection { background: var(--primary); color: #fff; }
html[data-theme="night"] .site-header { box-shadow: 0 18px 50px -26px rgba(0,0,0,.9); }
html[data-theme="night"] .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,255,.7), rgba(160,255,97,.55), transparent);
}
html[data-theme="night"] .announcement {
    background: linear-gradient(90deg, #111111, #111111);
    border-color: #1f4d16; color: #a0ff61;
}
html[data-theme="night"] .hero-announcement .announcement {
    background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.72);
}
html[data-theme="night"] .user-menu-panel {
    background: #111111; color: var(--ink); border-color: #1f4d16;
    box-shadow: 0 30px 70px -26px rgba(0,0,0,.9);
}
html[data-theme="night"] .user-menu-panel::before { background: #111111; border-color: #1f4d16; }
html[data-theme="night"] .user-menu-panel a { color: #a0ff61; }
html[data-theme="night"] .user-menu-panel a:hover { background: #111111; color: #fff; }
html[data-theme="night"] .user-menu-head { border-color: #1f4d16; }

/* 夜间：输入与表单 */
html[data-theme="night"] .input,
html[data-theme="night"] .select,
html[data-theme="night"] .textarea,
html[data-theme="night"] .filter-form .input,
html[data-theme="night"] .filter-form .select,
html[data-theme="night"] .chip {
    background: #111111; border-color: #1f4d16; color: #a0ff61;
}
html[data-theme="night"] .input::placeholder,
html[data-theme="night"] .textarea::placeholder { color: #555555; }
html[data-theme="night"] .field > label,
html[data-theme="night"] .label,
html[data-theme="night"] .checkbox { color: #7bbf43; }
html[data-theme="night"] .hint { color: #777777; }
html[data-theme="night"] .form-note { background: #111111; border-color: #1f4d16; color: #7bbf43; }
html[data-theme="night"] .btn-ghost { color: var(--ink); border-color: #1f4d16; }
html[data-theme="night"] .btn-ghost:hover { background: #111111; border-color: #2f7a1f; }
html[data-theme="night"] .btn-light { background: #111111; color: var(--ink); }
html[data-theme="night"] .btn-dark { background: #a0ff61; color: #111111; }
html[data-theme="night"] .icon-btn { background: #111111; border-color: #1f4d16; }
html[data-theme="night"] .rich-editor { background: #111111; border-color: #1f4d16; }
html[data-theme="night"] .rich-toolbar { background: #111111; border-color: #1f4d16; }
html[data-theme="night"] .rich-toolbar button { color: #7bbf43; }
html[data-theme="night"] .rich-toolbar button:hover { background: #111111; border-color: #1f4d16; color: #fff; }
html[data-theme="night"] .rich-sep { background: #1f4d16; }
html[data-theme="night"] .rich-content blockquote,
html[data-theme="night"] .article-body blockquote,
html[data-theme="night"] .detail-body blockquote { color: #777777; }

/* 夜间：卡片、商城与列表 */
html[data-theme="night"] .card,
html[data-theme="night"] .stat-card,
html[data-theme="night"] .quick-card,
html[data-theme="night"] .match-card,
html[data-theme="night"] .booking-card,
html[data-theme="night"] .arena-card,
html[data-theme="night"] .market-card,
html[data-theme="night"] .training-card,
html[data-theme="night"] .member-stat,
html[data-theme="night"] .member-menu a,
html[data-theme="night"] .rank-podium,
html[data-theme="night"] .table-wrap,
html[data-theme="night"] .admin-panel {
    background: var(--card); border-color: var(--line);
}
html[data-theme="night"] .card:hover,
html[data-theme="night"] .market-card:hover,
html[data-theme="night"] .training-card:hover,
html[data-theme="night"] .booking-card:hover { border-color: #1f4d16; }
html[data-theme="night"] .card-dark,
html[data-theme="night"] .quick-card.dark,
html[data-theme="night"] .member-hero,
html[data-theme="night"] .detail-hero,
html[data-theme="night"] .rank-podium.first,
html[data-theme="night"] .level-hero,
html[data-theme="night"] .wallet-hero { background: #111111; color: var(--ink); }
html[data-theme="night"] .hero { background: #111111; }
html[data-theme="night"] .news-hero { background: #111111; }
html[data-theme="night"] .booking-date { background: #111111; color: #ffffff; }
html[data-theme="night"] .booking-date.is-soon { background: var(--primary); }
html[data-theme="night"] .filter-tabs { background: #111111; }
html[data-theme="night"] .filter-tabs a.active,
html[data-theme="night"] .chip.active,
html[data-theme="night"] .option input:checked + span {
    background: var(--lime); color: #111111; border-color: var(--lime);
}
html[data-theme="night"] .filter-tabs a:hover:not(.active) { color: var(--lime); }
html[data-theme="night"] .set-chip { background: #111111; color: #777777; }
html[data-theme="night"] .set-chip.win { background: #1f4d16; color: #fff; }
html[data-theme="night"] .set-chip.loss { background: #111111; color: #777777; }
html[data-theme="night"] .progress { background: #111111; }
html[data-theme="night"] .match-meta,
html[data-theme="night"] .booking-foot,
html[data-theme="night"] .market-seller,
html[data-theme="night"] .training-price { border-color: #1f4d16; }
html[data-theme="night"] .match-row { border-color: #1f4d16; }
html[data-theme="night"] .match-card.is-live { background: linear-gradient(180deg, #111111, var(--card)); }
html[data-theme="night"] .market-cover .badge { background: rgba(7,15,12,.66); color: #fff; }
html[data-theme="night"] .market-cover.cat-rubber { background: linear-gradient(135deg, #111111, #111111); }
html[data-theme="night"] .market-cover.cat-blade { background: linear-gradient(135deg, #111111, #111111); }
html[data-theme="night"] .market-cover.cat-shoes { background: linear-gradient(135deg, #111111, #111111); }
html[data-theme="night"] .market-cover.cat-ball { background: linear-gradient(135deg, #111111, #111111); }
html[data-theme="night"] .training-card::before { opacity: .35; }
html[data-theme="night"] .empty {
    background: rgba(255,255,255,.025); border-color: #1f4d16; color: var(--muted);
}
html[data-theme="night"] .contact-box,
html[data-theme="night"] .demo-accounts,
html[data-theme="night"] .recharge-card {
    background: #111111; border-color: #1f4d16;
}
html[data-theme="night"] .member-menu a:hover,
html[data-theme="night"] .recharge-card:hover { background: #111111; border-color: #1f4d16; }

/* 夜间：表格与提示 */
html[data-theme="night"] .table th {
    background: #111111; color: #777777; border-color: #1f4d16;
}
html[data-theme="night"] .table td { border-color: #111111; }
html[data-theme="night"] .table tr:hover td { background: #111111; }
html[data-theme="night"] .table-wrap { background: var(--card); }
html[data-theme="night"] .badge-gray { background: #111111; color: #777777; }
html[data-theme="night"] .badge-blue { background: #111111; color: #d9d9d9; }
html[data-theme="night"] .badge-green { background: #111111; color: #7bbf43; }
html[data-theme="night"] .badge-orange { background: #111111; color: #e8e8e8; }
html[data-theme="night"] .badge-dark { background: #a0ff61; color: #111111; }
html[data-theme="night"] .badge-lime { background: var(--lime); color: #111111; }
html[data-theme="night"] .main-nav .nav-link.active .nav-hot { background: #111111; color: var(--lime); }
html[data-theme="night"] .toast { box-shadow: 0 20px 50px -20px #000; }
html[data-theme="night"] .site-footer { color: #555555; border-color: #111111; }
html[data-theme="night"] .pay-page { background: var(--paper); }
html[data-theme="night"] .pay-panel { background: #111111; border-color: #1f4d16; }
html[data-theme="night"] .level-hero,
html[data-theme="night"] .wallet-hero { border: 1px solid #111111; }

html[data-theme="night"] .badge { background: #111111; color: var(--muted); }
html[data-theme="night"] .stat-card .stat-icon { background: #111111; color: #a0ff61; }
html[data-theme="night"] .stat-card:nth-child(2) .stat-icon { background: #111111; color: #e8e8e8; }
html[data-theme="night"] .stat-card:nth-child(3) .stat-icon { background: #111111; color: #7bbf43; }
html[data-theme="night"] .stat-card:nth-child(4) .stat-icon { background: #111111; color: #d9d9d9; }
html[data-theme="night"] .news-row { border-color: #111111; }
html[data-theme="night"] .btn-danger { background: #111111; color: #e8e8e8; }
html[data-theme="night"] .avatar-guest { background: #111111; color: #777777; }
html[data-theme="night"] .table-empty { color: #777777; }
html[data-theme="night"] .coupon-card { border-color: #000; }
html[data-theme="night"] .toast-success { background: #1f4d16; }
html[data-theme="night"] .toast-error { background: #0000ff; }
html[data-theme="night"] .toast-info { background: #0000cc; }
html[data-theme="night"] .site-header { background-image:
    radial-gradient(circle at 88% -20%, rgba(160,255,97,.14), transparent 36%),
    linear-gradient(100deg, rgba(0,0,255,.1), transparent 42%);
}
html[data-theme="night"] .main-nav .nav-link.active { box-shadow: 0 0 24px -8px rgba(160,255,97,.55); }

/* 主题切换与页面入场 */
.theme-toggle:active { transform: scale(.92); }
.card, .stat-card, .quick-card, .match-card, .booking-card, .market-card,
.training-card, .input, .select, .textarea, .member-menu a, .table th, .table td,
.announcement, .form-note, .empty, .site-footer {
    transition: background-color .28s ease, border-color .28s ease, color .28s ease;
}
.page > .page-head,
.page > .hero,
.page > .announcement { animation: pageIn .42s cubic-bezier(.2,.7,.2,1) both; }
.page > .section { animation: pageIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Clean editorial refinement · spacing & light header
   ========================================================= */
.site-header-inner { min-height: 84px; padding: 0 44px; gap: 30px; }
.app-main-top .page { max-width: 1460px; padding: 48px 44px 84px; }
.page-head { margin-bottom: 40px; gap: 30px; align-items: flex-start; }
.page-head h1 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -.045em; }
.page-head p { margin-top: 10px; font-size: 16px; line-height: 1.8; max-width: 680px; }
.page-head-actions { gap: 12px; padding-top: 4px; }
.eyebrow { letter-spacing: .2em; margin-bottom: 10px; }
.section { margin-top: 68px; }
.section-tight { margin-top: 38px; }
.section-head { margin-bottom: 26px; gap: 22px; }
.section-head h2 { font-size: clamp(26px, 2.4vw, 34px); }
.section-head p { margin-top: 8px; line-height: 1.7; }
.card-pad { padding: 30px; }
.form-card { padding: 40px; }
.form-grid { gap: 24px; }
.split { gap: 28px; }
.stack { gap: 22px; }

/* 赛事广播：左右两栏等高 */
.news-split { align-items: stretch; }
.news-split > .news-hero,
.news-split > .card { height: 100%; }
.news-split > .card { display: flex; flex-direction: column; }
.news-split .news-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 760px) {
    .news-split > .news-hero,
    .news-split > .card { height: auto; }
}

.hero { padding: 56px; border-radius: 34px; }
.hero h1 { letter-spacing: -.05em; }
.hero p.lead { margin-top: 22px; line-height: 1.8; max-width: 520px; }
.hero-actions { margin-top: 32px; gap: 12px; }
.hero-stats { gap: 40px; margin-top: 44px; padding-top: 28px; }
.hero-stat .txt-strong { font-size: 30px; }
.hero-note { padding: 12px 15px; }

.stat-grid, .quick-grid, .booking-grid, .arena-grid,
.market-grid, .training-grid, .grid-2, .grid-3, .grid-4 {
    gap: 20px;
}
.stat-card { padding: 26px; gap: 16px; border-radius: 20px; }
.quick-card { padding: 24px; border-radius: 22px; }
.quick-card .txt-strong { margin-top: 16px; }
.booking-card, .match-card, .arena-card, .market-card, .training-card {
    border-radius: 22px;
}
.booking-card { padding: 24px; }
.match-card { padding: 24px; }
.market-body { padding: 20px; }
.market-seller { margin-top: 16px; padding-top: 14px; }
.training-card { padding: 26px; gap: 14px; }

.button, .btn { letter-spacing: .01em; }
.btn { min-height: 44px; padding: 0 20px; }
.btn-sm { min-height: 36px; padding: 0 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; }

.filter-bar { margin-bottom: 28px; gap: 12px; }
.filter-tabs { padding: 5px; }
.filter-tabs a { padding: 8px 15px; }
.hub-tabs { margin-bottom: 30px; gap: 10px; }
.hub-tabs a { padding: 13px 4px; margin-right: 24px; }

.table th { padding: 15px 18px; }
.table td { padding: 16px 18px; }
.empty { padding: 64px 24px; }

.member-stats { gap: 18px; }
.member-stat { padding: 24px; }
.member-menu { gap: 10px; }
.member-menu a { padding: 15px; }

.ad-section { margin: 32px 0 36px; }
.ad-banner { min-height: 168px; padding: 32px 36px; border-radius: 28px; }
.ad-copy h3 { margin-top: 12px; }
.ad-copy p { margin-top: 9px; line-height: 1.75; }
.ad-cta { margin-top: 18px; padding: 8px 14px; }
.market-strip { margin: 0 0 28px; padding: 20px 24px; border-radius: 20px; }
.site-footer { padding: 26px 44px 36px; }

/* Day header: light, quiet, editorial */
html:not([data-theme="night"]) .site-header {
    background: rgba(251,249,244,.9);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
html:not([data-theme="night"]) .site-header::after {
    opacity: .45; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,255,.4), rgba(47,122,31,.25), transparent);
}
html:not([data-theme="night"]) .site-brand .brand-word .txt-strong { color: var(--ink); }
html:not([data-theme="night"]) .site-brand .brand-word small { color: #777777; }
html:not([data-theme="night"]) .main-nav .nav-link { color: #555555; }
html:not([data-theme="night"]) .main-nav .nav-link:hover { background: #e8e8e8; color: var(--ink); }
html:not([data-theme="night"]) .main-nav .nav-link.active { background: var(--ink); color: #fff; box-shadow: none; }
html:not([data-theme="night"]) .main-nav .nav-link.active .nav-hot { background: var(--lime); color: var(--ink); }
html:not([data-theme="night"]) .theme-toggle { background: #fff; border-color: var(--line); color: var(--ink); }
html:not([data-theme="night"]) .theme-toggle:hover { background: #e8e8e8; }
html:not([data-theme="night"]) .header-note { color: var(--muted); }
html:not([data-theme="night"]) .header-note small { color: #777777; border-color: var(--line); }
html:not([data-theme="night"]) .user-menu summary { background: #fff; border-color: var(--line); color: var(--ink); }
html:not([data-theme="night"]) .user-menu summary:hover { background: #ffffff; }
html:not([data-theme="night"]) .user-menu-name .txt-strong { color: var(--ink); }
html:not([data-theme="night"]) .user-menu-name small { color: var(--teal); }
html:not([data-theme="night"]) .user-menu summary > .icon { opacity: .35; }
html:not([data-theme="night"]) .site-header .btn-light { background: var(--ink); color: #fff; }
html:not([data-theme="night"]) .site-header .btn-light:hover { background: var(--ink-2); }
html:not([data-theme="night"]) .site-header .btn-ghost { border-color: var(--line); color: var(--ink); }
html:not([data-theme="night"]) .site-header .btn-ghost:hover { background: #e8e8e8; }

@media (max-width: 1020px) {
    .site-header-inner { min-height: 68px; padding: 0 22px; }
    .app-main-top .page { padding: 32px 22px 92px; }
    .page-head { margin-bottom: 30px; gap: 18px; }
    .section { margin-top: 52px; }
    .section-tight { margin-top: 30px; }
    .hero { padding: 40px 34px; border-radius: 28px; }
    .hero p.lead { margin-top: 16px; }
}
@media (max-width: 640px) {
    .site-header-inner { min-height: 62px; padding: 0 16px; }
    .app-main-top .page { padding: 26px 16px 96px; }
    .page-head { margin-bottom: 26px; }
    .page-head h1 { font-size: 33px; }
    .page-head p { font-size: 15px; line-height: 1.7; }
    .section { margin-top: 44px; }
    .section-head { margin-bottom: 18px; }
    .card-pad { padding: 22px; }
    .form-card { padding: 22px; }
    .hero { padding: 32px 24px; }
    .hero-stats { gap: 24px; margin-top: 32px; }
    .stat-grid, .quick-grid, .market-grid, .training-grid, .booking-grid { gap: 14px; }
    .stat-card { padding: 20px; }
    .quick-card { padding: 20px; }
    .ad-banner { padding: 22px; border-radius: 22px; }
    .ad-section { margin: 22px 0 26px; }
    .market-strip { padding: 18px; }
}

/* ---------- Desktop footer ---------- */
.site-footer {
    display: block; margin-top: 24px; padding: 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
}
.footer-main {
    width: 100%; max-width: 1460px; margin: 0 auto;
    padding: 54px 44px 44px;
    display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(100px, .5fr)) minmax(200px, .8fr);
    gap: 36px;
}
.footer-logo { padding: 0; margin-bottom: 18px; }
.footer-logo .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.footer-logo .brand-mark .icon { width: 21px; height: 21px; }
.footer-logo .brand-word .txt-strong { color: var(--ink); font-size: 21px; }
.footer-logo .brand-word small { color: var(--muted); letter-spacing: .12em; font-size: 10px; }
.footer-brand > p { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.footer-contact a, .footer-contact span {
    display: inline-flex; align-items: center; gap: 6px;
    color: #777777; font-size: 12px;
}
.footer-contact a:hover { color: var(--orange); }
.footer-contact .icon { width: 13px; height: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.footer-col h4 {
    margin: 0 0 5px; color: var(--ink); font-size: 12px; font-weight: 800;
    letter-spacing: .16em; text-transform: uppercase;
}
.footer-col a { color: var(--muted); font-size: 14px; width: fit-content; transition: color .18s, transform .18s; }
.footer-col a:hover { color: var(--orange); transform: translateX(2px); }
.footer-qr { padding-top: 4px; }
.footer-qr h4 {
    margin: 0 0 12px; color: var(--ink); font-size: 12px; font-weight: 800;
    letter-spacing: .16em; text-transform: uppercase;
}
.footer-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.qr-card {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 8px 7px 9px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.qr-card:hover { transform: translateY(-2px); border-color: #e8e8e8; box-shadow: 0 10px 22px -18px rgba(17,17,17,.45); }
.qr-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: #fff; }
.qr-card .txt-strong { font-size: 11px; color: #555555; font-weight: 700; }
.qr-placeholder {
    width: 100%; aspect-ratio: 1; border: 1px dashed #e8e8e8; border-radius: 7px;
    background: #e8e8e8; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: #777777;
}
.qr-placeholder .icon { width: 24px; height: 24px; opacity: .65; }
.qr-placeholder small { font-size: 10px; letter-spacing: .04em; }
.footer-qr > p { margin-top: 10px; font-size: 11px; color: #777777; }html[data-theme="night"] .footer-qr h4 { color: var(--ink); }
html[data-theme="night"] .qr-card { background: #fff; border-color: #fff; }
html[data-theme="night"] .qr-card .txt-strong { color: #555555; }
html[data-theme="night"] .qr-placeholder { background: #e8e8e8; border-color: #e8e8e8; }
html[data-theme="night"] .footer-qr > p { color: #555555; }

.qr-page { min-height: calc(100vh - 250px); display: grid; place-items: center; padding: 30px 0 50px; }
.qr-page-card {
    width: min(480px, 100%); text-align: center; padding: 42px 38px;
    background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.qr-page-card h1 { font-size: 32px; margin-bottom: 10px; }
.qr-page-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 340px; margin: 0 auto; }
.qr-page-image { width: 190px; height: 190px; margin: 26px auto 22px; padding: 9px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-page-image img { width: 100%; height: 100%; object-fit: contain; }
.qr-page-empty {
    margin: 26px auto 22px; width: 190px; height: 190px; border: 1px dashed #e8e8e8; border-radius: 18px;
    background: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    color: var(--muted);
}
.qr-page-empty .icon { width: 38px; height: 38px; color: #e8e8e8; }
.qr-page-empty .txt-strong { font-size: 15px; color: var(--ink); }
.qr-page-empty span { font-size: 12px; max-width: 150px; line-height: 1.6; }
.qr-page-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-bottom {
    width: 100%; max-width: 1460px; margin: 0 auto;
    padding: 20px 44px 24px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    color: #777777; font-size: 12px;
}
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal span + span::before { content: "·"; margin-right: 16px; color: #d5d5d5; }
html[data-theme="night"] .site-footer { background: #111111; border-color: var(--line); }
html[data-theme="night"] .footer-logo .brand-word .txt-strong { color: var(--ink); }
html[data-theme="night"] .footer-logo .brand-word small { color: #777777; }
html[data-theme="night"] .footer-col a { color: #777777; }
html[data-theme="night"] .footer-col a:hover { color: var(--lime); }
html[data-theme="night"] .footer-bottom { color: #555555; }
html[data-theme="night"] .footer-legal span + span::before { color: #1f4d16; }
@media (max-width: 1020px) {
    .site-footer { display: none; }
}

/* ---------- Filter toolbar ---------- */
.filter-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 0 0 30px; padding: 10px;
    border: 1px solid var(--line); border-radius: 18px;
    background: rgba(255, 254, 251, .62);
}
.filter-tabs {
    display: flex; align-items: center; gap: 3px; flex-wrap: nowrap;
    max-width: 100%; overflow-x: auto; scrollbar-width: none;
    background: #e8e8e8; padding: 4px; border-radius: 13px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs a {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.filter-tabs a.active { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(17,17,17,.3); }
.filter-tabs a:hover:not(.active) { color: var(--ink); }
.filter-form {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-left: auto; min-width: 0;
}
.filter-form .input, .filter-form .select {
    width: auto; min-width: 132px; height: 38px; min-height: 38px;
    border-radius: 10px; background: #fff; font-size: 13px;
}
.filter-form .btn { min-height: 38px; border-radius: 10px; }
.filter-form .input[type="search"] { min-width: 190px; }
html[data-theme="night"] .filter-bar { background: rgba(19,33,29,.72); }
html[data-theme="night"] .filter-tabs { background: #111111; }
html[data-theme="night"] .filter-tabs a.active { background: #1f4d16; color: var(--lime); box-shadow: none; }
html[data-theme="night"] .filter-form .input,
html[data-theme="night"] .filter-form .select { background: #111111; }
@media (max-width: 760px) {
    .filter-bar { align-items: stretch; padding: 8px; gap: 9px; }
    .filter-tabs { width: 100%; }
    .filter-form { margin-left: 0; width: 100%; }
    .section-head { flex-wrap: wrap; }
    .section-head .filter-form { flex: 1 1 100%; }
    .filter-form .input, .filter-form .select { flex: 1 1 120px; min-width: 0; width: auto; }
    .filter-form .input[type="search"] { min-width: 0; }
    .filter-form .btn { flex: 0 0 auto; }
}

/* ---------- Home hero: full bleed + header色 ---------- */
body { overflow-x: hidden; }
.hero-home {
    width: 100vw; max-width: none;
    margin: -48px calc(50% - 50vw) 0;
    padding: 64px max(44px, calc((100vw - 1460px) / 2 + 44px)) 72px;
    min-height: 560px;
    border-radius: 0; box-shadow: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .65fr);
    background: #ffffff; color: var(--ink);
}
.hero-home::before {
    background:
        radial-gradient(circle at 88% 14%, rgba(0,0,255,.1), transparent 26%),
        radial-gradient(circle at 74% 110%, rgba(47,122,31,.08), transparent 38%);
}
.hero-home { row-gap: 24px; }
.hero-announcement { grid-column: 1 / -1; width: 100%; position: relative; z-index: 2; }
.hero-announcement .announcement {
    margin: 0; background: rgba(255,254,251,.78); border-color: rgba(17,17,17,.1);
    color: #000; backdrop-filter: blur(10px);
}
.hero-home::after {
    border-color: rgba(17,17,17,.09);
    box-shadow: 0 0 0 70px rgba(17,17,17,.025), 0 0 0 140px rgba(17,17,17,.018);
}
.hero-home .hero-kicker {
    color: var(--teal); border-color: rgba(47,122,31,.28);
    background: rgba(255,255,255,.54);
}
.hero-home .hero-kicker .live-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(0,0,255,.12); }
.hero-home h1 { color: var(--ink); }
.hero-home h1 em { color: var(--orange); }
.hero-home h1 em::after { opacity: .22; }
.hero-home p.lead { color: var(--muted); }
.hero-home .hero-stats { border-top-color: rgba(17,17,17,.12); }
.hero-home .hero-stat .txt-strong { color: var(--ink); }
.hero-home .hero-stat span { color: #777777; }
.hero-home .hero-note {
    background: rgba(255,255,255,.65); border-color: rgba(17,17,17,.1);
    color: var(--muted); backdrop-filter: blur(10px);
}
.hero-home .hero-note .txt-strong { color: var(--teal); }
body.home-page .site-header { border-bottom-color: transparent; background: #ffffff; }
body.home-page .site-header::after { opacity: 0; }
html[data-theme="night"] body.home-page .site-header { background: #111111; }
html[data-theme="night"] .site-header { background-color: #111111; }
html[data-theme="night"] .hero-home { background: #111111; color: #fff; }
html[data-theme="night"] .hero-home .hero-kicker {
    color: var(--lime); border-color: rgba(160,255,97,.32); background: transparent;
}
html[data-theme="night"] .hero-home h1 { color: #fff; }
html[data-theme="night"] .hero-home h1 em { color: var(--lime); }
html[data-theme="night"] .hero-home p.lead { color: rgba(255,255,255,.6); }
html[data-theme="night"] .hero-home .hero-stats { border-top-color: rgba(255,255,255,.12); }
html[data-theme="night"] .hero-home .hero-stat .txt-strong { color: #fff; }
html[data-theme="night"] .hero-home .hero-stat span { color: rgba(255,255,255,.45); }
html[data-theme="night"] .hero-home .hero-note {
    background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7);
}
html[data-theme="night"] .hero-home .hero-note .txt-strong { color: var(--lime); }
@media (max-width: 1020px) {
    .hero-home {
        margin-top: -32px;
        padding: 44px 22px 52px;
        min-height: 480px;
    }
}
@media (max-width: 760px) {
    .hero-home { grid-template-columns: 1fr; min-height: auto; }
}
@media (max-width: 640px) {
    .hero-home { margin-top: -26px; padding: 36px 16px 44px; }
}

/* ---------- 擂主榜 podium refinement ---------- */
.rank-hero { gap: 16px; align-items: end; }
.rank-podium {
    position: relative; overflow: hidden; padding: 30px 18px 24px;
    border-radius: 24px; border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
    box-shadow: 0 14px 34px -30px rgba(17,17,17,.35);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.rank-podium:hover { transform: translateY(-4px); border-color: #e8e8e8; box-shadow: 0 22px 44px -30px rgba(17,17,17,.45); }
.rank-podium::before {
    content: ""; position: absolute; right: -56px; top: -70px; width: 180px; height: 180px;
    border-radius: 50%; border: 1px solid rgba(0,0,255,.12);
    box-shadow: 0 0 0 26px rgba(0,0,255,.025);
}
.rank-podium::after {
    content: attr(data-rank); position: absolute; right: 12px; bottom: -18px;
    font-family: var(--display); font-size: 88px; line-height: 1; letter-spacing: -.08em;
    color: rgba(17,17,17,.045); pointer-events: none;
}
.rank-podium > * { position: relative; z-index: 1; }
.rank-medal {
    position: absolute; top: 15px; left: 15px; z-index: 2;
    display: inline-flex; align-items: baseline; gap: 3px;
    padding: 4px 8px; border-radius: 999px;
    border: 1px solid rgba(0,0,255,.24); background: rgba(0,0,255,.07);
    color: var(--orange); font-size: 12px; line-height: 1;
}
.rank-medal::before { content: "NO."; font-size: 8px; letter-spacing: .08em; opacity: .65; }
.rank-podium .avatar {
    width: 92px; height: 92px; font-size: 32px;
    margin: 14px auto 12px;
    border: 0;
    box-shadow: none;
}
.rank-podium .txt-strong { font-size: 18px; letter-spacing: -.02em; }
.rank-podium .small.muted { margin-top: 5px; font-size: 12px; }
.rank-podium.first {
    background: linear-gradient(155deg, #111111 0%, #111111 66%, #1f4d16 100%);
    color: #fff; border-color: rgba(160,255,97,.24);
    transform: translateY(-14px);
    box-shadow: 0 24px 50px -28px rgba(17,17,17,.65);
}
.rank-podium.first:hover { transform: translateY(-18px); border-color: rgba(160,255,97,.5); }
.rank-podium.first::before { border-color: rgba(160,255,97,.22); box-shadow: 0 0 0 26px rgba(160,255,97,.035); }
.rank-podium.first::after { color: rgba(160,255,97,.12); }
.rank-podium.first .rank-medal {
    color: var(--lime); border-color: rgba(160,255,97,.28); background: rgba(160,255,97,.08);
}
.rank-podium.first .avatar {
    width: 108px; height: 108px; font-size: 37px;
    border: 0;
    box-shadow: none;
}
.rank-podium.first .muted,
.rank-podium.first .small.muted { color: rgba(255,255,255,.55); }
.rank-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(17,17,17,.09);
}
.rank-stats span { font-size: 11px; line-height: 1.5; }
.rank-stats span + span { border-left: 1px solid rgba(17,17,17,.09); }
.rank-stats b { display: block; margin-bottom: 2px; font-size: 18px; color: var(--ink); }
.rank-podium.first .rank-stats { border-top-color: rgba(255,255,255,.12); }
.rank-podium.first .rank-stats span { color: rgba(255,255,255,.5); }
.rank-podium.first .rank-stats span + span { border-left-color: rgba(255,255,255,.12); }
.rank-podium.first .rank-stats b { color: #fff; }
html[data-theme="night"] .rank-podium {
    background: linear-gradient(180deg, #111111 0%, #111111 100%);
    border-color: var(--line);
    box-shadow: 0 14px 34px -30px rgba(0,0,0,.8);
}
html[data-theme="night"] .rank-podium::after { color: rgba(238,245,237,.05); }
html[data-theme="night"] .rank-podium .avatar { border: 0; box-shadow: none; }
html[data-theme="night"] .rank-stats { border-top-color: rgba(255,255,255,.1); }
html[data-theme="night"] .rank-stats span + span { border-left-color: rgba(255,255,255,.1); }
html[data-theme="night"] .rank-podium.first {
    background: linear-gradient(155deg, #111111 0%, #111111 66%, #111111 100%);
    border-color: rgba(160,255,97,.3);
}
@media (max-width: 760px) {
    .rank-hero { grid-template-columns: 1fr; align-items: stretch; gap: 12px; }
    .rank-podium.first { transform: none; }
    .rank-podium.first:hover { transform: translateY(-3px); }
    .rank-podium .avatar { width: 78px; height: 78px; font-size: 27px; }
    .rank-podium.first .avatar { width: 88px; height: 88px; font-size: 31px; }
}

/* ---------- Home hero v2: court composition ---------- */
.hero-home {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .85fr);
    min-height: 610px;
    align-items: center;
    gap: clamp(30px, 4vw, 80px);
}
.hero-home .hero-copy { max-width: 690px; }
.hero-topline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-home .hero-kicker { margin-bottom: 0; }
.hero-season {
    font-size: 10px; letter-spacing: .18em; color: #777777;
    border-left: 1px solid rgba(17,17,17,.14); padding-left: 14px;
}
.hero-home .hero-art {
    position: relative; min-height: 500px; display: block;
}
.hero-court-lines {
    position: absolute; inset: 7% 0 8% 3%;
    border: 1px solid rgba(17,17,17,.1); border-radius: 26px;
    transform: rotate(-3deg);
}
.hero-court-lines::before {
    content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(17,17,17,.075); border-radius: 18px;
}
.hero-court-lines span:nth-child(1) {
    position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(17,17,17,.1);
}
.hero-court-lines span:nth-child(2) {
    position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(17,17,17,.1);
}
.hero-court-lines span:nth-child(3) {
    position: absolute; left: 50%; top: 50%; width: 76px; height: 76px;
    border: 1px solid rgba(17,17,17,.09); border-radius: 50%; transform: translate(-50%,-50%);
}
.hero-paddle-wrap {
    position: absolute; left: -24px; bottom: -34px; z-index: 2;
    transform: scale(.66) rotate(8deg); transform-origin: bottom left;
    opacity: .96; pointer-events: none;
}
.hero-paddle-wrap .paddle-art { transform: none; }
.hero-orbit-tag {
    position: absolute; left: 180px; top: 34px; white-space: nowrap;
    transform: rotate(-8deg); font-size: 11px; font-weight: 800; letter-spacing: .16em;
    color: var(--teal); border: 1px solid rgba(47,122,31,.24);
    padding: 5px 9px; border-radius: 999px; background: rgba(255,254,251,.7);
}
.hero-live-card {
    position: absolute; right: 0; top: 5%; z-index: 3;
    width: min(330px, 88%); padding: 22px;
    border-radius: 22px; border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(155deg, #111111, #1f4d16);
    color: #fff; box-shadow: 0 30px 60px -30px rgba(17,17,17,.65);
}
.hero-live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .08em; }
.hero-live-label { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.hero-live-label .live-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,255,.16); }
.hero-live-match { display: block; margin-top: 17px; }
.hero-live-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.hero-live-row span { font-size: 14px; color: rgba(255,255,255,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-live-row .txt-strong { font-family: var(--display); font-size: 27px; line-height: 1; color: #fff; }
.hero-live-row:nth-child(2) .txt-strong { color: var(--lime); }
.hero-live-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; font-size: 10px; color: rgba(255,255,255,.38); }
.hero-live-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; color: rgba(255,255,255,.38); }
.hero-live-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-weight: 700; }
.hero-live-foot .icon { width: 11px; height: 11px; }
.hero-live-match:hover { opacity: .9; }
.hero-live-empty { margin-top: 18px; }
.hero-live-empty .txt-strong { display: block; font-size: 22px; margin-bottom: 5px; }
.hero-live-empty span { display: block; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.hero-home .hero-note {
    position: absolute; right: 24px; bottom: 6px; z-index: 2;
    border-color: rgba(17,17,17,.1); background: rgba(255,254,251,.72);
}
.hero-home .hero-stat .txt-strong { font-size: clamp(24px, 2vw, 31px); }
.hero-home .hero-stat span { text-transform: uppercase; letter-spacing: .12em; }
html[data-theme="night"] .hero-season { color: rgba(255,255,255,.35); border-left-color: rgba(255,255,255,.14); }
html[data-theme="night"] .hero-court-lines,
html[data-theme="night"] .hero-court-lines::before { border-color: rgba(255,255,255,.08); }
html[data-theme="night"] .hero-court-lines span:nth-child(1) { border-left-color: rgba(255,255,255,.08); }
html[data-theme="night"] .hero-court-lines span:nth-child(2) { border-top-color: rgba(255,255,255,.08); }
html[data-theme="night"] .hero-court-lines span:nth-child(3) { border-color: rgba(255,255,255,.07); }
html[data-theme="night"] .hero-orbit-tag { color: var(--lime); border-color: rgba(160,255,97,.22); background: rgba(8,20,16,.5); }
html[data-theme="night"] .hero-live-card { background: linear-gradient(155deg, #111111, #111111); border-color: rgba(160,255,97,.16); }
html[data-theme="night"] .hero-home .hero-note { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
@media (max-width: 1020px) {
    .hero-home { grid-template-columns: 1fr 360px; min-height: 540px; }
    .hero-home .hero-art { min-height: 440px; }
    .hero-live-card { width: 300px; }
    .hero-paddle-wrap { transform: scale(.52) rotate(8deg); left: -40px; }
}
@media (max-width: 760px) {
    .hero-home { grid-template-columns: 1fr; min-height: auto; padding: 40px 22px 44px; }
    .hero-home .hero-art { min-height: 470px; margin-top: 8px; }
    .hero-live-card { top: 2%; right: 0; width: min(320px, 92%); }
    .hero-home .hero-note { right: 8px; }
}
@media (max-width: 640px) {
    .hero-home { padding: 32px 16px 40px; }
    .hero-home .hero-art { min-height: 450px; }
    .hero-live-card { width: 100%; padding: 18px; }
    .hero-paddle-wrap { opacity: .65; transform: scale(.42) rotate(8deg); left: -35px; bottom: -20px; }
    .hero-orbit-tag { left: auto; right: 12px; top: 32px; }
    .hero-home .hero-note { position: absolute; left: 16px; right: 16px; bottom: 0; }
}

/* ---------- Home hero v3: quiet editorial ---------- */
.hero-home {
    min-height: 640px;
    padding: 78px max(44px, calc((100vw - 1460px) / 2 + 44px)) 86px;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
    gap: clamp(36px, 5vw, 96px);
    align-items: center;
}
.hero-home::before {
    background:
        linear-gradient(90deg, transparent 0 49.96%, rgba(17,17,17,.035) 50%, transparent 50.04%),
        radial-gradient(circle at 14% 0%, rgba(0,0,255,.06), transparent 34%);
}
.hero-home::after { display: none; }
.hero-home .hero-copy { max-width: 660px; }
.hero-topline { margin-bottom: 40px; gap: 18px; }
.hero-home .hero-kicker {
    margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
    color: var(--teal); font-size: 11px; letter-spacing: .2em;
}
.hero-home .hero-kicker .live-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,255,.1); }
.hero-season {
    color: #777777; border-left: 1px solid rgba(17,17,17,.16);
    padding-left: 18px; font-size: 10px; letter-spacing: .18em;
}
.hero-home h1 {
    font-family: var(--display);
    font-size: clamp(44px, 4.8vw, 76px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    max-width: 650px;
    color: var(--ink);
}
.hero-home h1 em { color: var(--orange); font-style: normal; }
.hero-home h1 em::after { display: none; }
.hero-home p.lead {
    max-width: 490px; margin-top: 24px;
    color: #555555; font-size: 16px; line-height: 1.95;
}
.hero-home .hero-actions { margin-top: 34px; gap: 10px; }
.hero-home .hero-actions .btn { min-height: 50px; padding: 0 23px; border-radius: 12px; }
.hero-home .hero-actions .btn-light {
    background: transparent; border-color: rgba(17,17,17,.18); color: var(--ink);
}
.hero-home .hero-actions .btn-light:hover { background: #e8e8e8; }
.hero-home .hero-stats {
    max-width: 560px; margin-top: 52px; padding-top: 24px;
    gap: clamp(20px, 4vw, 52px);
    border-top-color: rgba(17,17,17,.12);
}
.hero-home .hero-stat .txt-strong { font-family: var(--font); font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.hero-home .hero-stat span { margin-top: 5px; color: #777777; font-size: 10px; letter-spacing: .14em; }

.hero-home .hero-art { min-height: 520px; display: flex; align-items: center; justify-content: flex-end; }
.hero-visual {
    position: relative; width: 100%; max-width: 520px; min-height: 476px;
    border-radius: 30px; border: 1px solid #e8e8e8;
    background: linear-gradient(150deg, #e8e8e8 0%, #ffffff 58%, #ffffff 100%);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.hero-visual::before {
    content: ""; position: absolute; right: -100px; top: -118px;
    width: 330px; height: 330px; border-radius: 50%;
    border: 1px solid rgba(17,17,17,.1);
    box-shadow: 0 0 0 42px rgba(17,17,17,.018), 0 0 0 84px rgba(17,17,17,.012);
}
.hero-visual::after {
    content: ""; position: absolute; left: 30px; right: 30px; top: 50%;
    border-top: 1px dashed rgba(17,17,17,.12);
}
.hero-visual-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(90deg, transparent 49.8%, rgba(17,17,17,.055) 50%, transparent 50.2%),
        linear-gradient(0deg, transparent 49.8%, rgba(17,17,17,.055) 50%, transparent 50.2%);
    background-size: 100% 100%, 100% 100%;
    opacity: .7;
}
.hero-visual-label {
    position: absolute; left: 28px; top: 24px;
    color: #777777; font-size: 10px; font-weight: 700; letter-spacing: .2em;
}
.hero-visual-caption {
    position: absolute; left: 28px; bottom: 24px;
    color: #777777; font-size: 9px; letter-spacing: .18em;
}
.hero-visual-ball {
    position: absolute; left: 34px; top: 46%;
    width: 13px; height: 13px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff, #0000ff 55%, #0000ff);
    box-shadow: 0 0 0 12px rgba(0,0,255,.07), 0 8px 14px -8px rgba(17,17,17,.5);
}
.hero-live-card {
    position: absolute; right: 26px; top: 50%; z-index: 3;
    width: 300px; padding: 24px;
    transform: translateY(-50%);
    border-radius: 20px; border: 1px solid #e8e8e8;
    background: #ffffff; color: var(--ink);
    box-shadow: 0 26px 50px -30px rgba(17,17,17,.42);
}
.hero-live-head { color: #777777; font-size: 10px; letter-spacing: .1em; }
.hero-live-label { color: var(--orange); font-size: 10px; letter-spacing: .16em; }
.hero-live-label .live-dot { width: 5px; height: 5px; background: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,255,.1); }
.hero-live-match { margin-top: 18px; }
.hero-live-row { border-bottom-color: rgba(17,17,17,.1); padding: 10px 0; }
.hero-live-row span { color: #555555; font-size: 14px; }
.hero-live-row .txt-strong { color: var(--ink); font-family: var(--font); font-size: 29px; font-weight: 700; }
.hero-live-row:nth-child(2) .txt-strong { color: var(--orange); }
.hero-live-meta { color: #777777; font-size: 10px; margin-top: 13px; }
.hero-live-foot { border-top-color: rgba(17,17,17,.1); color: #777777; margin-top: 20px; padding-top: 15px; }
.hero-live-foot a { color: var(--teal); }
.hero-live-empty .txt-strong { color: var(--ink); font-family: var(--serif); font-weight: 500; }
.hero-live-empty span { color: #777777; }
html[data-theme="night"] .hero-home::before {
    background:
        linear-gradient(90deg, transparent 0 49.96%, rgba(255,255,255,.035) 50%, transparent 50.04%),
        radial-gradient(circle at 14% 0%, rgba(255,125,82,.08), transparent 34%);
}
html[data-theme="night"] .hero-season { color: #777777; border-left-color: rgba(255,255,255,.14); }
html[data-theme="night"] .hero-home p.lead { color: #777777; }
html[data-theme="night"] .hero-home .hero-actions .btn-light { border-color: rgba(255,255,255,.18); color: #fff; }
html[data-theme="night"] .hero-home .hero-actions .btn-light:hover { background: rgba(255,255,255,.08); }
html[data-theme="night"] .hero-home .hero-stats { border-top-color: rgba(255,255,255,.12); }
html[data-theme="night"] .hero-home .hero-stat span { color: #777777; }
html[data-theme="night"] .hero-visual {
    background: linear-gradient(150deg, #111111 0%, #111111 58%, #111111 100%);
    border-color: #1f4d16;
}
html[data-theme="night"] .hero-visual::before { border-color: rgba(255,255,255,.09); box-shadow: 0 0 0 42px rgba(255,255,255,.012); }
html[data-theme="night"] .hero-visual::after { border-top-color: rgba(255,255,255,.08); }
html[data-theme="night"] .hero-visual-grid { background-image: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%); }
html[data-theme="night"] .hero-visual-label,
html[data-theme="night"] .hero-visual-caption { color: #555555; }
html[data-theme="night"] .hero-live-card { background: #111111; border-color: #1f4d16; color: #fff; box-shadow: 0 26px 50px -30px rgba(0,0,0,.8); }
html[data-theme="night"] .hero-live-head { color: #777777; }
html[data-theme="night"] .hero-live-row { border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="night"] .hero-live-row span { color: #a0ff61; }
html[data-theme="night"] .hero-live-row .txt-strong { color: #fff; }
html[data-theme="night"] .hero-live-row:nth-child(2) .txt-strong { color: var(--lime); }
html[data-theme="night"] .hero-live-meta { color: #777777; }
html[data-theme="night"] .hero-live-foot { border-top-color: rgba(255,255,255,.1); color: #777777; }
html[data-theme="night"] .hero-live-foot a { color: var(--lime); }
html[data-theme="night"] .hero-live-empty .txt-strong { color: #fff; }
@media (max-width: 1020px) {
    .hero-home { padding: 48px 22px 58px; min-height: 560px; grid-template-columns: 1fr 380px; gap: 34px; }
    .hero-home .hero-art { min-height: 460px; }
    .hero-visual { min-height: 430px; }
    .hero-live-card { width: 280px; right: 20px; }
}
@media (max-width: 760px) {
    .hero-home { grid-template-columns: 1fr; min-height: auto; padding: 42px 22px 48px; gap: 30px; }
    .hero-home .hero-art { min-height: auto; }
    .hero-visual { min-height: 460px; max-width: none; margin-top: 0; }
    .hero-live-card { width: min(300px, calc(100% - 40px)); right: 20px; }
}
@media (max-width: 640px) {
    .hero-home { padding: 34px 16px 42px; }
    .hero-home h1 { font-size: clamp(36px, 9.5vw, 54px); }
    .hero-home .hero-stats { gap: 20px 28px; flex-wrap: wrap; }
    .hero-visual { min-height: 430px; }
    .hero-live-card { width: calc(100% - 32px); right: 16px; padding: 20px; }
    .hero-visual-label { left: 18px; top: 18px; }
    .hero-visual-caption { left: 18px; bottom: 18px; }
    .hero-visual-ball { left: 24px; }
}

/* ---------- Night contrast sweep ---------- */
html[data-theme="night"] .article-body,
html[data-theme="night"] .detail-body,
html[data-theme="night"] .rich-content { color: #a0ff61; }
html[data-theme="night"] .article-body a,
html[data-theme="night"] .detail-body a,
html[data-theme="night"] .rich-content a { color: #7bbf43; }
html[data-theme="night"] .article-body h2,
html[data-theme="night"] .article-body h3,
html[data-theme="night"] .detail-body h2,
html[data-theme="night"] .detail-body h3,
html[data-theme="night"] .rich-content h2,
html[data-theme="night"] .rich-content h3 { color: #ffffff; }
html[data-theme="night"] .plan-list li { color: #a0ff61; }
html[data-theme="night"] .plan-desc { color: #777777; }
html[data-theme="night"] .vip-field-hint { color: #777777; }
html[data-theme="night"] .hero-live-empty span { color: #777777; }
html[data-theme="night"] .level-1 { color: #7bbf43; }
html[data-theme="night"] .level-4 { color: #e8e8e8; }
html[data-theme="night"] .rich-content pre { background: #111111; color: #a0ff61; }
html[data-theme="night"] .rich-content code { color: #a0ff61; }
html[data-theme="night"] .article-body code,
html[data-theme="night"] .detail-body code { color: #a0ff61; }
html[data-theme="night"] .table td,
html[data-theme="night"] .table td .txt-strong { color: #a0ff61; }
html[data-theme="night"] .market-body h3,
html[data-theme="night"] .training-card h3,
html[data-theme="night"] .news-card-body h3,
html[data-theme="night"] .news-row h3 { color: #ffffff; }
html[data-theme="night"] .booking-main h3 { color: #ffffff; }
html[data-theme="night"] .plan-price small { color: #777777; }
html[data-theme="night"] .qr-page-card > p { color: #777777; }

/* ---------- Global icon / text optical alignment ---------- */
.icon { display: inline-block; vertical-align: middle; }
.btn, .badge, .nav-link, .section-link, .hub-tabs a, .filter-tabs a,
.footer-contact a, .footer-contact span, .match-meta > span,
.booking-meta span, .training-meta span, .stage-legend span,
.display-status, .user-menu-panel a, .member-menu a, .rank-table-name,
.cell-main, .toast, .toast-icon, .filter-form .btn, .share-line .btn,
.table .actions, .table .actions form, .footer-col a {
    align-items: center;
}
.match-meta > span, .match-meta > span .icon,
.footer-contact a .icon, .footer-contact span .icon,
.booking-meta span .icon, .training-meta span .icon,
.stage-legend span .icon { vertical-align: middle; }
.btn .icon, .badge .icon, .nav-link .icon, .section-link .icon,
.hub-tabs a .icon, .filter-tabs a .icon, .footer-col a .icon,
.user-menu-panel a .icon, .member-menu a .icon, .table .actions .icon {
    flex: 0 0 auto; margin-top: -1px;
}
.table .actions, .table .actions form { display: flex; }
.footer-col a { display: inline-flex; }

/* ---------- Match cards: three clear states ---------- */
.match-card-wrap { height: 100%; }
.match-card {
    position: relative; height: 100%; min-height: 220px;
    grid-template-rows: minmax(72px, 1fr) auto auto;
    align-content: stretch; overflow: hidden;
    padding: 20px;
}
.match-card::before {
    content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
    width: 3px; border-radius: 0 4px 4px 0; background: transparent;
}
.match-card.state-playing {
    border-color: rgba(0,0,255,.38);
    background: linear-gradient(155deg, #ffffff 0%, var(--card) 68%);
}
.match-card.state-playing::before { background: var(--primary); }
.match-card.state-ready {
    border-style: dashed; border-color: #e8e8e8;
    background: linear-gradient(155deg, #ffffff 0%, var(--card) 68%);
}
.match-card.state-ready .match-score { color: #777777; }
.match-card.state-ready .match-meta { margin-top: auto; }
.match-card.state-finished {
    border-color: #e8e8e8;
    background: linear-gradient(155deg, #e8e8e8 0%, var(--card) 66%);
}
.match-card.state-finished::before { background: var(--teal); opacity: .55; }
.match-card.state-finished .match-side.is-winner .txt-strong { color: var(--teal); }
.match-card.state-finished .match-side.is-winner small { color: var(--teal); font-weight: 700; }
.match-card.state-finished .match-side:not(.is-winner) { opacity: .58; }
.match-card.state-finished .match-side.is-winner { opacity: 1; }
.match-card.state-finished .match-score { color: #555555; }
.win-tag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin-left: 5px; vertical-align: 1px;
    border-radius: 50%; background: var(--teal); color: #fff;
    font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: 0;
}
.match-card .sets {
    align-self: end; margin-top: 6px; padding-top: 11px;
    border-top: 1px solid rgba(17,17,17,.09);
}
.match-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.match-card .match-center .sets {
    align-self: center; justify-content: center;
    margin: 0; padding: 0; border: 0;
}
.match-card .match-center .sets .set-chip {
    min-width: 22px; padding: 2px 5px; font-size: 10px;
}
.match-card .match-meta > span {
    display: inline-flex; align-items: center; gap: 4px; line-height: 1;
}
.match-card .match-meta .icon { vertical-align: middle; }
.match-card .sets .set-chip { background: rgba(17,17,17,.06); }
.match-card.state-playing .sets .set-chip.live { background: var(--primary); color: #fff; }
html[data-theme="night"] .match-card.state-playing {
    background: linear-gradient(155deg, #111111 0%, var(--card) 68%);
    border-color: rgba(255,125,82,.32);
}
html[data-theme="night"] .match-card.state-ready {
    background: linear-gradient(155deg, #111111 0%, var(--card) 68%);
    border-color: #1f4d16;
}
html[data-theme="night"] .match-card.state-ready .match-score { color: #777777; }
html[data-theme="night"] .match-card.state-finished {
    background: linear-gradient(155deg, #111111 0%, var(--card) 66%);
    border-color: #1f4d16;
}
html[data-theme="night"] .match-card.state-finished .match-side.is-winner .txt-strong,
html[data-theme="night"] .match-card.state-finished .match-side.is-winner small { color: var(--lime); }
html[data-theme="night"] .match-card.state-finished .match-score { color: #777777; }
html[data-theme="night"] .match-card .sets { border-top-color: rgba(255,255,255,.1); }
html[data-theme="night"] .match-card .sets .set-chip { background: #111111; }
@media (max-width: 760px) {
    .match-card { min-height: 205px; padding: 18px; }
    .match-card::before { top: 18px; bottom: 18px; }
}

/* ---------- 赛事报名 / 乒乓场所 ---------- */
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-card {
    display: flex; gap: 18px; padding: 20px; border-radius: 20px;
    background: var(--card); border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e8e8e8; }
.event-date-box {
    width: 68px; flex: 0 0 auto; align-self: flex-start;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px 8px; border-radius: 15px;
    background: var(--ink); color: #fff;
}
.event-date-box .txt-strong { font-family: var(--display); font-size: 32px; line-height: 1; }
.event-date-box span { margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.62); }
.event-date-box small { margin-top: 5px; font-size: 10px; letter-spacing: .1em; color: var(--lime); }
.event-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.event-card h3 { margin: 9px 0 7px; font-size: 18px; line-height: 1.35; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 4px; }
.event-meta .icon { width: 13px; height: 13px; }
.event-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.event-card-foot .txt-strong { color: var(--orange); font-family: var(--display); font-size: 22px; }
.event-card-foot span { color: var(--muted); font-size: 11px; }

.event-hero {
    display: flex; gap: 22px; align-items: center; padding: 28px;
    border-radius: 24px; background: linear-gradient(145deg, #a0ff61, #ffffff);
    border: 1px solid var(--line);
}
.event-hero-date {
    width: 92px; height: 104px; flex: 0 0 auto; border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
}
.event-hero-date .txt-strong { font-family: var(--display); font-size: 40px; line-height: 1; }
.event-hero-date span { margin-top: 5px; font-size: 12px; color: rgba(255,255,255,.6); }
.event-hero-date small { margin-top: 5px; font-size: 10px; color: var(--lime); letter-spacing: .12em; }
.event-hero-copy h2 { font-size: 26px; margin: 8px 0 12px; }
.event-hero-copy .event-meta { color: #555555; }

.venue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.venue-card {
    display: flex; flex-direction: column; min-height: 230px; padding: 22px;
    border-radius: 20px; background: var(--card); border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.venue-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e8e8e8; }
.venue-card-top { display: flex; align-items: center; justify-content: space-between; }
.venue-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--teal-soft); color: var(--teal);
}
.venue-mark .icon { width: 17px; height: 17px; }
.venue-card h3 { margin: 14px 0 5px; font-size: 18px; line-height: 1.4; }
.venue-address { color: var(--muted); font-size: 12px; line-height: 1.6; }
.venue-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.venue-meta span { display: inline-flex; align-items: center; gap: 4px; }
.venue-meta .icon { width: 12px; height: 12px; }
.venue-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; }
.venue-foot .txt-strong { color: var(--orange); font-family: var(--display); font-size: 24px; }
.venue-foot .txt-strong small { font-family: var(--font); color: var(--muted); font-size: 10px; letter-spacing: 0; }
.venue-foot > span { color: var(--muted); font-size: 12px; }
.venue-hero {
    display: flex; align-items: center; gap: 18px; padding: 30px;
    border-radius: 24px; background: linear-gradient(145deg, #a0ff61, #ffffff); border: 1px solid var(--line);
}
.venue-hero-icon { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.venue-hero-icon .icon { width: 28px; height: 28px; }
.venue-hero h2 { font-size: 26px; margin: 7px 0 5px; }
.venue-hero p { color: var(--muted); font-size: 13px; }
.venue-facilities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

html[data-theme="night"] .event-card:hover,
html[data-theme="night"] .venue-card:hover { border-color: #1f4d16; }
html[data-theme="night"] .event-hero,
html[data-theme="night"] .venue-hero { background: linear-gradient(145deg, #111111, #111111); border-color: var(--line); }
html[data-theme="night"] .event-hero-copy .event-meta { color: #777777; }
html[data-theme="night"] .venue-mark { background: #111111; color: #7bbf43; }
@media (max-width: 1020px) {
    .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .event-grid { grid-template-columns: 1fr; }
    .event-hero { align-items: flex-start; padding: 22px; }
    .event-hero-copy h2 { font-size: 23px; }
    .venue-hero { align-items: flex-start; padding: 22px; }
}
@media (max-width: 640px) {
    .venue-grid { grid-template-columns: 1fr; }
    .event-card { padding: 16px; gap: 14px; }
    .event-date-box { width: 58px; }
    .event-date-box .txt-strong { font-size: 27px; }
}

/* Keep the five plaza shortcuts stable across breakpoints */
@media (min-width: 1021px) and (max-width: 1240px) {
    .quick-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
    .quick-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .quick-grid-5 { grid-template-columns: 1fr; }
    .quick-grid-6 { grid-template-columns: 1fr; }
}



/* ---------- 球友圈子 ---------- */
.circle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.circle-card {
    display: flex; gap: 16px; padding: 22px; border-radius: 20px;
    background: var(--card); border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.circle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e8e8e8; }
.circle-mark {
    width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px;
    display: grid; place-items: center; background: var(--teal-soft); color: var(--teal);
}
.circle-mark .icon { width: 23px; height: 23px; }
.circle-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.circle-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.circle-card h3 { margin: 9px 0 6px; font-size: 18px; line-height: 1.35; }
.circle-card p { color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.circle-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--muted); font-size: 11px; }
.circle-card-foot > span:last-child { display: inline-flex; align-items: center; gap: 3px; color: var(--teal); font-weight: 700; }
.circle-card-foot .icon { width: 11px; height: 11px; }
.circle-hero {
    display: flex; gap: 20px; align-items: flex-start; padding: 30px;
    border-radius: 24px; background: linear-gradient(145deg, #a0ff61, #ffffff); border: 1px solid var(--line);
}
.circle-hero-mark {
    width: 62px; height: 62px; flex: 0 0 auto; border-radius: 18px;
    display: grid; place-items: center; background: var(--teal); color: #fff;
}
.circle-hero-mark .icon { width: 30px; height: 30px; }
.circle-hero h2 { font-size: 27px; margin: 8px 0 7px; }
.circle-hero p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 620px; }
.circle-hero .event-meta { margin-top: 13px; }
.circle-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.circle-member {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    border: 1px solid var(--line); border-radius: 13px; background: var(--card);
}
.circle-member .txt-strong { display: block; font-size: 14px; }
.circle-member > span:last-child { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
html[data-theme="night"] .circle-card:hover { border-color: #1f4d16; }
html[data-theme="night"] .circle-mark { background: #111111; color: #7bbf43; }
html[data-theme="night"] .circle-hero { background: linear-gradient(145deg, #111111, #111111); border-color: var(--line); }
@media (max-width: 1020px) {
    .circle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .circle-grid { grid-template-columns: 1fr; }
    .circle-card { padding: 18px; gap: 12px; }
    .circle-mark { width: 42px; height: 42px; border-radius: 13px; }
    .circle-hero { padding: 22px; gap: 14px; }
    .circle-hero h2 { font-size: 23px; }
    .circle-members { grid-template-columns: 1fr; }
}
/* ---------- Event organizer / bracket ---------- */
.event-manage-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.event-manage-actions form { display: inline-flex; }
.event-bracket { display: flex; flex-direction: column; gap: 16px; }
.event-round > h3 { margin-bottom: 9px; font-size: 13px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.event-match-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 6px;
    border: 1px solid var(--line); border-radius: 11px; background: var(--card);
}
.event-match-row.is-finished { background: #ffffff; }
.event-match-player { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-match-player.right { text-align: right; }
.event-match-player.is-winner { color: var(--teal); font-weight: 800; }
.event-match-score { font-family: var(--display); font-size: 17px; color: var(--muted); white-space: nowrap; }
.event-score-form { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding-top: 8px; border-top: 1px solid var(--line); }
.event-score-form .input { width: 64px; height: 34px; min-height: 34px; padding: 0 8px; text-align: center; }
.event-score-form > span { color: var(--muted); }
html[data-theme="night"] .event-match-row.is-finished { background: #111111; }
/* ---------- Venue rentals ---------- */
.rental-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rental-form .field { margin: 0; }
.rental-form .field label { font-size: 12px; }
.rental-row { display: flex; align-items: center; gap: 16px; }
.rental-date {
    width: 58px; height: 62px; flex: 0 0 auto; border-radius: 13px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
}
.rental-date .txt-strong { font-family: var(--display); font-size: 27px; line-height: 1; }
.rental-date span { margin-top: 3px; font-size: 10px; color: rgba(255,255,255,.6); }
.rental-main { flex: 1; min-width: 0; }
.rental-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rental-title h3 { font-size: 18px; }
.rental-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.rental-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rental-side { text-align: right; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.rental-side .txt-strong { color: var(--orange); font-family: var(--display); font-size: 24px; }
@media (max-width: 640px) {
    .rental-row { flex-wrap: wrap; align-items: flex-start; }
    .rental-main { flex-basis: calc(100% - 80px); }
    .rental-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}
/* ---------- Competition subnav / referees ---------- */
.competition-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.competition-tabs a {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 13px 4px; margin-right: 24px; border-bottom: 2px solid transparent;
    font-size: 15px; font-weight: 700; color: var(--muted);
}
.competition-tabs a.active { color: var(--ink); border-bottom-color: var(--orange); }
.competition-tabs .icon { width: 16px; height: 16px; }
.referee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.referee-card {
    display: flex; flex-direction: column; min-height: 240px; padding: 22px;
    border-radius: 20px; background: var(--card); border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.referee-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e8e8e8; }
.referee-card-top { display: flex; align-items: center; gap: 11px; }
.referee-avatar {
    width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
    display: grid; place-items: center; background: var(--teal-soft); color: var(--teal);
    font-family: var(--display); font-size: 22px; font-weight: 700;
}
.referee-card h3 { font-size: 18px; margin-bottom: 4px; }
.referee-stats { display: flex; gap: 24px; padding: 14px 0 10px; }
.referee-stats .txt-strong { display: block; font-family: var(--display); font-size: 23px; color: var(--ink); }
.referee-stats span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.referee-card > p { color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.referee-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e8e8e8; color: var(--muted); font-size: 11px; }
.referee-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.referee-foot > span:last-child { color: var(--teal); font-weight: 700; }
.referee-hero {
    display: flex; gap: 18px; align-items: flex-start; padding: 30px;
    border-radius: 24px; background: linear-gradient(145deg, #a0ff61, #ffffff); border: 1px solid var(--line);
}
.referee-hero-avatar {
    width: 62px; height: 62px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
    background: var(--teal); color: #fff; font-family: var(--display); font-size: 30px; font-weight: 700;
}
.referee-hero h2 { font-size: 27px; margin: 8px 0 7px; }
.referee-hero p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 620px; }
.referee-hero .event-meta { margin-top: 13px; }
.referee-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.referee-form .field { margin: 0; }
.referee-form .field label { font-size: 12px; }
html[data-theme="night"] .referee-card:hover { border-color: #1f4d16; }
html[data-theme="night"] .referee-avatar { background: #111111; color: #7bbf43; }
html[data-theme="night"] .referee-hero { background: linear-gradient(145deg, #111111, #111111); border-color: var(--line); }
@media (max-width: 1020px) { .referee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .referee-grid { grid-template-columns: 1fr; }
    .referee-card { min-height: 0; padding: 18px; }
    .referee-hero { padding: 22px; gap: 12px; }
    .referee-hero h2 { font-size: 23px; }
}
/* ---------- Competition service links ---------- */
.event-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.event-service {
    display: flex; align-items: center; gap: 13px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: 17px; background: var(--card);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.event-service:hover { transform: translateY(-2px); border-color: #e8e8e8; box-shadow: var(--shadow); }
.event-service-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.event-service-icon .icon { width: 20px; height: 20px; }
.event-service > span:nth-child(2) { flex: 1; min-width: 0; }
.event-service .txt-strong { display: block; font-size: 16px; margin-bottom: 3px; }
.event-service > span > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.event-service > .icon { color: var(--muted); width: 15px; height: 15px; }
html[data-theme="night"] .event-service:hover { border-color: #1f4d16; }
html[data-theme="night"] .event-service-icon { background: #111111; color: #7bbf43; }
@media (max-width: 640px) { .event-services { grid-template-columns: 1fr; } }
/* ---------- Member event rows ---------- */
.member-event-row { display: flex; align-items: center; gap: 16px; }
.member-event-date {
    width: 56px; height: 60px; flex: 0 0 auto; border-radius: 13px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
}
.member-event-date .txt-strong { font-family: var(--display); font-size: 26px; line-height: 1; }
.member-event-date span { margin-top: 3px; font-size: 10px; color: rgba(255,255,255,.6); }
.member-event-main { flex: 1; min-width: 0; }
.member-event-main h3 { font-size: 17px; margin: 7px 0 5px; }
.member-event-action { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 12px; font-weight: 700; white-space: nowrap; }
.member-event-action .icon { width: 12px; height: 12px; }
@media (max-width: 640px) {
    .member-event-row { align-items: flex-start; flex-wrap: wrap; }
    .member-event-main { flex-basis: calc(100% - 76px); }
    .member-event-action { width: 100%; padding-left: 72px; }
}
/* ---------- Member dashboard groups ---------- */
.member-mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.member-mini-stats a {
    display: flex; align-items: baseline; gap: 7px; padding: 12px 15px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.member-mini-stats .txt-strong { font-family: var(--display); font-size: 22px; color: var(--teal); }
.member-mini-stats span { color: var(--muted); font-size: 11px; }
.member-menu-group { margin: 22px 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.member-menu-group + .member-menu { margin-top: 0; }
html[data-theme="night"] .member-mini-stats a { background: #111111; border-color: var(--line); }
@media (max-width: 760px) { .member-mini-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
/* Hero top breathing room: keep the announcement close to the header */
.hero-home { padding-top: 44px; }
@media (max-width: 1020px) { .hero-home { padding-top: 34px; } }
@media (max-width: 760px) { .hero-home { padding-top: 26px; } }
@media (max-width: 640px) { .hero-home { padding-top: 22px; } }
/* Ad section radius */
.ad-section { border-radius: 22px; overflow: hidden; }
.ad-section .ad-banner { border-radius: 22px; }
/* ---------- Legal / help pages ---------- */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.legal-content { padding: 40px 44px; }
.legal-content h2 { font-size: 20px; margin: 26px 0 9px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #555555; font-size: 14px; line-height: 1.95; margin: 0 0 10px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-updated { margin-top: 30px !important; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 12px !important; }
.legal-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 9px; }
.legal-aside h2 { font-size: 22px; margin-bottom: 5px; }
.legal-aside a { color: var(--muted); font-size: 14px; padding: 5px 0; border-bottom: 1px solid #e8e8e8; }
.legal-aside a:last-child { border-bottom: 0; }
.legal-aside a:hover { color: var(--orange); }
html[data-theme="night"] .legal-content p { color: #777777; }
html[data-theme="night"] .legal-aside a { color: #7bbf43; border-color: var(--line); }
html[data-theme="night"] .legal-aside a:hover { color: var(--lime); }
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-aside { position: static; }
    .legal-content { padding: 28px 24px; }
}
/* Footer agreements row */
.footer-agreements {
    width: 100%; max-width: 1460px; margin: 0 auto;
    padding: 18px 44px 16px; border-top: 1px solid var(--line);
    display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px;
    color: #777777; font-size: 12px;
}
.footer-agreements > span { color: var(--ink); font-weight: 800; letter-spacing: .08em; }
.footer-agreements a { color: var(--muted); }
.footer-agreements a:hover { color: var(--orange); }
html[data-theme="night"] .footer-agreements { color: #555555; border-color: var(--line); }
html[data-theme="night"] .footer-agreements > span { color: #a0ff61; }
html[data-theme="night"] .footer-agreements a { color: #777777; }
html[data-theme="night"] .footer-agreements a:hover { color: var(--lime); }
@media (max-width: 1020px) { .footer-agreements { display: none; } }
/* ---------- Settings groups ---------- */
.settings-nav {
    display: flex; flex-wrap: wrap; gap: 7px; padding: 10px;
    border: 1px solid var(--line); border-radius: 13px; background: #ffffff;
}
.settings-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-nav a:hover { background: var(--card); color: var(--ink); }
.settings-fold { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.settings-fold summary { cursor: pointer; list-style: none; padding: 13px 15px; font-size: 14px; font-weight: 800; color: var(--ink); }
.settings-fold summary::-webkit-details-marker { display: none; }
.settings-fold summary span { float: right; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.settings-fold[open] summary { border-bottom: 1px solid var(--line); }
.settings-fold-body { padding: 15px; }
html[data-theme="night"] .settings-nav { background: #111111; border-color: var(--line); }
html[data-theme="night"] .settings-fold { background: #111111; border-color: var(--line); }
html[data-theme="night"] .settings-fold summary { color: #fff; }
/* ---------- AI assistant / training ---------- */
.ai-layout { align-items: start; }
.ai-chat { min-height: 520px; display: flex; flex-direction: column; }
.ai-messages { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 6px 0 20px; }
.ai-welcome { text-align: center; padding: 48px 20px; }
.ai-avatar { width: 46px; height: 46px; border-radius: 15px; display: inline-grid; place-items: center; background: var(--lime); color: var(--ink); }
.ai-avatar.small { width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; }
.ai-avatar .icon { width: 22px; height: 22px; }
.ai-avatar.small .icon { width: 14px; height: 14px; }
.ai-welcome h2 { font-size: 24px; margin: 13px 0 5px; }
.ai-welcome p { color: var(--muted); font-size: 13px; max-width: 420px; margin: 0 auto; line-height: 1.7; }
.ai-message { display: flex; align-items: flex-start; gap: 9px; }
.ai-message.is-user { flex-direction: row-reverse; }
.ai-bubble { max-width: 620px; padding: 12px 15px; border-radius: 15px; font-size: 14px; line-height: 1.75; background: #e8e8e8; color: var(--ink); }
.ai-message.is-user .ai-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ai-message.is-ai .ai-bubble { border-bottom-left-radius: 4px; }
.ai-time { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.ai-message.is-user .ai-time { text-align: right; }
.ai-form { display: flex; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.ai-form .input { flex: 1; }
.ai-clear { margin-top: 8px; text-align: right; }
.ai-suggestions { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.ai-suggestions button { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.ai-suggestions button:hover { border-color: #e8e8e8; color: var(--ink); }
.ai-training-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 22px; background: var(--ink); color: #fff; }
.ai-training-hero .txt-strong { font-family: var(--display); font-size: 60px; color: var(--lime); line-height: 1; display: inline-block; margin-top: 10px; }
.ai-training-hero small { color: rgba(255,255,255,.4); }
.ai-training-hero p { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 7px; }
.ai-training-stats { display: flex; gap: 30px; }
.ai-training-stats .txt-strong { display: block; font-family: var(--display); font-size: 27px; }
.ai-training-stats span { color: rgba(255,255,255,.45); font-size: 11px; }
.ai-list { padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.ai-plan { padding-left: 18px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.9; margin-top: 13px; }
html[data-theme="night"] .ai-bubble { background: #111111; color: #a0ff61; }
html[data-theme="night"] .ai-message.is-user .ai-bubble { background: var(--lime); color: var(--ink); }
html[data-theme="night"] .ai-suggestions button { border-color: var(--line); color: #7bbf43; }
@media (max-width: 760px) {
    .ai-training-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
    .ai-training-stats { width: 100%; justify-content: space-between; gap: 12px; }
    .ai-form { flex-direction: column; }
    .ai-form .btn { width: 100%; }
}
/* AI match recommendations */
.ai-recommend { margin: 0 0 24px; padding: 20px 22px; border: 1px solid #a0ff61; border-radius: 18px; background: linear-gradient(120deg, #ffffff, #ffffff); }
.ai-recommend-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ai-recommend-head h2 { font-size: 22px; }
.ai-recommend-head p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin-top: 3px; }
.ai-recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.ai-recommend-card { display: flex; flex-direction: column; gap: 6px; padding: 13px; border: 1px solid rgba(17,17,17,.08); border-radius: 12px; background: rgba(255,255,255,.72); }
.ai-recommend-card:hover { border-color: #7bbf43; }
.ai-recommend-card .txt-strong { font-size: 14px; }
html[data-theme="night"] .ai-recommend { background: linear-gradient(120deg, #111111, #111111); border-color: var(--line); }
html[data-theme="night"] .ai-recommend-card { background: #111111; border-color: var(--line); }
@media (max-width: 760px) { .ai-recommend-grid { grid-template-columns: 1fr; } }
.ai-review-hint { display: flex; align-items: flex-start; gap: 4px; margin-top: 5px; color: #2f7a1f; font-size: 11px; line-height: 1.5; }
.ai-review-hint .icon { width: 12px; height: 12px; margin-top: 1px; color: var(--teal); }
html[data-theme="night"] .ai-review-hint { color: #7bbf43; }
/* Admin pages: title and eyebrow are already rendered in admin-top */
.admin-content .page-head .eyebrow,
.admin-content .page-head h1 { display: none; }
.admin-content .page-head { margin-bottom: 20px; }
/* ---------- AI entry points ---------- */
.header-ai {
    display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px;
    border: 1px solid rgba(47,122,31,.25); border-radius: 999px;
    color: var(--teal); background: rgba(47,122,31,.06); font-size: 13px; font-weight: 800;
}
.header-ai:hover { background: var(--teal); color: #fff; }
.header-ai .icon { width: 14px; height: 14px; }
.ai-fab {
    position: fixed; right: 26px; bottom: 28px; z-index: 40;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px 10px 10px;
    border-radius: 999px; background: var(--ink); color: #fff;
    box-shadow: 0 14px 35px -14px rgba(17,17,17,.7); font-size: 13px; font-weight: 800;
}
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.ai-fab-icon .icon { width: 15px; height: 15px; }
.ai-home-entry {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    margin-top: 18px; padding: 22px 26px; border: 1px solid #a0ff61; border-radius: 20px;
    background: linear-gradient(120deg, #ffffff, #ffffff);
}
.ai-home-copy h2 { font-size: 24px; margin: 7px 0 4px; }
.ai-home-copy p { color: var(--muted); font-size: 12px; }
.ai-home-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-home-actions a { display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border: 1px solid rgba(17,17,17,.1); border-radius: 10px; background: rgba(255,255,255,.7); color: var(--ink); font-size: 12px; font-weight: 700; }
.ai-home-actions a:hover { border-color: var(--teal); color: var(--teal); }
.ai-home-actions .icon { width: 14px; height: 14px; }
html[data-theme="night"] .header-ai { color: #7bbf43; border-color: #1f4d16; background: rgba(255,255,255,.04); }
html[data-theme="night"] .header-ai:hover { background: var(--lime); color: var(--ink); }
html[data-theme="night"] .ai-home-entry { background: linear-gradient(120deg, #111111, #111111); border-color: var(--line); }
html[data-theme="night"] .ai-home-actions a { background: #111111; border-color: var(--line); color: #a0ff61; }
html[data-theme="night"] .ai-home-actions a:hover { color: var(--lime); border-color: var(--lime); }
@media (max-width: 1020px) {
    .header-ai span { display: none; }
    .header-ai { width: 34px; padding: 0; justify-content: center; }
    .ai-fab { bottom: 82px; right: 16px; padding: 9px 12px 9px 9px; }
}
@media (max-width: 760px) {
    .ai-home-entry { align-items: flex-start; flex-direction: column; padding: 20px; }
    .ai-home-actions { width: 100%; }
    .ai-home-actions a { flex: 1; justify-content: center; }
}
/* ---------- Growth / referral ---------- */
.growth-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 22px; padding: 30px; border-radius: 22px; background: var(--ink); color: #fff; }
.growth-hero h2 { font-size: 32px; margin: 12px 0 5px; color: #fff; }
.growth-hero p { color: rgba(255,255,255,.55); font-size: 14px; }
.growth-hero p .txt-strong { color: var(--lime); }
.growth-stats { display: flex; gap: 30px; margin-top: 24px; }
.growth-stats .txt-strong { display: block; font-size: 24px; color: var(--lime); font-family: var(--display); }
.growth-stats span { color: rgba(255,255,255,.4); font-size: 11px; }
.growth-share-box { padding: 18px; border-radius: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); align-self: center; }
.growth-share-box label { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.growth-share-box .input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: #fff; font-size: 12px; }
.growth-share-actions { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.growth-share-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); }
.growth-tasks { display: flex; flex-direction: column; }
.growth-task { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8e8e8; }
.growth-task:last-child { border-bottom: 0; }
.growth-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8e8e8; color: var(--muted); flex: 0 0 auto; }
.growth-check .icon { width: 13px; height: 13px; }
.growth-task.is-done .growth-check { background: var(--lime); color: var(--ink); }
.growth-task .txt-strong { display: block; font-size: 14px; }
.growth-task span { color: var(--muted); font-size: 12px; }
html[data-theme="night"] .growth-task { border-color: var(--line); }
html[data-theme="night"] .growth-check { background: #111111; }
@media (max-width: 900px) { .growth-hero { grid-template-columns: 1fr; } }
/* ---------- Notifications ---------- */
.notification-list { display: flex; flex-direction: column; }
.notification-item { border-bottom: 1px solid #e8e8e8; }
.notification-item:last-child { border-bottom: 0; }
.notification-item button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 14px 0; text-align: left; }
.notification-item .txt-strong { display: block; font-size: 14px; }
.notification-item span span { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 3px; }
.notification-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: transparent; flex: 0 0 auto; }
.notification-item.is-unread .notification-dot { background: var(--primary); }
.notification-item.is-unread .txt-strong { color: var(--ink); }
.notification-item:not(.is-unread) .txt-strong { color: var(--muted); }
html[data-theme="night"] .notification-item { border-color: var(--line); }
html[data-theme="night"] .notification-item.is-unread .txt-strong { color: #fff; }
/* Venue availability */
.availability-day { padding: 12px 0; border-bottom: 1px solid #e8e8e8; }
.availability-day:last-child { border-bottom: 0; }
.availability-day > .txt-strong { display: block; font-size: 13px; margin-bottom: 7px; }
.availability-slots { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-theme="night"] .availability-day { border-color: var(--line); }
/* City landing */
.city-hero { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 48px 44px; border-radius: 24px; background: var(--ink); color: #fff; }
.city-hero h1 { font-size: 48px; color: #fff; margin: 8px 0; }
.city-hero p { color: rgba(255,255,255,.55); font-size: 14px; }
.city-hero-mark { width: 130px; height: 130px; border-radius: 34px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-family: var(--display); font-size: 70px; font-weight: 900; }
@media (max-width: 760px) { .city-hero { padding: 28px 22px; } .city-hero h1 { font-size: 33px; } .city-hero-mark { display: none; } }
/* Invite poster */
.poster-wrap { min-height: 100vh; padding: 34px 18px; background: #e8e8e8; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.poster-card { width: 330px; min-height: 540px; border-radius: 24px; overflow: hidden; background: #ffffff; box-shadow: 0 24px 60px -24px rgba(17,17,17,.35); }
.poster-top { display: flex; align-items: center; gap: 8px; padding: 16px 20px; background: #111111; color: #fff; font-size: 13px; }
.poster-top .brand-mark { width: 24px; height: 24px; background: #a0ff61; color: #111111; border-radius: 7px; display: grid; place-items: center; }
.poster-top span:last-child { margin-left: auto; color: rgba(255,255,255,.4); font-size: 10px; letter-spacing: .16em; }
.poster-body { padding: 28px 24px; text-align: center; }
.poster-body h1 { font-size: 38px; line-height: 1.12; margin: 8px 0 10px; }
.poster-body p:not(.eyebrow) { color: #555555; font-size: 13px; line-height: 1.7; }
.poster-qr { width: 190px; height: 190px; margin: 20px auto 12px; padding: 10px; background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; }
.poster-qr img { width: 100%; height: 100%; object-fit: contain; }
.poster-code { font-size: 14px; color: #555555; }
.poster-code .txt-strong { display: block; font-size: 26px; color: #000; letter-spacing: .08em; margin-top: 2px; }
.poster-body small { display: block; margin-top: 8px; color: #777777; font-size: 10px; word-break: break-all; }
.poster-foot { padding: 12px 20px; border-top: 1px solid #e8e8e8; color: #777777; font-size: 11px; text-align: center; }
.poster-actions { display: flex; gap: 8px; }
@media print {
    body { background: #fff; }
    .poster-wrap { padding: 0; background: #fff; }
    .poster-actions { display: none; }
    .poster-card { box-shadow: none; }
}
/* ---------- System settings split pages ---------- */
.settings-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.settings-side { position: sticky; top: 86px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff; }
.settings-side h2 { font-size: 22px; margin: 3px 0 14px; }
.settings-side a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.settings-side a:hover { color: var(--ink); background: var(--card); }
.settings-side a.active { color: var(--ink); background: var(--card); font-weight: 800; box-shadow: inset 2px 0 0 var(--orange); }
.settings-main .page-head { margin-bottom: 14px; }
html[data-theme="night"] .settings-side { background: #111111; border-color: var(--line); }
html[data-theme="night"] .settings-side a:hover, html[data-theme="night"] .settings-side a.active { background: #111111; color: #fff; }
@media (max-width: 900px) { .settings-shell { grid-template-columns: 1fr; } .settings-side { position: static; } }
/* Admin top logout */
.admin-logout {
    display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px;
    border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 700;
}
.admin-logout:hover { color: var(--orange); border-color: #e8e8e8; }
.admin-logout .icon { width: 14px; height: 14px; }
html[data-theme="night"] .admin-logout { border-color: var(--line); color: #7bbf43; }
html[data-theme="night"] .admin-logout:hover { color: var(--lime); }
/* ---------- UQDA brand logo ---------- */
.brand-mark {
    position: relative; overflow: hidden;
    background: #111111 !important;
    box-shadow: inset 0 0 0 1px rgba(160,255,97,.18), 0 10px 24px -14px rgba(17,17,17,.6) !important;
}
.brand-mark .icon { display: none; }
.brand-mark::after {
    content: ""; display: block; width: 84%; height: 84%;
    background: url("../img/uqda-logo.svg") center / contain no-repeat;
}
/* Keep the cropped UQDA mark at its natural portrait ratio */
.brand-mark::after { width: 94%; height: 94%; }
/* Logo without a rounded background frame */
.brand-mark {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible;
}
.brand-mark::after {
    width: 100%; height: 100%;
    filter: drop-shadow(0 1px 1px rgba(17,17,17,.35));
}
.site-footer .brand-mark::after,
.auth-panel .brand-mark::after,
.pay-page .brand-mark::after,
.error-page .brand-mark::after {
    background-image: url("../img/uqda-logo-dark.svg");
    filter: none;
}
/* Logo without a rounded background frame */
.brand-mark {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible;
}
.brand-mark::after {
    width: 100%; height: 100%;
    filter: drop-shadow(0 1px 1px rgba(17,17,17,.35));
}
.site-footer .brand-mark::after,
.auth-panel .brand-mark::after,
.pay-page .brand-mark::after,
.error-page .brand-mark::after {
    background-image: url("../img/uqda-logo-dark.svg");
    filter: none;
}
/* Logo keeps its designed blue circular base */
.brand-mark { background: transparent !important; box-shadow: none !important; border-radius: 0; overflow: visible; }
.brand-mark::after { width: 100%; height: 100%; background-image: url("../img/uqda-logo.svg"); filter: none; }
.site-footer .brand-mark::after,
.auth-panel .brand-mark::after,
.pay-page .brand-mark::after,
.error-page .brand-mark::after { background-image: url("../img/uqda-logo.svg"); filter: none; }
/* Use the exact supplied logo artwork (blue circle included) */
.brand-mark {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.brand-mark::after {
    width: 100%; height: 100%;
    background: url("../img/uqda-logo2.webp") center / 100% 100% no-repeat !important;
    filter: none !important;
}
.site-footer .brand-mark::after,
.auth-panel .brand-mark::after,
.pay-page .brand-mark::after,
.error-page .brand-mark::after {
    background-image: url("../img/uqda-logo2.webp") !important;
}
/* Use the supplied SVG logo with its blue circular base */
.brand-mark {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.brand-mark::after {
    width: 100%; height: 100%;
    background: url("../img/uqda-logo.svg") center / 100% 100% no-repeat !important;
    filter: none !important;
}
.site-footer .brand-mark::after,
.auth-panel .brand-mark::after,
.pay-page .brand-mark::after,
.error-page .brand-mark::after {
    background-image: url("../img/uqda-logo.svg") !important;
}
/* Brand mark uses a real img element, no pseudo-element */
.brand-mark {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
}
.brand-mark::before,
.brand-mark::after {
    content: none !important;
    display: none !important;
}
.brand-mark img {
    width: 100%; height: 100%;
    display: block;
    object-fit: contain;
}
/* Logo size +20% from the supplied artwork */
.brand-mark {
    width: 50px !important; height: 50px !important;
    background: transparent !important; box-shadow: none !important;
    border-radius: 0 !important; overflow: visible !important; padding: 0 !important;
}
.brand-mark::before, .brand-mark::after { content: none !important; display: none !important; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.site-brand .brand-mark { width: 46px !important; height: 46px !important; }
@media (max-width: 640px) {
    .site-brand .brand-mark { width: 41px !important; height: 41px !important; }
}

/* UQDA three-color palette: blue, lime, white */
:root {
    --ink: #111111;
    --ink-2: #181818;
    --ink-3: #222222;
    --paper: #f7f7f7;
    --card: #ffffff;
    --orange: #0000ff;
    --orange-dark: #0000cc;
    --orange-soft: #eeeeee;
    --lime: #a0ff61;
    --teal: #2f7a1f;
    --teal-soft: #eaf9dd;
    --blue: #0000ff;
    --muted: #666666;
    --line: #e5e5e5;
}
html[data-theme="night"] {
    --paper: #0a0a0a;
    --card: #151515;
    --ink: #f7f7f7;
    --ink-2: #e8e8e8;
    --ink-3: #d5d5d5;
    --muted: #999999;
    --line: #333333;
    --orange: #7f8cff;
    --orange-dark: #5d6cff;
    --orange-soft: #222222;
    --lime: #a0ff61;
    --teal: #a0ff61;
    --teal-soft: #18310f;
    --blue: #8f9dff;
}


/* Blue is reserved for backgrounds; all former blue text is black */
:root {
    --primary: #0000ff;
    --primary-dark: #0000cc;
    --orange: #000000;
    --orange-dark: #000000;
    --blue: #000000;
}
html[data-theme="night"] {
    --primary: #7f8cff;
    --primary-dark: #5d6cff;
    --orange: #f7f7f7;
    --orange-dark: #ffffff;
    --blue: #f7f7f7;
}

/* Platform typography */
@font-face {
    font-family: "PuHuiTi";
    src: url("../fonts/PuHuiTi-Regular-Web.ttf?v=11.49") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "PuHuiTi";
    src: url("../fonts/PuHuiTi-Medium.ttf?v=11.49") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nacelle";
    src: url("../fonts/Nacelle-Regular.otf?v=11.49") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nacelle";
    src: url("../fonts/Nacelle-SemiBold.otf?v=11.49") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
:root {
    --font: "Nacelle", "PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --display: "Nacelle", "PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Avoid synthetic bold and keep emphasis text readable */
* { font-synthesis: none; }
.txt-strong { font-weight: 400 !important; }

/* ---------- Mobile header / footer fixes ---------- */
@media (max-width: 1020px) {
    .site-header-inner { gap: 12px; }
    .site-footer { display: block; padding: 0 0 calc(76px + env(safe-area-inset-bottom)); }
    .footer-main { display: none; }
    .footer-agreements {
        display: flex; padding: 16px 16px 12px; gap: 8px 14px;
        border-top: 1px solid var(--line); background: #fff;
    }
    .footer-agreements a { font-size: 12px; }
    .footer-bottom {
        display: flex; flex-direction: column; align-items: flex-start;
        gap: 7px; padding: 12px 16px 16px; background: #fff;
    }
    .footer-legal { flex-wrap: wrap; gap: 6px 12px; }
    .footer-legal span + span::before { margin-right: 12px; }
    .bottom-nav { background: rgba(255,255,255,.97); }
    .bottom-nav a.active { color: #000; font-weight: 600; }
}
@media (max-width: 760px) {
    .site-header-inner { min-height: 62px; padding: 0 12px; gap: 8px; }
    .header-actions { gap: 6px; }
    .header-ai, .header-vip { display: none; }
    .user-menu-name { display: none; }
    .user-menu summary { gap: 3px; padding: 2px 3px; }
    .theme-toggle { width: 32px; height: 32px; }
    .site-brand .brand-word .txt-strong { font-size: 18px; }
    .bottom-nav { padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); }
    .bottom-nav a { font-size: 10.5px; gap: 2px; }
    .bottom-nav a .icon { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
    .site-brand .brand-word { display: none; }
    .site-brand .brand-mark { width: 38px !important; height: 38px !important; }
    .site-header-inner { padding: 0 10px; }
}
html[data-theme="night"] .footer-agreements,
html[data-theme="night"] .footer-bottom { background: #111111; }
@media (max-width: 380px) {
    .site-brand .brand-mark { width: 41px !important; height: 41px !important; }
}
@media (max-width: 1020px) {
    .footer-main { display: block; padding: 24px 16px 0; }
    .footer-brand { display: block; }
    .footer-brand > p { max-width: none; margin-top: 10px; }
    .footer-logo { margin-bottom: 12px; }
    .footer-col, .footer-qr { display: none; }
}
/* Mobile header: hide desktop nav after all base rules */
@media (max-width: 1020px) {
    .main-nav { display: none !important; }
    .site-header-inner { justify-content: space-between; }
    .header-actions { flex: 0 0 auto; }
}
/* ---------- Mobile: no footer, fixed member menu ---------- */
@media (max-width: 1020px) {
    .site-footer { display: none !important; }
    .app-main-top .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
    .user-menu-panel {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: 68px !important;
        width: auto !important;
        max-height: calc(100vh - 156px);
        overflow-y: auto;
        z-index: 60;
        border-radius: 14px;
    }
    .user-menu-panel::before { display: none !important; }
    .user-menu-panel a { padding: 11px 12px; font-size: 15px; }
}
/* Keep the header note out of small screens */
@media (max-width: 1320px) {
    .header-note { display: none !important; }
}
/* =========================================================
   Final responsive + day/night pass
   ========================================================= */
html:not([data-theme="night"]) .site-header {
    background: rgba(247,247,247,.94) !important;
    color: #111111 !important;
    border-bottom-color: #e5e5e5 !important;
}
html:not([data-theme="night"]) .site-brand .brand-word .txt-strong { color: #111111 !important; }
html:not([data-theme="night"]) .site-brand .brand-word small { color: #777777 !important; }
html:not([data-theme="night"]) .theme-toggle {
    background: #ffffff !important; color: #111111 !important; border-color: #e5e5e5 !important;
}
html:not([data-theme="night"]) .hero-home {
    background: #ffffff !important; color: #111111 !important;
}
html:not([data-theme="night"]) .bottom-nav {
    background: rgba(255,255,255,.97) !important; border-top-color: #e5e5e5 !important;
}

html[data-theme="night"] body { background: #0a0a0a !important; color: #f7f7f7 !important; }
html[data-theme="night"] .site-header {
    background: #111111 !important; color: #ffffff !important; border-bottom-color: #333333 !important;
}
html[data-theme="night"] .site-brand .brand-word .txt-strong { color: #ffffff !important; }
html[data-theme="night"] .site-brand .brand-word small { color: #999999 !important; }
html[data-theme="night"] .theme-toggle {
    background: #1a1a1a !important; color: #ffffff !important; border-color: #444444 !important;
}
html[data-theme="night"] .theme-icon-sun { display: none !important; }
html:not([data-theme="night"]) .theme-icon-moon { display: none !important; }
html[data-theme="night"] .hero-home {
    background: #111111 !important; color: #f7f7f7 !important;
}
html[data-theme="night"] .hero-home h1,
html[data-theme="night"] .hero-home .hero-stat strong,
html[data-theme="night"] .page-head h1,
html[data-theme="night"] .section-head h2 { color: #f7f7f7 !important; }
html[data-theme="night"] .card,
html[data-theme="night"] .stat-card,
html[data-theme="night"] .quick-card,
html[data-theme="night"] .match-card,
html[data-theme="night"] .booking-card,
html[data-theme="night"] .arena-card,
html[data-theme="night"] .market-card,
html[data-theme="night"] .training-card,
html[data-theme="night"] .member-stat,
html[data-theme="night"] .member-menu a,
html[data-theme="night"] .rank-podium,
html[data-theme="night"] .table-wrap,
html[data-theme="night"] .admin-panel,
html[data-theme="night"] .announcement {
    background: #111111 !important; border-color: #333333 !important; color: #f7f7f7 !important;
}
html[data-theme="night"] .site-footer { background: #111111 !important; border-color: #333333 !important; }
html[data-theme="night"] .bottom-nav {
    background: rgba(17,17,17,.97) !important; border-top-color: #333333 !important;
}
html[data-theme="night"] .bottom-nav a { color: #999999 !important; }
html[data-theme="night"] .bottom-nav a.active { color: #ffffff !important; }
html[data-theme="night"] .user-menu-panel {
    background: #111111 !important; border-color: #333333 !important; color: #f7f7f7 !important;
}
html[data-theme="night"] .user-menu-panel a { color: #dddddd !important; }
html[data-theme="night"] .user-menu-panel a:hover { background: #222222 !important; color: #ffffff !important; }
html[data-theme="night"] .user-menu-head { border-color: #333333 !important; }

@media (max-width: 380px) {
    .site-brand .brand-word { display: flex !important; min-width: 0; }
    .site-brand .brand-word .txt-strong {
        font-size: 16px !important; max-width: 82px; overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap;
    }
}
/* Night contrast fixes */
html[data-theme="night"] .ai-fab {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333;
    box-shadow: 0 14px 35px -14px rgba(0,0,0,.9) !important;
}
html[data-theme="night"] .ai-fab-icon { background: var(--lime); color: #111111; }
html[data-theme="night"] .card,
html[data-theme="night"] .stat-card,
html[data-theme="night"] .quick-card,
html[data-theme="night"] .match-card,
html[data-theme="night"] .booking-card,
html[data-theme="night"] .arena-card,
html[data-theme="night"] .market-card,
html[data-theme="night"] .training-card,
html[data-theme="night"] .member-stat,
html[data-theme="night"] .member-menu a,
html[data-theme="night"] .rank-podium,
html[data-theme="night"] .table-wrap,
html[data-theme="night"] .admin-panel,
html[data-theme="night"] .announcement,
html[data-theme="night"] .user-menu-panel {
    background: #151515 !important;
    border-color: #2e2e2e !important;
}
html[data-theme="night"] .card:hover,
html[data-theme="night"] .market-card:hover,
html[data-theme="night"] .training-card:hover,
html[data-theme="night"] .booking-card:hover { border-color: #444444 !important; }
/* Footer information architecture */
.footer-main {
    grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(82px, .45fr)) minmax(170px, .72fr) !important;
    gap: 28px !important;
}
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.footer-legal a { color: #777777; font-size: 12px; }
.footer-legal a:hover { color: #111111; }
html[data-theme="night"] .footer-legal a { color: #999999; }
html[data-theme="night"] .footer-legal a:hover { color: #ffffff; }
.footer-legal span { font-size: 12px; }
/* Brand mark / platform name balance */
.site-brand .brand-mark { width: 42px !important; height: 42px !important; }
.site-brand .brand-word .txt-strong { font-size: 23px !important; line-height: 1.12; }
.site-brand .brand-word small { font-size: 11px; }
.footer-logo .brand-mark { width: 40px !important; height: 40px !important; }
.footer-logo .brand-word .txt-strong { font-size: 22px !important; }
@media (max-width: 760px) {
    .site-brand .brand-mark { width: 38px !important; height: 38px !important; }
    .site-brand .brand-word .txt-strong { font-size: 20px !important; }
}
@media (max-width: 380px) {
    .site-brand .brand-mark { width: 36px !important; height: 36px !important; }
    .site-brand .brand-word .txt-strong { font-size: 18px !important; max-width: 92px; }
}
/* Footer copyright / ICP line */
.footer-bottom { gap: 10px; }
.footer-icp { color: #777777; font-size: 12px; white-space: nowrap; margin-right: auto; }
html[data-theme="night"] .footer-icp { color: #999999; }
/* News list index: readable gray in day mode */
html:not([data-theme="night"]) .news-list .news-index { color: #8a8a8a; }
html[data-theme="night"] .news-list .news-index { color: #b0b0b0; }
/* Section head horizontal rhythm */
.section-head { padding-left: 20px; padding-right: 20px; }
@media (max-width: 1020px) {
    .section-head { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 760px) {
    .section-head { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 480px) {
    .section-head { padding-left: 12px; padding-right: 12px; }
}
/* Header and footer logo marks +6px */
.site-brand .brand-mark { width: 48px !important; height: 48px !important; }
.footer-logo .brand-mark { width: 46px !important; height: 46px !important; }
@media (max-width: 760px) {
    .site-brand .brand-mark { width: 44px !important; height: 44px !important; }
}
@media (max-width: 380px) {
    .site-brand .brand-mark { width: 42px !important; height: 42px !important; }
}
/* Align platform name bottom with logo */
.site-brand, .footer-logo { align-items: flex-end; }
.site-brand .brand-word, .footer-logo .brand-word { justify-content: flex-end; }
.site-brand .brand-word .txt-strong, .footer-logo .brand-word .txt-strong { line-height: 1; }
/* Brand name and subtitle share the same left/right edges */
.site-brand .brand-word { font-size: 23px !important; width: 3.15em; }
.footer-logo .brand-word { font-size: 22px !important; width: 3.15em; }
.site-brand .brand-word .txt-strong,
.footer-logo .brand-word .txt-strong,
.site-brand .brand-word small,
.footer-logo .brand-word small {
    display: block; width: 100%;
    text-align: justify; text-align-last: justify;
    letter-spacing: 0 !important;
}
.site-brand .brand-word .txt-strong,
.footer-logo .brand-word .txt-strong { font-size: 1em !important; }
.site-brand .brand-word small,
.footer-logo .brand-word small { font-size: .5em !important; margin-top: 4px; }
@media (max-width: 760px) {
    .site-brand .brand-word { font-size: 20px !important; }
}
@media (max-width: 380px) {
    .site-brand .brand-word { font-size: 18px !important; }
}
/* Header AI button: neutral instead of green */
.header-ai {
    color: #111111 !important;
    border-color: #d9d9d9 !important;
    background: #ffffff !important;
}
.header-ai:hover {
    color: #ffffff !important;
    border-color: #111111 !important;
    background: #111111 !important;
}
html[data-theme="night"] .header-ai {
    color: #dddddd !important;
    border-color: #333333 !important;
    background: rgba(255,255,255,.04) !important;
}
html[data-theme="night"] .header-ai:hover {
    color: #111111 !important;
    border-color: var(--lime) !important;
    background: var(--lime) !important;
}
/* Requested component fixes */
.announcement { align-items: center; }
.announcement .badge { align-self: center; flex: 0 0 auto; }
.announcement > span:last-child { min-width: 0; line-height: 1.7; }
@media (max-width: 480px) {
    .announcement { align-items: center; }
}

/* keep status badges narrow and vertically centered in quick lists */
.quick-list a { min-width: 0; }
.quick-list a > span:not(.badge) { flex: 1; min-width: 0; }
.quick-list .badge {
    flex: 0 0 auto !important;
    align-self: center;
    min-height: 22px;
    padding: 3px 8px;
    line-height: 1;
    font-size: 11px;
}
.quick-list .btn { min-height: 32px; padding: 0 12px; font-size: 12px; }

/* competition tabs: tighter mobile spacing */
@media (max-width: 760px) {
    .competition-tabs { gap: 2px; }
    .competition-tabs a { margin-right: 14px; padding: 11px 2px; }
}

/* referee cards */
.referee-card-top { min-width: 0; }
.referee-card h3 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.referee-stats { flex-wrap: wrap; gap: 16px; }
.referee-foot { flex-wrap: wrap; }
@media (max-width: 640px) {
    .referee-stats { gap: 10px 16px; }
    .referee-card h3 { font-size: 16px; }
    .referee-card > p { font-size: 11px; }
    .referee-foot { font-size: 10px; }
}

/* stronger separators */
:root { --line: #d9d9d9; }
html[data-theme="night"] { --line: #3a3a3a; }
html[data-theme="night"] .card,
html[data-theme="night"] .stat-card,
html[data-theme="night"] .quick-card,
html[data-theme="night"] .match-card,
html[data-theme="night"] .booking-card,
html[data-theme="night"] .arena-card,
html[data-theme="night"] .market-card,
html[data-theme="night"] .training-card,
html[data-theme="night"] .member-stat,
html[data-theme="night"] .member-menu a,
html[data-theme="night"] .rank-podium,
html[data-theme="night"] .table-wrap,
html[data-theme="night"] .admin-panel,
html[data-theme="night"] .announcement,
html[data-theme="night"] .user-menu-panel {
    border-color: #3a3a3a !important;
}
html[data-theme="night"] .quick-list a,
html[data-theme="night"] .news-row,
html[data-theme="night"] .referee-foot { border-color: #3a3a3a !important; }
/* Mobile: all font sizes -2px */
@media (max-width: 760px) {
    .brand-word .txt-strong { font-size: 21px !important; }
    .brand-word small { font-size: 9px !important; }
    .nav-label { font-size: 10px !important; }
    .nav-item { font-size: 14px !important; }
    .nav-hot { font-size: 8px !important; }
    .side-user .txt-strong { font-size: 13px !important; }
    .side-user small { font-size: 11px !important; }
    .side-admin, .side-logout { font-size: 12px !important; }
    .side-guest p { font-size: 12px !important; }
    .topbar-note { font-size: 12px !important; }
    .site-brand .brand-word .txt-strong { font-size: 16px !important; }
    .site-brand .brand-word small { font-size: 9px !important; }
    .main-nav .nav-link { font-size: 13px !important; }
    .main-nav .nav-hot { font-size: 7px !important; }
    .header-note { font-size: 11px !important; }
    .user-menu summary .avatar-sm { font-size: 11px !important; }
    .user-menu-name .txt-strong { font-size: 12px !important; }
    .user-menu-name small { font-size: 9px !important; }
    .user-menu-panel a { font-size: 13px !important; }
    .user-menu-head .txt-strong { font-size: 13px !important; }
    .user-menu-head small { font-size: 10px !important; }
    .announcement { font-size: 10px !important; }
    .site-footer { font-size: 11px !important; }
    /* ---------- 通用组件 ---------- */ .eyebrow { font-size: 10px !important; }
    .page-head h1 { font-size: 31px !important; }
    .page-head p { font-size: 13px !important; }
    .section-head h2 { font-size: clamp(24px, 2.4vw, 32px) !important; }
    .section-head p { font-size: 12px !important; }
    .section-link { font-size: 12px !important; }
    .btn { font-size: 13px !important; }
    .btn-sm { font-size: 12px !important; }
    .btn-lg { font-size: 14px !important; }
    .small { font-size: 12px !important; }
    .tiny { font-size: 10px !important; }
    .badge { font-size: 10px !important; }
    .avatar-xs { font-size: 11px !important; }
    .avatar-sm { font-size: 14px !important; }
    .avatar-md { font-size: 17px !important; }
    .avatar-lg { font-size: 25px !important; }
    .avatar-xl { font-size: 34px !important; }
    .empty h3 { font-size: 17px !important; }
    .empty p { font-size: 12px !important; }
    .hero-kicker { font-size: 10px !important; }
    .hero h1 { font-size: 34px !important; }
    .hero p.lead { font-size: 14px !important; }
    .hero-stat .txt-strong { font-size: 28px !important; }
    .hero-stat span { font-size: 10px !important; }
    .paddle-handle::after { font-size: 13px !important; }
    .hero-note { font-size: 10px !important; }
    .stat-card .txt-strong { font-size: 26px !important; }
    .stat-card span { font-size: 11px !important; }
    .stat-card small { font-size: 10px !important; }
    .quick-card .txt-strong { font-size: 16px !important; }
    .quick-card span { font-size: 11px !important; }
    .match-side .txt-strong { font-size: 14px !important; }
    .match-side small { font-size: 10px !important; }
    .match-score { font-size: 22px !important; }
    .match-score em { font-size: 15px !important; }
    .match-meta { font-size: 10px !important; }
    .set-chip { font-size: 9px !important; }
    .match-row .txt-strong { font-size: 13px !important; }
    .match-row small { font-size: 10px !important; }
    .booking-date .txt-strong { font-size: 22px !important; }
    .booking-date span { font-size: 9px !important; }
    .booking-main h3 { font-size: 15px !important; }
    .booking-main p { font-size: 11px !important; }
    .booking-meta { font-size: 10px !important; }
    .booking-people small { font-size: 10px !important; }
    .arena-card::after { font-size: 8px !important; }
    .arena-card .txt-strong { font-size: 15px !important; }
    .arena-card p { font-size: 10px !important; }
    .arena-stats { font-size: 9px !important; }
    .arena-stats b { font-size: 13px !important; }
    .news-hero h2 { font-size: clamp(24px, 3vw, 38px) !important; }
    .news-hero p { font-size: 12px !important; }
    .news-meta { font-size: 10px !important; }
    .news-index { font-size: 13px !important; }
    .news-row h3 { font-size: 13px !important; }
    .news-row p { font-size: 10px !important; }
    .news-card-body h3 { font-size: 16px !important; }
    .news-card-body p { font-size: 11px !important; }
    .article h1 { font-size: clamp(28px, 4vw, 46px) !important; }
    .article-meta { font-size: 11px !important; }
    .article-body { font-size: 15px !important; }
    .article-body h2 { font-size: 24px !important; }
    .article-body h3 { font-size: 19px !important; }
    .detail-body h2 { font-size: 21px !important; }
    .detail-body h3 { font-size: 17px !important; }
    .ad-label { font-size: 8px !important; }
    .ad-copy h3 { font-size: 18px !important; }
    .ad-copy p { font-size: 11px !important; }
    .ad-cta { font-size: 11px !important; }
    .market-strip-main .txt-strong { font-size: 15px !important; }
    .market-strip-main > span:last-child { font-size: 10px !important; }
    .market-strip-tags span { font-size: 9px !important; }
    .market-body h3 { font-size: 14px !important; }
    .market-price .txt-strong { font-size: 20px !important; }
    .market-price span { font-size: 10px !important; }
    .market-seller { font-size: 10px !important; }
    .market-seller .avatar { font-size: 9px !important; }
    .training-card h3 { font-size: 16px !important; }
    .training-card p { font-size: 11px !important; }
    .training-meta { font-size: 10px !important; }
    .training-price .txt-strong { font-size: 20px !important; }
    .training-price span { font-size: 10px !important; }
    .filter-tabs a { font-size: 11px !important; }
    .filter-form .input, .filter-form .select { font-size: 11px !important; }
    .chip { font-size: 11px !important; }
    .hub-tabs a { font-size: 13px !important; }
    .field > label, .label { font-size: 11px !important; }
    .input, .select, .textarea { font-size: 13px !important; }
    .hint { font-size: 10px !important; }
    .checkbox { font-size: 12px !important; }
    .form-section-title { font-size: 12px !important; }
    .option span { font-size: 11px !important; }
    .form-note { font-size: 11px !important; }
    .rich-toolbar button { font-size: 11px !important; }
    .rich-status { font-size: 9px !important; }
    .rich-content { font-size: 14px !important; }
    .rich-content h2 { font-size: 22px !important; }
    .rich-content h3 { font-size: 18px !important; }
    .rich-content pre { font-size: 12px !important; }
    .table { font-size: 12px !important; }
    .table th { font-size: 9px !important; }
    .table .cell-main .txt-strong { font-size: 12px !important; }
    .table .cell-main small { font-size: 9px !important; }
    .table .actions .btn { font-size: 10px !important; }
    .table-empty { font-size: 12px !important; }
    .member-id h1 { font-size: clamp(26px, 3vw, 38px) !important; }
    .member-id p { font-size: 12px !important; }
    .member-stat .txt-strong { font-size: 23px !important; }
    .member-stat span { font-size: 10px !important; }
    .member-menu a { font-size: 11px !important; }
    .quick-list span { font-size: 12px !important; }
    .quick-list small { font-size: 10px !important; }
    .rank-medal { font-size: 10px !important; }
    .rank-podium .txt-strong { font-size: 16px !important; }
    .rank-stats { font-size: 9px !important; }
    .rank-stats b { font-size: 16px !important; }
    .rank-no { font-size: 12px !important; }
    .detail-title { font-size: clamp(26px, 3.4vw, 42px) !important; }
    .detail-meta { font-size: 12px !important; }
    .detail-body { font-size: 14px !important; }
    .info-row { font-size: 12px !important; }
    .buy-price { font-size: 34px !important; }
    .buy-price small { font-size: 10px !important; }
    .contact-box { font-size: 12px !important; }
    .timeline-item .txt-strong { font-size: 12px !important; }
    .timeline-item small { font-size: 10px !important; }
    .activity-body p { font-size: 12px !important; }
    .activity-body small { font-size: 10px !important; }
    .activity-score { font-size: 14px !important; }
    .toast { font-size: 12px !important; }
    .auth-quote h2 { font-size: clamp(34px, 4vw, 56px) !important; }
    .auth-quote p { font-size: 13px !important; }
    .auth-mini-stats b { font-size: 24px !important; }
    .auth-mini-stats span { font-size: 10px !important; }
    .auth-card h1 { font-size: 30px !important; }
    .auth-card > p { font-size: 12px !important; }
    .auth-alt { font-size: 12px !important; }
    .wechat-btn { font-size: 13px !important; }
    .divider { font-size: 10px !important; }
    .demo-accounts { font-size: 10px !important; }
    .admin-top h1 { font-size: 22px !important; }
    .admin-stat .txt-strong { font-size: 28px !important; }
    .admin-stat span { font-size: 10px !important; }
    .admin-stat small { font-size: 9px !important; }
    .admin-panel-head h2 { font-size: 15px !important; }
    .admin-filters .input, .admin-filters .select { font-size: 11px !important; }
    .chart-col span { font-size: 9px !important; }
    .chart-col b { font-size: 10px !important; }
    .vip-crown { font-size: 12px !important; }
    .benefit-card .txt-strong { font-size: 13px !important; }
    .benefit-card small { font-size: 10px !important; }
    .plan-badge { font-size: 9px !important; }
    .plan-card h3 { font-size: 23px !important; }
    .plan-price { font-size: 42px !important; }
    .plan-price small { font-size: 10px !important; }
    .plan-desc { font-size: 11px !important; }
    .plan-list li { font-size: 11px !important; }
    .plan-list li::before { font-size: 10px !important; }
    .vip-field-label { font-size: 9px !important; }
    .vip-field .input, .vip-field .select { font-size: 11px !important; }
    .vip-field-hint { font-size: 8px !important; }
    .wallet-balance { font-size: clamp(42px, 6vw, 64px) !important; }
    .recharge-card .txt-strong { font-size: 19px !important; }
    .recharge-card span { font-size: 9px !important; }
    .tx-icon { font-size: 18px !important; }
    .tx-row .txt-strong { font-size: 12px !important; }
    .tx-row small { font-size: 9px !important; }
    .tx-amount { font-size: 14px !important; }
    .pay-card h1 { font-size: 28px !important; }
    .pay-amount { font-size: 42px !important; }
    .pay-panel h3 { font-size: 18px !important; }
    .pay-icon { font-size: 12px !important; }
    .pay-foot { font-size: 10px !important; }
    .coupon-value .txt-strong { font-size: 27px !important; }
    .coupon-value > span { font-size: 11px !important; }
    .coupon-value small { font-size: 9px !important; }
    .coupon-body .txt-strong { font-size: 13px !important; }
    .level-icon { font-size: 38px !important; }
    .level-hero h2 { font-size: 30px !important; }
    .level-points .txt-strong { font-size: 34px !important; }
    .level-points span { font-size: 9px !important; }
    .level-emoji { font-size: 19px !important; }
    .level-row .txt-strong { font-size: 13px !important; }
    .level-row small { font-size: 10px !important; }
    .error-code { font-size: 100px !important; }
    .error-page h1 { font-size: 28px !important; }
    .error-page p { font-size: 13px !important; }
    .mobile-brand { font-size: 15px !important; }
    .bottom-nav a { font-size: 8.5px !important; }
    .footer-logo .brand-word .txt-strong { font-size: 20px !important; }
    .footer-logo .brand-word small { font-size: 8px !important; }
    .footer-brand > p { font-size: 12px !important; }
    .footer-contact a, .footer-contact span { font-size: 10px !important; }
    .footer-col h4 { font-size: 10px !important; }
    .footer-col a { font-size: 12px !important; }
    .footer-qr h4 { font-size: 10px !important; }
    .qr-card .txt-strong { font-size: 9px !important; }
    .qr-placeholder small { font-size: 8px !important; }
    .footer-qr > p { font-size: 9px !important; }
    .qr-page-card h1 { font-size: 30px !important; }
    .qr-page-card > p { font-size: 12px !important; }
    .qr-page-empty .txt-strong { font-size: 13px !important; }
    .qr-page-empty span { font-size: 10px !important; }
    .footer-bottom { font-size: 10px !important; }
    .rank-podium::after { font-size: 86px !important; }
    .rank-medal::before { font-size: 6px !important; }
    .rank-podium .avatar { font-size: 25px !important; }
    .rank-podium .small.muted { font-size: 10px !important; }
    .rank-podium.first .avatar { font-size: 29px !important; }
    .rank-stats span { font-size: 9px !important; }
    .hero-season { font-size: 8px !important; }
    .hero-orbit-tag { font-size: 9px !important; }
    .hero-live-head { font-size: 8px !important; }
    .hero-live-label { font-size: 8px !important; }
    .hero-live-row span { font-size: 12px !important; }
    .hero-live-row .txt-strong { font-size: 27px !important; }
    .hero-live-meta { font-size: 8px !important; }
    .hero-live-foot { font-size: 9px !important; }
    .hero-live-empty .txt-strong { font-size: 20px !important; }
    .hero-live-empty span { font-size: 10px !important; }
    .hero-home .hero-stat .txt-strong { font-size: 24px !important; }
    .hero-home .hero-kicker { font-size: 9px !important; }
    .hero-home h1 { font-size: clamp(34px, 9.5vw, 52px) !important; }
    .hero-home p.lead { font-size: 14px !important; }
    .hero-home .hero-stat span { font-size: 8px !important; }
    .hero-visual-label { font-size: 8px !important; }
    .hero-visual-caption { font-size: 7px !important; }
    .win-tag { font-size: 8px !important; }
    .match-card .match-center .sets .set-chip { font-size: 8px !important; }
    .event-date-box .txt-strong { font-size: 25px !important; }
    .event-date-box span { font-size: 9px !important; }
    .event-date-box small { font-size: 8px !important; }
    .event-card h3 { font-size: 16px !important; }
    .event-meta { font-size: 10px !important; }
    .event-card-foot .txt-strong { font-size: 20px !important; }
    .event-card-foot span { font-size: 9px !important; }
    .event-hero-date .txt-strong { font-size: 38px !important; }
    .event-hero-date span { font-size: 10px !important; }
    .event-hero-date small { font-size: 8px !important; }
    .event-hero-copy h2 { font-size: 21px !important; }
    .venue-card h3 { font-size: 16px !important; }
    .venue-address { font-size: 10px !important; }
    .venue-meta { font-size: 9px !important; }
    .venue-foot .txt-strong { font-size: 22px !important; }
    .venue-foot .txt-strong small { font-size: 8px !important; }
    .venue-foot > span { font-size: 10px !important; }
    .venue-hero h2 { font-size: 24px !important; }
    .venue-hero p { font-size: 11px !important; }
    .circle-card h3 { font-size: 16px !important; }
    .circle-card p { font-size: 10px !important; }
    .circle-card-foot { font-size: 9px !important; }
    .circle-hero h2 { font-size: 21px !important; }
    .circle-hero p { font-size: 12px !important; }
    .circle-member .txt-strong { font-size: 12px !important; }
    .circle-member > span:last-child { font-size: 9px !important; }
    .event-round > h3 { font-size: 11px !important; }
    .event-match-player { font-size: 12px !important; }
    .event-match-score { font-size: 15px !important; }
    .rental-form .field label { font-size: 10px !important; }
    .rental-date .txt-strong { font-size: 25px !important; }
    .rental-date span { font-size: 8px !important; }
    .rental-title h3 { font-size: 16px !important; }
    .rental-meta { font-size: 9px !important; }
    .rental-side .txt-strong { font-size: 22px !important; }
    .competition-tabs a { font-size: 13px !important; }
    .referee-avatar { font-size: 20px !important; }
    .referee-card h3 { font-size: 14px !important; }
    .referee-stats .txt-strong { font-size: 21px !important; }
    .referee-stats span { font-size: 8px !important; }
    .referee-card > p { font-size: 9px !important; }
    .referee-foot { font-size: 8px !important; }
    .referee-hero-avatar { font-size: 28px !important; }
    .referee-hero h2 { font-size: 21px !important; }
    .referee-hero p { font-size: 12px !important; }
    .referee-form .field label { font-size: 10px !important; }
    .event-service .txt-strong { font-size: 14px !important; }
    .event-service > span > span { font-size: 9px !important; }
    .member-event-date .txt-strong { font-size: 24px !important; }
    .member-event-date span { font-size: 8px !important; }
    .member-event-main h3 { font-size: 15px !important; }
    .member-event-action { font-size: 10px !important; }
    .member-mini-stats .txt-strong { font-size: 20px !important; }
    .member-mini-stats span { font-size: 9px !important; }
    .member-menu-group { font-size: 10px !important; }
    .legal-content h2 { font-size: 18px !important; }
    .legal-content p { font-size: 12px !important; }
    .legal-updated { font-size: 10px !important; }
    .legal-aside h2 { font-size: 20px !important; }
    .legal-aside a { font-size: 12px !important; }
    /* Footer agreements row */ .footer-agreements { font-size: 10px !important; }
    .settings-nav a { font-size: 10px !important; }
    .settings-fold summary { font-size: 12px !important; }
    .settings-fold summary span { font-size: 9px !important; }
    .ai-welcome h2 { font-size: 22px !important; }
    .ai-welcome p { font-size: 11px !important; }
    .ai-bubble { font-size: 12px !important; }
    .ai-time { font-size: 8px !important; }
    .ai-suggestions button { font-size: 10px !important; }
    .ai-training-hero .txt-strong { font-size: 58px !important; }
    .ai-training-hero p { font-size: 11px !important; }
    .ai-training-stats .txt-strong { font-size: 25px !important; }
    .ai-training-stats span { font-size: 9px !important; }
    .ai-list { font-size: 12px !important; }
    .ai-plan { font-size: 11px !important; }
    .ai-recommend-head h2 { font-size: 20px !important; }
    .ai-recommend-head p:not(.eyebrow) { font-size: 10px !important; }
    .ai-recommend-card .txt-strong { font-size: 12px !important; }
    .ai-review-hint { font-size: 9px !important; }
    /* ---------- AI entry points ---------- */ .header-ai { font-size: 11px !important; }
    .ai-fab { font-size: 11px !important; }
    .ai-home-copy h2 { font-size: 22px !important; }
    .ai-home-copy p { font-size: 10px !important; }
    .ai-home-actions a { font-size: 10px !important; }
    .growth-hero h2 { font-size: 30px !important; }
    .growth-hero p { font-size: 12px !important; }
    .growth-stats .txt-strong { font-size: 22px !important; }
    .growth-stats span { font-size: 9px !important; }
    .growth-share-box label { font-size: 10px !important; }
    .growth-share-box .input { font-size: 10px !important; }
    .growth-task .txt-strong { font-size: 12px !important; }
    .growth-task span { font-size: 10px !important; }
    .notification-item .txt-strong { font-size: 12px !important; }
    .notification-item span span { font-size: 10px !important; }
    .availability-day > .txt-strong { font-size: 11px !important; }
    .city-hero h1 { font-size: 31px !important; }
    .city-hero p { font-size: 12px !important; }
    .city-hero-mark { font-size: 68px !important; }
    .poster-top { font-size: 11px !important; }
    .poster-top span:last-child { font-size: 8px !important; }
    .poster-body h1 { font-size: 36px !important; }
    .poster-body p:not(.eyebrow) { font-size: 11px !important; }
    .poster-code { font-size: 12px !important; }
    .poster-code .txt-strong { font-size: 24px !important; }
    .poster-body small { font-size: 8px !important; }
    .poster-foot { font-size: 9px !important; }
    .settings-side h2 { font-size: 20px !important; }
    .settings-side a { font-size: 11px !important; }
    /* Admin top logout */ .admin-logout { font-size: 10px !important; }
    .footer-agreements a { font-size: 10px !important; }
    .footer-legal a { font-size: 10px !important; }
    .footer-legal span { font-size: 10px !important; }
    .footer-icp { font-size: 10px !important; }
    /* Brand name and subtitle share the same left/right edges */ .site-brand .brand-word { font-size: 21px !important; }
    .footer-logo .brand-word { font-size: 20px !important; }
    .site-brand .brand-word { font-size: 16px !important; }
    .quick-list .badge { font-size: 9px !important; }
    .quick-list .btn { font-size: 10px !important; }
}


/* Mobile brand name: keep the 2px reduction readable */
@media (max-width: 760px) {
    .site-brand .brand-word { font-size: 18px !important; }
}
@media (max-width: 380px) {
    .site-brand .brand-word { font-size: 16px !important; }
}

/* Day separators also get a little more definition */
html:not([data-theme="night"]) .quick-list a,
html:not([data-theme="night"]) .news-row,
html:not([data-theme="night"]) .referee-foot { border-color: #d9d9d9 !important; }
/* Referee cards: redesigned hierarchy */
.referee-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.referee-card {
    min-height: 0; padding: 22px; border-radius: 22px;
    display: flex; flex-direction: column; gap: 0;
    color: var(--ink); text-decoration: none;
}
.referee-card:hover { transform: translateY(-2px); border-color: var(--line); }
.referee-card-top { display: flex; align-items: flex-start; gap: 12px; }
.referee-avatar {
    width: 48px; height: 48px; border-radius: 16px;
    background: #e8e8e8; color: #111111;
    font-family: var(--display); font-size: 20px; font-weight: 700;
}
.referee-identity { flex: 1; min-width: 0; }
.referee-identity h3 {
    margin: 0 0 6px; font-size: 18px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.referee-identity .badge { font-size: 10px; padding: 3px 8px; }
.referee-price { margin-left: auto; text-align: right; white-space: nowrap; }
.referee-price strong { display: block; font-family: var(--display); font-size: 21px; line-height: 1; color: inherit; }
.referee-price small { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }
.referee-stats {
    display: flex; gap: 0; margin-top: 15px; padding: 13px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.referee-stats > div { flex: 1; min-width: 0; padding: 0 14px; border-right: 1px solid var(--line); }
.referee-stats > div:first-child { padding-left: 0; }
.referee-stats > div:last-child { border-right: 0; padding-right: 0; }
.referee-stats .txt-strong { display: block; font-family: var(--display); font-size: 21px; line-height: 1.05; color: inherit; }
.referee-stats span:not(.txt-strong) { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }
.referee-card > p {
    margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.referee-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 10px;
}
.referee-foot > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.referee-action { color: #111111; font-weight: 700; white-space: nowrap; }
html[data-theme="night"] .referee-avatar { background: #222222; color: var(--lime); }
html[data-theme="night"] .referee-action { color: var(--lime); }
.referee-card--compact { padding: 18px; }
.referee-card--compact .referee-foot { margin-top: 14px; padding-top: 0; border-top: 0; }
.referee-card--compact .referee-price strong { font-size: 18px; }
@media (max-width: 640px) {
    .referee-grid { grid-template-columns: 1fr; }
    .referee-card { padding: 18px; }
    .referee-identity h3 { font-size: 17px; }
    .referee-price strong { font-size: 19px; }
    .referee-stats .txt-strong { font-size: 19px; }
}
.referee-foot > span.referee-action { color: #111111 !important; font-weight: 700; white-space: nowrap; }
html[data-theme="night"] .referee-foot > span.referee-action { color: var(--lime) !important; }
/* Referee stats separators */
.referee-stats {
    border-top: 1px solid #d9d9d9 !important;
    border-bottom: 1px solid #d9d9d9 !important;
}
html[data-theme="night"] .referee-stats {
    border-top-color: #444444 !important;
    border-bottom-color: #444444 !important;
}