/* Base styles */
:root {
  --primary: #27cdaf;
  --primary-dark: #1da78c;
  --secondary: #2a77ef;
  --accent: #fcb61c;
  --text: #333333;
  --bg: #f8fafa;
  --font-english: "Inter", "Alibaba PuHuiTi", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#page {
  transition: opacity 0.5s ease;
}

body {
  margin: 0;
  font-family: var(--font-english);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

section {
  padding: 6rem 5vw;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 35px rgba(39, 205, 175, 0.3);
}

.btn.ghost {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.ripple:active::after {
  transform: scale(1.2);
  opacity: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  backdrop-filter: blur(0px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 5vw;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-glow {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
}

.logo-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.logo:hover .logo-glow::after {
  opacity: 1;
  transform: scale(1.1);
}

.logo img {
  max-height: 42px;
  width: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.site-header.scrolled .logo img {
  max-height: 36px;
}

.logo:hover img {
  transform: scale(0.95);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

.lang-toggle.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.9;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
}

.parallax-layer img {
  width: 120%;
  height: 120%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 6rem 5vw;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  color: #fff9ef;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.eyebrow {
  letter-spacing: 0.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tag-marquee {
  margin-top: 3rem;
  overflow: hidden;
}

.tag-marquee .tags {
  display: inline-flex;
  gap: 1.5rem;
  animation: marquee 18s linear infinite;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section heading */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* About */
.about {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 45px rgba(15, 30, 45, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(15, 30, 45, 0.15);
}

.about-list .icon {
  font-size: 1.8rem;
}

.image-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.18);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4));
}

/* Products */
.products {
  background: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 15px 30px rgba(39, 205, 175, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 35px rgba(31, 82, 119, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px rgba(23, 52, 82, 0.18);
}

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

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

.product-card .learn-more {
  color: var(--secondary);
  font-weight: 600;
}

.product-skeleton {
  height: 320px;
  border-radius: 22px;
  background: linear-gradient(110deg, #f2f5f7 8%, #ffffff 18%, #f2f5f7 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

/* Contact */
.contact {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
}

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

.contact-form-wrapper form {
  display: grid;
  gap: 1rem;
}

.contact-form-wrapper label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 182, 28, 0.35);
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

.map-wrapper iframe {
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 18px;
  filter: grayscale(0.2) contrast(1.1);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
}

.form-status {
  min-height: 24px;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #333333;
  color: #f5f5f5;
  padding: 2.5rem 5vw;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

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

.back-to-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #333;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 24px;
  width: min(90vw, 540px);
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: 0 45px 70px rgba(34, 60, 80, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 70vw);
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.4s ease;
  }

  .main-nav.open ul {
    right: 0;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .site-header {
    padding: 0.75rem 1.5rem;
  }

  .header-cta .btn {
    display: none;
  }

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

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

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

.lang-switching {
  opacity: 0.3;
}

.product-card .card-icon {
  font-size: 2rem;
}

