/* 必一·运动(B One Sports) 官方网站 - 完整CSS样式文件 */
/* 版本: 1.0 | 更新: 2025 */

/* ===== 全局变量 ===== */
:root {
  --primary: #1a1a2e;
  --secondary: #e94560;
  --accent: #0f3460;
  --light: #f5f5f5;
  --dark: #0a0a1a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gradient-primary: linear-gradient(135deg, var(--secondary), #ff6b81);
  --gradient-hero: radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 60%),
                   radial-gradient(ellipse at 80% 50%, rgba(15, 52, 96, 0.2) 0%, transparent 60%);
  --gradient-text: linear-gradient(135deg, var(--secondary), #ff6b81);
  --gradient-text-hero: linear-gradient(135deg, var(--secondary), #ff6b81, #e94560);
}

[data-theme="dark"] {
  --primary: #0a0a1a;
  --light: #e0e0e0;
  --dark: #f5f5f5;
  --glass: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===== 重置与基础 ===== */
*,
*::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(--primary);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff6b81;
}

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

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 通用组件 ===== */
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ===== 网格系统 ===== */
.grid-2 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

.grid-4 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--light);
}

.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  font-size: 0.95rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.dark-toggle {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.3s;
  flex-shrink: 0;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: flex;
}

/* ===== Hero区域 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 120px 24px 80px;
  position: relative;
  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='%23e94560' fill-opacity='0.03'%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;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient-text-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Banner轮播 ===== */
.banner-carousel {
  margin-top: 3rem;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: var(--radius);
  height: 300px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide svg {
  width: 120px;
  height: 120px;
  margin-right: 30px;
  flex-shrink: 0;
}

.banner-slide div {
  text-align: left;
}

.banner-slide h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.7);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.banner-dots span.active {
  background: var(--secondary);
}

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

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

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

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ===== 服务列表 ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 36px 24px;
}

.service-card svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ===== 产品网格 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  text-align: center;
  padding: 28px 16px;
}

.product-card svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.product-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.product-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===== 客户评价 ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 16px;
  color: var(--secondary);
  opacity: 0.3;
  font-family: serif;
  pointer-events: none;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-author div {
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== 新闻网格 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  padding: 24px;
}

.news-card .date {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.news-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-question span {
  transition: transform 0.3s;
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

/* ===== HowTo ===== */
.howto-section {
  max-width: 900px;
  margin: 0 auto;
}

.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.howto-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.howto-step-content {
  flex: 1;
}

.howto-step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.howto-step-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--light);
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: var(--font-sans);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== 合作客户 ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s;
}

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

.client-logo svg {
  width: 80px;
  height: 40px;
}

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

.team-card {
  text-align: center;
  padding: 24px;
}

.team-card svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.team-card h4 {
  font-size: 1.1rem;
}

.team-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ===== 品牌故事 ===== */
.brand-story {
  max-width: 800px;
  margin: 0 auto;
}

.brand-story p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== 页脚 ===== */
.footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 60px 24px 30px;
}

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

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 8px;
}

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

/* ===== 回到顶部 ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, transform 0.3s;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: scale(1.1);
}

/* ===== 搜索弹窗 ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.search-modal.open {
  display: flex;
}

.search-modal-content {
  background: var(--primary);
  padding: 32px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--glass-border);
}

.search-modal input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--light);
  font-size: 1.1rem;
}

.search-modal input:focus {
  outline: none;
  border-color: var(--secondary);
}

.search-results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.search-results div {
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 滚动动画 ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式：平板/手机 ===== */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
  }

  .hero {
    padding: 100px 16px 60px;
  }

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

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

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

  .banner-carousel {
    height: 240px;
  }

  .banner-slide {
    flex-direction: column;
    text-align: center;
  }

  .banner-slide svg {
    margin-right: 0;
    margin-bottom: 16px;
  }

  .banner-slide div {
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ===== 响应式：手机小屏 ===== */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

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

  .container {
    padding: 0 16px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .banner-carousel {
    height: 200px;
  }

  .banner-slide {
    padding: 20px;
  }

  .banner-slide svg {
    width: 80px;
    height: 80px;
  }

  .banner-slide h3 {
    font-size: 1.2rem;
  }

  .howto-step {
    flex-direction: column;
    gap: 12px;
  }

  .howto-step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== 辅助类 ===== */
.lazy-svg {
  min-height: 60px;
  background: rgba(233, 69, 96, 0.05);
  border-radius: 8px;
}

/* ===== 打印样式 ===== */
@media print {
  header,
  .scroll-top,
  .search-modal,
  .banner-dots,
  .mobile-menu-btn,
  .dark-toggle {
    display: none !important;
  }

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

  .glass-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .section-title {
    -webkit-text-fill-color: #e94560;
  }

  .hero {
    min-height: auto;
    padding: 60px 24px;
  }
}