  * { box-sizing: border-box; margin: 0; padding: 0; }
  /* 默认深色主题 */
  :root, :root[data-theme="dark"] {
    --bg: #0b1020;
    --bg-2: #121934;
    --card: #161f42;
    --card-2: #1e2a52;
    --card-inner: var(--card-inner);
    --border: #273365;
    --text: #e8ecff;
    --text-dim: #8a94c8;
    --accent: #ffd447;
    --accent-2: #26d07c;
    --red: #ff5b7a;
    --blue: #4f8cff;
    --header-bg: rgba(11,16,32,0.85);
    --glow-1: #1b2a6b;
    --glow-2: #3a1b6b;
    --shadow: 0 10px 30px rgba(0,0,0,.4);
  }
  /* 浅色主题 */
  :root[data-theme="light"] {
    --bg: #f5f7fc;
    --bg-2: #eef1f9;
    --card: #ffffff;
    --card-2: #f8faff;
    --card-inner: #f0f3fb;
    --border: #dde3f3;
    --text: #1a2140;
    --text-dim: #6b7594;
    --accent: #f0a500;
    --accent-2: #10b981;
    --red: #e53e5a;
    --blue: #3366ff;
    --header-bg: rgba(255,255,255,0.85);
    --glow-1: #d9e4ff;
    --glow-2: #f0e0ff;
    --shadow: 0 10px 30px rgba(30,40,80,.10);
  }
  html { overflow-x: hidden; width: 100%; }
  html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft Yahei", sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, var(--glow-1) 0%, transparent 60%),
                radial-gradient(1000px 500px at 90% -20%, var(--glow-2) 0%, transparent 60%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    width: 100%; max-width: 100%;
    overflow-x: hidden;
    transition: background .25s ease, color .25s ease;
  }

  /* 足球六角形纹理背景（覆盖在整个页面上，非常轻微） */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M30 1 L55 14 L55 38 L30 51 L5 38 L5 14 Z' fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 60px 52px;
  }
  :root[data-theme="light"] body::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M30 1 L55 14 L55 38 L30 51 L5 38 L5 14 Z' fill='none' stroke='%23000000' stroke-width='0.4' opacity='0.025'/%3E%3C/svg%3E");
  }
  body > * { position: relative; z-index: 1; }
  a { color: inherit; text-decoration: none; }

  /* Header */
  header {
    display: flex; align-items: center;
    padding: 0 24px; height: 56px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
    background: var(--header-bg);
    gap: 6px;
    width: 100%; box-sizing: border-box;
    overflow: hidden;
  }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; flex-shrink: 0; margin-right: 8px; }
  .logo .ball {
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0 20%, #111 21% 24%, #fff 25% 55%, #111 56% 60%, #fff 61% 100%);
    animation: spin-ball 8s linear infinite;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }
  @keyframes spin-ball { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

  /* Inline header navigation (Polymarket-style) */
  .header-nav {
    display: flex; align-items: center; gap: 2px;
    overflow-x: auto; scrollbar-width: none;
    flex: 1; min-width: 0;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .hn-item {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    color: var(--text-dim); white-space: nowrap;
    transition: color .15s, background .15s;
    text-decoration: none; border: none; background: none;
  }
  .hn-item:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .hn-item.active { color: var(--accent); background: rgba(255,212,71,.08); }
  :root[data-theme="light"] .hn-item:hover { background: rgba(0,0,0,.04); }
  :root[data-theme="light"] .hn-item.active { background: rgba(240,165,0,.1); }

  /* Header right utils */
  .header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

  /* Single theme toggle button */
  .theme-toggle-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--card);
    color: var(--text); cursor: pointer; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .15s, transform .08s;
    flex-shrink: 0;
  }
  .theme-toggle-btn:hover { border-color: var(--accent); }
  .theme-toggle-btn:active { transform: scale(0.93); }

  /* "我的" dropdown button */
  .my-wrapper { position: relative; flex-shrink: 0; }
  .btn-my {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--card);
    color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
  }
  .btn-my:hover { border-color: var(--accent); }
  .btn-my .my-caret { font-size: 10px; color: var(--text-dim); transition: transform .2s; }
  .btn-my.open .my-caret { transform: rotate(180deg); }

  /* Wallet wrapper */
  .wallet-wrapper { position: relative; flex-shrink: 0; }
  /* Wallet button — merged state */
  .wallet-btn { white-space: nowrap; }
  .wallet-btn.connected {
    background: var(--card); border: 1px solid var(--border);
    color: var(--text); font-size: 13px; font-weight: 600;
    font-family: monospace;
  }
  .wallet-btn.connected:hover { border-color: var(--accent); }

  /* Dropdown menus (shared) */
  .wallet-menu, .profile-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 6px; min-width: 200px;
    box-shadow: var(--shadow);
    display: none; z-index: 26;
  }
  .wallet-menu.show, .profile-menu.show { display: block; }
  .wallet-menu .item, .profile-menu .item {
    padding: 10px 12px; border-radius: 7px; cursor: pointer;
    font-size: 13px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
    transition: background .15s;
  }
  .wallet-menu .item:hover, .profile-menu .item:hover { background: var(--card-inner); }
  .wallet-menu .item.danger, .profile-menu .item.danger { color: var(--red); }
  .wallet-menu .divider, .profile-menu .divider { height: 1px; background: var(--border); margin: 4px 0; }
  .wallet-menu .item .ico, .profile-menu .item .ico { width: 18px; text-align: center; flex-shrink: 0; }
  .wallet-menu .head, .profile-menu .head {
    padding: 10px 12px; border-bottom: 1px solid var(--border);
    margin-bottom: 4px; font-size: 11px; color: var(--text-dim);
  }
  .wallet-menu .head .addr, .profile-menu .head .addr {
    color: var(--text); font-size: 13px; font-weight: 600; word-break: break-all; margin-top: 2px;
  }
  .profile-menu .item .ico-btn {
    background: transparent; border: 0; cursor: pointer; font-size: 12px;
    color: var(--text-dim); padding: 4px; border-radius: 4px;
    transition: background .15s, color .15s;
  }
  .profile-menu .item .ico-btn:hover { background: var(--border); color: var(--text); }

  /* Mobile bottom navigation */
  .mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--header-bg); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border); z-index: 20;
    justify-content: space-around; align-items: flex-end;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    height: auto;
  }
  .mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 6px 8px; cursor: pointer;
    color: var(--text-dim); font-size: 10px; font-weight: 600;
    transition: color .15s; flex: 1; text-align: center;
  }
  .mobile-nav-item.active { color: var(--accent); }
  .mobile-nav-icon { font-size: 18px; line-height: 1; }

  /* Tablet: hide less-used nav items */
  @media (max-width: 1100px) {
    .hn-item { padding: 6px 10px; font-size: 12px; }
  }
  /* Mobile */
  @media (max-width: 780px) {
    .mobile-nav { display: flex; }
    .header-nav { display: none; }
    header { padding: 0 12px; height: 50px; gap: 6px; }
    .logo span { display: none; }
    .btn-my { display: none; }
    .btn { padding: 8px 12px; font-size: 13px; }
    .wallet-btn { padding: 8px 10px; font-size: 12px; }
    .theme-toggle-btn { width: 32px; height: 32px; font-size: 14px; }
    body { padding-bottom: 56px; }
    .aside { bottom: 56px !important; }
    .home-section-header h3 { font-size: 14px; }
    .home-more { font-size: 12px; }
    .hero-banner-inner { padding: 16px; }
  }
  /* Category Bar (legacy — hidden, nav now inline in header) */
  .category-bar {
    display: none;
  }
  .category-bar-inner {
    display: flex; gap: 2px; padding: 6px 20px;
    overflow-x: auto; scrollbar-width: none;
    max-width: 1400px; margin: 0 auto;
  }
  .category-bar-inner::-webkit-scrollbar { display: none; }
  .category-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    color: var(--text-dim); white-space: nowrap;
    transition: all .15s ease;
    border: 1px solid transparent;
  }
  .category-item:hover { color: var(--text); background: var(--card); }
  .category-item.active {
    color: var(--accent); background: rgba(255,212,71,.08);
    border-color: rgba(255,212,71,.25);
  }
  .cat-icon { font-size: 16px; line-height: 1; }
  @media (max-width: 780px) {
    .category-bar { top: 49px; }
    .category-bar-inner { padding: 5px 12px; }
    .category-item { padding: 6px 12px; font-size: 12px; }
  }
  /* Sub-navigation (within a category) */
  .sub-nav {
    display: flex; gap: 4px; padding: 8px 0; margin-bottom: 16px;
    overflow-x: auto; scrollbar-width: none;
  }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav-item {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    color: var(--text-dim); white-space: nowrap;
    background: var(--card); border: 1px solid var(--border);
    transition: all .15s ease;
  }
  .sub-nav-item:hover { color: var(--text); border-color: var(--text-dim); }
  .sub-nav-item.active {
    color: #fff; background: linear-gradient(135deg, #26d07c, #1a9d5b);
    border-color: transparent;
  }
  .football-sub { display: none; }
  .football-sub.active { display: block; }
  @media (max-width: 780px) {
    .sub-nav-item { padding: 6px 10px; font-size: 12px; }
  }
  /* Home dashboard (aggregated trending) */
  .home-featured {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px;
    margin-bottom: 24px;
  }
  .home-featured-main {
    position: relative; overflow: hidden; border-radius: 16px;
    min-height: 280px; display: flex; align-items: flex-end; cursor: pointer;
    transition: transform .2s;
  }
  .home-featured-main:hover { transform: translateY(-2px); }
  .home-featured-main .hf-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.4) saturate(1.3); transition: transform .4s;
  }
  .home-featured-main:hover .hf-bg { transform: scale(1.03); }
  .home-featured-main .hf-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  }
  .home-featured-main .hf-content {
    position: relative; z-index: 1; padding: 24px; width: 100%;
  }
  .home-featured-main .hf-badge {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; margin-bottom: 10px;
    background: rgba(255,212,71,.15); color: var(--accent); border: 1px solid rgba(255,212,71,.3);
  }
  .home-featured-main .hf-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
  .home-featured-main .hf-meta { font-size: 12px; color: rgba(255,255,255,.5); }
  .home-featured-main .hf-odds { display: flex; gap: 6px; margin-top: 12px; }
  .home-featured-main .hf-odd {
    padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: #fff; backdrop-filter: blur(4px);
  }
  .home-featured-side { display: flex; flex-direction: column; gap: 12px; }
  .home-featured-card {
    position: relative; overflow: hidden; border-radius: 12px;
    flex: 1; display: flex; align-items: flex-end; cursor: pointer;
    transition: transform .2s;
  }
  .home-featured-card:hover { transform: translateY(-2px); }
  .home-featured-card .hf-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.35); transition: transform .3s;
  }
  .home-featured-card:hover .hf-bg { transform: scale(1.05); }
  .home-featured-card .hf-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 70%);
  }
  .home-featured-card .hf-content { position: relative; z-index: 1; padding: 14px; width: 100%; }
  .home-featured-card .hf-badge {
    display: inline-block; padding: 2px 8px; border-radius: 5px;
    font-size: 10px; font-weight: 700; margin-bottom: 6px;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  }
  .home-featured-card .hf-title { font-size: 14px; font-weight: 700; color: #fff; }
  .home-featured-card .hf-meta { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 3px; }
  @media (max-width: 780px) {
    .home-featured { grid-template-columns: 1fr; }
    .home-featured-main { min-height: 200px; }
    .home-featured-side { flex-direction: row; }
    .home-featured-card { min-height: 130px; }
  }
  /* Home sections */
  .home-section { margin-bottom: 24px; }
  .home-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
  }
  .home-section-header h3 { font-size: 16px; font-weight: 700; }
  .home-more {
    font-size: 13px; color: var(--accent); cursor: pointer; font-weight: 600;
    transition: opacity .15s;
  }
  .home-more:hover { opacity: .7; }
  .home-hot-strip {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: none;
  }
  .home-hot-strip::-webkit-scrollbar { display: none; }
  .home-hot-strip .trending-card { min-width: 280px; flex-shrink: 0; }
  .home-cat-strip {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px;
    width: 100%;
  }
  .home-cat-card {
    position: relative; overflow: hidden; border-radius: 12px;
    height: 140px; display: flex; align-items: flex-end;
    cursor: pointer; transition: transform .2s;
  }
  .home-cat-card:hover { transform: translateY(-3px); }
  .home-cat-card .hcc-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.4); transition: transform .3s;
  }
  .home-cat-card:hover .hcc-bg { transform: scale(1.05); }
  .home-cat-card .hcc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 55%);
  }
  .home-cat-card .hcc-content { position: relative; z-index: 1; padding: 12px; width: 100%; }
  .home-cat-card .hcc-title { font-size: 13px; font-weight: 700; color: #fff; }
  .home-cat-card .hcc-meta { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 3px; }
  .home-cat-card .hcc-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 600; margin-bottom: 6px;
    background: rgba(255,212,71,.15); color: var(--accent);
  }
  @media (max-width: 780px) {
    .home-cat-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
    .home-cat-card { height: 120px; }
  }

  /* Trending grid */
  .trending-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 14px; width: 100%;
  }
  .trending-card {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border); border-radius: 14px; padding: 18px;
    cursor: pointer; transition: all .2s ease;
    position: relative; overflow: hidden;
    min-width: 0;
  }
  .trending-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(255,212,71,.08);
    transform: translateY(-2px);
  }
  .trending-card .tc-cat {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-dim); margin-bottom: 10px;
  }
  .trending-card .tc-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; overflow-wrap: break-word; word-break: break-word; }
  .trending-card .tc-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 12px; margin-bottom: 12px; }
  .trending-card .tc-odds {
    display: flex; gap: 6px;
  }
  .trending-card .tc-odd {
    flex: 1; text-align: center; padding: 8px 6px; border-radius: 8px;
    background: var(--card-inner); border: 1px solid var(--border);
    font-size: 12px; transition: all .15s;
  }
  .trending-card .tc-odd:hover { border-color: var(--accent); }
  .trending-card .tc-odd .tc-label { color: var(--text-dim); font-size: 10px; }
  .trending-card .tc-odd .tc-val { font-weight: 700; font-size: 15px; margin-top: 2px; }
  .trending-card .tc-vol {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; font-size: 11px; color: var(--text-dim);
  }
  .trending-card .tc-hot { color: var(--red); font-weight: 600; }
  /* Category hero sections */
  .cat-hero {
    position: relative; overflow: hidden; border-radius: 16px;
    min-height: 320px; display: flex; align-items: flex-end;
    margin-bottom: 20px;
  }
  .cat-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.4) saturate(1.2);
    transition: transform .4s ease;
  }
  .cat-hero:hover .cat-hero-bg { transform: scale(1.03); }
  .cat-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  }
  .cat-hero-content {
    position: relative; z-index: 2; padding: 28px; width: 100%;
  }
  .cat-hero-badge {
    display: inline-block; padding: 4px 14px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
    margin-bottom: 12px; text-transform: uppercase;
  }
  .cat-hero-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
  .cat-hero-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
  .cat-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .cat-hero-tag {
    padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8); backdrop-filter: blur(4px);
  }
  .cat-hero-soon {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
    color: #1a1300; font-weight: 700; font-size: 13px;
    margin-top: 14px;
  }
  /* Sub-event cards grid */
  .cat-events-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 12px; margin-top: 6px;
  }
  .cat-event-card {
    position: relative; overflow: hidden; border-radius: 12px;
    height: 160px; display: flex; align-items: flex-end;
    cursor: default; transition: transform .2s ease;
  }
  .cat-event-card:hover { transform: translateY(-3px); }
  .cat-event-card .ce-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.45);
    transition: transform .3s ease;
  }
  .cat-event-card:hover .ce-bg { transform: scale(1.05); }
  .cat-event-card .ce-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 60%);
  }
  .cat-event-card .ce-content {
    position: relative; z-index: 1; padding: 14px;
  }
  .cat-event-card .ce-title { font-size: 14px; font-weight: 700; color: #fff; }
  .cat-event-card .ce-meta { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }
  .coming-soon-wrap { display: flex; justify-content: center; padding: 40px 0; }
  .coming-soon-card {
    text-align: center; padding: 48px 32px;
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px dashed var(--border); border-radius: 20px;
    max-width: 420px; width: 100%;
  }
  .coming-soon-icon { font-size: 48px; margin-bottom: 16px; }
  .coming-soon-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
  .coming-soon-card p { font-size: 14px; color: var(--text-dim); }
  @media (max-width: 780px) {
    .cat-hero { min-height: 240px; }
    .cat-hero-title { font-size: 18px; }
    .cat-events-grid { grid-template-columns: 1fr 1fr; }
    .cat-event-card { height: 130px; }
  }
  @media (max-width: 780px) {
    .trending-grid { grid-template-columns: 1fr; }
  }
  .btn {
    padding: 10px 16px; border-radius: 10px; border: 0;
    cursor: pointer; font-weight: 600; font-size: 14px;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%); color: #1a1300; }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
  .btn-green { background: linear-gradient(135deg, #26d07c, #1a9d5b); color: #04210f; }
  .btn-small { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
  /* Chain button (legacy — wallet-btn.connected replaces this) */
  .chain-btn.connected { display: none; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px; font-size: 12px;
    background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  }
  /* Header utility (legacy) */
  .header-utils { display: none; }
  .icon-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--card);
    color: var(--text); cursor: pointer; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .15s ease, transform .08s ease;
  }
  .icon-btn:hover { border-color: var(--accent); }
  .icon-btn:active { transform: scale(0.95); }
  .lang-toggle {
    display: inline-flex; background: var(--card);
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
    font-size: 12px; font-weight: 600;
  }
  .lang-toggle button {
    border: 0; background: transparent; color: var(--text-dim);
    padding: 8px 12px; cursor: pointer; font-weight: 600;
    transition: background .15s ease, color .15s ease;
  }
  .lang-toggle button.active { background: var(--accent); color: #1a1300; }
  .lang-toggle button:hover:not(.active) { color: var(--text); }
  @media (max-width: 780px) {
    .lang-toggle button { padding: 6px 9px; font-size: 11px; }
    .icon-btn { width: 32px; height: 32px; font-size: 14px; }
  }
  /* Theme toggle group (3-state) */
  .theme-toggle {
    display: inline-flex; background: var(--card);
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  }
  .theme-btn {
    border: 0; background: transparent; color: var(--text-dim);
    padding: 7px 10px; cursor: pointer; font-size: 14px;
    transition: background .15s ease, color .15s ease;
  }
  .theme-btn.active { background: var(--accent); color: #1a1300; }
  .theme-btn:hover:not(.active) { color: var(--text); }
  /* Profile language buttons */
  .profile-lang-btn {
    padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--card-inner); color: var(--text-dim); cursor: pointer;
    font-size: 12px; font-weight: 600; transition: all .15s;
  }
  .profile-lang-btn.active { background: var(--accent); color: #1a1300; border-color: var(--accent); }
  .profile-lang-btn:hover:not(.active) { border-color: var(--text-dim); color: var(--text); }
  /* nav items: clickable */
  nav ul li { cursor: pointer; padding: 6px 2px; transition: color .15s ease; }
  nav ul li:hover { color: var(--text); }
  /* docs/contract modal body */
  .info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
  .info-row:last-child { border-bottom: 0; }
  .info-row .k { color: var(--text-dim); }
  .info-row .v { color: var(--text); font-weight: 600; word-break: break-all; max-width: 60%; text-align: right; }
  .modal .body-text { color: var(--text-dim); font-size: 13px; line-height: 1.7; }
  .modal .body-text strong { color: var(--text); }

  /* ====== Hero Banner — 紧凑 + 炫酷 ====== */
  .hero-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #060e1a 0%, #0a1e12 35%, #0d2a18 55%, #08121e 100%);
    border-bottom: 2px solid var(--accent-2);
  }
  .hero-banner-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 100% at 75% 50%, rgba(38,208,124,.08) 0%, transparent 70%),
      radial-gradient(ellipse 40% 80% at 20% 40%, rgba(79,140,255,.05) 0%, transparent 60%),
      repeating-linear-gradient(90deg, rgba(255,255,255,.004) 0px, rgba(255,255,255,.004) 60px, transparent 60px, transparent 120px);
    pointer-events: none;
  }
  /* 动态光效 */
  .hero-glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(60px); z-index: 0;
  }
  .hero-glow-1 {
    width: 300px; height: 300px; right: 10%; top: -40%;
    background: radial-gradient(circle, rgba(255,212,71,.12) 0%, transparent 70%);
    animation: glow-drift 6s ease-in-out infinite;
  }
  .hero-glow-2 {
    width: 200px; height: 200px; left: 30%; bottom: -30%;
    background: radial-gradient(circle, rgba(38,208,124,.1) 0%, transparent 70%);
    animation: glow-drift 8s ease-in-out infinite reverse;
  }
  @keyframes glow-drift {
    0%, 100% { transform: translate(0, 0); opacity: .6; }
    50% { transform: translate(20px, -15px); opacity: 1; }
  }
  /* 球星图片 */
  .hero-player {
    position: absolute; bottom: 0; pointer-events: none;
    height: 110%; width: auto; max-width: 320px;
    object-fit: cover; object-position: top center;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.4) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,.4) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
    mix-blend-mode: luminosity;
    opacity: .35;
    filter: contrast(1.3) brightness(1.1);
  }
  .hero-player-1 { right: 2%; }
  .hero-player-2 { right: 18%; opacity: .2; }
  .hero-football {
    position: absolute; top: 12px; right: 12%;
    width: 60px; height: 60px; border-radius: 50%;
    object-fit: cover; z-index: 2;
    opacity: .2; filter: brightness(1.8) drop-shadow(0 0 20px rgba(255,212,71,.3));
    animation: ball-float 4s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes ball-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(12deg); }
  }
  /* 内容 */
  .hero-banner-inner {
    position: relative; z-index: 3;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 32px; gap: 20px;
    max-width: 1400px; margin: 0 auto;
    box-sizing: border-box; width: 100%;
    overflow: hidden;
  }
  .hero-left { flex: 1; }
  .hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,212,71,.18), rgba(255,179,0,.08));
    border: 1px solid rgba(255,212,71,.35);
    color: #ffd447; font-size: 12px; font-weight: 800;
    padding: 5px 14px; border-radius: 999px;
    letter-spacing: 1.5px; margin-bottom: 10px;
    text-shadow: 0 1px 6px rgba(255,180,0,.4);
    box-shadow: 0 0 20px rgba(255,212,71,.08);
  }
  .hero-left h1 {
    font-size: 24px; color: #fff; letter-spacing: 0.3px; font-weight: 800;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
  }
  .hero-left h1::before { content: ''; font-size: 20px; }
  .hero-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
  }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.55);
  }
  .hero-right {
    display: flex; gap: 10px; flex-shrink: 1; min-width: 0;
  }
  .hero-right .stat {
    min-width: 0; flex: 1;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    padding: 10px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
  }
  .hero-right .stat .k { color: rgba(255,255,255,.4); font-size: 11px; }
  .hero-right .stat .v { color: #fff; font-size: 16px; }
  /* 数据源紧凑横条 */
  .data-bar {
    padding: 6px 24px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box; width: 100%;
  }
  @media (max-width: 960px) {
    .hero-banner-inner { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 12px; }
    .hero-right { width: 100%; }
    .hero-right .stat { flex: 1; min-width: 0; }
  }
  @media (max-width: 780px) {
    .hero-banner-inner { padding: 16px; }
    .hero-left h1 { font-size: 18px; }
    .hero-badge { font-size: 10px; padding: 4px 10px; }
    .hero-player { max-width: 160px; opacity: .2; }
    .hero-player-2 { display: none; }
    .hero-football { width: 40px; height: 40px; right: 5%; top: 8px; }
    .hero-right .stat { padding: 8px 10px; }
    .hero-right .stat .v { font-size: 13px; }
    .hero-right .stat .k { font-size: 9px; }
    .data-bar { padding: 5px 16px; }
  }

  .stats { display: flex; gap: 10px; flex-wrap: wrap; }
  .stat {
    background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border);
    padding: 12px 16px; border-radius: 12px; min-width: 150px;
    position: relative; overflow: hidden;
  }
  .stat::before {
    content: '⚽'; position: absolute; right: -4px; bottom: -6px;
    font-size: 36px; opacity: .04; pointer-events: none;
  }
  .stat .k { color: var(--text-dim); font-size: 12px; }
  .stat .v { font-size: 18px; font-weight: 700; margin-top: 3px; }
  @media (max-width: 780px) {
    .stats { width: 100%; gap: 8px; }
    .stat { flex: 1; min-width: 0; padding: 10px 12px; }
    .stat .v { font-size: 15px; }
    .stat .k { font-size: 11px; }
  }

  /* Layout */
  .wrap {
    display: grid; grid-template-columns: 1fr 340px; gap: 20px;
    padding: 24px 32px 40px; max-width: 1400px; margin: 0 auto;
    width: 100%; box-sizing: border-box;
    overflow: hidden;
  }
  .wrap.wrap-single { grid-template-columns: 1fr; }
  @media (max-width: 1440px) { .wrap { padding: 24px 24px 40px; } }
  @media (max-width: 960px) { .wrap { grid-template-columns: 1fr; padding: 18px 16px 80px; gap: 14px; } }

  /* Matches */
  .page-section { display: none; }
  .page-section.active { display: block; overflow: hidden; }
  .section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .section-title h2 { font-size: 16px; }

  /* Social binding cards */
  .social-bind-card {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px;
  }
  .social-bind-card .social-info { display: flex; align-items: center; gap: 12px; }
  .social-bind-card .social-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .social-bind-card .social-name { font-weight: 600; font-size: 14px; }
  .social-bind-card .social-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
  .social-bind-card .social-bound { font-size: 13px; color: var(--accent-2); font-weight: 600; }
  .social-bind-card .btn-bind {
    padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--card-inner); color: var(--text); cursor: pointer;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: border-color .15s ease, background .15s ease;
  }
  .social-bind-card .btn-bind:hover { border-color: var(--accent); }
  .social-bind-card .btn-bind.bound { border-color: var(--accent-2); color: var(--accent-2); cursor: default; }

  /* Bet history list (full page) */
  .bets-list { display: grid; gap: 10px; }
  .bet-card {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
    border-left: 3px solid var(--accent);
  }
  .bet-card.won { border-left-color: var(--accent-2); }
  .bet-card.lost { border-left-color: var(--red); }
  .bet-card .bet-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
  .bet-card .bet-match { font-weight: 600; font-size: 15px; }
  .bet-card .bet-status { font-size: 12px; font-weight: 600; }
  .bet-card .bet-detail { color: var(--text-dim); font-size: 13px; line-height: 1.7; }
  .bet-card .bet-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
  .bet-card .bet-tx { color: var(--text-dim); font-size: 11px; font-family: monospace; text-decoration: none; }
  .bet-card .bet-tx:hover { color: var(--accent); }
  .bet-card .bet-time { color: var(--text-dim); font-size: 11px; }
  .filters { display: flex; gap: 8px; }
  .match-list { display: grid; gap: 12px; }
  .match {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
    display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
    border-left: 3px solid var(--accent-2);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    position: relative; overflow: hidden;
  }
  .match:hover {
    border-color: var(--accent);
    border-left-color: var(--accent-2);
    box-shadow: 0 4px 20px rgba(38,208,124,.12), inset 0 0 30px rgba(38,208,124,.04);
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%), linear-gradient(90deg, transparent 0%, rgba(38,208,124,.03) 100%);
  }
  @media (max-width: 780px) {
    .match { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
    .match .teams { font-size: 15px; }
  }
  .match .meta { color: var(--text-dim); font-size: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,91,122,.7); animation: pulse 1.4s infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,91,122,.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,91,122,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,91,122,0); }
  }
  .teams { display: flex; gap: 16px; align-items: center; margin-top: 8px; font-size: 16px; font-weight: 600; }
  .flag { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; display: inline-block; }
  .vs { color: var(--text-dim); font-size: 12px; font-weight: 500; }
  .odds { display: flex; gap: 8px; }
  @media (max-width: 780px) {
    .odds { width: 100%; }
    .odds .odd { flex: 1; min-width: 0; }
  }
  .odd {
    background: var(--card-inner); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 14px; min-width: 86px; text-align: center; cursor: pointer;
    transition: all .15s ease;
  }
  .odd:hover { border-color: var(--accent); background: #13204a; }
  .odd.selected { border-color: var(--accent); background: rgba(255,212,71,.12); }
  .odd.odd-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
  .match.match-no-bet { opacity: 0.75; border-left-color: var(--text-dim); }
  .odd .label { font-size: 11px; color: var(--text-dim); }
  .odd .val { font-size: 18px; font-weight: 700; margin-top: 2px; }
  .odd .delta { font-size: 10px; margin-top: 2px; }
  .delta.up { color: var(--accent-2); }
  .delta.down { color: var(--red); }

  /* Bet slip */
  .aside { position: sticky; top: 68px; align-self: start; }
  @media (max-width: 960px) {
    .aside {
      position: fixed; left: 0; right: 0; bottom: 0; top: auto;
      background: var(--bg-2); border-top: 1px solid var(--border);
      padding: 12px 14px 16px; z-index: 15;
      max-height: 70vh; overflow-y: auto;
      transform: translateY(calc(100% - 56px));
      transition: transform .3s ease;
    }
    .aside.open { transform: translateY(0); }
    .aside .slip { border: 0; background: transparent; padding: 0; }
    .aside .slip + .slip { display: none; }
    .slip-handle {
      display: block; width: 100%; text-align: center;
      color: var(--text); font-weight: 600; font-size: 14px;
      padding: 6px 0 12px; cursor: pointer; user-select: none;
    }
    .slip-handle::before {
      content: ''; display: block; width: 40px; height: 4px;
      background: var(--border); border-radius: 2px; margin: 0 auto 8px;
    }
  }
  @media (min-width: 961px) { .slip-handle { display: none; } }
  .slip {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border); border-radius: 14px; padding: 16px;
    position: relative; overflow: hidden;
  }
  .slip::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    opacity: .4;
  }
  .slip h3 { font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; }
  .slip .empty { color: var(--text-dim); font-size: 13px; padding: 20px 0; text-align: center; }
  .slip-item {
    background: var(--card-inner); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; margin-bottom: 8px;
  }
  .slip-item .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
  .slip-item .bot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
  .slip-item .pick { font-weight: 600; font-size: 14px; }
  .slip-item .odd-v { color: var(--accent); font-weight: 700; }
  .slip-item .rm { background: transparent; border: 0; color: var(--text-dim); cursor: pointer; }
  .slip .row { display: flex; justify-content: space-between; margin: 6px 0; font-size: 13px; }
  .slip .row.big { font-size: 15px; font-weight: 700; }
  .slip input {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    background: var(--card-inner); border: 1px solid var(--border); color: var(--text); font-size: 14px;
    margin-top: 8px;
  }
  .slip .btn { width: 100%; margin-top: 12px; padding: 12px; }

  /* Modal */
  .overlay {
    position: fixed; inset: 0; background: rgba(6,9,22,.72);
    /* 浅色主题下降低遮罩浓度 */
  }
  :root[data-theme="light"] .overlay { background: rgba(30,40,80,.35); }
  .overlay {
    display: none; align-items: center; justify-content: center; z-index: 20;
    backdrop-filter: blur(4px);
  }
  .overlay.show { display: flex; }
  .modal {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--border); border-radius: 16px;
    width: 92%; max-width: 420px; padding: 24px;
  }
  .modal h3 { margin-bottom: 4px; }
  .modal p.desc { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
  .chain-list { display: grid; gap: 8px; margin-bottom: 14px; }
  .chain {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: var(--card-inner); border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer;
  }
  .chain:hover { border-color: var(--accent); }
  .chain .left { display: flex; align-items: center; gap: 10px; }
  .chain .icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
  }
  .modal .close { float: right; background: transparent; border: 0; color: var(--text-dim); font-size: 18px; cursor: pointer; }

  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--card); border: 1px solid var(--accent);
    padding: 12px 20px; border-radius: 10px; font-size: 14px;
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0; transition: opacity .25s ease; z-index: 30;
  }
  .toast.show { opacity: 1; }

  /* 球场风格分隔线 */
  .pitch-divider {
    height: 2px; margin: 0 32px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-2) 20%, var(--accent-2) 50%, var(--accent-2) 80%, transparent 100%);
    opacity: .15;
    position: relative;
  }
  .pitch-divider::after {
    content: '⚽';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 14px; background: var(--bg); padding: 0 12px;
    opacity: .5;
  }

  /* 东道主城市横幅 */
  .city-chip {
    flex-shrink: 0;
    padding: 6px 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--border);
    font-size: 11px; color: var(--text-dim); white-space: nowrap;
  }
  .host-cities::-webkit-scrollbar { display: none; }
  @keyframes scroll-cities {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .host-cities { animation: scroll-cities 40s linear infinite; }
  .host-cities:hover { animation-play-state: paused; }

  footer {
    background: var(--bg-2); border-top: 1px solid var(--border);
    padding: 0; margin-top: 20px;
  }
  .footer-inner {
    display: flex; justify-content: space-between; gap: 32px;
    padding: 40px 24px 24px; max-width: 1400px; margin: 0 auto;
    box-sizing: border-box; width: 100%; overflow: hidden;
  }
  .footer-brand { flex-shrink: 0; }
  .footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
  .footer-desc { font-size: 13px; color: var(--text-dim); }
  .footer-links { display: flex; gap: 48px; }
  .footer-col { display: flex; flex-direction: column; gap: 8px; }
  .footer-col-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
  .footer-col a { font-size: 13px; color: var(--text); cursor: pointer; transition: color .15s; text-decoration: none; }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 32px; border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text-dim);
    max-width: 1400px; margin: 0 auto;
  }
  .footer-copyright { color: var(--text-dim); }
  @media (max-width: 780px) {
    .footer-inner { flex-direction: column; padding: 24px 16px 16px; gap: 24px; }
    .footer-links { gap: 24px; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; gap: 6px; padding: 12px 16px; text-align: center; }
  }
