:root {
  /* ── Original blue base ─────────────────────────── */
  --page-bg: #dff1ff;
  --hero-bg: #4291e1;
  --panel-bg: #4291e1;
  --panel-bg-soft: #71abff;
  --header-bg: #3578d8;
  --cta-dark: #12395f;

  /* ── Logo brand accent (pink/coral) ─────────────── */

  /* ── Derived tokens ─────────────────────────────── */
  --icon-blue: #1677d2;
  --title-blue: #155a9e;
  --card-icon-bg: #edf6ff;
  --text-dark: #1d2129;
  --text-muted: #86909c;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(34, 103, 173, 0.16);

  /* Accent tokens — blue by default, pink for brand moments */
  --accent: var(--icon-blue);
  --accent-soft: var(--card-icon-bg);
  --title-color: var(--title-blue);
}

/* Override accent tokens for sections where we feature the logo */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 36px;
  color: var(--text-dark);
  background: transparent;
}

/* Logo in header — show the full brand mark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 17px;
  font-weight: 500;
}

.desktop-nav a,
.nav-dropdown button {
  color: rgba(29, 33, 41, 0.78);
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
  color: var(--text-dark);
}

.desktop-nav-right {
  gap: 20px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 26px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown button::after {
  content: "⌄";
  font-size: 13px;
}

.dropdown-panel {
  position: absolute;
  top: 68px;
  left: 50%;
  min-width: 150px;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 0.18s ease;
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  color: var(--text-dark);
  border-radius: 6px;
  white-space: nowrap;
}

.dropdown-panel a:hover {
  background: var(--card-icon-bg);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(29, 33, 41, 0.25);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
}

.mobile-menu {
  display: none;
}

main {
  padding: 24px;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #4291e1 0%, #3578d8 100%);
  color: var(--white);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 860px;
  padding: 60px;
}

.hero-copy p,
.hero-copy h1 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(32px, 5vw, 70px);
}

.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 78px);
}

#typingText {
  display: inline-block;
  min-width: 4.5em;
}

#typingText::after {
  content: "_";
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-x {
  position: absolute;
  right: -26px;
  bottom: -116px;
  color: rgba(255, 255, 255, 0.14);
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(360px, 44vw, 760px);
  font-style: italic;
  line-height: 0.8;
  text-shadow: 0 0 56px rgba(255, 255, 255, 0.16);
}

/* Brand block in hero — uses logo pink accent */
.hero-brand {
  position: absolute;
  left: 60px;
  bottom: 56px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-brand strong {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(30px, 3vw, 48px);
  font-style: italic;
  font-weight: 400;
}

.hero-brand span {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300;
}

/* Pink divider line under hero brand text — subtle brand touch */
.hero-brand strong::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
}

/* ── Solution Section ─────────────────────────────────── */
.solution-section {
  padding: 88px clamp(0px, 4vw, 72px) 0;
}

.solution-section > h2 {
  margin: 0 0 56px;
  color: var(--title-color);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  text-align: center;
}

.solution-section:first-of-type > h2 {
}

.solution-panel {
  padding: clamp(28px, 5vw, 88px);
  border-radius: 40px;
  background: linear-gradient(180deg, var(--panel-bg-soft) 0%, var(--panel-bg) 60%, #387dd4 100%);
  box-shadow: var(--shadow);
}

.solution-intro {
  display: grid;
  grid-template-columns: 240px minmax(0, 560px);
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: var(--white);
}

/* Product icon — uses brand pink in first panel, blue in second */
.product-icon {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  font-size: 46px;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(7, 34, 67, 0.12);
}

/* Brand-pink product icon in first panel */
#local-store .product-icon {
}

.radar-icon {
  color: var(--icon-blue);
}

.solution-intro h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
}

.solution-intro p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 22px;
  border: 1px solid var(--white);
  border-radius: 12px;
  color: var(--white);
  transition: 0.18s ease;
}

.outline-button:hover {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 76px;
}

.feature-card {
  min-height: 214px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
}

.card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Brand-pink card icons in first panel */
#local-store .card-icon {
}

/* Hover: subtle pink pulse on card icons */
.feature-card:hover .card-icon {
}

.feature-card h4 {
  margin: 22px 0 8px;
  color: var(--text-dark);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

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

/* First feature card gets a subtle pink left-border brand mark */
#local-store .feature-card:first-child {
}

/* ── Join Section ─────────────────────────────────────── */
.join-section {
  position: relative;
  min-height: 420px;
  margin-top: 96px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--white);
  background: var(--cta-dark);
}

.join-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 34, 67, 0.82), rgba(7, 34, 67, 0.28)),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.5), transparent 16%),
    linear-gradient(135deg, #2e87d4, #9ad1ff 44%, #dff1ff);
}

.join-visual::before,
.join-visual::after {
  position: absolute;
  content: "";
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 48px rgba(7, 34, 67, 0.14);
}

.join-visual::before {
  right: 14%;
  bottom: 72px;
  width: 240px;
  height: 138px;
}

.join-visual::after {
  right: 30%;
  bottom: 128px;
  width: 172px;
  height: 96px;
}

.join-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 72px 64px;
}

.join-content h2 {
  margin: 0 0 36px;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.2;
}

.join-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--white);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.join-button:hover {
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  margin-top: 24px;
  padding: 72px 72px 28px;
  color: rgba(255, 255, 255, 0.82);
  background: #4291e1;
}

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

.footer-columns h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
}

.footer-columns a,
.footer-columns p {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #4291e1;
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease;
}

.back-to-top:hover {
}

.back-to-top.is-visible {
  display: block;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .desktop-nav-right {
    display: none;
  }

  .solution-intro {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .product-icon {
    width: 116px;
    height: 116px;
    border-radius: 28px;
    font-size: 32px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .logo img {
    height: 34px;
    width: auto;
  }

  .mobile-menu {
    position: fixed;
    inset: 64px 0 auto;
    z-index: 19;
    display: none;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 12px 16px 24px;
    background: var(--white);
    box-shadow: 0 22px 60px rgba(34, 103, 173, 0.16);
    color: var(--text-dark);
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu details {
    border-bottom: 1px solid rgba(29, 33, 41, 0.08);
  }

  .mobile-menu summary {
    padding: 18px 0;
    cursor: pointer;
  }

  .mobile-menu a,
  .mobile-menu span {
    display: block;
    padding: 10px 0 14px 16px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
  }

  main {
    padding: 12px;
  }

  .hero {
    min-height: 574px;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-brand {
    left: 26px;
    bottom: 28px;
  }

  .hero-x {
    right: -18px;
    bottom: 42px;
    font-size: 260px;
  }

  .solution-section {
    padding-top: 72px;
  }

  .solution-section > h2 {
    margin-bottom: 28px;
  }

  .solution-panel {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .solution-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-icon {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    font-size: 26px;
  }

  .solution-intro p {
    font-size: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 36px;
  }

  .feature-card {
    min-height: 150px;
    padding: 22px;
  }

  .join-section {
    min-height: 420px;
    margin-top: 72px;
  }

  .join-content {
    padding: 48px 26px;
  }

  .join-visual::before {
    right: 8%;
    bottom: 58px;
    width: 172px;
    height: 104px;
  }

  .join-visual::after {
    right: 38%;
    bottom: 112px;
    width: 118px;
    height: 72px;
  }

  .site-footer {
    padding: 32px 20px 24px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
