:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #edf2f8;
  --ink: #10233e;
  --muted: #5e7088;
  --brand: #0c8f7a;
  --brand-strong: #086f60;
  --line: #dbe4ef;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(10, 27, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #f2f6fb 0%, #f8fafc 36%, #f3f8f6 100%);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 251, 0.85);
  border-bottom: 1px solid rgba(219, 228, 239, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0aa08a, #0c6f8f);
  color: #fff;
  font-weight: 800;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.lang-switch button {
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.lang-switch a.active {
  color: #fff;
  background: var(--brand);
}

.lang-switch button.active {
  color: #fff;
  background: var(--brand);
}

.login-link {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 8px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #0a7465;
  background: #dff4ef;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 12px;
}

.hero-sub {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.cta {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.cta.primary {
  background: var(--brand);
  color: #fff;
}

.cta.primary:hover {
  background: var(--brand-strong);
}

.cta.secondary {
  background: #deebf8;
  color: #16395e;
}

.cta.secondary.active,
.cta.primary.active {
  box-shadow: 0 0 0 2px rgba(12, 143, 122, 0.2);
}

.cta.block {
  width: 100%;
}

.mode-panel {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-card li {
  display: grid;
  gap: 2px;
}

.hero-card strong {
  font-size: 1.3rem;
}

.hero-card span {
  color: var(--muted);
  font-size: 13px;
}

.hero-shape {
  position: absolute;
  right: -180px;
  top: -120px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #8ee3d0 0%, #d2edf9 40%, transparent 72%);
  pointer-events: none;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: linear-gradient(180deg, #eef4fa 0%, #eef8f5 100%);
}

.section-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a7465;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  margin-bottom: 24px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.list-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips span {
  background: #ffffff;
  border: 1px solid #cfe0f3;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.partners-grid div {
  border: 1px dashed #bdd0e6;
  border-radius: 14px;
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #5f748f;
  background: #fbfdff;
}

.contact {
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(174, 227, 216, 0.22), rgba(173, 208, 242, 0.22));
  pointer-events: none;
}

.contact .container {
  position: relative;
}

.contact-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.contact-desc {
  color: var(--muted);
  margin: 0;
}

.contact-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-col h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1rem;
}

.contact-info {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ci-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

/* ── QR tab box ── */
.qr-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.qr-tab-btns {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.qr-tab-btns::-webkit-scrollbar {
  display: none;
}

.qr-tab-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.qr-tab-btn:hover {
  color: var(--ink);
}

.qr-tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.qr-panels {
  padding: 32px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.qr-panel[hidden] {
  display: none;
}

/* carousel */
.qr-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qr-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-slide.active {
  display: flex;
  animation: qr-fade 0.28s ease;
}

@keyframes qr-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.qr-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.qr-carousel-controls[hidden] {
  display: none;
}

.qr-carousel-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s, color 0.15s;
}

.qr-carousel-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.qr-carousel-dots {
  display: flex;
  gap: 6px;
}

.qr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.qr-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}

/* thumbnail button */
.qr-thumb-btn {
  position: relative;
  background: none;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 200px;
  height: 200px;
}

.qr-thumb-btn:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(12, 143, 122, 0.12);
}

.qr-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 7px 0;
  background: rgba(12, 143, 122, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.qr-thumb-btn:hover .qr-zoom-hint {
  opacity: 1;
}

.qr-handle {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* placeholder */
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.qr-placeholder p {
  margin: 0;
}

.qr-placeholder-box {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 2px dashed var(--line);
  background: var(--surface-alt);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 9px, var(--line) 9px, var(--line) 10px),
    repeating-linear-gradient(90deg, transparent, transparent 9px, var(--line) 9px, var(--line) 10px);
}

/* ── QR lightbox ── */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-lightbox[hidden] {
  display: none;
}

.qr-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 52, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.qr-lightbox-inner {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 28px 20px;
  box-shadow: 0 24px 60px rgba(10, 27, 52, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.qr-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.qr-lightbox-close:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.qr-lightbox-img {
  width: min(72vw, 340px);
  height: min(72vw, 340px);
  object-fit: contain;
  border-radius: 10px;
}

.qr-lightbox-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

/* responsive */
@media (max-width: 760px) {
  .contact-body {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #0c223b;
  color: #c2d5eb;
}

.footer-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .cards.three,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .hero-shape {
    right: -260px;
    top: -180px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 72px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .nav.open {
    display: flex;
  }

  .login-link {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-card ul {
    grid-template-columns: 1fr;
  }
}

/* ── About / Company Profile ── */
.about-desc {
  max-width: 780px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

@media (max-width: 980px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
