/* ========================================
   WINNOW CHINA — GLOBAL STYLES
   Shared across all pages
   Brand: #5A50FF / #FF8700 / #3C2878
   ======================================== */

/* Self-hosted fonts — replace Google Fonts */
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/roboto/roboto-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/roboto/roboto-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/roboto/roboto-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans SC'; src: url('/assets/fonts/noto-sans-sc/noto-sans-sc-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans SC'; src: url('/assets/fonts/noto-sans-sc/noto-sans-sc-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans SC'; src: url('/assets/fonts/noto-sans-sc/noto-sans-sc-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --blueberry: #5A50FF;
  --orange: #FF8700;
  --purple: #3C2878;
  --white: #FFFFFF;
  --light-bg: #F7F6FF;
  --dark-bg: #3C2878;
  --gray: #B4C8D2;
  --green: #00F0C8;
  --red: #FF144B;
  --text-body: #000000;
  --shadow-sm: 0 2px 8px rgba(60, 40, 120, 0.08);
  --shadow-md: 0 4px 20px rgba(60, 40, 120, 0.12);
  --shadow-lg: 0 8px 40px rgba(60, 40, 120, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Roboto', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 135, 0, 0.3);
}

.btn-primary:hover {
  background: #e67a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 135, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-outline {
  background: transparent;
  color: var(--blueberry);
  border: 2px solid var(--blueberry);
}

.btn-outline:hover {
  background: var(--blueberry);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(90, 80, 255, 0.2);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-white-outline:hover {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: transparent;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(60, 40, 120, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  opacity: 1 !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: #e67a00;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* ========================================
   HAMBURGER (MOBILE)
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.mobile-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(60, 40, 120, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
  transition: var(--transition);
}

.mobile-nav a:hover {
  opacity: 1;
  color: var(--orange);
}

.mobile-nav .nav-cta {
  margin-top: 16px;
  padding: 14px 36px;
  font-size: 1.1rem;
}

/* ========================================
   SECTION HEADER (reused)
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   BOTTOM CTA BANNER
   ======================================== */
.bottom-cta {
  background: linear-gradient(135deg, var(--blueberry) 0%, var(--purple) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta .container {
  position: relative;
}

.bottom-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.bottom-cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-brand .logo img {
  height: 24px;
  width: auto;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.wechat-qr-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.wechat-qr-inline img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.wechat-qr-inline span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   VIDEO MODAL LIGHTBOX
   ======================================== */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-wrapper {
  position: relative;
  max-width: 50%;
  max-height: 60vh;
}

.video-modal-overlay video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: white;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
  transition: opacity 0.2s;
  z-index: 1;
}

.video-modal-close:hover {
  opacity: 0.7;
}

/* ========================================
   LOGO WALL / CAROUSEL
   ======================================== */
.logo-wall {
  background: var(--white);
  padding: 64px 0 48px;
  overflow: hidden;
}

.logo-wall-title {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.logo-wall-title::before,
.logo-wall-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #CFCCCC;
}

.logo-wall-title h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #CFCCCC;
  white-space: nowrap;
  letter-spacing: 1px;
}

.logo-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo-carousel-inner {
  display: flex;
  align-items: center;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-carousel-slide {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.logo-carousel-slide img {
  width: 100%;
  max-width: 236px;
  height: auto;
  object-fit: contain;
}

.logo-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #CFCCCC;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.logo-carousel-arrow:hover {
  border-color: var(--purple);
}

.logo-carousel-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #CFCCCC;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-carousel-arrow:hover svg {
  stroke: var(--purple);
}

.logo-carousel-arrow.prev { left: 8px; }
.logo-carousel-arrow.next { right: 8px; }

.logo-wall-divider {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px;
  border: none;
  height: 1px;
  background: #CFCCCC;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--white);
  padding: 100px 0;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 200px;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-align: center;
  padding: 0 24px;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.testimonial-quote {
  font-size: 1.2rem;
  color: var(--purple);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 28px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--blueberry);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  line-height: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--purple);
  font-size: 1rem;
}

.testimonial-role {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blueberry);
  opacity: 0.6;
  letter-spacing: 1px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(90, 80, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots .dot.active {
  background: var(--blueberry);
  width: 28px;
  border-radius: 5px;
}

/* ========================================
   MEDIA SPOTLIGHT (shared: home + about)
   ======================================== */
.media-section {
  background: var(--light-bg);
  padding: 72px 0;
}

.media-section .section-header {
  margin-bottom: 40px;
}

.media-section .section-header h2 {
  font-size: 2.2rem;
}

.media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.media-logos img {
  width: 158px;
  height: auto;
  object-fit: contain;
}

/* ========================================
   SCROLL ANIMATION UTILITY
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RESPONSIVE — GLOBAL COMPONENTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .logo-carousel-slide {
    flex: 0 0 25%;
  }

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

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

  .hamburger {
    display: flex;
  }

  .logo-carousel-slide {
    flex: 0 0 33.333%;
  }

  .logo-carousel {
    padding: 0 48px;
  }

  .video-modal-wrapper {
    max-width: 90%;
    max-height: 50vh;
  }

  .media-logos {
    gap: 32px;
  }

  .media-logos img {
    width: 100px;
    height: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .wechat-qr-inline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .wechat-qr-inline img {
    width: 80%;
    height: auto;
    max-width: 280px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .bottom-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
