/* 比赛日体育 — 官网样式 */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #f4a261;
  --bg: #f8f9fa;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(29, 53, 87, 0.08);
  --radius: 16px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* ========== 导航 ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #1d3557 0%, #264653 50%, #2a9d8f 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.hero-text .tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.badge {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: var(--white);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(280px, 70vw);
  background: var(--white);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.phone-mockup img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.phone-screen {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 24px;
  padding: 20px 16px;
  min-height: 480px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.mock-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}

.mock-tag {
  font-size: 11px;
  color: var(--text-muted);
}

.mock-card {
  background: var(--white);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mock-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.mock-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.mock-price {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ========== 通用区块 ========== */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 12px;
}

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

/* ========== 功能特性 ========== */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-icon.red { background: #fde8ea; }
.feature-icon.blue { background: #e3f2fd; }
.feature-icon.green { background: #e8f5e9; }
.feature-icon.orange { background: #fff3e0; }
.feature-icon.purple { background: #f3e5f5; }
.feature-icon.teal { background: #e0f2f1; }

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ========== 原型展示（图文交替） ========== */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-row.reverse .showcase-text {
  order: 2;
}

.showcase-row.reverse .showcase-image {
  order: 1;
}

.showcase-text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 16px;
}

.showcase-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.showcase-image {
  display: flex;
  justify-content: center;
}

.showcase-image img {
  width: min(280px, 100%);
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(29, 53, 87, 0.15);
}

/* ========== 界面预览画廊 ========== */
.gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(29, 53, 87, 0.12);
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: translateY(-6px);
}

.gallery-item span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.download-preview {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.download-preview img {
  width: min(240px, 60vw);
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* ========== 业务流程 ========== */
.flow {
  background: var(--bg);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.flow-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.flow-step h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== 运动分类 ========== */
.sports {
  background: var(--white);
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sport-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, border-color 0.3s;
}

.sport-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.sport-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.sport-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 8px;
}

.sport-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== 下载 ========== */
.download {
  background: linear-gradient(135deg, var(--secondary) 0%, #264653 100%);
  color: var(--white);
  text-align: center;
}

.download .section-header h2 {
  color: var(--white);
}

.download .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.download-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: var(--white);
  transition: background 0.2s;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.download-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.download-btn-text small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.download-btn-text strong {
  font-size: 16px;
}

.download-note {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== 联系我们 ========== */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-item {
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-item .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 8px;
}

.contact-item p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

.contact-item a {
  color: var(--primary);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  opacity: 0.75;
}

.footer-links h4 {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 16px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

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

/* ========== 协议页 ========== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--secondary), #264653);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.page-header p {
  opacity: 0.75;
  margin: 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-content h2 {
  font-size: 22px;
  color: var(--secondary);
  margin: 32px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges,
  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-screen {
    min-height: 380px;
  }

  .features-grid,
  .sports-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .showcase-row.reverse .showcase-text,
  .showcase-row.reverse .showcase-image {
    order: unset;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
  }

  .menu-toggle {
    display: block;
  }

  .features-grid,
  .sports-grid,
  .contact-grid,
  .flow-steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }
}
