/* 皇冠体育官方网站 - Crown Sports 完整样式表 */
/* 暗色主题 + 渐变Banner + 圆角卡片 + 毛玻璃效果 + 响应式 + 动画 */

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --accent-gold: #f0c040;
  --accent-gold-dark: #b8860b;
  --accent-blue: #4a90d9;
  --accent-purple: #7b2ff7;
  --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #2d1b4e 70%, #0f0f1a 100%);
  --gradient-card: linear-gradient(145deg, rgba(240, 192, 64, 0.08), rgba(123, 47, 247, 0.08));
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(240, 192, 64, 0.2);
  --border-glass: 1px solid rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s ease;
  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 亮色模式支持（可选） */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --gradient-hero: linear-gradient(135deg, #f5f5fa 0%, #e8e0f0 40%, #f0e8c0 70%, #f5f5fa 100%);
    --gradient-card: linear-gradient(145deg, rgba(240, 192, 64, 0.05), rgba(123, 47, 247, 0.05));
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(240, 192, 64, 0.1);
    --border-glass: 1px solid rgba(0, 0, 0, 0.06);
  }
}

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

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

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

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

a:hover {
  color: var(--accent-gold-dark);
  text-shadow: var(--shadow-glow);
}

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

ul {
  list-style: none;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 标题通用样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

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

/* ===== 头部导航 ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-glass);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent-gold);
}

.logo svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(240, 192, 64, 0.3));
}

.logo-text {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links li a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-links li a:hover::after,
.nav-links li a[aria-current="page"]::after {
  width: 60%;
}

.nav-links li a:hover {
  color: var(--accent-gold);
  background: rgba(240, 192, 64, 0.08);
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 区域 ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(240, 192, 64, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(123, 47, 247, 0.06) 0%, transparent 50%);
  animation: shimmer 15s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeInUp 0.6s ease forwards;
}

.slide.active {
  display: flex;
}

.slide h1, .slide h2 {
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--accent-gold), #fff5c0, var(--accent-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 40px rgba(240, 192, 64, 0.2);
}

.slide p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #1a1a2e;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.5);
  color: #0f0f1a;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: var(--border-glass);
  color: var(--text-primary);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--accent-gold);
  color: #1a1a2e;
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.4);
}

/* ===== 通用 Section ===== */
section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 2.5rem;
}

section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* 毛玻璃卡片通用 */
.about-grid,
.products-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.about-grid article,
.products-grid article,
.services-grid article {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.about-grid article:nth-child(1) { animation-delay: 0.1s; }
.about-grid article:nth-child(2) { animation-delay: 0.2s; }
.about-grid article:nth-child(3) { animation-delay: 0.3s; }
.about-grid article:nth-child(4) { animation-delay: 0.4s; }

.products-grid article:nth-child(1) { animation-delay: 0.1s; }
.products-grid article:nth-child(2) { animation-delay: 0.2s; }
.products-grid article:nth-child(3) { animation-delay: 0.3s; }
.products-grid article:nth-child(4) { animation-delay: 0.4s; }

.services-grid article:nth-child(1) { animation-delay: 0.1s; }
.services-grid article:nth-child(2) { animation-delay: 0.2s; }
.services-grid article:nth-child(3) { animation-delay: 0.3s; }
.services-grid article:nth-child(4) { animation-delay: 0.4s; }

.about-grid article:hover,
.products-grid article:hover,
.services-grid article:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 40px rgba(240, 192, 64, 0.15);
  border-color: rgba(240, 192, 64, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.about-grid article h3,
.products-grid article h3,
.services-grid article h3 {
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* ===== FAQ 区域 ===== */
#faq {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

details {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

details:nth-child(1) { animation-delay: 0.05s; }
details:nth-child(2) { animation-delay: 0.1s; }
details:nth-child(3) { animation-delay: 0.15s; }
details:nth-child(4) { animation-delay: 0.2s; }
details:nth-child(5) { animation-delay: 0.25s; }

details:hover {
  border-color: rgba(240, 192, 64, 0.3);
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.08);
}

details[open] {
  background: rgba(240, 192, 64, 0.05);
  border-color: var(--accent-gold);
}

summary {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: var(--transition);
  margin-left: 1rem;
}

details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

details p {
  padding: 0.8rem 0 0.5rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== 联系我们 ===== */
#contact {
  max-width: 700px;
  text-align: center;
}

.contact-info {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.contact-info:hover {
  box-shadow: 0 12px 40px rgba(240, 192, 64, 0.1);
  border-color: rgba(240, 192, 64, 0.2);
}

.contact-info address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-info a {
  color: var(--accent-gold);
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: var(--border-glass);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .slide h1, .slide h2 { font-size: 2.4rem; }
  .slide p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transition: right 0.4s ease;
    z-index: 999;
    border-left: var(--border-glass);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links li a {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  #hero {
    padding: 5rem 1rem 3rem;
  }

  .slide h1, .slide h2 {
    font-size: 2rem;
  }

  .cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .about-grid,
  .products-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .nav-container {
    padding: 0.6rem 1rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .slide h1, .slide h2 {
    font-size: 1.7rem;
  }

  .slide p {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  details {
    padding: 0.6rem 1rem;
  }

  summary {
    font-size: 1rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

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

  .footer-section ul {
    align-items: center;
  }
}

/* ===== 暗色模式微调 ===== */
@media (prefers-color-scheme: dark) {
  #site-header {
    background: rgba(15, 15, 26, 0.9);
  }
}

/* ===== 无障碍与焦点样式 ===== */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ===== 打印样式 ===== */
@media print {
  #site-header,
  .slider-prev,
  .slider-next,
  .nav-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    page-break-inside: avoid;
  }
}