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

:root {
  --tide-ink: #15202b;
  --tide-soft: #3a4654;
  --tide-coral: #e94f45;
  --tide-coral-deep: #c7362e;
  --tide-sea: #0f8f84;
  --tide-sea-deep: #0a6b63;
  --tide-mist: #f2f5f8;
  --tide-foam: #e8f6f4;
  --tide-blush: #ffecea;
  --tide-line: rgba(21, 32, 43, 0.1);
  --tide-glass: rgba(255, 255, 255, 0.72);
  --tide-shadow: 0 18px 40px rgba(21, 32, 43, 0.08);
  --tide-radius: 22px;
  --tide-max: 1120px;
  --tide-font: "Noto Sans SC", sans-serif;
  --tide-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--tide-font);
  color: var(--tide-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffe3df 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #d9f3ef 0%, transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, var(--tide-mist) 40%, #eef3f6 100%);
  line-height: 1.75;
  font-size: 16px;
  padding-bottom: 120px;
}

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

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

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

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

.tide-promo {
  background: linear-gradient(90deg, #fff7f6, #f0fbf9);
  border-bottom: 1px solid var(--tide-line);
  padding: 10px 0 4px;
}

.tide-promo-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.tide-promo-inner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  text-decoration: none;
  color: var(--tide-soft);
  font-size: 11px;
}

.tide-promo-inner img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(21, 32, 43, 0.12);
  transition: transform 0.2s ease;
}

.tide-promo-inner a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.tide-promo-inner span {
  margin-top: 4px;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.tide-nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 0;
}

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

.tide-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

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

.tide-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--tide-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.tide-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--tide-ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

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

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

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

.tide-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
  width: 100%;
  border-top: 1px solid var(--tide-line);
}

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

.tide-menu li a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--tide-soft);
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(21, 32, 43, 0.06);
}

.tide-menu li:last-child a {
  border-bottom: none;
}

.tide-menu a:hover,
.tide-menu a.is-on {
  color: var(--tide-coral);
}

.tide-dock {
  position: sticky;
  top: 66px;
  z-index: 35;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tide-line);
  padding: 8px 0;
}

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

.tide-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

.tide-dock-grid a {
  width: 100%;
  max-width: 72px;
  text-decoration: none;
  color: var(--tide-soft);
  font-size: 10px;
  text-align: center;
}

.tide-dock-grid img {
  width: 48px;
  height: 48px;
  margin: 0 auto 3px;
  border-radius: 14px;
  object-fit: cover;
}

.tide-dock-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tide-hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  padding: 48px 0 56px;
  isolation: isolate;
}

.tide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(21, 32, 43, 0.78) 0%, rgba(15, 143, 132, 0.45) 48%, rgba(233, 79, 69, 0.35) 100%),
    url("shot-comic-serial.jpg") center/cover no-repeat;
}

.tide-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  z-index: -1;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  animation: tide-drift 9s ease-in-out infinite alternate;
}

@keyframes tide-drift {
  from { transform: translateX(-12px) scale(1); }
  to { transform: translateX(18px) scale(1.08); }
}

.tide-hero-copy {
  color: #fff;
  max-width: 640px;
  animation: tide-rise 0.9s ease both;
}

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

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

.tide-hero-copy h1 {
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}

.tide-hero-copy p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
  max-width: 36em;
}

.tide-crumb {
  padding: 18px 0 8px;
  font-size: 0.88rem;
  color: var(--tide-soft);
}

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

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

.tide-section {
  padding: 42px 0;
}

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

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

.tide-lead {
  color: var(--tide-soft);
  font-size: 1.02rem;
  margin: 0 0 22px;
  max-width: 46em;
}

.tide-prose p {
  margin: 0 0 1.05em;
  color: var(--tide-ink);
  text-align: justify;
}

.tide-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

.tide-split.is-flip .tide-shot {
  order: -1;
}

.tide-shot {
  border-radius: var(--tide-radius);
  overflow: hidden;
  box-shadow: var(--tide-shadow);
  background: #fff;
  animation: tide-fade 1s ease both;
}

.tide-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

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

.tide-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--tide-line);
  border-radius: var(--tide-radius);
  padding: 22px 20px;
  box-shadow: var(--tide-shadow);
}

.tide-grid {
  display: grid;
  gap: 16px;
}

.tide-card {
  background: linear-gradient(160deg, #fff, var(--tide-foam));
  border: 1px solid var(--tide-line);
  border-radius: 18px;
  padding: 18px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tide-shadow);
}

.tide-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.tide-card p {
  margin: 0;
  color: var(--tide-soft);
  font-size: 0.95rem;
}

.tide-mosaic {
  display: grid;
  gap: 14px;
}

.tide-mosaic figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--tide-shadow);
}

.tide-mosaic img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.tide-mosaic figcaption {
  padding: 10px 12px 12px;
  font-size: 0.86rem;
  color: var(--tide-soft);
}

.tide-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tide-chip {
  background: var(--tide-blush);
  color: var(--tide-coral-deep);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.tide-chip.sea {
  background: var(--tide-foam);
  color: var(--tide-sea-deep);
}

.tide-note {
  border-left: 4px solid var(--tide-coral);
  background: #fff;
  padding: 14px 16px;
  border-radius: 0 14px 14px 0;
  margin: 20px 0;
  color: var(--tide-soft);
}

.tide-legal .tide-section {
  padding-top: 10px;
}

.tide-legal h1 {
  font-family: var(--tide-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 8px 0 18px;
}

.tide-status {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.tide-status-box {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--tide-line);
  border-radius: 28px;
  padding: 36px 24px;
  box-shadow: var(--tide-shadow);
}

.tide-status-box strong {
  display: block;
  font-family: var(--tide-display);
  font-size: 4rem;
  color: var(--tide-coral);
  line-height: 1;
  margin-bottom: 10px;
}

.tide-status-box h1 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.tide-status-box p {
  margin: 0 0 18px;
  color: var(--tide-soft);
}

.tide-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tide-link-row a {
  text-decoration: none;
  background: var(--tide-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.tide-link-row a.ghost {
  background: transparent;
  color: var(--tide-ink);
  border: 1px solid var(--tide-line);
}

.tide-foot {
  margin-top: 40px;
  padding: 34px 0 20px;
  border-top: 1px solid var(--tide-line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65));
}

.tide-foot-grid {
  display: grid;
  gap: 22px;
}

.tide-foot h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tide-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tide-foot li {
  margin: 0 0 8px;
}

.tide-foot a {
  text-decoration: none;
  color: var(--tide-soft);
}

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

.tide-copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--tide-line);
  font-size: 0.84rem;
  color: var(--tide-soft);
  text-align: center;
}

@media (min-width: 720px) {
  .tide-burger {
    display: none;
  }

  .tide-menu,
  .tide-menu.is-open {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    width: auto;
    padding: 0;
    border-top: none;
  }

  .tide-menu li a {
    display: inline;
    padding: 0;
    border-bottom: none;
    font-size: 0.92rem;
  }

  .tide-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .tide-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .tide-split.is-flip .tide-shot {
    order: 0;
  }

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

  .tide-split.is-flip .tide-shot {
    order: 2;
  }

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

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

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

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

  .tide-shot img {
    aspect-ratio: 9 / 15;
  }
}

@media (min-width: 980px) {
  body {
    font-size: 17px;
  }

  .tide-menu {
    gap: 8px 22px;
  }

  .tide-hero {
    align-items: center;
    padding: 72px 0;
  }
}
