@charset "UTF-8";

/* ==========================================================================
   Modern Minimalist Enterprise Theme - Base Variables (Matching main.css)
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: #0066cc;
  --color-primary-hover: #004499;
  --color-text-main: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-text-muted: #a1a1a6;
  --color-bg-body: #ffffff;
  --color-bg-section: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-border: #d2d2d7;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0071e3 0%, #43b9ff 100%);
  --gradient-banner: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  
  /* Typography */
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* Layout & Spacing */
  --max-width-container: 1200px;
  --header-height: 64px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Page Banner
   ========================================================================== */
.page-banner {
  margin-top: var(--header-height);
  padding: 80px 24px;
  background-color: var(--color-bg-body);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-banner h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.page-banner p {
  font-size: 20px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   Products Structure
   ========================================================================== */
.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 24px;
}

.product-section {
  margin: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
}

.product-block {
  margin-bottom: 80px;
}

.block-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.block-header h3 {
  font-size: 28px;
  color: var(--color-text-main);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.products-grid, .grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.competitions-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.product-card-link {
  display: block;
  height: 100%;
}

.product-card {
  background: var(--color-bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 160px;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h4 {
  font-size: 20px;
  color: var(--color-text-main);
  margin-bottom: 12px;
  font-weight: 600;
}

.card-content p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-price {
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 20px;
}

.card-link {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.card-link::after {
  content: "→";
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.product-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--color-bg-section);
  padding: 80px 24px 40px;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
}

.footer-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-col ul li a:hover {
  color: var(--color-text-main);
}

.copyright {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bgPulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}


/* Scroll Reveal System */
.reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.fade-up { transform: translateY(50px); }
.reveal.fade-left { transform: translateX(-50px); }
.reveal.fade-right { transform: translateX(50px); }
.reveal.zoom-in { transform: scale(0.95); }
.reveal.active { opacity: 1; transform: translate(0) scale(1); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

@media (max-width: 1200px) {
  .products-grid, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .competitions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 赛事承办有3个，让第3个在两列布局下横跨两列独占一行 */
  .competitions-grid > *:nth-child(3):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg-body);
    flex-direction: column;
    padding: 40px 24px;
    transition: var(--transition-base);
  }
  .nav-menu.active { left: 0; }
  .nav-menu a { font-size: 20px; display: block; padding: 12px 0; }
  .page-banner { height: 240px; }
  .page-banner h1 { font-size: 32px; }
  .copyright { flex-direction: column; gap: 16px; text-align: center; }
  
  .products-grid,
  .competitions-grid,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .competitions-grid > *:nth-child(3):last-child {
    grid-column: auto;
  }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-body); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }
::selection { background: var(--color-primary); color: #fff; }