@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&family=Sora:wght@500;700&display=swap");

:root {
  --if-ink: #07161c;
  --if-ink-2: #0f2a33;
  --if-teal: #1fbfa5;
  --if-teal-soft: #7fe7d3;
  --if-coral: #ff4f7b;
  --if-coral-deep: #e22f5c;
  --if-amber: #ffc857;
  --if-pearl: #f3fafb;
  --if-mist: #d7ecee;
  --if-glass: rgba(255, 255, 255, 0.12);
  --if-line: rgba(255, 255, 255, 0.18);
  --if-text: #163038;
  --if-muted: #5a737a;
  --if-radius: 22px;
  --if-shadow: 0 18px 48px rgba(7, 22, 28, 0.18);
  --if-max: 1080px;
  --if-nav-h: 64px;
  --if-dock-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Sora", sans-serif;
  color: var(--if-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 191, 165, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 79, 123, 0.16), transparent 55%),
    linear-gradient(180deg, #eef8f9 0%, #f7fcfd 40%, #eef6f7 100%);
  line-height: 1.75;
  padding-bottom: var(--if-dock-h);
}

body.if-dock-on {
  --if-dock-h: 118px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--if-coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--if-ink);
}

.if-shell {
  width: min(100% - 28px, var(--if-max));
  margin-inline: auto;
}

.if-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 22, 28, 0.88);
  border-bottom: 1px solid var(--if-line);
}

.if-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--if-nav-h);
  gap: 12px;
}

.if-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.if-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(127, 231, 211, 0.35);
}

.if-menu-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--if-line);
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.if-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.if-nav-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(15, 42, 51, 0.97);
  padding: 12px 16px 18px;
  border-bottom: 1px solid var(--if-line);
}

.if-nav-panel.is-open {
  display: grid;
  gap: 4px;
}

.if-nav-panel a {
  color: #e8f7f8;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.if-nav-panel a:hover,
.if-nav-panel a.is-active {
  background: rgba(31, 191, 165, 0.18);
  color: var(--if-teal-soft);
}

.if-nav-desk {
  display: none;
  gap: 8px;
}

.if-nav-desk a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.if-nav-desk a:hover,
.if-nav-desk a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.if-promo {
  background: linear-gradient(120deg, #0f2a33, #143a40 50%, #1a2b38);
  border-bottom: 1px solid rgba(127, 231, 211, 0.2);
  padding: 14px 0 10px;
}

.if-promo-label {
  margin: 0 0 10px;
  color: var(--if-teal-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Sora", sans-serif;
}

.if-ads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  justify-content: flex-start;
}

.if-ad-chip {
  width: calc(25% - 8px);
  min-width: 68px;
  max-width: 86px;
  text-decoration: none;
  color: #d7ecee;
  text-align: center;
  font-size: 0.68rem;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.if-ad-chip img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.if-ad-chip:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.if-ad-chip span {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-sticky-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--if-nav-h);
  z-index: 35;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(7, 22, 28, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(127, 231, 211, 0.22);
  padding: 8px 0 6px;
}

.if-sticky-dock.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.if-sticky-dock .if-ad-chip {
  width: calc(25% - 8px);
}

.if-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(7, 22, 28, 0.55), rgba(15, 42, 51, 0.82)),
    radial-gradient(600px 320px at 80% 20%, rgba(255, 79, 123, 0.35), transparent 60%),
    radial-gradient(500px 280px at 10% 80%, rgba(31, 191, 165, 0.35), transparent 55%),
    linear-gradient(135deg, #0b2430, #163842 45%, #1a1f3a);
  display: grid;
  align-items: start;
  padding: 28px 0 32px;
}

.if-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 60%;
  height: 70%;
  background: conic-gradient(from 120deg, transparent, rgba(127, 231, 211, 0.2), transparent 40%);
  filter: blur(10px);
  animation: if-spin 18s linear infinite;
}

.if-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 79, 123, 0.28), transparent 68%);
  animation: if-pulse 5.5s ease-in-out infinite;
}

@keyframes if-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes if-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.if-hero-inner {
  position: relative;
  z-index: 1;
}

.if-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--if-teal-soft);
  margin-bottom: 14px;
}

.if-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--if-coral);
  box-shadow: 0 0 0 6px rgba(255, 79, 123, 0.22);
  animation: if-pulse 2.4s ease-in-out infinite;
}

.if-hero h1 {
  margin: 0 0 16px;
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: clamp(1.9rem, 6.2vw, 3.1rem);
  line-height: 1.25;
  font-weight: 400;
  max-width: 16ch;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.if-hero-lead {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.if-hero-glow {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(42vw, 280px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--if-shadow);
  border: 2px solid rgba(255, 255, 255, 0.28);
  transform: rotate(6deg);
  opacity: 0.95;
  display: none;
}

.if-hero-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.if-section {
  padding: 42px 0;
}

.if-section h2 {
  margin: 0 0 14px;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  color: var(--if-ink);
  line-height: 1.35;
}

.if-section h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
  color: var(--if-ink-2);
}

.if-section p {
  margin: 0 0 14px;
  color: var(--if-text);
}

.if-muted {
  color: var(--if-muted);
}

.if-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 70, 80, 0.08);
  border-radius: var(--if-radius);
  box-shadow: 0 10px 30px rgba(10, 40, 48, 0.06);
  padding: 22px 18px;
  backdrop-filter: blur(10px);
}

.if-split {
  display: grid;
  gap: 20px;
  align-items: center;
}

.if-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--if-shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #102830;
}

.if-media img {
  width: 100%;
  height: auto;
}

.if-media.is-phone {
  max-width: 280px;
  margin-inline: auto;
  border-radius: 26px;
}

.if-grid-2,
.if-grid-3 {
  display: grid;
  gap: 14px;
}

.if-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(231, 246, 247, 0.88));
  border: 1px solid rgba(31, 191, 165, 0.18);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(10, 40, 48, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.if-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 40, 48, 0.1);
}

.if-card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.if-card p:last-child {
  margin-bottom: 0;
}

.if-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.if-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 191, 165, 0.12);
  color: #0f5c52;
  font-size: 0.82rem;
  font-weight: 500;
}

.if-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--if-coral), var(--if-coral-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(226, 47, 92, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.if-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(226, 47, 92, 0.36);
}

.if-cta.is-soft {
  background: linear-gradient(120deg, #1fbfa5, #149884);
  box-shadow: 0 12px 28px rgba(20, 152, 132, 0.28);
}

.if-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.if-ribbon {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(31, 191, 165, 0.14), rgba(255, 79, 123, 0.1)),
    #fff;
  border: 1px dashed rgba(31, 191, 165, 0.35);
}

.if-quote {
  margin: 0;
  padding: 18px 18px 18px 22px;
  border-left: 4px solid var(--if-coral);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 16px 16px 0;
  color: var(--if-ink-2);
  font-size: 1.02rem;
}

.if-breadcrumb {
  padding: 16px 0 0;
  font-size: 0.88rem;
  color: var(--if-muted);
}

.if-breadcrumb a {
  color: var(--if-muted);
  text-decoration: none;
}

.if-breadcrumb a:hover {
  color: var(--if-coral-deep);
}

.if-breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.if-legal h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 12px 0 18px;
}

.if-legal h2 {
  margin-top: 28px;
}

.if-error {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.if-error-code {
  font-family: "Sora", sans-serif;
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--if-teal), var(--if-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.if-footer {
  margin-top: 20px;
  background: var(--if-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0 28px;
}

.if-footer a {
  color: var(--if-teal-soft);
  text-decoration: none;
}

.if-footer a:hover {
  color: #fff;
}

.if-footer-grid {
  display: grid;
  gap: 18px;
}

.if-footer h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.if-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.if-copy {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.if-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.if-reveal.is-in {
  opacity: 1;
  transform: none;
}

.if-wave {
  height: 48px;
  background:
    radial-gradient(circle at 20% 0, transparent 18px, rgba(255, 255, 255, 0.55) 19px) 0 0 / 40px 48px,
    radial-gradient(circle at 60% 0, transparent 14px, rgba(243, 250, 251, 0.9) 15px) 0 0 / 52px 48px;
  opacity: 0.9;
}

.if-timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.if-timeline li {
  position: relative;
  padding: 14px 14px 14px 42px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  border: 1px solid rgba(23, 70, 80, 0.08);
}

.if-timeline li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--if-coral);
  box-shadow: 0 0 0 5px rgba(255, 79, 123, 0.16);
}

.if-mix {
  display: grid;
  gap: 14px;
}

.if-mix-item {
  display: grid;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(23, 70, 80, 0.07);
}

.if-mix-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.if-mix-item > div {
  padding: 4px 14px 16px;
}

@media (min-width: 720px) {
  .if-menu-btn {
    display: none;
  }

  .if-nav-desk {
    display: flex;
  }

  .if-nav-panel {
    display: none !important;
  }

  .if-ad-chip,
  .if-sticky-dock .if-ad-chip {
    width: calc(12.5% - 8px);
  }

  .if-hero {
    min-height: min(72vh, 640px);
    align-items: end;
    padding: 48px 0 56px;
  }

  .if-hero-glow {
    display: block;
  }

  .if-split.is-2 {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .if-split.is-2.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .if-split.is-2.reverse .if-media {
    order: 2;
  }

  .if-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .if-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .if-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .if-mix {
    grid-template-columns: 1fr 1fr;
  }

  .if-mix-item.is-wide {
    grid-column: 1 / -1;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .if-mix-item.is-wide img {
    height: 100%;
    min-height: 220px;
  }

  body.if-dock-on {
    --if-dock-h: 108px;
  }
}

@media (min-width: 980px) {
  .if-section {
    padding: 56px 0;
  }

  .if-panel {
    padding: 28px 26px;
  }
}
