/* ===== 星耀体育 - 全局样式 ===== */
:root {
  --primary-black: #1A1A1A;
  --gold: #D4AF37;
  --gold-light: #E8C84A;
  --gold-dark: #B8960F;
  --ivory: #FFFFF0;
  --gray-100: #F5F5F0;
  --gray-200: #E8E8E0;
  --gray-300: #D0D0C8;
  --gray-600: #666660;
  --gray-800: #333330;
  --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background-color: var(--ivory);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

/* ===== Header & Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-black);
  font-size: 18px;
}

.logo-text {
  color: var(--ivory);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--gray-200);
  font-size: 15px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-black);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.hero-content p {
  font-size: 18px;
  color: var(--gray-200);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-black);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--primary-black);
  transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--primary-black);
  color: var(--ivory);
}

.section-gray {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
}

.section-dark .section-header h2 {
  color: var(--ivory);
}

.section-header h2 span {
  color: var(--gold);
}

.section-header p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: var(--gray-300);
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 30px;
}

.service-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-black);
}

.service-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

.service-card-body .card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

.service-card-body .card-link::after {
  content: ' →';
  margin-left: 4px;
  transition: margin-left 0.3s ease;
}

.service-card-body .card-link:hover::after {
  margin-left: 10px;
}

/* ===== Stats Counter ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-black) 0%, #2a2a2a 100%);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: 'Georgia', serif;
}

.stat-number span {
  font-size: 24px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-300);
  letter-spacing: 1px;
}

/* ===== Cases / Portfolio ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 320px;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,26,26,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.case-card-overlay h3 {
  color: var(--ivory);
  font-size: 20px;
  margin-bottom: 8px;
}

.case-card-overlay p {
  color: var(--gray-300);
  font-size: 14px;
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--primary-black);
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ===== Brand Wall ===== */
.brand-wall {
  padding: 60px 0;
  overflow: hidden;
}

.brand-scroll {
  display: flex;
  gap: 60px;
  animation: scrollBrands 30s linear infinite;
}

.brand-scroll-item {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-300);
  opacity: 0.6;
  white-space: nowrap;
  letter-spacing: 2px;
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card .team-title {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===== Insights / Articles ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.insight-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.insight-card-img {
  width: 200px;
  flex-shrink: 0;
}

.insight-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card-body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-card-body .date {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 8px;
}

.insight-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.insight-card-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-black) 0%, #2a2a2a 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  color: var(--ivory);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--gray-300);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: #111;
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-600);
}

.footer-col h4 {
  color: var(--ivory);
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--gray-600);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--gray-600);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-600);
}

.footer-bottom a {
  color: var(--gray-600);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--primary-black);
  margin-top: 72px;
}

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

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

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.5) 0%, rgba(26,26,26,0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  font-size: 40px;
  color: var(--ivory);
  margin-bottom: 12px;
}

.page-hero-content h1 span {
  color: var(--gold);
}

.page-hero-content p {
  color: var(--gray-300);
  font-size: 16px;
}

/* ===== Content Sections (Inner Pages) ===== */
.content-section {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--primary-black);
}

.content-text h2 span {
  color: var(--gold);
}

.content-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 16px;
}

.content-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* ===== Video Section ===== */
.video-section {
  position: relative;
  padding: 80px 0;
  background: var(--primary-black);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gold);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: 55%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: 55%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--ivory);
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.timeline-content h3 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== Athlete Cards ===== */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.athlete-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.athlete-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.athlete-card-img {
  height: 280px;
  overflow: hidden;
}

.athlete-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-card-body {
  padding: 24px;
}

.athlete-card-body h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.athlete-card-body .sport {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 12px;
}

.athlete-card-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Lazy Load ===== */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .services-grid,
  .team-grid,
  .athlete-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .content-grid.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 15px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .services-grid,
  .team-grid,
  .athlete-grid,
  .cases-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .page-hero {
    height: 300px;
  }
  
  .page-hero-content h1 {
    font-size: 28px;
  }
  
  .insight-card {
    flex-direction: column;
  }
  
  .insight-card-img {
    width: 100%;
    height: 180px;
  }
  
  .insight-card-body {
    padding: 20px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 26px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .stat-number {
    font-size: 30px;
  }
}
