/* ============================================
   世界杯体育官方网站 — SPORTY MODERN
   Light airy · Coral+Teal · Pills · Stats rings · Tab bar
   ============================================ */

:root {
  --white: #ffffff;
  --bg: #f4f6f9;
  --bg-card: #ffffff;
  --text: #141b24;
  --text-dim: #5a6b7c;
  --text-mute: #8d9bae;
  --coral: #ff5a5f;
  --coral-light: #ff7e82;
  --teal: #00b4a0;
  --teal-light: #2dcdb8;
  --line: #e1e6ee;
  --line-s: #d1d8e4;
  --shadow: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
  --font-display: "Inter", -apple-system, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--coral); color: #fff; }
a { text-decoration:none; color:var(--coral); transition:all 0.2s; }
a:hover { color:var(--coral-light); }
img { max-width:100%; display:block; }
ul { list-style:none; }

.box-w { max-width:1120px; margin:0 auto; padding:0 24px; }

/* ===== TOP ACTION BAR ===== */
.bar-top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.bar-top .box-w { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.bar-top .hide-sm { font-weight:600; color: var(--teal); }

/* ===== HEADER — pill nav, clean ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index:100;
}
.head-row { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.logo { display:flex; align-items:center; gap:12px; }
.logo-dot {
  width:40px; height:40px;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:14px;
}
.logo-text strong { display:block; font-size:15px; font-weight:700; letter-spacing:0.5px; }
.logo-text em { font-style:normal; color:var(--coral); }
.logo-text small { font-size:9px; color:var(--text-mute); letter-spacing:2px; display:block; }

nav ul { display:flex; gap:4px; }
nav a {
  display:block;
  color: var(--text-dim); font-size:13px; font-weight:600;
  padding: 8px 18px; border-radius: 30px; transition:all 0.2s;
}
nav a:hover { background: var(--bg); color: var(--text); }
nav a.cur { background: var(--coral); color: #fff; }

.menu-toggle { display:none; background:none; border:1px solid var(--line); width:40px;height:40px; border-radius:12px; font-size:18px; cursor:pointer; color:var(--text); }
.header-cta-wrap { display:flex; align-items:center; gap:12px; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 24px; font-size:13px; font-weight:600; border-radius:30px;
  border:0; cursor:pointer; font-family:inherit; transition:all 0.2s;
}
.btn-coral { background:var(--coral); color:#fff; }
.btn-coral:hover { background:var(--coral-light); color:#fff; }
.btn-outline { background:transparent; border:1.5px solid var(--line-s); color:var(--text); }
.btn-outline:hover { border-color:var(--coral); color:var(--coral); }
.btn-teal { background:var(--teal); color:#fff; }
.btn-teal:hover { background:var(--teal-light); color:#fff; }

/* ===== HERO — modern 2-col with stat rings ===== */
.hero {
  background: linear-gradient(135deg, #e8ecf4 0%, var(--bg-card) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.hero-tag {
  display:inline-block; background:var(--teal); color:#fff;
  padding:4px 14px; border-radius:30px;
  font-size:11px; font-weight:600; letter-spacing:0.5px; margin-bottom:14px;
}
.hero h1 { font-size:38px; font-weight:800; line-height:1.1; margin-bottom:14px; }
.hero h1 .hl-coral { color:var(--coral); display:block; font-weight:800; }
.hero h1 .hl-teal { color:var(--teal); }
.hero p { color:var(--text-dim); font-size:14px; margin-bottom:24px; max-width:440px; }
.hero-cta { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.hero-rings { display:flex; gap:16px; flex-wrap:wrap; }
.ring-item { text-align:center; }
.ring { width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; margin:0 auto 4px; color:#fff; }
.ring-1 { background:linear-gradient(135deg, var(--coral), #ff8a92); }
.ring-2 { background:linear-gradient(135deg, var(--teal), #4ddac8); }
.ring-3 { background:linear-gradient(135deg, #6c5ce7, #a29bfe); }
.ring-4 { background:linear-gradient(135deg, #fdcb6e, #ffe083); color:var(--text); }
.ring-item span { font-size:10px; color:var(--text-mute); font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }

.hero-visual { position:relative; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:#fff; }
.hero-visual img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.hero-visual .v-badge { position:absolute; top:16px; left:16px; background:var(--coral); color:#fff; padding:4px 14px; border-radius:30px; font-size:10px; font-weight:700; }

/* ===== SECTION ===== */
section { padding: 60px 0; }
.s-head { margin-bottom:24px; }
.s-head label { font-size:11px; color:var(--teal); font-weight:700; letter-spacing:1px; text-transform:uppercase; display:block; margin-bottom:4px; }
.s-head h2 { font-size:24px; font-weight:800; }
.s-head h2 .em-accent { color:var(--coral); }
.s-head p { color:var(--text-dim); font-size:13px; margin-top:4px; }
.bg-white { background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ===== TAB BAR ===== */
.tab-bar { display:flex; gap:8px; margin-bottom:28px; flex-wrap:wrap; }
.tab-pill { padding:8px 20px; border-radius:30px; font-size:13px; font-weight:600; background:var(--bg); color:var(--text-dim); cursor:pointer; border:1px solid var(--line); transition:all 0.2s; }
.tab-pill:hover { border-color:var(--coral); }
.tab-pill.active { background:var(--coral); color:#fff; border-color:var(--coral); }

/* ===== STAT CARDS ===== */
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.stat-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); padding:20px; text-align:center; transition:all 0.2s; }
.stat-card:hover { box-shadow:var(--shadow); border-color:var(--teal); }
.stat-card strong { display:block; font-size:24px; font-weight:800; color:var(--coral); }
.stat-card span { font-size:12px; color:var(--text-dim); }

/* ===== MATCH CARD HORIZONTAL ===== */
.match-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.match-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px 20px; display:flex; align-items:center; gap:12px; transition:all 0.2s; }
.match-card:hover { box-shadow:var(--shadow); border-color:var(--teal); }
.match-card .m-date { font-size:10px; color:var(--text-mute); font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.match-card .m-teams { font-weight:600; font-size:14px; }
.match-card .m-badge { margin-left:auto; background:var(--bg); color:var(--text-dim); padding:4px 14px; border-radius:30px; font-size:10px; font-weight:600; }

/* ===== FEATURE PILL CARDS ===== */
.feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.feat-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:26px 24px; transition:all 0.25s; }
.feat-card:hover { box-shadow:var(--shadow-lg); border-color:var(--coral); transform:translateY(-3px); }
.feat-card .f-icon { width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg, var(--coral), var(--teal)); display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; margin-bottom:14px; }
.feat-card h3 { font-size:16px; font-weight:700; margin-bottom:4px; }
.feat-card p { color:var(--text-dim); font-size:13px; }

/* ===== PREDICT GRID ===== */
.pred-strip { display:flex; gap:14px; overflow-x:auto; padding:0 0 12px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.pred-item { flex:0 0 260px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; scroll-snap-align:start; transition:all 0.3s; }
.pred-item:hover { box-shadow:var(--shadow-lg); border-color:var(--coral); }
.pred-item .p-img { height:160px; overflow:hidden; }
.pred-item .p-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.pred-item:hover .p-img img { transform:scale(1.06); }
.pred-item .p-body { padding:16px 18px; }
.pred-item .p-tag { font-size:10px; color:var(--teal); font-weight:700; letter-spacing:0.5px; text-transform:uppercase; }
.pred-item h3 { font-size:17px; font-weight:700; margin:2px 0 4px; }
.pred-item p { color:var(--text-dim); font-size:13px; margin-bottom:8px; }
.pred-item .p-odds { display:inline-block; background:var(--bg); color:var(--coral); font-weight:800; font-size:14px; padding:2px 14px; border-radius:30px; }

/* ===== GALLERY PHOTO MOSAIC ===== */
.photo-mosaic { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.mosaic-item { overflow:hidden; border-radius:var(--radius-sm); aspect-ratio:4/3; position:relative; }
.mosaic-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.mosaic-item:hover img { transform:scale(1.08); }
.mosaic-item:first-child { grid-column:span 2; grid-row:span 2; aspect-ratio:auto; }
.mosaic-item .m-cap { position:absolute; left:0; right:0; bottom:0; padding:10px 14px; background:linear-gradient(180deg,transparent,rgba(0,0,0,0.7)); color:#fff; font-size:12px; font-weight:600; opacity:0; transition:opacity 0.3s; }
.mosaic-item:hover .m-cap { opacity:1; }

/* ===== NEWS CARD (horizontal pill) ===== */
.news-pill-grid { display:grid; gap:12px; }
.news-pill { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); display:flex; align-items:center; gap:16px; padding:0; overflow:hidden; transition:all 0.2s; }
.news-pill:hover { box-shadow:var(--shadow); border-color:var(--coral); }
.news-pill .np-img { width:120px; min-height:80px; overflow:hidden; flex-shrink:0; }
.news-pill .np-img img { width:100%; height:100%; object-fit:cover; }
.news-pill .np-body { padding:12px 16px 12px 0; flex:1; }
.news-pill .np-date { font-size:10px; color:var(--text-mute); font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.news-pill h3 { font-size:14px; font-weight:600; margin-top:2px; }
.news-pill h3 a { color:var(--text); }
.news-pill h3 a:hover { color:var(--coral); }

/* ===== CTA ===== */
.cta-modern { background:linear-gradient(135deg, var(--coral), var(--teal)); border-radius:var(--radius); padding:40px 36px; text-align:center; color:#fff; }
.cta-modern h2 { font-size:26px; font-weight:800; }
.cta-modern p { opacity:0.85; margin:8px 0 20px; font-size:14px; }
.cta-modern .btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.cta-modern .btn { background:#fff; color:var(--coral); }
.cta-modern .btn:hover { background:var(--bg); }

/* ===== ARTICLE ===== */
.article-wrap { max-width:760px; margin:0 auto; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:36px 40px; }
.article-wrap .meta { color:var(--text-mute); font-size:13px; display:flex; gap:16px; margin-bottom:16px; }
.article-wrap h1 { font-size:26px; font-weight:800; margin-bottom:16px; }
.article-wrap .main-img { width:100%; border-radius:var(--radius-sm); margin-bottom:20px; border:1px solid var(--line); }
.article-wrap h2 { font-size:18px; font-weight:700; margin:24px 0 10px; border-left:3px solid var(--coral); padding-left:14px; }
.article-wrap p { color:var(--text-dim); margin-bottom:14px; }
.post-nav { display:flex; gap:12px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.pager { display:flex; justify-content:center; gap:16px; margin-top:24px; font-size:13px; }
.pager a { color:var(--text-dim); }
.pager a:hover { color:var(--coral); }
.pager span { color:var(--text-mute); }

/* ===== ADMIN ===== */
.admin-2col { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.admin-box { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); padding:28px; }
.admin-box h3 { font-size:16px; margin-bottom:16px; font-weight:700; }
.field { margin-bottom:14px; }
.field label { display:block; color:var(--text-dim); font-size:11px; margin-bottom:6px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.field input, .field textarea, .field select { width:100%; padding:10px 14px; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--text); font-family:inherit; font-size:14px; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--coral); }
.field textarea { min-height:120px; resize:vertical; }
.admin-list .item { padding:14px 0; border-bottom:1px solid var(--line); }
.admin-list .item:last-child { border-bottom:0; }

/* ===== FOOTER ===== */
footer { background:var(--text); color:rgba(255,255,255,0.35); padding:50px 0 0; }
.foot-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; margin-bottom:28px; }
.foot-grid h5 { color: #fff; font-size:11px; margin-bottom:14px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.foot-grid p { font-size:13px; line-height:1.7; }
.foot-grid ul li { padding:4px 0; font-size:13px; }
.foot-grid ul li a { color:rgba(255,255,255,0.35); }
.foot-grid ul li a:hover { color:var(--coral); }
.foot-brand { margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.foot-brand strong { color:#fff; font-size:15px; }
.foot-bottom { border-top:1px solid rgba(255,255,255,0.06); padding:16px 0; font-size:11px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px; color:rgba(255,255,255,0.15); }

@media (max-width: 992px) {
  .hero-grid { grid-template-columns:1fr; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .feat-grid { grid-template-columns:1fr 1fr; }
  .photo-mosaic { grid-template-columns:1fr 1fr; }
  .photo-mosaic .mosaic-item:first-child { grid-column:span 2; }
  .foot-grid { grid-template-columns:1fr 1fr; }
  .match-grid { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display:flex; align-items:center; justify-content:center; }
  nav { position:absolute; top:100%; left:0; right:0; background:var(--white); border-top:1px solid var(--line); max-height:0; overflow:hidden; transition:max-height 0.3s; }
  nav.open { max-height:500px; }
  nav ul { flex-direction:column; padding:8px 0; }
  nav a { border-radius:0; padding:14px 20px; border-bottom:1px solid var(--line); }
  nav a.cur { border-radius:0; }
  .hero h1 { font-size:26px; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .feat-grid { grid-template-columns:1fr; }
  .photo-mosaic { grid-template-columns:1fr; }
  .photo-mosaic .mosaic-item:first-child { grid-column:span 1; }
  .news-pill { flex-direction:column; }
  .news-pill .np-img { width:100%; height:120px; }
  .foot-grid { grid-template-columns:1fr; }
  .article-wrap { padding:22px; }
  .bar-top .hide-sm { display:none; }
}
