/* =========================================================
   Loxera — Bilingual corporate site (EN / CN)
   Zero-dependency static stylesheet
   ========================================================= */
:root {
  --teal: #2e9ba0;
  --teal-dark: #1f7478;
  --teal-deep: #14545c;
  --teal-light: #e6f3f4;
  --ink: #1c2733;
  --gray: #5b6b7a;
  --gray-light: #8a99a8;
  --line: #e3eaef;
  --bg-soft: #f6fafb;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(28, 39, 51, .06);
  --shadow-md: 0 10px 30px rgba(28, 39, 51, .12);
  --radius: 10px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-deep); color: #cfe7e8; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #fff; }
.topbar .tb-links { display: flex; gap: 22px; align-items: center; }
.topbar .tb-links span { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 1px 12px; font-size: 12px; color: #fff; }
.lang-switch a.on { background: #fff; color: var(--teal-deep); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 300; background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(28,39,51,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 60px; width: auto; }
.site-footer .brand img { height: 54px; }

.main-nav > ul { display: flex; gap: 6px; }
.main-nav a.nav-link {
  display: block; padding: 10px 18px; font-size: 16px; font-weight: 600; color: var(--ink);
  border-bottom: 3px solid transparent; transition: .2s;
}
.main-nav a.nav-link:hover, .main-nav li.active > a.nav-link { color: var(--teal); border-bottom-color: var(--teal); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; justify-content: space-between; padding: 10px 20px; font-size: 14.5px; color: var(--ink); }
.dropdown a:hover { background: var(--teal-light); color: var(--teal-dark); }
.dropdown a em { font-style: normal; color: var(--gray-light); font-size: 12.5px; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: .2s;
}
.header-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.6px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(78vh, 680px); min-height: 460px; overflow: hidden; background: var(--teal-deep); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-size: cover; background-position: center;
}
.hero-slide.on { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,35,40,.82) 0%, rgba(10,35,40,.55) 45%, rgba(10,35,40,.12) 100%); }
.hero-caption {
  position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center;
}
.hero-caption .container { max-width: 1200px; }
.hero-kicker { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: #9fd6d9; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 44px; height: 2px; background: var(--teal); }
.hero-title { color: #fff; font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; line-height: 1.16; max-width: 720px; }
.hero-sub { color: #cfe3e5; font-size: clamp(15px, 1.6vw, 19px); margin: 18px 0 30px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; transition: .22s; border: 2px solid transparent;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #fff; color: var(--teal-dark); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; transition: .25s; }
.hero-dots button.on { background: #fff; width: 48px; }

/* ---------- Section headings ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-eyebrow { color: var(--teal); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 13.5px; }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-top: 10px; line-height: 1.25; }
.sec-title em { font-style: normal; color: var(--teal); }
.sec-desc { color: var(--gray); margin-top: 14px; font-size: 16.5px; }
.sec-more { text-align: center; margin-top: 44px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-sm); background: var(--teal-deep);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,42,47,0) 35%, rgba(12,42,47,.88) 100%); }
.cat-label { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: #fff; }
.cat-label b { display: block; font-size: 17.5px; line-height: 1.3; }
.cat-label span { font-size: 13px; color: #a9cdd0; }
.cat-label .count { position: absolute; right: 18px; bottom: 20px; font-size: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 2px 10px; border-radius: 999px; }

/* ---------- About preview ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 4/3.1; }
.about-media .sub {
  position: absolute; right: -26px; bottom: -34px; width: 44%; border-radius: var(--radius);
  border: 6px solid #fff; box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 4/3;
}
.about-copy .sec-eyebrow { margin-bottom: 8px; display: inline-block; }
.about-copy h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 800; line-height: 1.28; }
.about-copy h2 em { font-style: normal; color: var(--teal); }
.about-copy p { color: var(--gray); margin: 18px 0; font-size: 16px; }
.about-points { margin: 6px 0 26px; display: grid; gap: 10px; }
.about-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.about-points li::before { content: "✓"; flex: 0 0 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-light); color: var(--teal-dark); border-radius: 50%; font-size: 12px; font-weight: 800; margin-top: 3px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 26px 12px; }
.stat b { display: block; font-size: 34px; color: var(--teal); font-weight: 800; }
.stat span { color: var(--gray); font-size: 14px; }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .22s; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bcd9db; }
.prod-thumb { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--line); }
.prod-thumb img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.prod-card:hover .prod-thumb img { transform: scale(1.05); }
.prod-meta { padding: 13px 15px 15px; text-align: center; }
.prod-meta b { font-size: 14.5px; color: var(--ink); letter-spacing: .4px; }
.prod-meta span { display: block; color: var(--gray-light); font-size: 12.5px; margin-top: 2px; }

/* ---------- Feature / service cards ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .22s; }
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feat-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-ico svg { width: 27px; height: 27px; }
.feat-card h3 { font-size: 18px; margin-bottom: 10px; }
.feat-card p { color: var(--gray); font-size: 14.5px; }

/* ---------- Culture band ---------- */
.culture-band { background: var(--teal-deep); color: #fff; }
.culture-band .sec-eyebrow { color: #8fd0d3; }
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 10px; }
.culture-item { border-left: 3px solid var(--teal); padding-left: 18px; background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.culture-item h4 { font-size: 17px; color: var(--teal-dark); margin-bottom: 8px; }
.culture-item p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* ---------- Split banner ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media { min-height: 340px; background-size: cover; background-position: center; }
.split-copy { background: #fff; padding: 52px 54px; display: flex; flex-direction: column; justify-content: center; }
.split-copy h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.3; }
.split-copy h3 em { font-style: normal; color: var(--teal); }
.split-copy p { color: var(--gray); margin: 16px 0 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(100deg, var(--teal-deep), var(--teal-dark)); color: #fff; padding: 74px 0 66px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-hero::after { content: ""; position: absolute; right: 120px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.05); }
.page-hero .sec-eyebrow { color: #9fd6d9; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-top: 8px; }
.page-hero p { color: #c9e2e4; margin-top: 12px; max-width: 720px; }
.breadcrumb { font-size: 13.5px; color: #9fc6c9; margin-bottom: 18px; }
.breadcrumb a { color: #cde9ea; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Products page ---------- */
.cats-bar { position: sticky; top: var(--header-h); z-index: 200; background: #fff; border-bottom: 1px solid var(--line); }
.cats-bar-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats-bar-inner::-webkit-scrollbar { display: none; }
.cats-bar a { padding: 15px 17px; font-size: 14.5px; font-weight: 600; color: var(--gray); white-space: nowrap; border-bottom: 3px solid transparent; }
.cats-bar a:hover, .cats-bar a.on { color: var(--teal); border-bottom-color: var(--teal); }

.series-block { padding: 64px 0 30px; }
.series-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.series-head h2 { font-size: 26px; font-weight: 800; }
.series-head h2 em { font-style: normal; color: var(--teal); }
.series-head p { color: var(--gray); font-size: 14.5px; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; display: flex; gap: 18px; }
.info-ico { flex: 0 0 52px; height: 52px; border-radius: 13px; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.info-ico svg { width: 25px; height: 25px; }
.info-card h4 { font-size: 16.5px; margin-bottom: 4px; }
.info-card p { color: var(--gray); font-size: 15px; }
.qr-row { display: flex; gap: 26px; }
.qr-item { text-align: center; }
.qr-item img { width: 132px; aspect-ratio: 1 / 1; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.qr-item span { display: block; font-size: 13.5px; color: var(--gray); margin-top: 8px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 21px; margin-bottom: 6px; }
.form-card > p { color: var(--gray); font-size: 14.5px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--bg-soft); outline: none; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(46,155,160,.13); }
.form-note { font-size: 12.5px; color: var(--gray-light); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(105deg, var(--teal-dark), var(--teal)); border-radius: var(--radius); color: #fff; padding: 46px 52px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.cta-band p { color: #d9eef0; margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--teal-dark); }
.cta-band .btn:hover { background: var(--teal-deep); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #14232b; color: #93a7b1; margin-top: 84px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 60px 0 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 9px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.f-about p { font-size: 14px; margin: 14px 0 18px; line-height: 1.8; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 26px; z-index: 250; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45); transition: .22s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 28px; height: 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid, .prod-grid, .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media .sub { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: #fff; z-index: 400;
    transform: translateX(100%); transition: transform .28s ease; padding: 90px 26px 40px; overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0,0,0,.14);
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav a.nav-link { border-bottom: 1px solid var(--line); font-size: 17px; padding: 14px 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--teal-light); margin: 0 0 4px 12px; display: none; padding: 4px 0; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; z-index: 500; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  .header-cta { display: none; }
  .topbar .tb-links span.hide-sm { display: none; }
}
@media (max-width: 720px) {
  .brand img { height: 52px; }
  .cat-grid, .prod-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 520px; }
  .split-copy { padding: 36px 28px; }
  .cta-band { padding: 34px 28px; }
}
