/* ============================================================
   BLUEBERRIESCHINA — Blueberry Frozen Export
   Blueberry palette · heavy motion design
   ============================================================ */

:root {
  --berry-950: #14102e;
  --berry-900: #1e1745;
  --berry-800: #2b2166;
  --berry-700: #3a2d8f;
  --berry-600: #4c3bb1;
  --berry-500: #6a54d8;
  --berry-400: #8f7ce8;
  --berry-300: #b3a6f2;
  --berry-100: #ece7fb;
  --cream: #faf8f4;
  --gold: #d9a441;
  --ink: #221c3f;
  --muted: #6b6590;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(30, 23, 69, 0.12);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); overflow-x: hidden; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
[dir="rtl"] body { font-family: Tahoma, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { position: relative; padding: 110px 0; }
.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--berry-600);
  background: var(--berry-100);
  border: 1px solid var(--berry-300);
  padding: 7px 16px; border-radius: 100px;
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.7; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--berry-950);
  display: flex; flex-direction: column; gap: 22px;
  align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.berry-bounce { display: flex; gap: 14px; }
.berry-bounce span {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--berry-400), var(--berry-800) 70%);
  animation: berryJump 1s var(--ease) infinite;
}
.berry-bounce span:nth-child(2) { animation-delay: 0.12s; }
.berry-bounce span:nth-child(3) { animation-delay: 0.24s; }
.berry-bounce span:nth-child(4) { animation-delay: 0.36s; }
@keyframes berryJump {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.08); }
}
#preloader p { color: var(--berry-300); letter-spacing: 0.4em; font-size: 12px; text-transform: uppercase; }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: all 0.4s var(--ease);
  padding: 20px 0;
}
#navbar.scrolled {
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(30, 23, 69, 0.1);
  padding: 10px 0;
}
/* over the dark hero: light text */
#navbar:not(.scrolled) .nav-inner,
#navbar:not(.scrolled) .nav-links a,
#navbar:not(.scrolled) .logo { color: #fff; }
#navbar:not(.scrolled) .logo small { color: rgba(255,255,255,0.55); }
#navbar:not(.scrolled) .lang-switch { background: rgba(255,255,255,0.14); }
#navbar:not(.scrolled) .lang-switch button { color: rgba(255,255,255,0.75); }
#navbar:not(.scrolled) .lang-switch button.active { background: #fff; color: var(--berry-800); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18.5px; letter-spacing: 0.01em; white-space: nowrap; }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.12); transition: transform 0.4s ease; }
.logo:hover .logo-mark { transform: rotate(12deg) scale(1.06); }
.logo .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--berry-400), var(--berry-800) 75%);
  box-shadow: 0 0 0 4px rgba(106, 84, 216, 0.18);
  animation: pulseDot 2.4s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(106, 84, 216, 0.18); }
  50% { box-shadow: 0 0 0 9px rgba(106, 84, 216, 0.06); }
}
.logo small { font-weight: 600; color: var(--muted); font-size: 11px; align-self: flex-end; padding-bottom: 2px; }
#navbar .logo small, footer .logo small { display: none; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 600; color: inherit; position: relative; opacity: 0.85; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; bottom: -6px; inset-inline-start: 0;
  width: 0; height: 2px; border-radius: 2px; background: var(--berry-600);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; gap: 14px; align-items: center; }

.lang-switch { display: flex; background: rgba(106, 84, 216, 0.12); border-radius: 100px; padding: 4px; gap: 2px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: 700 12.5px/1 inherit; color: var(--berry-700);
  padding: 7px 11px; border-radius: 100px; transition: all 0.3s;
}
.lang-switch button.active { background: var(--berry-700); color: #fff; box-shadow: 0 4px 12px rgba(58, 45, 143, 0.35); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 100px;
  font: 700 15px/1 inherit; cursor: pointer; border: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(120deg, var(--berry-600), var(--berry-800)); color: #fff; box-shadow: 0 10px 30px rgba(58, 45, 143, 0.4); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(58, 45, 143, 0.5); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }
.nav-cta { padding: 11px 22px; font-size: 13.5px; }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh; padding: 0;
  display: flex; align-items: center;
  background: var(--berry-950);
  color: #fff; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; overflow: hidden; }
.hero-video img,
.hero-video video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; transform: scale(1.06);
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.16); } }
.hero-video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 16, 46, 0.92) 20%, rgba(30, 23, 69, 0.55) 60%, rgba(43, 33, 102, 0.35));
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  padding: 9px 20px; border-radius: 100px; font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(8px); margin-bottom: 28px;
}
.hero-badge .live {
  width: 9px; height: 9px; border-radius: 50%; background: #7ef29d;
  box-shadow: 0 0 0 0 rgba(126, 242, 157, 0.6);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 242, 157, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(126, 242, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 242, 157, 0); }
}
#hero h1 { font-size: clamp(40px, 6.6vw, 84px); line-height: 1.06; }
#hero h1 .accent {
  background: linear-gradient(120deg, #b3a6f2, #8f7ce8 40%, #d9a441);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shineText 5s linear infinite;
}
@keyframes shineText { to { background-position: 200% center; } }
#hero .sub { max-width: 640px; margin: 26px 0 38px; color: rgba(255,255,255,0.82); font-size: 18px; line-height: 1.75; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 34px; inset-inline-start: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.scroll-cue .mouse {
  width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px; position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: #fff;
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 20px; } }

/* floating berries */
.float-berry {
  position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, var(--berry-400), var(--berry-800) 72%);
  opacity: 0.55; filter: blur(0.4px);
  animation: floatY 9s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-38px) rotate(18deg); }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--berry-800); color: #fff;
  padding: 16px 0; overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(255,255,255,0.08);
}
.ticker-track { display: inline-flex; gap: 56px; animation: tickerMove 30s linear infinite; }
[dir="rtl"] .ticker-track { animation-direction: reverse; }
.ticker-track span { display: inline-flex; align-items: center; gap: 56px; font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }
.ticker-track span::after { content: "●"; font-size: 9px; color: var(--gold); }
@keyframes tickerMove { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Stats ---------- */
#stats { background: var(--cream); padding: 90px 0 70px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 38px 26px;
  text-align: center; box-shadow: var(--shadow);
  border-top: 4px solid var(--berry-500);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(30, 23, 69, 0.18); }
.stat-num {
  font-size: clamp(38px, 4.6vw, 58px); font-weight: 900;
  background: linear-gradient(120deg, var(--berry-700), var(--berry-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
.stats-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 34px; opacity: 0.8; }

/* ---------- About ---------- */
#about { background: linear-gradient(180deg, var(--cream), #f1eefb); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media .main-img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
}
.about-media .main-img:hover { transform: rotate(0deg) scale(1.02); }
.about-media .overlay-img {
  position: absolute; bottom: -34px; inset-inline-end: -20px;
  width: 46%; border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--cream); box-shadow: var(--shadow);
  transform: rotate(3deg); transition: transform 0.5s var(--ease);
}
.about-media .overlay-img:hover { transform: rotate(0) translateY(-8px); }
.about-media figcaption {
  position: absolute; top: 18px; inset-inline-start: 18px;
  background: rgba(30, 23, 69, 0.72); color: #fff;
  padding: 8px 14px; border-radius: 100px; font-size: 12px; backdrop-filter: blur(6px);
}
.about-copy .lead { color: var(--muted); line-height: 1.85; margin-bottom: 38px; font-size: 16.5px; }
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card {
  background: var(--card); border-radius: 18px; padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(30, 23, 69, 0.07);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(30, 23, 69, 0.14); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 14px; font-size: 22px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--berry-100), #fff);
  border: 1px solid var(--berry-300);
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- Products ---------- */
#products { background: var(--berry-950); color: #fff; }
#products .section-head h2 { color: #fff; }
#products .section-head p { color: rgba(255,255,255,0.7); }
#products .kicker { background: rgba(143,124,232,0.16); border-color: rgba(143,124,232,0.45); color: var(--berry-300); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.product-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); overflow: hidden;
  transform-style: preserve-3d; transition: box-shadow 0.4s;
  will-change: transform;
}
.product-card:hover { box-shadow: 0 34px 80px rgba(0,0,0,0.45); }
.product-card .p-img { height: 300px; overflow: hidden; }
.product-card .p-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-card:hover .p-img img { transform: scale(1.08); }
.product-card .p-body { padding: 30px 30px 34px; }
.p-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(217,164,65,0.5); padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}
.product-card h3 { font-size: 24px; margin-bottom: 12px; }
.product-card .p-desc { color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.75; margin-bottom: 18px; }
.p-specs { list-style: none; display: grid; gap: 8px; }
.p-specs li { font-size: 13.5px; color: rgba(255,255,255,0.85); display: flex; gap: 9px; align-items: center; }
.p-specs li::before { content: "✔"; color: var(--berry-300); font-size: 12px; }
.pack-note {
  text-align: center; color: rgba(255,255,255,0.65); font-size: 13.5px;
  max-width: 820px; margin: 0 auto 40px; line-height: 1.8;
}
.products-cta { text-align: center; }

/* ---------- Quality Comparison ---------- */
#quality { background: var(--cream); }
.compare-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 34px; align-items: stretch;
}
.compare-card {
  background: var(--card); border-radius: var(--radius);
  padding: 26px 26px 30px; box-shadow: var(--shadow);
  border-top: 5px solid var(--berry-400);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.compare-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(30, 23, 69, 0.18); }
.compare-card.market { border-top-color: #d0685a; }
.compare-card.ours { border-top-color: var(--berry-700); }
.c-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.c-imgs img {
  border-radius: 14px; height: 190px; width: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.c-imgs img:hover { transform: scale(1.04); }
.c-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 100px; margin-bottom: 12px;
}
.c-tag.bad { color: #b04a3c; background: #fbeeec; border: 1px solid #ecc4bd; }
.c-tag.good { color: var(--berry-700); background: var(--berry-100); border: 1px solid var(--berry-300); }
.compare-card h3 { font-size: 21px; margin-bottom: 10px; }
.c-desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.c-points { list-style: none; display: grid; gap: 9px; }
.c-points li {
  font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.5;
}
.c-points li::before { font-size: 12px; flex: 0 0 auto; margin-top: 1px; }
.compare-card.market .c-points li::before { content: "✕"; color: #c8564a; }
.compare-card.ours .c-points li::before { content: "✔"; color: var(--berry-600); }
.vs {
  align-self: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b57f22);
  color: #fff; font-weight: 900; font-size: 22px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.5);
  animation: vsPulse 2.2s infinite;
}
@keyframes vsPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(217, 164, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
}
.xray-strip {
  margin: 46px auto 0; max-width: 640px;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--berry-800), var(--berry-600));
  color: #fff; font-weight: 700; font-size: 15.5px; letter-spacing: 0.04em;
  padding: 18px 30px; border-radius: 100px;
  box-shadow: 0 16px 40px rgba(58, 45, 143, 0.35);
  position: relative; overflow: hidden;
}
.xray-strip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
  animation: monthSweep 2.8s linear infinite;
}
.xray-strip .icon { font-size: 22px; }

/* ---------- Process ---------- */
#process { background: var(--cream); }
.timeline { position: relative; display: grid; gap: 0; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 27px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--berry-500), var(--berry-300));
}
.step {
  position: relative; display: flex; gap: 30px; align-items: flex-start;
  padding: 26px 0;
}
.step .step-dot {
  flex: 0 0 56px; height: 56px; border-radius: 50%; z-index: 1;
  background: linear-gradient(135deg, var(--berry-600), var(--berry-800));
  color: #fff; font-weight: 900; font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(58, 45, 143, 0.35);
  transition: transform 0.4s var(--ease);
}
.step:hover .step-dot { transform: scale(1.15) rotate(-8deg); }
.step .step-body h3 { font-size: 19px; margin-bottom: 6px; }
.step .step-body p { color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 640px; }
.timeline-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: start; }
.process-video {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  position: sticky; top: 110px;
}
.process-video video { width: 100%; display: block; }
.process-video .pv-tag {
  position: absolute; bottom: 16px; inset-inline-start: 16px;
  background: rgba(20,16,46,0.7); color: #fff; font-size: 12px;
  padding: 8px 14px; border-radius: 100px; backdrop-filter: blur(6px);
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 18px; }

/* ---------- Season ---------- */
#season { background: linear-gradient(180deg, #f1eefb, var(--cream)); }
.season-bar {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px;
  margin: 50px 0 22px;
}
.month {
  text-align: center; padding: 18px 4px 14px; border-radius: 14px;
  background: var(--card); box-shadow: 0 8px 24px rgba(30,23,69,0.06);
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.month b { display: block; font-size: 13px; color: var(--muted); }
.month .bar { height: 8px; border-radius: 8px; background: #e7e3f5; margin-top: 10px; }
.month.on { background: linear-gradient(160deg, var(--berry-600), var(--berry-800)); }
.month.on b { color: #fff; }
.month.on .bar { background: var(--gold); animation: barGlow 2s ease-in-out infinite; }
@keyframes barGlow { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.month.on::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  animation: monthSweep 3s linear infinite;
}
@keyframes monthSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.season-note { text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Markets ---------- */
#markets { background: var(--cream); }
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 40px; }
.market-card {
  background: var(--card); border-radius: 20px; padding: 30px 22px;
  text-align: center; box-shadow: 0 10px 30px rgba(30,23,69,0.07);
  border-bottom: 4px solid transparent;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.market-card:hover {
  transform: translateY(-10px);
  border-color: var(--berry-500);
  box-shadow: 0 26px 60px rgba(30,23,69,0.15);
}
.market-card .flag { font-size: 34px; margin-bottom: 14px; display: block; animation: floatY 6s ease-in-out infinite; }
.market-card h3 { font-size: 16px; margin-bottom: 8px; }
.market-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.docs-note {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13.5px; text-align: center; flex-wrap: wrap;
}
.docs-note .icon { font-size: 22px; }

/* ---------- Gallery ---------- */
#gallery { background: var(--berry-950); color: #fff; }
#gallery .section-head h2 { color: #fff; }
#gallery .section-head p { color: rgba(255,255,255,0.7); }
#gallery .kicker { background: rgba(143,124,232,0.16); border-color: rgba(143,124,232,0.45); color: var(--berry-300); }
.g-item {
  border-radius: 18px; overflow: hidden; position: relative;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  transition: transform 0.45s var(--ease);
}
.g-item:hover { transform: translateY(-8px) scale(1.015); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item video { object-position: center; }
.g-tag {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: rgba(20,16,46,0.72); color: #fff; font-size: 11.5px;
  padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(6px);
}

/* ---------- Contact ---------- */
#contact { background: linear-gradient(180deg, var(--cream), #f1eefb); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-copy .lead { color: var(--muted); line-height: 1.85; margin-bottom: 30px; }
.contact-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-media img, .contact-media video { width: 100%; display: block; }
.form-card {
  background: var(--card); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.form-card .row { margin-bottom: 18px; }
.form-card input, .form-card textarea {
  width: 100%; border: 1.5px solid #e3def3; border-radius: 14px;
  padding: 15px 18px; font: inherit; font-size: 14.5px;
  background: #fbfaff; transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.form-card input:focus, .form-card textarea:focus {
  outline: 0; border-color: var(--berry-500);
  box-shadow: 0 0 0 4px rgba(106, 84, 216, 0.14);
}
.form-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.form-ok {
  display: none; text-align: center; color: #1f8a4c; font-weight: 700; margin-top: 14px;
  animation: popIn 0.5s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* ---------- Footer ---------- */
footer { background: var(--berry-950); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-grid .logo { color: #fff; margin-bottom: 12px; }
.footer-grid p { font-size: 13.5px; line-height: 1.7; max-width: 380px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 13.5px; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--berry-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 12.5px; text-align: center; }

/* ---------- Back to top ---------- */
#toTop {
  position: fixed; bottom: 28px; inset-inline-end: 28px; z-index: 800;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--berry-600), var(--berry-800));
  color: #fff; font-size: 20px; box-shadow: 0 12px 30px rgba(58,45,143,0.45);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.4s var(--ease);
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { transform: translateY(-4px); }

/* ---------- Debug flat mode (?flat) ---------- */
body.flat #hero { min-height: auto; padding: 150px 0 70px; }
body.flat .scroll-cue { display: none; }
body.flat .reveal, body.flat .reveal-left, body.flat .reveal-right, body.flat .reveal-scale {
  opacity: 1 !important; transform: none !important;
}
body.flat #navbar { background: rgba(250,248,244,0.9); position: absolute; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-56px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[dir="rtl"] .reveal-left { transform: translateX(56px); }
.reveal-right { opacity: 0; transform: translateX(56px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[dir="rtl"] .reveal-right { transform: translateX(-56px); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.88); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; } .d6 { transition-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .timeline-wrap, .contact-grid { grid-template-columns: 1fr; }
  .process-video { position: static; }
  .nav-links { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; gap: 20px; }
  .vs { justify-self: center; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  /* 手机端收敛入场动画幅度，避免卡片明显错位滑动 */
  .reveal { transform: translateY(24px); }
  .reveal-left { transform: translateX(-12px); }
  .reveal-right { transform: translateX(12px); }
  [dir="rtl"] .reveal-left { transform: translateX(12px); }
  [dir="rtl"] .reveal-right { transform: translateX(-12px); }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { transition-duration: 0.6s; }
  .reveal-scale { transform: scale(0.94); }
  .logo small { display: none; }
  .lang-switch button { padding: 7px 8px; font-size: 11.5px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat-card { padding: 28px 14px; }
  .stat-num { font-size: clamp(26px, 8.5vw, 36px); }
  .product-grid, .feature-cards { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .season-bar { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-item.tall, .g-item.wide { grid-row: span 1; grid-column: span 1; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .nav-cta { display: none; }
  .form-card { padding: 26px; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 8px; }
  .logo { font-size: 15px; gap: 7px; }
  .logo-mark { width: 34px; height: 34px; }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: 6px 6px; font-size: 11px; }
  .nav-right { gap: 8px; }
}
@media (max-width: 360px) {
  .logo { font-size: 13px; }
  .lang-switch button { padding: 5px 5px; font-size: 10px; }
}
