/* ============================
   凤凰体育平台 - 全站样式表
   ============================ */

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

:root {
  --red:       #e63946;
  --red-dark:  #c1121f;
  --orange:    #f4a261;
  --gold:      #ffd166;
  --dark-1:    #0a0a0a;
  --dark-2:    #141414;
  --dark-3:    #1e1e1e;
  --dark-4:    #2a2a2a;
  --text-1:    #ffffff;
  --text-2:    #cccccc;
  --text-3:    #888888;
  --green:     #06d6a0;
  --blue:      #4361ee;
  --purple:    #7b2cbf;
  --font-sans: "PingFang SC","Helvetica Neue",Arial,sans-serif;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--dark-2);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.6rem; border-radius: var(--radius); font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: all .25s;
}
.btn-primary {
  background: var(--red); color: #fff; border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo img { width: 36px; height: 36px; border-radius: 50%; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--orange); }

.main-nav {
  display: flex; gap: 0; flex: 1;
}
.main-nav a {
  padding: .5rem 1.1rem; font-size: .95rem; font-weight: 500;
  color: var(--text-2); border-radius: var(--radius);
  transition: all .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: .4rem; margin-left: auto;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text-2); border-radius: 2px;
}

/* ── Hero ── */
.hero-section {
  position: relative; height: 580px; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.88) 0%,
    rgba(10,10,10,.55) 60%,
    rgba(10,10,10,.75) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 700; padding: .25rem .75rem;
  border-radius: 20px; margin-bottom: 1.2rem;
  letter-spacing: .05em;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.1; margin-bottom: .8rem;
  background: linear-gradient(90deg, #fff, var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-2); margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; gap: 2.5rem;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block; font-size: 1.8rem; font-weight: 800; color: var(--orange);
}
.stat-item span { font-size: .8rem; color: var(--text-3); }

/* ── Sections ── */
.section { padding: 4rem 0; }
.alt-bg { background: var(--dark-3); }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.more-link { color: var(--red); font-size: .9rem; font-weight: 600; }
.more-link:hover { color: var(--orange); }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cards-grid.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--dark-4); border-radius: 12px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(255,255,255,.05);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-img-placeholder {
  width: 100%; height: 200px;
}
.card-body { padding: 1.1rem 1.2rem 1.2rem; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 4px; margin-bottom: .5rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.tag-hot    { background: var(--red); color: #fff; }
.tag-match  { background: var(--blue); color: #fff; }
.tag-esports{ background: var(--purple); color: #fff; }
.tag-olympic{ background: var(--orange); color: #1a1a1a; }

.card-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: .88rem; color: var(--text-3); margin-bottom: .8rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--text-3);
}
.card-meta time { font-family: monospace; }

/* Featured card spans 2 columns */
.card-featured {
  grid-column: span 2;
}
.card-featured .card-img { height: 280px; }
.card-featured .card-title { font-size: 1.3rem; }

/* ── Olympics Banner ── */
.olympics-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  background: var(--dark-4); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.olympics-img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.olympics-text { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.olympics-text h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.olympics-text p { color: var(--text-2); font-size: .95rem; }

/* ── News List ── */
.news-list { display: flex; flex-direction: column; gap: 1.2rem; }
.news-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem;
  background: var(--dark-3); border-radius: 10px; padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.05);
  transition: transform .2s;
}
.news-item:hover { transform: translateX(4px); border-color: rgba(230,57,70,.3); }
.news-thumb { width: 220px; height: 140px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-thumb-placeholder { width: 220px; height: 140px; border-radius: 8px; flex-shrink: 0; }
.news-body { display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.news-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.news-desc { font-size: .88rem; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark-1), #1a0a0a);
  border-top: 1px solid rgba(230,57,70,.2);
  border-bottom: 1px solid rgba(230,57,70,.2);
  padding: 4rem 0;
}
.newsletter-inner { text-align: center; }
.newsletter-inner h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: .5rem; }
.newsletter-inner p { color: var(--text-3); margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex; max-width: 480px; margin: 0 auto; gap: .8rem;
}
.newsletter-form input {
  flex: 1; padding: .65rem 1rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  color: #fff; font-size: 1rem; outline: none; transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button {
  padding: .65rem 1.5rem; border-radius: var(--radius);
  background: var(--red); color: #fff; border: none;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ── Footer ── */
.site-footer {
  background: var(--dark-1);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 700; color: var(--orange); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.footer-nav a { font-size: .9rem; color: var(--text-3); }
.footer-nav a:hover { color: var(--red); }
.footer-copy { font-size: .8rem; color: var(--text-3); text-align: center; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: span 1; }
  .card-featured .card-img { height: 200px; }
  .card-featured .card-title { font-size: 1.05rem; }
  .olympics-banner { grid-template-columns: 1fr; }
  .olympics-img { min-height: 220px; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,.97); flex-direction: column;
    padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.1);
    gap: .3rem;
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .cards-grid, .cards-grid.cards-grid-3 { grid-template-columns: 1fr; }
  .hero-section { height: 480px; }
  .hero-stats { gap: 1.5rem; }
  .news-item { grid-template-columns: 1fr; }
  .news-thumb, .news-thumb-placeholder { width: 100%; height: 180px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .stat-item strong { font-size: 1.4rem; }
  .section { padding: 2.5rem 0; }
}

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.about-card {
  background: var(--dark-4);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,.05);
  transition: transform .25s, border-color .25s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,57,70,.3);
}
.about-icon { font-size: 2.4rem; margin-bottom: .8rem; }
.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.about-card p { font-size: .88rem; color: var(--text-3); line-height: 1.6; }

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0s !important; }
}
