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

:root {
  --ink: #0c1218;
  --panel: #152029;
  --panel-2: #1c2b36;
  --mist: #e7f1f4;
  --muted: #93a8b4;
  --amber: #f2a34a;
  --teal: #2ec4b6;
  --coral: #ff6f61;
  --line: rgba(231, 241, 244, 0.1);
  --glass: rgba(21, 32, 41, 0.72);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1080px;
  --nav-h: 64px;
  --promo-gap: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--mist);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 196, 182, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(242, 163, 74, 0.14), transparent 50%),
    linear-gradient(180deg, #0a1016 0%, #0f1820 40%, #0c1218 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--amber);
}

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

.reef-brand {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}

/* Top promo strip */
.reef-promo {
  background: linear-gradient(90deg, rgba(46, 196, 182, 0.12), rgba(242, 163, 74, 0.1));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.reef-promo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
}

.reef-promo-grid figure {
  margin: 0;
  width: 72px;
  text-align: center;
}

.reef-promo-grid img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reef-promo-grid figcaption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header */
.reef-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}

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

.reef-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mist);
}

.reef-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.reef-logo span {
  font-size: 1.35rem;
  font-weight: 400;
}

.reef-menu {
  display: none;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reef-menu a {
  color: var(--mist);
  font-size: 0.95rem;
  opacity: 0.9;
}

.reef-menu a:hover,
.reef-menu a.is-active {
  color: var(--amber);
  opacity: 1;
}

.reef-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.reef-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mist);
  position: relative;
}

.reef-burger span::before,
.reef-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--mist);
}

.reef-burger span::before {
  top: -6px;
}

.reef-burger span::after {
  top: 6px;
}

.reef-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(12, 18, 24, 0.96);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  transition: transform 0.28s ease;
  z-index: 70;
  padding: 18px 0 24px;
}

.reef-drawer.is-open {
  transform: translateY(0);
}

.reef-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.reef-drawer a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.03);
}

/* Sticky download dock */
.reef-dock {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  display: none;
  background: rgba(12, 18, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

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

.reef-dock-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.reef-dock-grid a {
  width: calc(25% - 8px);
  max-width: 78px;
  text-align: center;
}

.reef-dock-grid img {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.reef-dock-grid span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero */
.reef-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.reef-hero::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(242, 163, 74, 0.22), transparent 68%);
  pointer-events: none;
  animation: reef-pulse 8s ease-in-out infinite;
}

.reef-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.reef-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reef-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--teal);
}

.reef-hero h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.25;
  margin: 12px 0 14px;
  font-weight: 400;
}

.reef-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36em;
  margin: 0;
}

.reef-phone {
  position: relative;
  width: min(280px, 72vw);
  margin: 0 auto;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(46, 196, 182, 0.35), rgba(242, 163, 74, 0.2));
  box-shadow: var(--shadow);
  animation: reef-float 5.5s ease-in-out infinite;
}

.reef-phone img {
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}

/* Sections */
.reef-section {
  padding: 42px 0;
}

.reef-section h2 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  margin: 0 0 12px;
  font-weight: 400;
}

.reef-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 8px;
  color: #f5f9fb;
}

.reef-section p {
  margin: 0 0 14px;
  color: #c9d7df;
}

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

.reef-split.reverse .reef-media {
  order: -1;
}

.reef-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reef-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin: 0 auto;
}

.reef-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.reef-card {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.reef-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 182, 0.35);
}

.reef-card h3 {
  margin-top: 0;
  color: var(--amber);
}

.reef-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.reef-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
}

.reef-cta-band {
  margin: 28px 0;
  padding: 28px 20px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(46, 196, 182, 0.18), rgba(242, 163, 74, 0.12)),
    var(--panel);
  border: 1px solid var(--line);
  text-align: center;
}

.reef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #1a1008;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(242, 163, 74, 0.28);
}

.reef-btn:hover {
  color: #1a1008;
  opacity: 0.92;
}

.reef-btn-ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--line);
  box-shadow: none;
  margin-left: 8px;
}

.reef-btn-ghost:hover {
  color: var(--amber);
}

.reef-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reef-mosaic .reef-media img {
  max-height: 280px;
}

.reef-quote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  color: var(--muted);
  font-style: italic;
}

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

.reef-crumb a {
  color: var(--muted);
}

.reef-crumb span {
  color: var(--amber);
}

.reef-legal {
  padding-bottom: 60px;
}

.reef-legal h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  margin: 10px 0 18px;
}

.reef-legal ol,
.reef-legal ul {
  padding-left: 1.2em;
  color: #c9d7df;
}

.reef-legal li {
  margin-bottom: 8px;
}

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

.reef-error h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(2.4rem, 10vw, 4rem);
  margin: 0 0 10px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reef-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: rgba(0, 0, 0, 0.22);
}

.reef-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  margin-bottom: 14px;
}

.reef-footer-nav a {
  color: var(--muted);
}

.reef-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.reef-fade {
  animation: reef-rise 0.7s ease both;
}

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

@keyframes reef-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes reef-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

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

  .reef-menu {
    display: flex;
  }

  .reef-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .reef-split {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .reef-dock-grid a {
    width: calc(12.5% - 8px);
  }

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

@media (min-width: 1024px) {
  .reef-section {
    padding: 56px 0;
  }

  .reef-media img {
    max-height: 560px;
  }
}
