/* ===== 大连英博球迷站 · 样式 ===== */

/* 全局变量 */
:root {
  --blue-900: #0a1a3a;
  --blue-800: #0f2a5e;
  --blue-700: #1a3f8a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-50: #eff6ff;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,.14);
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,26,58,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 700; font-size: 20px;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.75);
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 24px; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  margin-top: 64px;
  position: relative;
  height: 70vh; min-height: 480px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1600&q=80') center/cover no-repeat;
  opacity: .18;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,26,58,.5) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-badge {
  display: inline-block;
  background: var(--gold); color: var(--blue-900);
  padding: 4px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; letter-spacing: 2px; }
.hero h1 small { display: block; font-size: .45em; font-weight: 400; opacity: .7; margin-top: 6px; }
.hero p { font-size: 1.1rem; opacity: .85; margin: 12px 0 28px; }

/* 倒计时 */
.countdown {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.countdown-item {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 12px 22px;
  min-width: 80px;
}
.countdown-item .num { font-size: 2rem; font-weight: 800; display: block; }
.countdown-item .label { font-size: .75rem; opacity: .6; }

/* 下一场对阵 */
.hero-matchup {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff;
}
.hero-matchup .team {
  display: flex; align-items: center; gap: 10px;
}
.hero-matchup .team svg { width: 44px; height: 44px; flex-shrink: 0; }
.hero-matchup .colon {
  font-size: 1.2em;
  font-weight: 300;
  opacity: .5;
}

/* ===== 通栏标题 ===== */
.section-title {
  text-align: center;
  margin: 60px 0 36px;
}
.section-title h2 {
  font-size: 1.8rem; font-weight: 800; color: var(--blue-900);
}
.section-title p { color: var(--gray-400); margin-top: 6px; font-size: .95rem; }
.section-title .bar {
  width: 48px; height: 3px; background: var(--gold);
  margin: 12px auto 0; border-radius: 3px;
}

/* ===== 新闻卡片 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.news-card-body { padding: 18px; }
.news-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600;
  padding: 2px 10px; border-radius: 4px;
  margin-bottom: 8px;
}
.news-tag.match   { background: #dcfce7; color: #166534; }
.news-tag.offcial { background: #dbeafe; color: #1e40af; }
.news-tag.story   { background: #fef3c7; color: #92400e; }
.news-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.news-card-body p  { font-size: .88rem; color: var(--gray-600); }
.news-card-body .date {
  font-size: .75rem; color: var(--gray-400);
  margin-top: 10px; display: flex; align-items: center; gap: 4px;
}

/* ===== 赛程表 ===== */
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.match-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 24px; box-shadow: var(--shadow);
  transition: transform .2s;
}
.match-row:hover { transform: translateX(4px); }
.match-row .teams {
  display: flex; align-items: center; gap: 16px; flex: 1;
}
.match-row .team-name { font-weight: 700; font-size: 1rem; }
.match-row .vs { color: var(--gray-400); font-size: .85rem; font-weight: 600; }
.match-row .score {
  font-size: 1.4rem; font-weight: 800;
  color: var(--blue-700);
  min-width: 60px; text-align: center;
}
.match-row .score.tbd { color: var(--gray-400); font-size: .9rem; }
.match-row .meta {
  text-align: right; font-size: .78rem; color: var(--gray-400);
  min-width: 100px;
}
.match-row .status-badge {
  display: inline-block;
  font-size: .7rem; padding: 2px 10px; border-radius: 12px;
  font-weight: 600; margin-left: 12px;
}
.status-badge.win  { background: #dcfce7; color: #166534; }
.status-badge.lose { background: #fee2e2; color: #991b1b; }
.status-badge.draw { background: #fef3c7; color: #92400e; }
.status-badge.upcoming { background: #dbeafe; color: #1e40af; }

/* ===== 图片墙 ===== */
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-grid .item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s; cursor: pointer;
  position: relative;
}
.gallery-grid .item:hover { transform: scale(1.02); }
.gallery-grid .item img { width: 100%; display: block; }
.gallery-grid .item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; padding: 30px 14px 12px;
  font-size: .82rem; opacity: 0;
  transition: opacity .25s;
}
.gallery-grid .item:hover .caption { opacity: 1; }

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 3px; background: #93c5fd;
  border-radius: 3px;
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px;
  background: var(--blue-600); border: 3px solid var(--blue-200);
  border-radius: 50%;
}
.timeline-item .year { font-size: 1.3rem; font-weight: 800; color: var(--blue-700); }
.timeline-item .desc { font-size: .92rem; color: var(--gray-600); margin-top: 2px; }

/* ===== 页脚 ===== */
footer {
  margin-top: 80px;
  background: var(--blue-900); color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer p, footer a { font-size: .88rem; }
footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  margin: 0 6px 6px 0;
  transition: background .2s; color: rgba(255,255,255,.7);
}
footer .social a:hover { background: var(--blue-600); color: #fff; }
.footer-bottom {
  text-align: center; padding-top: 28px; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8rem;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 2000;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 8px; box-shadow: 0 8px 60px rgba(0,0,0,.5);
}

/* ===== 入场动画 ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--blue-900); padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .hero { height: 60vh; min-height: 400px; }
  .hero-matchup { gap: 12px; }
  .hero-matchup .team svg { width: 32px; height: 32px; }
  .gallery-grid { columns: 2; }
  footer .container { grid-template-columns: 1fr; }
  .match-row { flex-wrap: wrap; gap: 8px; }
  .match-row .meta { text-align: left; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .news-grid { grid-template-columns: 1fr; }
  .countdown-item { min-width: 60px; padding: 8px 14px; }
  .countdown-item .num { font-size: 1.4rem; }
}
