/* ===== 世界杯足球杯 · 主题 ===== */
:root {
  --green:#0a8a3f; --green-dark:#064d24; --green-light:#16b35a;
  --gold:#ffcc33; --gold-dark:#e0a800; --ink:#0c1f14; --card:#fff;
  --line:rgba(255,255,255,.18); --radius:16px;
}
* { box-sizing:border-box; margin:0; padding:0; }
body {
  font-family:-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  color:var(--ink); min-height:100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(22,179,90,.35), transparent 42%),
    radial-gradient(circle at 88% -5%, rgba(255,204,51,.22), transparent 38%),
    linear-gradient(165deg,#06351c 0%,#0a5e30 55%,#053f1d 100%);
  background-attachment:fixed;
}
.hidden { display:none !important; }
.mono { font-family:ui-monospace,"SF Mono",Menlo,monospace; }

/* ===== 顶栏 ===== */
.topbar {
  display:flex; align-items:center; gap:14px; padding:12px 24px; flex-wrap:wrap;
  position:sticky; top:0; z-index:50;
  background:rgba(5,40,22,.82); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand { display:flex; align-items:center; gap:10px; cursor:pointer; }
.brand .ball { font-size:30px; animation:spin 6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.brand-badge { color:var(--gold); font-size:10px; font-weight:800; letter-spacing:2px; }
.brand-text h1 { color:#fff; font-size:19px; letter-spacing:.5px; }

.nav-tabs { display:flex; gap:6px; background:rgba(255,255,255,.08); padding:4px; border-radius:999px; }
.tab {
  border:none; background:transparent; color:#cfe9d6; cursor:pointer;
  padding:7px 18px; border-radius:999px; font-weight:700; font-size:14px; transition:.15s;
}
.tab.active { background:var(--gold); color:#3a2a00; }

.top-right { display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
.icon-btn {
  width:36px; height:36px; display:grid; place-items:center; border-radius:10px;
  background:rgba(255,255,255,.12); color:#fff; text-decoration:none; font-size:16px; font-weight:800;
}
.icon-btn:hover { background:rgba(255,255,255,.22); }
.lang-btn {
  min-width:42px; height:36px; border:1px solid var(--line); border-radius:10px;
  background:rgba(255,255,255,.08); color:#fff; font-weight:800; cursor:pointer; font-size:13px;
}
.lang-btn:hover { background:rgba(255,255,255,.18); }

/* ===== 按钮 ===== */
.btn { cursor:pointer; border:none; border-radius:12px; font-weight:700; transition:transform .08s,box-shadow .15s,opacity .15s; }
.btn:active { transform:scale(.97); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-connect { background:linear-gradient(135deg,var(--gold),var(--gold-dark)); color:#3a2a00; padding:9px 18px; font-size:14px; box-shadow:0 6px 18px rgba(255,204,51,.32); }
.btn-ghost { background:rgba(255,255,255,.14); color:#fff; padding:6px 12px; font-size:13px; }
.btn-gold { background:linear-gradient(135deg,var(--gold),var(--gold-dark)); color:#3a2a00; padding:13px 28px; font-size:16px; box-shadow:0 8px 22px rgba(255,204,51,.36); }
.btn-outline { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.4); padding:11px 26px; font-size:16px; }

.wallet-info { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pill { background:rgba(255,255,255,.12); color:#fff; border:1px solid var(--line); padding:6px 11px; border-radius:999px; font-size:12px; font-weight:700; }

/* ===== Hero ===== */
.hero, .matches-hero { position:relative; padding:48px 20px 30px; text-align:center; overflow:hidden; }
.hero-bg { position:absolute; inset:0; pointer-events:none;
  background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 64px,transparent 64px 128px); }
.hero-content { position:relative; }
.trophy { font-size:60px; filter:drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
.hero-title { color:#fff; font-size:clamp(32px,6vw,46px); margin-top:6px; text-shadow:0 4px 18px rgba(0,0,0,.5); }
.hero-tagline { color:var(--gold); margin-top:8px; font-size:15px; font-weight:700; letter-spacing:1px; }
.hero-desc { color:#e9ffe9; margin-top:12px; font-size:15px; max-width:640px; margin-left:auto; margin-right:auto; }
.hero-cta { margin-top:24px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ===== Section ===== */
.section { max-width:1000px; margin:0 auto; padding:28px 20px 8px; }
.section-title { color:#fff; text-align:center; font-size:24px; margin-bottom:22px; text-shadow:0 2px 10px rgba(0,0,0,.4); }
.section-title::after { content:""; display:block; width:54px; height:3px; background:var(--gold); border-radius:3px; margin:10px auto 0; }

.rules-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:760px){ .rules-grid{ grid-template-columns:repeat(2,1fr); } }
.rule-card { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:20px 16px; text-align:center; backdrop-filter:blur(4px); }
.rule-ico { font-size:30px; }
.rule-card h4 { color:var(--gold); margin:10px 0 6px; font-size:15px; }
.rule-card p { color:#cfe2d6; font-size:13px; line-height:1.5; }

/* ===== 进度 + 参与 ===== */
.container { max-width:1000px; margin:0 auto; padding:18px 20px 30px; }
.cards { display:grid; grid-template-columns:1.1fr 1fr; gap:20px; }
@media (max-width:760px){ .cards{ grid-template-columns:1fr; } }
.card { background:var(--card); border-radius:var(--radius); padding:24px; box-shadow:0 12px 40px rgba(0,0,0,.28); }
.card-title { font-size:18px; margin-bottom:18px; color:var(--green-dark); }

.banner { background:#fff4d6; border:1px solid var(--gold-dark); color:#6b4e00; padding:12px 16px; border-radius:12px; margin-bottom:18px; font-size:14px; font-weight:600; }
.banner.error { background:#ffe2e2; border-color:#e0584d; color:#8a1c12; }

.progress-outer { position:relative; height:30px; background:#eef2ee; border-radius:999px; overflow:hidden; margin-bottom:20px; }
.progress-inner { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--green-light),var(--green)); transition:width .6s; }
.progress-label { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
.stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat { background:#f5f9f5; border-radius:12px; padding:14px; text-align:center; }
.stat-num { display:block; font-size:22px; font-weight:800; color:var(--green-dark); }
.stat-lbl { display:block; font-size:12px; color:#6a7a6f; margin-top:4px; }
.meta-line { margin-top:16px; font-size:13px; color:#51635a; }
.meta-line b { color:var(--green-dark); }
.refresh-line { margin-top:6px; font-size:12px; color:#8a9a90; word-break:break-all; }

.field-lbl { display:block; font-size:13px; color:#51635a; margin-bottom:10px; }
.tier-list { display:flex; flex-direction:column; gap:12px; }
.tier-card { border:1px solid #dfe7e0; border-radius:12px; padding:14px 16px; background:#f8fbf9; }
.tier-card.mine { border-color:var(--green-light); background:#eef7f0; }
.tier-card.out { opacity:.72; }
.tier-head { display:flex; align-items:baseline; justify-content:space-between; }
.tier-name { font-size:16px; font-weight:800; color:var(--green-dark); }
.tier-price { font-size:14px; font-weight:800; color:var(--gold-dark); }
.tier-stat { display:flex; justify-content:space-between; font-size:13px; color:#6a7a6f; margin:8px 0 4px; }
.tier-stat b { color:var(--ink); }
.tier-buy { padding:11px; font-size:15px; }
.btn-confirm { width:100%; padding:16px; font-size:17px; background:linear-gradient(135deg,var(--green-light),var(--green)); color:#fff; box-shadow:0 8px 22px rgba(10,138,63,.4); }
.join-hint { margin-top:12px; font-size:13px; text-align:center; min-height:18px; word-break:break-all; }
.join-hint.ok { color:var(--green); } .join-hint.err { color:#c0392b; }

/* ===== 文案 ===== */
.about { margin-top:34px; text-align:center; }
.about-body { color:#d6e8dc; max-width:760px; margin:0 auto; line-height:1.8; font-size:15px; }

/* ===== 赛程 ===== */
.matches-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){ .matches-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .matches-grid{ grid-template-columns:1fr; } }
.group-card { background:var(--card); border-radius:14px; padding:16px; box-shadow:0 10px 30px rgba(0,0,0,.22); }
.group-head { margin-bottom:12px; }
.group-tag { display:inline-block; background:linear-gradient(135deg,var(--green),var(--green-dark)); color:#fff; font-weight:800; padding:5px 14px; border-radius:999px; font-size:14px; }
.group-teams { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.chip { background:#f0f6f0; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:600; color:var(--green-dark); }
.fixtures { display:flex; flex-direction:column; gap:6px; }
.fixture { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:8px 10px; background:#f7faf7; border-radius:10px; font-size:13px; }
.team { display:flex; align-items:center; gap:6px; color:var(--ink); font-weight:600; flex:1; }
.team-r { justify-content:flex-end; text-align:right; }
.flag { font-size:16px; }
.vs { color:var(--gold-dark); font-weight:800; font-size:11px; padding:0 4px; }
.disclaimer { text-align:center; color:rgba(255,255,255,.55); font-size:12px; margin-top:18px; }

/* ===== Footer ===== */
.footer { text-align:center; padding:26px; color:rgba(255,255,255,.72); font-size:12px; }
.footer-tw { display:inline-block; margin-top:8px; color:var(--gold); text-decoration:none; font-weight:700; }
.footer-tw:hover { text-decoration:underline; }
