/* ===============================================
   Lancha · Empowering Global TikTok Commerce
   File: css/styles.css
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

ul { list-style: none; padding: 0; margin: 0; }

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

svg { display: block; }

/* ---------- Tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f6f5f3;
  --color-text: #0e0e0f;
  --color-text-muted: #5a5a5d;
  --color-text-soft: #8a8a8c;
  --color-border: #e8e6e2;
  --color-pink: #ca007a;
  --color-pink-deep: #a30062;
  --color-dark: #0a0a0d;
  --color-dark-soft: #14141a;

  --font-display: 'Playfair Display', 'Times New Roman', serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

  --container: 1400px;
  --gutter: 48px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-pink);
  margin: 0 0 18px;
}

.eyebrow-muted {
  color: var(--color-pink);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-pink);
  color: #fff;
}
.btn-primary:hover { background: var(--color-pink-deep); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  background: #fff;
  color: #111;
}
.btn-light:hover { background: #f1efea; }

.btn-dark {
  background: #0a0a0d;
  color: #fff;
}
.btn-dark:hover { background: #1f1f25; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 88px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.brand-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 22px;
  color: #111;
  flex-shrink: 0;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 22px;
}

.primary-nav {
  flex: 1;
}

.primary-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.primary-nav a {
  position: relative;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 500;
  color: #2a2a2d;
}

.primary-nav a.active {
  color: #0a0a0d;
}

.primary-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-pink);
  border-radius: 1px;
}

.primary-nav a:hover { color: var(--color-pink); }

.nav-cta {
  padding: 14px 28px;
  font-size: 14px;
  background: #0a0a0d;
  color: #fff;
}
.nav-cta:hover { background: #1f1f25; }

/* ---- 中英文切换 ---- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--color-pink);
  color: var(--color-pink);
}

.lang-toggle .lang-current {
  min-width: 22px;
  text-align: center;
}

@media (max-width: 880px) {
  .lang-toggle {
    margin-left: auto;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 760px;
  background: #050507;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/earth-hero.png');
  background-size: 68% auto;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.78) 35%, rgba(5, 5, 7, 0.45) 60%, rgba(5, 5, 7, 0.20) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.35) 0%, rgba(5, 5, 7, 0) 18%, rgba(5, 5, 7, 0) 80%, rgba(5, 5, 7, 0.55) 100%);
  z-index: -1;
}

.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--gutter) 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  position: relative;
}

.hero-copy {
  max-width: 880px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: #fff;
}

.hero-rule {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-pink);
  border-radius: 2px;
  margin: 0 0 28px;
}

.hero-lede {
  font-size: 18px;
  color: #d8d6d2;
  line-height: 1.75;
  margin: 0 0 44px;
  max-width: 600px;
}

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

.hero-visual { display: none; }

/* =============================================
   SECTION · BRAND MATRIX
   ============================================= */
.brand-matrix {
  background: transparent;
  padding: 0;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: left;
  margin-bottom: 52px;
  max-width: 360px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 20px;
  color: #111;
}

.section-sub {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

.brand-matrix .container {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 48px;
  align-items: stretch;
  background:var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 60px 56px;
  max-width: var(--container);
}

.brand-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 28px 28px 26px;
  min-height: 300px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  overflow: hidden;
}

.brand-card-light {
  background: #fff;
  color: #111;
  border: 1px solid var(--color-border);
}

.brand-card-pink {
  background: var(--color-pink);
  color: #fff;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---- logo 图片在上,占主要空间 ---- */
.brand-card-logo {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 140px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.brand-card--wiholl .brand-card-logo {
  background-image: url('../assets/images/wiholl-logo.jpg');
}

.brand-card--ofeefan .brand-card-logo {
  background-image: url('../assets/images/ofeefan-logo.jpg');
}

/* ---- label 图片下方 / CTA 最下 ---- */
.brand-card-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: inherit;
  opacity: 0.82;
}

.brand-card-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: inherit;
}

.brand-card-light .brand-card-cta:hover {
  color: var(--color-pink);
}

.brand-card-pink .brand-card-cta:hover {
  opacity: 0.85;
}

/* =============================================
   SECTION · STATS
   ============================================= */
.stats {
  background: #fff;
  padding: 64px 0 50px;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stats-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 4px;
  align-items: center;
  padding: 24px 28px;
}

.stats-grid li > .stat-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.stats-grid li > .stat-value {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.stats-grid li > .stat-label {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: transparent;
  color: var(--color-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e8e6e2;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* =============================================
   SECTION · SERVICE PILLS
   ============================================= */
.services {
  background: #fff;
  padding: 48px 0 72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #f0d9e3;
  cursor: pointer;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-pink);
  margin-bottom: 22px;
}

.service-icon svg {
  width: 46px;
  height: 46px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 22px;
  flex: 1;
}

.learn-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-pink);
  letter-spacing: 0.04em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.learn-more:hover { color: var(--color-pink-deep); }
.learn-more span { transition: transform 0.2s ease; }
.learn-more:hover span { transform: translateX(3px); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #fafaf8;
  border-top: 1px solid var(--color-border);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.4fr;
  gap: 36px 28px;
}

.footer-brand .brand-mark {
  display: block;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b3b3e;
}

.socials a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 14px;
  color: #111;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-col a:hover { color: var(--color-pink); }

.footer-cta p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #111;
  margin: 0 0 18px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 32px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-meta-right {
  align-items: flex-end;
  text-align: right;
}

.footer-meta .copyright { color: var(--color-text-muted); }

.footer-meta .icp a,
.footer-meta .icp {
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}
.footer-meta .icp a:hover { color: var(--color-pink); }

.footer-meta .domain {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.legal-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.legal-links a:hover { color: #111; }
.legal-links .divider { opacity: 0.5; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid > li:nth-child(4),
  .service-grid > li:nth-child(5) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr) 1.4fr; }
  .footer-cta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 880px) {
  .primary-nav,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .primary-nav.is-open {
    display: block;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    padding: 40px 32px;
    z-index: 99;
  }
  .primary-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .primary-nav.is-open a {
    font-size: 22px;
    font-family: var(--font-display);
  }

  .hero { min-height: auto; }
  .hero-grid { padding: 64px var(--gutter) 80px; }
  .hero-bg {
    background-position: 70% center;
    opacity: 0.7;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.7) 60%, rgba(5, 5, 7, 0.55) 100%);
  }

  .brand-matrix {
    margin-top: -40px;
    margin-bottom: 56px;
    padding: 0 16px;
  }
  .brand-matrix .container {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 32px;
  }
  .brand-grid {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-meta-right { align-items: flex-start; text-align: left; }
  .brand-card { padding: 40px 24px; min-height: 180px; }
}

/* =============================================
   A11Y · MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 2px;
  border-radius: 4px;
}
