:root {
  --ink: #12232b;
  --ink-soft: #3a5360;
  --paper: #f3f7f4;
  --foam: #e7f1ec;
  --sea: #0f6b6d;
  --sea-deep: #0a3d45;
  --sand: #c9a56a;
  --line: rgba(18, 35, 43, 0.12);
  --shadow: 0 18px 50px rgba(10, 61, 69, 0.14);
  --font-display: "Fraunces", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d7ebe3 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #dce8ef 0%, transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--paper) 40%, #e9f0ec 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 244, 0.88);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  z-index: 2;
}

.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50% 50% 45% 55%;
  background:
    radial-gradient(circle at 30% 30%, #fff8 0 18%, transparent 19%),
    linear-gradient(145deg, #1a8f8a, var(--sea-deep));
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.logo-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 0.25rem;
  font-family: var(--font-display);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--sea);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top.nav-open .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.top.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(100vh, 820px);
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: clamp(4.5rem, 12vh, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(2.8rem, 7vh, 4.5rem);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 61, 69, 0.22) 0%, rgba(10, 61, 69, 0.58) 55%, rgba(10, 61, 69, 0.8) 100%),
    radial-gradient(ellipse at center, rgba(10, 61, 69, 0.2) 0%, rgba(10, 61, 69, 0.45) 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  color: #f7fbfa;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.15;
  max-width: 14ch;
}

.lede {
  margin: 1.05rem auto 0;
  max-width: 34rem;
  color: rgba(247, 251, 250, 0.9);
  font-size: 1.02rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:disabled {
  cursor: default;
  transform: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #f4f8f6;
  color: var(--sea-deep);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  border-color: rgba(244, 248, 246, 0.55);
  color: #f4f8f6;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(244, 248, 246, 0.1);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vh, 5.2rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section-head h2,
.detail-copy h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.2;
}

.section-head p,
.detail-copy > p,
.contact p {
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.product {
  padding: 0;
  border: none;
}

.product-thumb {
  display: block;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-thumb:hover img {
  transform: scale(1.03);
}

.product .eyebrow {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--sea);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.product p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.text-link {
  color: var(--sea-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 107, 109, 0.35);
}

.text-link:hover {
  border-bottom-color: var(--sea);
}

.detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
}

.detail-flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.feature-list {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-top: 1px solid var(--line);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sand);
}

.detail-visual {
  min-height: 220px;
}

.panel-mock,
.photo-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 产品介绍图始终可见；仅做轻微上浮，避免未触发动画时整块空白 */
.panel-mock {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.panel-mock.in-view {
  transform: translateY(0);
  opacity: 1;
}

.photo-frame {
  transform: translateY(8px);
  transition: transform 0.55s ease;
}

.photo-frame.in-view {
  transform: translateY(0);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--foam);
}

.panel-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  background: var(--foam);
  border-bottom: 1px solid var(--line);
}

.panel-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #b7c7c4;
}

.panel-body {
  padding: 1.1rem;
}

.env-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.env-line i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9bb0b4;
}

.env-line.active {
  background: rgba(15, 107, 109, 0.08);
  border-color: rgba(15, 107, 109, 0.28);
  color: var(--sea-deep);
  font-weight: 600;
}

.env-line.active i {
  background: var(--sea);
}

.fp-chip {
  margin-top: 0.85rem;
  display: inline-block;
  padding: 0.35rem 0.65rem;
  background: var(--sea-deep);
  color: #f4f8f6;
  border-radius: 0.35rem;
  font-size: 0.82rem;
}

.chat-body {
  display: grid;
  gap: 0.85rem;
  background: linear-gradient(180deg, #f7faf8, #eef5f2);
}

.bubble {
  max-width: 92%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
}

.bubble.out {
  justify-self: end;
  background: rgba(15, 107, 109, 0.08);
}

.bubble .src {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.bubble .dst {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.contact-inner {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(231, 241, 236, 0.9));
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.contact-lines {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.contact-lines p {
  margin: 0;
}

.copy-plain {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sea-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.copy-plain:hover {
  color: var(--sea);
}

.copy-plain:disabled {
  cursor: default;
  text-decoration: none;
}

.contact .btn-primary {
  background: var(--sea);
  color: #f7fbfa;
}

.contact .btn-primary:hover {
  background: var(--sea-deep);
}

.contact .btn-ghost {
  color: var(--sea-deep);
  border-color: rgba(15, 107, 109, 0.35);
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.88rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

@keyframes hero-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(243, 247, 244, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .product-grid,
  .detail,
  .detail-flip {
    grid-template-columns: 1fr;
  }

  .detail-flip .detail-visual {
    order: -1;
  }

  .hero {
    min-height: 72vh;
    align-items: center;
  }

  .hero h1 {
    max-width: none;
  }

  .lede {
    font-size: 0.98rem;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 68vh;
    padding-top: 5.5rem;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    width: 100%;
  }
}
