/* ===================================================
   zambianfootball.net — 原站风格传承 · 名爵品牌升级
   配色灵感：赞比亚国旗绿 #0F7F0F / 金色 #D4A017
   字体：IBM Plex Sans + 经典衬线
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
  --green-dark: #0F7F0F;
  --green-primary: #1a8f1a;
  --green-medium: #2E9E2E;
  --green-light: #4CAF50;
  --green-pale: #E8F5E9;
  --gold: #D4A017;
  --gold-light: #F0D060;
  --gold-dark: #B8860B;
  --bg-page: #F5F3EE;
  --bg-card: #FFFFFF;
  --bg-dark: #1a3a1a;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-light: #888;
  --text-white: #f5f0e8;
  --border: #ddd;
  --border-green: #c8e6c9;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(15,127,15,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--green-primary); transition: var(--transition); }
a:hover { color: var(--gold); }

/* ===== Container ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header (Original Kubrick-style green bar) ===== */
.site-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, var(--green-medium) 100%);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(15,127,15,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.site-logo span { color: var(--gold); }

.site-logo .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: -2px;
}

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.main-nav a {
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  opacity: 0.9;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
  opacity: 1;
  color: var(--gold-light);
}

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-white); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ===== Page Wrapper (Two-column layout inspiration) ===== */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 20px;
}

.main-content { min-width: 0; }

.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

/* ===== Top Banner / Notice Bar ===== */
.top-banner {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a1a;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.top-banner a { color: #1a1a1a; text-decoration: underline; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
  background:
    linear-gradient(135deg, rgba(15,127,15,0.92) 0%, rgba(26,26,46,0.85) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212,160,23,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(15,127,15,0.3) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 30px;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

.btn-primary:hover {
  background: #e0b020;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,160,23,0.5);
  color: #1a1a1a;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--text-white);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  color: var(--gold-light);
}

/* ===== Section Styling ===== */
.section {
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--green-pale);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Cards Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-green);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item {
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: var(--text-white);
  border-radius: var(--radius);
  padding: 28px 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* ===== Two Column Layout (Original Style) ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ===== Feature List ===== */
.feature-list { list-style: none; }
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--green-primary); font-weight: 700; font-size: 1.1rem; }

/* ===== Steps / Timeline ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  background: var(--green-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 12px;
}

.step-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--green-dark); }
.step-item p { font-size: 0.88rem; color: var(--text-secondary); }

/* ===== Accordion / FAQ ===== */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  background: var(--bg-card);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover { background: var(--green-pale); }
.accordion-header .arrow { transition: transform 0.3s; }
.accordion-item.open .accordion-header .arrow { transform: rotate(180deg); }

.accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 16px 20px;
}

/* ===== Sidebar Widgets ===== */
.widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--green-pale);
}

.widget ul { list-style: none; }
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--text-primary); }
.widget li a:hover { color: var(--green-primary); padding-left: 4px; }

.widget-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
  color: var(--text-white);
}

.widget-cta .widget-title { color: var(--gold); border-bottom-color: rgba(255,255,255,0.2); }

.widget-cta p { font-size: 0.92rem; opacity: 0.9; margin-bottom: 14px; }
.widget-cta .btn { width: 100%; text-align: center; justify-content: center; }

/* ===== Contact / Telegram ===== */
.contact-bar {
  background: var(--bg-dark);
  color: var(--text-white);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.contact-bar a {
  color: var(--gold-light);
  font-weight: 600;
}

.contact-bar a:hover { text-decoration: underline; color: var(--gold); }

/* ===== Footer (Original style) ===== */
.site-footer {
  background: linear-gradient(135deg, #0a2a0a 0%, var(--bg-dark) 100%);
  color: var(--text-white);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  padding: 10px 0;
  color: var(--text-light);
}

.breadcrumbs a { color: var(--green-primary); }
.breadcrumbs span { color: var(--text-light); }

/* ===== Page Intro ===== */
.page-intro {
  text-align: center;
  padding: 20px 0 30px;
}

.page-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.page-intro p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Data / Prediction Table ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background: var(--green-dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.data-table tr:hover td { background: var(--green-pale); }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-green { background: var(--green-pale); color: var(--green-dark); }
.tag-gold { background: #FFF8E1; color: var(--gold-dark); }

/* ===== Prediction Card Special ===== */
.prediction-card {
  background: linear-gradient(135deg, var(--bg-card), var(--green-pale));
  border: 2px solid var(--border-green);
}

.prediction-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-dark);
}

/* ===== Testimonial / Review ===== */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--green-dark);
}

/* ===== Matomo / Stats Area ===== */
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); }
  
  .hero { min-height: 350px; }
  .hero-content { padding: 40px 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  
  .card-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .site-logo { font-size: 1.2rem; }
}

/* ===== Page-Specific Inner Page Layouts ===== */

/* App Download Page - App-style cards */
.app-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.app-platform-card {
  background: linear-gradient(135deg, var(--bg-card), #f0f7f0);
  border: 2px solid var(--border-green);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.app-platform-card .platform-icon { font-size: 3rem; margin-bottom: 12px; }
.app-platform-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--green-dark); }
.qr-placeholder {
  width: 160px; height: 160px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  border: 2px dashed var(--border-green);
}

/* PC28 Page - Data-heavy */
.data-dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.prediction-trend {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 120px;
  padding: 20px 0;
}
.trend-bar {
  flex: 1;
  background: linear-gradient(to top, var(--green-primary), var(--green-light));
  border-radius: 4px 4px 0 0;
  min-width: 20px;
  transition: height 0.5s ease;
}

/* Room Page - Community feel */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.room-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.room-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-dark);
  background: #FFF8E1;
  display: inline-block;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* XY28 Page - Matrix style */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.matrix-cell {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.matrix-cell.hot { background: var(--green-pale); border-color: var(--green-primary); color: var(--green-dark); }
.matrix-cell.cold { background: #FFF3E0; border-color: var(--gold); }
.matrix-cell.trend { background: #E3F2FD; border-color: #1976D2; color: #1976D2; }

/* Canada28 Page - Timeline style */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green-primary), var(--gold));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--green-primary);
}

/* Mingjue PC28 - Tabbed layout */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--bg-card);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}
.tab-btn.active { background: var(--green-primary); color: white; border-color: var(--green-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== SEO Friendly Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green-dark);
  color: white;
  padding: 8px;
  z-index: 10000;
}
.skip-link:focus { top: 0; }
