:root {
  --tide-ink: #101820;
  --tide-deep: #0a141c;
  --tide-foam: #f2f6f9;
  --tide-panel: #ffffff;
  --tide-coral: #ff6a4d;
  --tide-sea: #1fb8a6;
  --tide-sky: #3a8fd6;
  --tide-muted: #5c6b78;
  --tide-line: rgba(16, 24, 32, 0.08);
  --tide-glass: rgba(255, 255, 255, 0.72);
  --tide-shadow: 0 18px 40px rgba(10, 20, 28, 0.12);
  --tide-radius: 22px;
  --tide-font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --tide-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --tide-max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--tide-font-body);
  color: var(--tide-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 184, 166, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 106, 77, 0.14), transparent 50%),
    linear-gradient(180deg, #eaf3f7 0%, var(--tide-foam) 38%, #e8eef3 100%);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

.tide-wrap {
  width: min(100% - 2rem, var(--tide-max));
  margin-inline: auto;
}

.tide-promo {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tide-line);
  padding: 0.65rem 0 0.35rem;
}

.tide-promo-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--tide-muted);
  margin: 0 0 0.35rem;
}

.tide-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.35rem;
  padding: 0.25rem 0.5rem 0.6rem;
}

.tide-ad-cell {
  width: 72px;
  text-align: center;
}

.tide-ad-link img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.tide-ad-link:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(16, 24, 32, 0.16);
}

.tide-ad-cap {
  display: block;
  margin-top: 0.25rem;
  font-size: 11px;
  color: #666;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tide-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--tide-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--tide-line);
}

.tide-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.tide-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.tide-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(16, 24, 32, 0.14);
}

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

.tide-brand-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--tide-muted);
  font-family: var(--tide-font-body);
  letter-spacing: 0.08em;
}

.tide-nav {
  display: none;
  gap: 1.1rem;
  align-items: center;
}

.tide-nav a {
  text-decoration: none;
  color: var(--tide-ink);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.tide-nav-btn {
  border: 1px solid var(--tide-line);
  background: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.tide-nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--tide-ink);
  margin: 3px 0;
  border-radius: 2px;
}

.tide-nav-sheet {
  display: none;
  border-top: 1px solid var(--tide-line);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.75rem 0 1rem;
}

.tide-nav-sheet--open {
  display: block;
}

.tide-nav-sheet a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--tide-ink);
  border-bottom: 1px dashed var(--tide-line);
}

.tide-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--tide-header-h, 64px);
  z-index: 35;
  transform: translateY(calc(-100% - var(--tide-header-h, 64px)));
  transition: transform 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tide-line);
  box-shadow: 0 10px 28px rgba(10, 20, 28, 0.08);
  padding: 0.4rem 0 0.55rem;
}

.tide-dock--on {
  transform: translateY(0);
}

body.tide-has-dock {
  padding-top: var(--tide-dock-h, 96px);
}

.tide-dock .tide-ads {
  max-width: var(--tide-max);
  margin: 0 auto;
}

.tide-dock .tide-ad-cell {
  width: 25%;
  max-width: 88px;
}

@media (min-width: 900px) {
  .tide-dock .tide-ad-cell {
    width: 12.5%;
  }
}

.tide-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.tide-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(10, 20, 28, 0.78) 18%, rgba(10, 20, 28, 0.35) 55%, rgba(31, 184, 166, 0.25) 100%),
    url("shot-comic-serial.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: tide-drift 18s ease-in-out infinite alternate;
}

.tide-hero-glow {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 106, 77, 0.35), transparent 65%);
  filter: blur(8px);
  animation: tide-pulse 6s ease-in-out infinite;
}

.tide-hero-inner {
  padding: 4.5rem 0 3.2rem;
  color: #fff;
}

.tide-hero-brand {
  font-family: var(--tide-font-display);
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: tide-rise 0.9s ease both;
}

.tide-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 18em;
  animation: tide-rise 1s 0.08s ease both;
}

.tide-hero-lead {
  margin: 0;
  max-width: 28em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  animation: tide-rise 1.05s 0.16s ease both;
}

.tide-section {
  padding: 2.8rem 0;
}

.tide-section h2 {
  font-family: var(--tide-font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 0.85rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.tide-section h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.55rem;
  color: var(--tide-deep);
}

.tide-section p {
  margin: 0 0 1rem;
  color: #24313a;
}

.tide-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--tide-sea);
  margin-bottom: 0.45rem;
}

.tide-prose {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--tide-line);
  border-radius: var(--tide-radius);
  padding: 1.35rem 1.2rem;
  backdrop-filter: blur(8px);
}

.tide-split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

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

.tide-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.tide-media--wide img {
  aspect-ratio: 16 / 10;
}

.tide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 20, 28, 0.25));
  pointer-events: none;
}

.tide-mosaic {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.tide-tile {
  background: var(--tide-panel);
  border-radius: 18px;
  padding: 1rem 0.9rem;
  border: 1px solid var(--tide-line);
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tide-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 184, 166, 0.35);
}

.tide-tile strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.tide-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--tide-muted);
}

.tide-ribbon {
  display: grid;
  gap: 1rem;
}

.tide-ribbon-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 0.7rem;
  border: 1px solid var(--tide-line);
}

.tide-ribbon-item img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
}

.tide-glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--tide-radius);
  padding: 1.3rem 1.15rem;
  box-shadow: var(--tide-shadow);
  backdrop-filter: blur(10px);
}

.tide-steps {
  counter-reset: tide-step;
  display: grid;
  gap: 0.9rem;
}

.tide-step {
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--tide-line);
}

.tide-step::before {
  counter-increment: tide-step;
  content: counter(tide-step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tide-sea), var(--tide-sky));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.tide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.tide-cta-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tide-coral), #ff8f55);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(255, 106, 77, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tide-cta-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 106, 77, 0.34);
}

.tide-cta-dl--ghost {
  background: #fff;
  color: var(--tide-ink) !important;
  border: 1px solid var(--tide-line);
  box-shadow: none;
}

.tide-crumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--tide-muted);
}

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

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

.tide-page-title {
  font-family: var(--tide-font-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0.4rem 0 1rem;
}

.tide-legal .tide-section {
  padding-top: 1.2rem;
}

.tide-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.tide-error-code {
  font-family: var(--tide-font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--tide-coral), var(--tide-sea));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.tide-footer {
  margin-top: 2rem;
  padding: 2.4rem 0 2.8rem;
  background: var(--tide-deep);
  color: rgba(255, 255, 255, 0.82);
}

.tide-footer a {
  color: #9ad7ff;
  text-decoration: none;
}

.tide-footer a:hover {
  color: #fff;
}

.tide-footer-grid {
  display: grid;
  gap: 1.4rem;
}

.tide-footer strong {
  display: block;
  font-family: var(--tide-font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.tide-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.92rem;
}

.tide-copy {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes tide-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes tide-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-4%);
  }
}

@keyframes tide-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .tide-nav {
    display: flex;
  }

  .tide-nav-btn {
    display: none;
  }

  .tide-nav-sheet {
    display: none !important;
  }

  .tide-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
  }

  .tide-split--flip {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

  .tide-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }

  .tide-ribbon {
    grid-template-columns: 1fr 1fr;
  }

  .tide-footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .tide-hero-inner {
    padding: 6rem 0 4rem;
  }
}

@media (min-width: 980px) {
  .tide-media img {
    aspect-ratio: 10 / 14;
  }
}
