/* 球速体育 QIUSU Sports - 完整样式表 */
/* 暗色主题 + 渐变Banner + 圆角卡片 + 毛玻璃 + 响应式 + 动画 */

:root {
  --bg-primary: #0b1a2e;
  --bg-secondary: #112240;
  --bg-card: rgba(17, 34, 64, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #e6f1ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6a8a;
  --accent-1: #64ffda;
  --accent-2: #0ea5e9;
  --accent-3: #f59e0b;
  --gradient-hero: linear-gradient(135deg, #0b1a2e 0%, #1a3b5c 40%, #0ea5e9 100%);
  --gradient-card: linear-gradient(145deg, rgba(100, 255, 218, 0.05), rgba(14, 165, 233, 0.05));
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

/* 基础重置与全局 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover, a:focus {
  color: var(--accent-1);
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* 滚动动画基础 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 视差滚动动画 */
section {
  animation: fadeInUp 0.8s ease-out both;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }

/* Header / 导航 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 26, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-glass);
  padding: 0 1.5rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

nav > div:first-child a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.5px;
}

nav > div:first-child a strong {
  color: var(--accent-1);
  font-weight: 800;
}

nav > div:first-child a:hover {
  color: var(--accent-1);
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent-1);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(100, 255, 218, 0.08);
  text-decoration: none;
}

nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 主体布局 */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* 通用标题 */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  margin-top: 0.5rem;
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Hero 区域 — 渐变Banner */
#hero {
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem 0 3rem;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(100, 255, 218, 0.08), transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.08), transparent 60%);
  pointer-events: none;
}

#hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

#hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

#hero a[role="button"] {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  margin: 0.3rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}

#hero a[role="button"]:first-of-type {
  background: var(--accent-1);
  color: #0b1a2e;
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
}

#hero a[role="button"]:first-of-type:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(100, 255, 218, 0.5);
  text-decoration: none;
}

#hero a[role="button"]:last-of-type {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#hero a[role="button"]:last-of-type:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-1);
  transform: translateY(-3px);
  text-decoration: none;
}

#hero figure {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

#hero figure img {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

#hero figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* 通用卡片样式 (圆角+毛玻璃) */
section:not(#hero) {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
  border: var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

section:not(#hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-card);
  pointer-events: none;
  border-radius: inherit;
}

section:not(#hero):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(100, 255, 218, 0.15);
}

section:not(#hero) > * {
  position: relative;
  z-index: 1;
}

/* 列表样式 */
ul, ol {
  padding-left: 1.2rem;
}

section ul, section ol {
  margin: 1rem 0;
}

section ul li, section ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  color: var(--text-secondary);
  position: relative;
}

section ul li::before {
  content: '▸';
  color: var(--accent-1);
  position: absolute;
  left: -1.2rem;
  font-weight: bold;
}

/* 产品卡片 (article) */
#products ul li article {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: var(--border-glass);
  transition: var(--transition);
}

#products ul li article:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

#products ul li article h3 {
  color: var(--accent-2);
}

/* 引用块 (Testimonials) */
blockquote {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border-left: 3px solid var(--accent-1);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

blockquote p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* 知识库 文章列表 */
#knowledge ul li article {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 0.75rem 0;
  border: var(--border-glass);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#knowledge ul li article:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
  border-color: rgba(100, 255, 218, 0.2);
}

#knowledge ul li article h4 {
  color: var(--accent-2);
  font-size: 1.05rem;
}

#knowledge ul li article a {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
}

/* FAQ details/summary */
details {
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  border: var(--border-glass);
  transition: var(--transition);
  overflow: hidden;
}

details:hover {
  border-color: rgba(100, 255, 218, 0.2);
}

details summary {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-1);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

details p {
  padding: 0 1.2rem 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* HowTo 有序列表 */
#knowledge ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#knowledge ol li {
  counter-increment: step;
  padding: 0.8rem 1rem 0.8rem 3rem;
  margin: 0.4rem 0;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: var(--border-glass);
  position: relative;
  color: var(--text-secondary);
}

#knowledge ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1a2e;
  font-weight: 700;
  font-size: 0.85rem;
}

#knowledge ol li strong {
  color: var(--text-primary);
}

/* 联系区域 */
#contact p {
  margin-bottom: 0.6rem;
}

#contact a[href^="tel"] {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-1);
}

#contact a[href^="mailto"] {
  color: var(--accent-2);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  padding: 2rem 1.5rem;
  text-align: center;
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

footer nav ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer nav ul li a:hover {
  color: var(--accent-1);
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    line-height: 1.6;
  }

  header {
    padding: 0 1rem;
  }

  nav {
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  nav ul {
    justify-content: center;
    gap: 0.1rem;
  }

  nav ul li a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  main {
    padding: 0 1rem 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  #hero {
    padding: 2.5rem 1rem;
    margin: 1rem 0 2rem;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  #hero a[role="button"] {
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
  }

  section:not(#hero) {
    padding: 1.5rem;
    margin: 1.2rem 0;
  }

  #products ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #knowledge > section > ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  details summary {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  footer nav ul {
    gap: 0.8rem;
  }
}

@media (min-width: 769px) {
  #products ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-left: 0;
  }

  #products ul li {
    padding-left: 0;
  }

  #products ul li::before {
    display: none;
  }

  #knowledge > section > ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  #knowledge > section > ul li {
    padding-left: 0;
  }

  #knowledge > section > ul li::before {
    display: none;
  }

  /* 服务与解决方案两列 */
  #services ul, #solutions ul, #features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  #hero {
    padding: 5rem 3rem;
  }

  #hero h1 {
    font-size: 3.6rem;
  }

  #knowledge > section > ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 暗色模式强化 (已经是暗色主题) */
/* 额外细节：选中文本 */
::selection {
  background: var(--accent-1);
  color: #0b1a2e;
}

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 打印优化 */
@media print {
  header, footer, #hero a[role="button"] {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  section:not(#hero) {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}