/* ============================================================
   奇异果体育官网 - style.css
   完整样式文件，包含暗色/亮色模式、响应式布局、动画等
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a1a;
  color: #e0e0e0;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

body.light {
  background: #f5f7fa;
  color: #1a1a2e;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
  outline: none;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Glass (毛玻璃) ---------- */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

body.light .glass {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
}

.btn-secondary:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

body.light .btn-secondary {
  border-color: rgba(0, 0, 0, 0.2);
}

body.light .btn-secondary:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: #999;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

body.light .section-sub {
  color: #555;
}

/* ---------- Card ---------- */
.card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}

body.light .card {
  background: #fff;
  border-color: #e0e0e0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.3);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

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

/* ---------- Flex & Text ---------- */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-gradient {
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.light .navbar.scrolled {
  background: rgba(245, 247, 250, 0.9);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #FF6B35;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: 0.3s ease;
}

body.light .hamburger span {
  background: #1a1a2e;
}

.dark-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.dark-toggle:hover {
  border-color: #FF6B35;
}

body.light .dark-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

/* ---------- Hero / Banner Slider ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.15), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(255, 217, 61, 0.1), transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 40px;
  line-height: 1.8;
}

body.light .hero p {
  color: #555;
}

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

.banner-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

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

.banner-dots span.active {
  background: #FF6B35;
  width: 32px;
  border-radius: 6px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  line-height: 1.9;
  margin-bottom: 16px;
  color: #ccc;
}

body.light .about-text p {
  color: #444;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: #999;
  margin-top: 4px;
}

body.light .stat-item p {
  color: #666;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #FF6B35, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF6B35;
  border: 2px solid #0a0a1a;
}

body.light .timeline-item::before {
  border-color: #f5f7fa;
}

/* ---------- Values Grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 30px 16px;
}

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

/* ---------- Product Feature ---------- */
.product-feature {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 40px;
  margin-bottom: 30px;
}

.product-feature:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-icon svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* ---------- Advantage List ---------- */
.advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ---------- Service Steps ---------- */
.service-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 107, 53, 0.3);
  margin-bottom: 12px;
}

/* ---------- Solution Card ---------- */
.solution-card {
  padding: 40px 30px;
  text-align: center;
}

.solution-card h3 {
  margin-bottom: 12px;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  padding: 30px;
}

.testimonial-stars {
  color: #FFD93D;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

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

/* ---------- News Grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  cursor: pointer;
}

body.light .faq-item {
  border-color: #ddd;
}

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

.faq-question span {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: #aaa;
  line-height: 1.7;
}

body.light .faq-answer {
  color: #555;
}

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

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light .footer {
  border-color: #ddd;
}

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

.footer h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer a:hover {
  color: #FF6B35;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: #888;
}

body.light .footer-bottom {
  border-color: #ddd;
  color: #666;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FF6B35;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  z-index: 999;
  transition: 0.3s ease;
}

.back-to-top.show {
  display: flex;
}

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

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 1.4rem;
}

body.light .mobile-menu {
  background: rgba(245, 247, 250, 0.98);
}

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

.mobile-menu a {
  padding: 10px;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Search Modal ---------- */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

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

.search-box {
  width: 90%;
  max-width: 500px;
  padding: 20px;
  border-radius: 16px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

body.light .search-box input {
  background: #fff;
  color: #1a1a2e;
  border-color: #ccc;
}

.search-box input:focus {
  border-color: #FF6B35;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* ---------- Sitemap & Friend Links ---------- */
.sitemap-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.sitemap-links a {
  display: block;
  padding: 6px 0;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.friend-links a,
.friend-links span {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

body.light .friend-links a,
body.light .friend-links span {
  border-color: #ccc;
}

.friend-links a:hover {
  border-color: #FF6B35;
}

/* ---------- Scroll Animation (AOS) ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Form Elements ---------- */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

body.light input[type="text"],
body.light input[type="email"],
body.light textarea {
  border-color: #ccc;
  background: #fff;
  color: #1a1a2e;
}

input:focus,
textarea:focus {
  border-color: #FF6B35;
}

textarea {
  resize: vertical;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-feature {
    flex-direction: column !important;
    text-align: center;
    padding: 24px;
  }

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

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

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

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

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

  .banner-dots {
    bottom: 20px;
  }

  .banner-dots span {
    width: 10px;
    height: 10px;
  }

  .banner-dots span.active {
    width: 24px;
  }
}

/* ---------- Additional Utility ---------- */
.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

/* ---------- Smooth Scroll Offset (for fixed navbar) ---------- */
section[id] {
  scroll-margin-top: 80px;
}

/* ---------- Selection ---------- */
::selection {
  background: #FF6B35;
  color: #fff;
}

/* ---------- Scrollbar (optional) ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a1a;
}

body.light ::-webkit-scrollbar-track {
  background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
  background: #FF6B35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55a2b;
}