﻿@font-face {
  font-family: "Barlow SC";
  src: url("../assets/fonts/BarlowSemiCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("../assets/fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("../assets/fonts/BarlowSemiCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/fonts/AlibabaPuHuiTi-2-55-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/fonts/AlibabaPuHuiTi-2-65-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/fonts/AlibabaPuHuiTi-2-85-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --accent: #3ad0ff;
  --accent-deep: #00a8c7;
  --accent-ink: #0a1520;
  --accent-soft: rgba(58, 208, 255, 0.18);
  --fb: #00a8c7;
  --fb-deep: #0089a3;
  --fb-soft: rgba(58, 208, 255, 0.18);
  --gold: #3ad0ff;
  --gold-deep: #00a8c7;
  --sky: #f4fbfe;
  --sky-mid: #e7f6fb;
  --sky-line: #c5e4ee;
  --sky-deep: #3ad0ff;
  --tech: #3ad0ff;
  --tech-deep: #00a8c7;
  --tech-soft: rgba(58, 208, 255, 0.18);
  --tech-line: #c5e4ee;
  --ink: #12303c;
  --muted: #5a7582;
  --line: #c5e4ee;
  --surface: #ffffff;
  --white: #fff;
  --shadow: 0 8px 28px rgba(0, 140, 180, 0.12);
  --nav-h: 56px;
  --wechat: #31a24c;
  --whatsapp: #25d366;
  --danger: #e24b63;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; }
html, body { margin: 0; }
body {
  font-family: "PuHuiTi", "Barlow SC", "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--sky);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, .latin {
  font-family: "Barlow SC", "PuHuiTi", sans-serif;
  letter-spacing: 0.01em;
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; color: var(--ink); }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand img {
  height: 26px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--fb);
  border-bottom-color: var(--fb);
}
.lang {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  border: 1px solid var(--line);
  padding: 3px;
  background: var(--sky);
  border-radius: 6px;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Barlow SC", sans-serif;
}
.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 4px;
}
.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 42px;
  height: 42px;
  cursor: pointer;
  border-radius: 6px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
}

.hero {
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 48px;
}
.kicker {
  font-family: "Barlow SC", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--fb);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  max-width: 18ch;
  margin-bottom: 16px;
  color: var(--ink);
}
.hero h1 img {
  height: clamp(40px, 7vw, 72px);
  width: auto;
  max-width: min(92vw, 780px);
}
.hero p {
  max-width: 560px;
  color: var(--ink);
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.hero p.lead {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 28px;
}
html[lang="en"] body {
  font-family: "Barlow SC", "PuHuiTi", "Segoe UI", sans-serif;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn.dark { background: var(--accent); color: var(--accent-ink); }
.btn.line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 72px 24px; }
.wrap.narrow { max-width: 880px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.dark, .band.sky { background: var(--surface); color: var(--ink); }
.band.char { background: var(--sky-mid); color: var(--ink); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p, .lede {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 560px;
}

.markets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--sky-line);
  border: 1px solid var(--sky-line);
}
.market {
  background: var(--surface);
  padding: 28px 20px;
  min-height: 150px;
}
.market .code {
  font-family: "Barlow SC", sans-serif;
  color: var(--fb);
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
}
.market h3 { margin: 10px 0 8px; font-size: 22px; }
.market p { margin: 0; color: var(--muted); font-size: 14px; }

.grid-4, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.card.pad { padding: 22px; }
.card.accent {
  background: var(--surface);
  border-color: var(--line);
}
.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.product-card:hover {
  box-shadow: var(--shadow);
}
.thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sky);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .meta {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.chip {
  display: inline-block;
  font-family: "Barlow SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fb);
  font-weight: 700;
}
.product-card h3 { font-size: 20px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 16px;
}
.filters button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.page-hero {
  background: var(--surface);
  color: var(--ink);
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero .inner { max-width: 1240px; margin: 0 auto; }
.page-hero .kicker { color: var(--fb); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 8px 0 12px; color: var(--ink); }
.page-hero p { margin: 0; color: var(--muted); max-width: 640px; }

.gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 10px;
}
.gallery-mosaic a:first-child { grid-row: 1 / 3; }
.gallery-mosaic img, .source-grid img, .detail-gallery img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-mosaic a, .source-grid a {
  overflow: hidden;
  background: var(--sky-mid);
}

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.source-grid a {
  aspect-ratio: 4 / 5;
  display: block;
}
.source-grid img { object-position: center center; }

.detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}
.detail-gallery { display: grid; gap: 10px; }
.detail-gallery img { max-height: 720px; object-fit: cover; background: var(--sky); }
.specs { display: grid; gap: 0; margin: 24px 0; }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-card {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--surface);
  text-align: center;
  border-radius: 8px;
}
.qr-card img {
  width: min(100%, 420px);
  margin: 12px auto;
  background: #fff;
}
.qr-card h3 { font-size: 20px; color: var(--ink); }
.channel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.channel .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Barlow SC", sans-serif;
}
.channel .value { font-weight: 700; }

.form h3 { color: var(--ink); }
.form label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.form-group-label {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form-row label { margin-top: 8px; }
.form.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-methods {
  margin: 18px 0 0;
  padding: 8px 16px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}
.contact-methods legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
}
.contact-methods .req {
  color: var(--danger);
  margin-left: 2px;
}
.contact-methods .form-row {
  gap: 0 20px;
}
.contact-methods .form-row label {
  margin-top: 8px;
}
.field-hint {
  margin: 4px 0 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: #fff;
}
.form select:disabled {
  color: var(--muted);
  background: var(--sky);
  border-color: var(--line);
}
.form .btn {
  margin-top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
}
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.form-status.ok { color: var(--wechat); }
.form-status.error { color: var(--danger); }
.form button:disabled { opacity: 0.65; cursor: not-allowed; }
.form-sent-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(244, 251, 254, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-radius: 8px;
}
.form-sent-mask[hidden] { display: none !important; }
.form-sent-box {
  width: min(340px, 100%);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.form-sent-box p {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.form-sent-box .btn {
  margin: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { border-top: 3px solid var(--fb); padding-top: 14px; }
.stat b { display: block; font-family: "Barlow SC", sans-serif; font-size: 28px; color: var(--fb); }
.stat span { color: var(--muted); font-size: 14px; }

.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 24px 48px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer img { height: 22px; width: auto; margin-bottom: 12px; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--fb); }
.site-footer .footer-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  max-width: 46ch;
}
.site-footer .footer-lead {
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 12px;
  max-width: 46ch;
}
.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Barlow SC", sans-serif;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; box-shadow: var(--shadow); }

.float-dock {
  position: fixed;
  right: 42px;
  top: 75%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.float-item { position: static; }
.float-btn {
  width: auto;
  min-height: 48px;
  height: 48px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}
.float-btn svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.float-btn span {
  font-family: "Barlow SC", "PuHuiTi", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.float-btn.wechat { background: var(--wechat); }
.float-btn.whatsapp { background: var(--whatsapp); }
.float-pop {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  top: auto;
  transform: none;
  width: min(460px, calc(100vw - 130px));
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  display: none;
  text-align: center;
  border-radius: 8px;
}
.float-pop img {
  width: 100%;
  height: auto;
  max-height: min(64vh, 620px);
  object-fit: contain;
  background: #fff;
}
.float-pop p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
}
.float-item.open .float-pop,
.float-item:hover .float-pop { display: block; }

@media (max-width: 980px) {
  .markets, .grid-4, .grid-3, .detail, .footer-inner, .stat-row { grid-template-columns: 1fr 1fr; }
  .gallery-mosaic, .source-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery-mosaic a:first-child { grid-column: span 2; min-height: 240px; }
}
@media (max-width: 760px) {
  .nav { position: relative; flex-wrap: wrap; }
  .nav-links, .lang { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links, .nav.open .lang { display: flex; width: 100%; flex-basis: 100%; }
  .nav.open .nav-links { flex-direction: column; order: 3; gap: 2px; padding: 8px 0 4px; border-top: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 10px 0; }
  .nav.open .lang { order: 4; flex-direction: row; margin: 0 0 12px; width: max-content; }
  .markets, .grid-4, .grid-3, .grid-2, .detail, .footer-inner, .stat-row, .qr-row, .source-grid, .gallery-mosaic { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-mosaic a:first-child { grid-column: auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .float-dock { right: 28px; top: 75%; bottom: auto; }
  .float-btn { height: 44px; min-height: 44px; padding: 0 12px 0 10px; }
  .float-btn span { font-size: 12px; }
  .float-pop { width: min(320px, calc(100vw - 96px)); right: calc(100% + 8px); }
}
