/* Ocean Sort: Fish Match — product site styles
   Design canvas: 1350px, colors sampled from GP官网.psd */

:root {
  --navy: #03245b;
  --hero-blue: #0049a1;
  --dl-grad-top: #0053a1;
  --dl-grad-bottom: #0064b6;
  --card-blue: #569ddf;
  --form-navy: #004290;
  --input-blue: #5f9ed9;
  --cyan: #29e3ff;
  --yellow: #ffe304;
  --ink: #111318;
  --gray-line: #b8b8b8;
  --text-gray: #c5cdde;
  --font: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; } /* height:auto keeps width/height HTML attrs from distorting scaled images */

section { scroll-margin-top: 105px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; }

a { color: inherit; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 9px 0;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1331px;
  height: 83px;
  margin: 0 auto;
  padding: 0 48px 0 22px;
  background: radial-gradient(120% 240% at 50% 0%, #114a80 0%, var(--navy) 72%);
  border-radius: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.brand-name {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--cyan); }

.nav-link.active { color: #47f4ff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

/* ---------- hero ---------- */

.hero {
  /* the design floats the nav over the artwork: hero starts at the very top
     of the page, behind the sticky header (93px tall), so pull it up */
  margin-top: -93px;
  height: 873px;
  background: var(--hero-blue) url("../assets/hero-bg.jpg") top center / cover no-repeat;
}

.hero-inner {
  padding-top: 144px;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 788px;
  margin: 0 auto;
}

.hero h1 {
  margin-top: 41px;
  color: #fff;
  font-size: 56px;
  letter-spacing: 1px;
}

.hero-sub {
  margin: 42px auto 0;
  max-width: 620px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 26px;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  animation: rise 10s linear infinite;
}

.hero { position: relative; overflow: hidden; }

.b1 { left: 12%; width: 22px; height: 22px; animation-duration: 9s; }
.b2 { left: 30%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 2s; }
.b3 { left: 72%; width: 30px; height: 30px; animation-duration: 11s; animation-delay: 4s; }
.b4 { left: 86%; width: 16px; height: 16px; animation-duration: 14s; animation-delay: 1s; }

@keyframes rise {
  from { transform: translateY(0); opacity: 0.9; }
  to   { transform: translateY(-950px); opacity: 0; }
}

/* ---------- features ---------- */

.features {
  position: relative;
  padding: 83px 24px 194px;
  text-align: center;
  background: #fff;
}

.features h2 { font-size: 56px; }

.section-sub {
  margin-top: 11px;
  font-size: 25px;
  font-weight: 700;
}

/* keep heading/copy above the corner decorations on narrow screens */
.features h2,
.section-sub { position: relative; z-index: 1; }

.cards {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 33px;
  max-width: 1248px;
  margin: 25px auto 0;
}

.card {
  width: 394px;
  min-height: 255px;
  padding: 20px 30px 24px;
  border-radius: 15px;
  background: var(--card-blue);
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(3, 36, 91, 0.28);
}

.card h3 { font-size: 29px; }

.card p {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.deco { position: absolute; pointer-events: none; }

.deco-top { top: 0; right: 0; width: 384px; }

.deco-bottom { bottom: 0; left: 0; width: 384px; }

/* ---------- download ---------- */

.download {
  height: 534px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dl-grad-top), var(--dl-grad-bottom));
}

.download-inner {
  display: flex;
  align-items: flex-start;
  max-width: 1350px;
  height: 100%;
  margin: 0 auto;
  padding-right: 28px; /* design centers the text column at x=967 */
}

.phone-wrap {
  flex: none;
  padding: 33px 0 0 154px;
}

.phone { display: block; width: 459px; }

.download-text {
  flex: 1;
  padding-top: 74px;
  text-align: center;
  color: #fff;
}

.download-text h2 { font-size: 66px; }

.dl-sub {
  margin-top: 47px;
  font-size: 28px;
  font-weight: 600;
}

.dl-contact {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 600;
}

.gp-badge {
  display: block;
  width: 563px;
  max-width: 92%;
  margin: 45px auto 0;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s;
}

.gp-badge:hover { transform: scale(1.03); }

.gp-badge img { display: block; width: 100%; }

/* ---------- contact ---------- */

.contact {
  position: relative;
  z-index: 2;
  padding: 57px 24px 105px;
  text-align: center;
  background: #fff;
}

.contact h2 { font-size: 60px; }

.contact-card {
  width: min(1013px, 100%);
  margin: 24px auto 0;
  padding: 26px 60px 36px;
  border-radius: 30px;
  background: var(--form-navy);
  text-align: left;
}

.field-row {
  display: flex;
  gap: 51px;
}

.field { flex: 1; margin-top: 0; }

.field-row .field + .field { margin-left: 0; }

.field label,
.consent { display: block; }

.field label {
  margin-bottom: 25px;
  padding-left: 29px; /* PSD indents labels inside the input column */
  color: var(--cyan);
  font-size: 30px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: var(--input-blue);
  color: #fff;
  font-family: var(--font);
  font-size: 26px;
}

.field input { height: 84px; }

.field textarea {
  height: 243px;
  padding: 22px 24px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.95); }

.field input:focus,
.field textarea:focus,
.consent input:focus-visible + .consent-dot {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.field + .field,
.field-row + .field { margin-top: 24px; }

/* keep the email field aligned with the name field inside the desktop row
   (.field + .field above would otherwise push it down 41px); the ≤768px
   block re-applies the margin when the row stacks vertically */
.field-row .field { margin-top: 0; }

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-left: -17px; /* PSD hangs the consent circle left of the input edge */
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-dot {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.consent input:checked + .consent-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.consent-text {
  color: #f2f2f2;
  font-size: 18px;
  font-weight: 500;
}

/* the PSD shows the privacy link in gold, not cyan */
.consent-text a {
  color: #f0b000;
  text-decoration: underline;
}

.form-error {
  margin-top: 18px;
  color: #ffd7d7;
  font-size: 17px;
  font-weight: 600;
}

.submit-row { margin-top: 54px; text-align: center; }

.btn-send {
  padding: 22px 60px;
  border: 0;
  border-radius: 24px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font);
  font-size: 30px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 227, 4, 0.35);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  background: #fff;
}

.footer-deco {
  position: absolute;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.footer-deco-left { left: -39px; width: 265px; }

.footer-deco-right { right: 0; width: 517px; }

.footer-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1350px;
  margin: 0 auto;
  padding: 23px 62px 74px 16px;
  border-top: 2px solid var(--gray-line);
  font-size: 22px;
}

.footer-links {
  display: flex;
  gap: 52px;
  list-style: none;
}

.footer-links a { text-decoration: none; }

.footer-links a:hover { text-decoration: underline; }

/* ---------- privacy page ---------- */

.privacy {
  padding: 60px 24px 90px;
  background: #fff;
}

.privacy-card {
  width: min(1013px, 100%);
  margin: 0 auto;
  padding: 48px 58px 56px;
  border-radius: 30px;
  background: var(--form-navy);
  color: #fff;
  text-align: left;
}

.privacy-card h1 { font-size: 42px; }

.privacy-card h2 {
  margin-top: 36px;
  color: var(--cyan);
  font-size: 26px;
}

.privacy-card h3 {
  margin-top: 22px;
  font-size: 21px;
}

.privacy-card p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.7;
  color: #e8eef8;
}

.privacy-card ul {
  margin: 14px 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
  color: #e8eef8;
}

.privacy-email { margin-top: 20px; }

.privacy-email a { color: var(--cyan); }

/* ---------- reveal animation ---------- */

/* Content stays visible when JS is absent or before main.js runs; the
   entrance animation plays once main.js adds .in (IntersectionObserver).
   Hiding .reveal by default would leave every section blank because the
   script tag 404s until the js task lands. */
.reveal.in {
  animation: reveal-in 0.6s ease both;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.in { animation: none; }
  .bubble { display: none; }
  .card, .gp-badge, .btn-send { transition: none; }
}

/* ---------- responsive: tablet pass ---------- */

/* ≤1295px: the fixed 3x394px card row (1248px) no longer fits, so let the
   cards shrink proportionally; below ~1014px they wrap into a 2+1 layout.
   The download text column also gets min-width:0 so the fixed 563px GP
   badge shrinks instead of being clipped by the section's overflow:hidden,
   and the nav text steps down so the pill stays on one line above the
   1000px hamburger breakpoint. */
@media (max-width: 1295px) {
  .cards { flex-wrap: wrap; }

  .card { width: min(394px, max(300px, (100% - 66px) / 3)); }

  .hero-logo { width: min(788px, 70vw); }

  .download-text { min-width: 0; padding-top: 44px; }

  .dl-sub { margin-top: 28px; }

  .gp-badge { width: min(563px, 100%); }

  .brand-name { font-size: 20px; white-space: nowrap; }

  .nav-link { font-size: 20px; }
}

/* ≤1000px: the nav pill (~944px) would overflow before the old 900px
   breakpoint, so the hamburger starts here; the download section stacks
   like mobile because the fixed 154px phone indent + 459px phone leave the
   GP badge too little room (it was clipped by overflow:hidden) */
@media (max-width: 1000px) {
  .download { height: auto; }

  .download-inner {
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 0;
  }

  .phone-wrap { padding: 0; }

  .phone { width: min(62vw, 459px); }

  .download-text { width: 100%; padding: 36px 0 56px; }

  /* footer row (~1000px of content) wraps instead of clipping on tablets */
  .footer-bar { flex-wrap: wrap; justify-content: center; }
}

/* hamburger menu (raised from 900px: the pill needs ~944px) */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--navy);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 20px;
  }

  .nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.08); }

  .brand-name { font-size: 16px; }

  .brand-icon { width: 42px; height: 42px; }
}

/* ---------- responsive ≤768px ---------- */

@media (max-width: 768px) {
  section { scroll-margin-top: 90px; }

  .hero { height: 620px; }

  .hero-inner { padding-top: 90px; }

  .hero-logo { width: min(88%, 480px); }

  .hero h1 { margin-top: 36px; font-size: 28px; }

  .hero-sub { margin-top: 20px; max-width: 88%; font-size: 14px; line-height: 1.5; }

  .features { padding: 80px 20px 90px; }

  .features h2 { font-size: 32px; }

  .section-sub { margin-top: 14px; font-size: 17px; }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
  }

  .card { width: min(394px, 100%); min-height: 0; }

  .deco-top, .deco-bottom { width: 40vw; opacity: 0.9; }

  .download { height: auto; }

  .download-inner {
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 0;
  }

  .phone-wrap { padding: 0; }

  .phone { width: min(62vw, 320px); }

  .download-text { padding: 36px 0 56px; width: 100%; }

  .download-text h2 { font-size: 34px; }

  .dl-sub { margin-top: 24px; font-size: 19px; }

  .dl-contact { font-size: 17px; }

  .gp-badge { margin-top: 28px; }

  .contact { padding: 56px 16px 80px; }

  .contact h2, .privacy-card h1 { font-size: 32px; }

  .contact-card { padding: 28px 22px 40px; }

  .field-row { flex-direction: column; gap: 0; }

  .field-row .field + .field { margin-top: 41px; }

  .field label { margin-bottom: 14px; padding-left: 0; font-size: 19px; }

  .field input { height: 64px; font-size: 19px; }

  .field textarea { height: 180px; font-size: 19px; }

  .field + .field, .field-row + .field { margin-top: 32px; }

  .consent { align-items: flex-start; margin-top: 28px; margin-left: 0; }

  .consent-dot { margin-top: 2px; }

  .consent-text { font-size: 15px; }

  .btn-send { padding: 18px 44px; font-size: 22px; }

  .submit-row { margin-top: 34px; }

  .footer-bar {
    flex-direction: column;
    gap: 14px;
    padding: 24px 16px 32px;
    font-size: 16px;
    text-align: center;
  }

  .footer-links { gap: 24px; font-size: 16px; }

  .footer-deco-left, .footer-deco-right { width: 34vw; }

  .privacy { padding: 40px 16px 60px; }

  .privacy-card { padding: 28px 22px 36px; }

  .privacy-card h2 { font-size: 21px; }

  .privacy-card p, .privacy-card ul { font-size: 16px; }
}
