/* ===== 满冠体育官方网站 style.css ===== */
/* 全局重置与变量 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a8a;
  --primary-light: #3b5cb8;
  --secondary: #fbbf24;
  --bg: #f8fafc;
  --text: #0f172a;
  --glass: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 0.3s ease;
  --max-width: 1280px;
  --header-height: 72px;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dark {
  --bg: #0b1120;
  --text: #e2e8f0;
  --primary: #2e4a9e;
  --glass: rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ===== 头部 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-wrap: wrap;
  min-height: var(--header-height);
}

.logo svg {
  width: 48px;
  height: 48px;
  transition: transform var(--transition);
}

.logo:hover svg {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
}

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

nav a:hover::after,
nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--glass);
}

#darkToggle {
  background: none;
  border: 0;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all var(--transition);
  line-height: 1;
}

#darkToggle:hover {
  background: var(--glass);
  transform: rotate(20deg);
}

@media (max-width: 768px) {
  .header-inner {
    padding: 8px 0;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 8px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  
  nav ul.open {
    display: flex;
  }
  
  nav a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }
  
  .menu-toggle {
    display: block;
  }
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 70%, #3b5cb8 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-radius: 0 0 40px 40px;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(1.2); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='30' cy='30' r='20' fill='%23fbbf24' opacity='0.08'/%3E%3Ccircle cx='170' cy='150' r='40' fill='%23fbbf24' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--secondary);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin: 20px 0 28px;
  max-width: 540px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: 0;
  cursor: pointer;
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background: var(--secondary);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #f59e0b;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5);
}

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

.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
    border-radius: 0 0 24px 24px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  
  .hero p {
    margin: 16px auto 24px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ===== 通用 Section ===== */
section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), #f59e0b);
  margin: 12px auto 0;
  border-radius: 4px;
  transition: width var(--transition);
}

.section-title:hover::after {
  width: 120px;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(30, 58, 138, 0.3);
}

.card-icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.card p {
  color: var(--text);
  opacity: 0.85;
  line-height: 1.7;
}

.card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.card ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ===== 品牌故事 ===== */
.brand-story {
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  transition: background var(--transition);
}

.dark .brand-story {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.story-grid p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.story-grid svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== 团队 ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

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

.team-card svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  padding: 12px;
  transition: transform var(--transition);
}

.team-card:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.team-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== 产品高亮 ===== */
.product-highlight {
  background: linear-gradient(135deg, var(--primary), #2e4a9e);
  color: #fff;
  border-radius: 40px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.product-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.product-highlight .card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(4px);
}

.product-highlight .card::before {
  background: linear-gradient(90deg, var(--secondary), #fff);
}

.product-highlight .card h3 {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .product-highlight {
    padding: 40px 24px;
    border-radius: 24px;
  }
}

/* ===== 案例滑块 ===== */
.case-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.case-slider::-webkit-scrollbar {
  height: 6px;
}

.case-slider::-webkit-scrollbar-track {
  background: transparent;
}

.case-slider::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.case-slider .card {
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 0;
  cursor: pointer;
  transition: all var(--transition);
}

.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
  padding-left: 8px;
}

.faq-q {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q span {
  font-size: 1.5rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding var(--transition);
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding-top: 12px;
}

/* ===== 页脚 ===== */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-grid a {
  color: #94a3b8;
  transition: color var(--transition);
  line-height: 2;
}

.footer-grid a:hover {
  color: var(--secondary);
}

.copyright {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 24px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #64748b;
}

/* ===== 返回顶部 ===== */
#backtop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: all var(--transition);
  line-height: 1;
}

#backtop.show {
  display: flex;
}

#backtop:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: var(--primary-light);
}

/* ===== 动画工具 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画 */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ===== 联系区域 ===== */
#contact {
  padding: 64px 0;
}

#contact h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 24px;
}

#contact p {
  margin-bottom: 8px;
  font-size: 1.05rem;
  opacity: 0.95;
}

#contact .container > div:last-child span {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  transition: background var(--transition);
  cursor: default;
}

#contact .container > div:last-child span:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== 新闻卡片 ===== */
article.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

article.card p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

article.card a {
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

article.card a:hover {
  color: var(--secondary);
}

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  #backtop {
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 暗色模式额外适配 ===== */
.dark .card {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .team-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .brand-story .story-grid p {
  color: #cbd5e1;
}

.dark .faq-a {
  color: #cbd5e1;
}

.dark section[style*="background:#eef2f7"] {
  background: #1e293b !important;
}

.dark section[style*="background:#f1f5f9"] {
  background: #1e293b !important;
}

.dark section[style*="background:#f8fafc"] {
  background: #0b1120 !important;
}

/* ===== 选中文字样式 ===== */
::selection {
  background: var(--primary);
  color: #fff;
}

.dark ::selection {
  background: var(--secondary);
  color: #0f172a;
}

/* ===== 平滑过渡 ===== */
* {
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

/* ===== 打印样式 ===== */
@media print {
  header, footer, #backtop, .hero-cta, .menu-toggle, #darkToggle {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 40px 0;
    background: #fff !important;
    color: #000 !important;
  }
  
  .hero h1, .hero p {
    color: #000 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}