/* ============================================
   开云体育 - 瑞士极简网格风 (Swiss Minimalist Grid)
   主色: #FFFFFF | 强调色: #FF0000 | 文本色: #000000 | 辅助色: #E0E0E0
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  background-color: #FFFFFF;
}

a { color: #FF0000; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.75; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; font-weight: 300; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid System */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-1-3 { grid-template-columns: 1fr 2fr; }
.grid-3-1 { grid-template-columns: 2fr 1fr; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo img { height: 40px; width: auto; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: #000; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  display: block;
  padding: 0 18px;
  height: 72px;
  line-height: 72px;
  color: #000000;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #FF0000; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  min-width: 160px;
  z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  height: auto;
  line-height: 1.5;
  padding: 10px 18px;
  font-size: 0.85rem;
  border-bottom: 1px solid #F5F5F5;
}
.dropdown-menu a:last-child { border-bottom: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }

/* ============================================
   HERO BANNER (Module 1)
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-top: 72px;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay h1 {
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-overlay h1 span { color: #FF0000; }

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 80px 0;
}
.section-alt {
  padding: 80px 0;
  background: #FAFAFA;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 48px;
  position: relative;
  padding-left: 16px;
  border-left: 4px solid #FF0000;
}

/* ============================================
   COUNTDOWN CARDS (Module 2)
   ============================================ */
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.countdown-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.countdown-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.countdown-card .event-icon { font-size: 2rem; margin-bottom: 12px; }
.countdown-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.countdown-timer .time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-timer .time-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FF0000;
  font-variant-numeric: tabular-nums;
}
.countdown-timer .time-label {
  font-size: 0.7rem;
  color: #999;
  font-weight: 300;
  margin-top: 2px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}
.btn-red {
  background: #FF0000;
  color: #FFFFFF;
}
.btn-red:hover { background: #CC0000; color: #FFFFFF; opacity: 1; }
.btn-outline {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}
.btn-outline:hover { background: #000; color: #FFF; opacity: 1; }

/* ============================================
   WEEKLY FOCUS (Module 3)
   ============================================ */
.weekly-timeline {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 20px 0;
  scrollbar-width: thin;
}
.weekly-day {
  min-width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #E0E0E0;
  padding: 0 20px;
}
.weekly-day:last-child { border-right: none; }
.weekly-day .day-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: #FF0000;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF0000;
}
.weekly-match {
  padding: 10px 0;
  border-bottom: 1px solid #F5F5F5;
}
.weekly-match:last-child { border-bottom: none; }
.weekly-match .match-time {
  font-size: 0.75rem;
  color: #999;
  font-weight: 300;
}
.weekly-match .match-teams {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px 0;
}
.weekly-match .match-league {
  font-size: 0.7rem;
  color: #666;
}

/* ============================================
   MONTHLY CALENDAR (Module 4)
   ============================================ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.calendar-header h3 { margin-bottom: 0; }
.calendar-nav { display: flex; gap: 12px; }
.calendar-nav button {
  background: none;
  border: 1px solid #E0E0E0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.calendar-nav button:hover { border-color: #FF0000; color: #FF0000; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid #E0E0E0;
}
.calendar-weekday {
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: #000;
  color: #FFF;
}
.calendar-day {
  min-height: 100px;
  padding: 8px;
  border: 1px solid #F0F0F0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.calendar-day:hover { background: #FAFAFA; }
.calendar-day .day-num {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.calendar-day.today .day-num { color: #FF0000; }
.calendar-day .event-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 1px;
}
.dot-football { background: #FF0000; }
.dot-basketball { background: #0066CC; }
.dot-tennis { background: #00AA44; }
.dot-f1 { background: #FF6600; }
.dot-esports { background: #9933CC; }

.calendar-day .day-events {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFF;
  border: 1px solid #E0E0E0;
  padding: 12px;
  min-width: 220px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.calendar-day:hover .day-events { display: block; }

/* ============================================
   FILTER TABS (Module 5)
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #E0E0E0;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.filter-tab:hover { color: #FF0000; }
.filter-tab.active {
  color: #FF0000;
  border-bottom-color: #FF0000;
}

/* ============================================
   SUBSCRIBE (Module 6)
   ============================================ */
.subscribe-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  padding: 40px 48px;
  gap: 24px;
}
.subscribe-bar p {
  color: #FFF;
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0;
  flex: 1;
}
.subscribe-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.subscribe-form input {
  padding: 12px 20px;
  font-size: 0.9rem;
  border: none;
  outline: none;
  width: 280px;
  font-family: inherit;
}
.subscribe-form button {
  padding: 12px 28px;
  background: #FF0000;
  color: #FFF;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.subscribe-form button:hover { background: #CC0000; }
.subscribe-msg {
  color: #00CC66;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

/* ============================================
   NEWS GRID (Module 7)
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-main {
  position: relative;
  overflow: hidden;
}
.news-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.news-main .news-content {
  padding: 24px 0;
}
.news-main h3 { font-size: 1.25rem; margin-bottom: 12px; }
.news-main .news-date { font-size: 0.75rem; color: #999; margin-bottom: 8px; }
.news-main p { font-size: 0.9rem; color: #333; }

.news-sidebar { display: flex; flex-direction: column; gap: 0; }
.news-item {
  padding: 24px 0;
  border-bottom: 1px solid #E0E0E0;
}
.news-item:last-child { border-bottom: none; }
.news-item h4 { font-size: 1rem; font-weight: 500; margin-bottom: 6px; }
.news-item .news-date { font-size: 0.75rem; color: #999; }

/* ============================================
   TIMELINE (Module 8)
   ============================================ */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E0E0E0;
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  width: 45%;
  padding: 24px;
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  transition: box-shadow 0.3s;
}
.timeline-content:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.timeline-dot {
  width: 16px;
  height: 16px;
  background: #FF0000;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.timeline-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF0000;
  margin-bottom: 4px;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.85rem; color: #666; margin: 0; }

/* ============================================
   PARTNERS (Module 9)
   ============================================ */
.partners-section { padding: 60px 0; border-top: 1px solid #E0E0E0; }
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.partners-logos span {
  font-size: 1.1rem;
  color: #CCC;
  font-weight: 300;
}
.friend-links {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}
.friend-links a { color: #999; margin: 0 8px; }
.friend-links a:hover { color: #FF0000; }

/* ============================================
   FOOTER (Module 10)
   ============================================ */
.site-footer {
  background: #000;
  color: #FFF;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #FFF;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col a {
  display: block;
  color: #999;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 300;
}
.footer-col a:hover { color: #FF0000; }
.footer-col p {
  color: #999;
  font-size: 0.8rem;
  font-weight: 300;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}

/* ============================================
   INNER PAGES
   ============================================ */
.page-header {
  margin-top: 72px;
  padding: 60px 0;
  background: #000;
  color: #FFF;
}
.page-header h1 { color: #FFF; font-size: 2.25rem; }
.page-header p { color: #999; font-size: 0.95rem; }

.breadcrumb {
  padding: 16px 0;
  font-size: 0.8rem;
  color: #999;
  border-bottom: 1px solid #F0F0F0;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #FF0000; }
.breadcrumb span { margin: 0 6px; }

/* Content page */
.content-page { padding: 60px 0; }
.content-page h2 { font-size: 1.5rem; margin: 32px 0 16px; border-left: 3px solid #FF0000; padding-left: 12px; }
.content-page h3 { font-size: 1.25rem; margin: 24px 0 12px; }
.content-page p { font-size: 0.95rem; line-height: 1.8; color: #333; }
.content-page ul, .content-page ol { margin: 16px 0; padding-left: 24px; }
.content-page li { margin-bottom: 8px; font-size: 0.95rem; color: #333; }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.data-table th {
  background: #000;
  color: #FFF;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}
.data-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid #F0F0F0;
}
.data-table tr:hover td { background: #FAFAFA; }

/* Match card */
.match-card {
  border: 1px solid #E0E0E0;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
.match-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.match-card .match-info { flex: 1; }
.match-card .match-vs {
  font-size: 1.1rem;
  font-weight: 600;
}
.match-card .match-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

/* APP Page */
.app-hero {
  margin-top: 72px;
  padding: 80px 0;
  text-align: center;
}
.app-hero h1 { font-size: 2.5rem; margin-bottom: 16px; }
.app-hero p { font-size: 1.1rem; color: #666; max-width: 600px; margin: 0 auto 40px; }
.app-mockup { max-width: 300px; margin: 0 auto 40px; }
.app-buttons { display: flex; justify-content: center; gap: 24px; margin-bottom: 40px; }
.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #000;
  color: #FFF;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}
.app-btn:hover { background: #333; color: #FFF; opacity: 1; }
.app-qr { display: flex; justify-content: center; gap: 48px; margin-bottom: 60px; }
.app-qr-item { text-align: center; }
.app-qr-item img { width: 120px; height: 120px; margin-bottom: 8px; }
.app-qr-item span { font-size: 0.8rem; color: #999; }

.app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.app-feature-item h4 { font-size: 1rem; margin: 12px 0 8px; }
.app-feature-item p { font-size: 0.85rem; color: #666; }
.app-feature-icon {
  width: 60px;
  height: 60px;
  border: 2px solid #FF0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-start; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }
}

@media (max-width: 768px) {
  .main-nav { 
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FFF;
    flex-direction: column;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { height: auto; line-height: 1.5; padding: 14px 24px; border-bottom: 1px solid #F5F5F5; }
  .menu-toggle { display: block; }
  .nav-dropdown .dropdown-menu { position: static; border: none; padding-left: 20px; }
  .nav-dropdown:hover .dropdown-menu { display: block; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero-banner { height: 400px; }
  .hero-overlay h1 { font-size: 1.75rem; }
  .countdown-grid { grid-template-columns: 1fr; }
  .subscribe-bar { flex-direction: column; padding: 30px 24px; }
  .subscribe-form { width: 100%; }
  .subscribe-form input { flex: 1; width: auto; }
  .calendar-grid { font-size: 0.75rem; }
  .calendar-day { min-height: 60px; padding: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .app-buttons { flex-direction: column; align-items: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
