@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --tide-ink: #071525;
  --tide-deep: #0b2a3d;
  --tide-sea: #0f766e;
  --tide-foam: #5eead4;
  --tide-sky: #38bdf8;
  --tide-coral: #fb7185;
  --tide-sand: #e8f6f4;
  --tide-mist: #f4fbfa;
  --tide-glass: rgba(255, 255, 255, 0.14);
  --tide-line: rgba(94, 234, 212, 0.28);
  --tide-text: #123047;
  --tide-muted: #5b7385;
  --tide-white: #ffffff;
  --tide-radius: 22px;
  --tide-shadow: 0 18px 48px rgba(7, 21, 37, 0.16);
  --tide-nav-h: 64px;
  --tide-sticky-gap: 8px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tide-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(900px 500px at 95% 5%, rgba(251, 113, 133, 0.16), transparent 55%),
    linear-gradient(180deg, #eaf8f6 0%, #f7fcfb 38%, #eef7f5 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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

a {
  color: var(--tide-sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tide-coral);
}

.tide-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.tide-skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.tide-skip:focus {
  left: 12px;
  z-index: 100;
  background: var(--tide-white);
  padding: 8px 12px;
}

/* promo */
.tide-promo {
  background: linear-gradient(90deg, #083344, #0f766e 55%, #155e75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0 4px;
}

.tide-promo-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0 0 6px;
}

.tide-promo-frame {
  border: 0;
  width: 100%;
  min-height: 110px;
  background: transparent;
}

/* header */
.tide-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 21, 37, 0.82);
  border-bottom: 1px solid rgba(94, 234, 212, 0.18);
}

.tide-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tide-nav-h);
  gap: 16px;
}

.tide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tide-white);
  text-decoration: none;
}

.tide-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.35);
}

.tide-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.tide-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tide-nav a {
  color: rgba(232, 246, 244, 0.9);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.tide-nav a:hover,
.tide-nav a.is-active {
  background: rgba(94, 234, 212, 0.16);
  color: var(--tide-foam);
}

.tide-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 0;
}

.tide-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--tide-foam);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tide-burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.tide-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.tide-burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* sticky download dock */
.tide-dock {
  position: sticky;
  top: var(--tide-nav-h);
  z-index: 55;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 8px 24px rgba(7, 21, 37, 0.08);
  padding: 8px 0;
}

.tide-dock.is-visible {
  display: block;
}

.tide-dock-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--tide-sticky-gap);
  justify-items: center;
}

.tide-dock-item {
  width: 100%;
  max-width: 72px;
  text-decoration: none;
  color: var(--tide-muted);
  text-align: center;
}

.tide-dock-item img {
  width: 56px;
  height: 56px;
  margin: 0 auto 4px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(7, 21, 37, 0.12);
  transition: transform 0.2s ease;
}

.tide-dock-item:hover img {
  transform: translateY(-3px) scale(1.04);
}

.tide-dock-item span {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hero */
.tide-hero {
  position: relative;
  overflow: hidden;
  color: var(--tide-white);
  background:
    linear-gradient(135deg, rgba(7, 21, 37, 0.55), rgba(15, 118, 110, 0.42)),
    url("shot-home-recommend.jpg") center/cover no-repeat;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
}

.tide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.28), transparent 40%),
    linear-gradient(180deg, transparent 20%, rgba(7, 21, 37, 0.88) 100%);
  pointer-events: none;
}

.tide-hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
  max-width: 760px;
  animation: tideRise 0.9s ease both;
}

.tide-hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tide-hero h1 {
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 28ch;
}

.tide-hero p {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(232, 246, 244, 0.92);
  max-width: 42ch;
}

.tide-wave {
  height: 54px;
  margin-top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 54' preserveAspectRatio='none'%3E%3Cpath fill='%23f4fbfa' d='M0,32 C240,54 480,0 720,18 C960,36 1200,54 1440,24 L1440,54 L0,54 Z'/%3E%3C/svg%3E")
    center/100% 100% no-repeat;
}

/* sections */
.tide-section {
  padding: 48px 0;
}

.tide-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--tide-ink);
  margin: 0 0 12px;
}

.tide-section h3 {
  font-size: 1.2rem;
  color: var(--tide-deep);
  margin: 28px 0 10px;
}

.tide-lead,
.tide-prose p {
  color: var(--tide-text);
  font-size: 1.02rem;
}

.tide-prose p {
  margin: 0 0 1.05em;
  text-align: justify;
}

.tide-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tide-sea);
  margin-bottom: 8px;
}

/* layouts */
.tide-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.tide-split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.tide-split.reverse .tide-media {
  order: 2;
}

.tide-media {
  position: relative;
  border-radius: calc(var(--tide-radius) + 4px);
  overflow: hidden;
  box-shadow: var(--tide-shadow);
  background: var(--tide-deep);
}

.tide-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 560px;
  transition: transform 0.6s ease;
}

.tide-media:hover img {
  transform: scale(1.03);
}

.tide-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(7, 21, 37, 0.45));
  pointer-events: none;
}

.tide-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--tide-radius);
  box-shadow: var(--tide-shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

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

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

.tide-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(232, 246, 244, 0.9));
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: var(--tide-radius);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(7, 21, 37, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 21, 37, 0.12);
}

.tide-card h3 {
  margin-top: 0;
}

.tide-card img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  margin-bottom: 14px;
}

.tide-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tide-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--tide-deep);
  font-size: 0.86rem;
}

.tide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.tide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(120deg, #0f766e, #0891b2);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tide-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.tide-btn.ghost {
  background: transparent;
  color: var(--tide-sea);
  border: 1px solid rgba(15, 118, 110, 0.35);
  box-shadow: none;
}

.tide-note {
  font-size: 0.92rem;
  color: var(--tide-muted);
}

.tide-crumb {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--tide-muted);
}

.tide-crumb a {
  color: var(--tide-sea);
  text-decoration: none;
}

.tide-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.tide-page-hero {
  padding: 28px 0 8px;
}

.tide-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 10px;
  color: var(--tide-ink);
}

.tide-legal .tide-prose h2 {
  margin-top: 36px;
}

.tide-error {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.tide-error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, #0f766e, #38bdf8, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: tidePulse 2.4s ease-in-out infinite;
}

.tide-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #0b2a3d, #071525);
  color: rgba(232, 246, 244, 0.88);
  padding: 36px 0 28px;
}

.tide-footer a {
  color: rgba(232, 246, 244, 0.9);
  text-decoration: none;
}

.tide-footer a:hover {
  color: var(--tide-foam);
}

.tide-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
}

.tide-footer-copy {
  font-size: 0.88rem;
  color: rgba(232, 246, 244, 0.65);
}

.tide-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tide-footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

@keyframes tideRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tidePulse {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.08);
  }
}

.tide-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.tide-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .tide-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tide-burger {
    display: inline-block;
  }

  .tide-nav {
    position: fixed;
    inset: var(--tide-nav-h) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 21, 37, 0.96);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--tide-shadow);
  }

  .tide-nav.is-open {
    display: flex;
  }

  .tide-split,
  .tide-split.reverse,
  .tide-grid-3,
  .tide-grid-2 {
    grid-template-columns: 1fr;
  }

  .tide-split.reverse .tide-media {
    order: 0;
  }

  .tide-media img {
    max-height: 480px;
  }

  .tide-hero {
    min-height: 72vh;
  }
}
