:root {
  --bg: #faf5ed;
  --paper: rgba(255, 255, 255, 0.84);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --navy: #183861;
  --navy-deep: #0e2343;
  --ink: #29446d;
  --ink-soft: #657993;
  --gold: #ffc96f;
  --gold-soft: #fff0c9;
  --mint: #dff3ea;
  --rose: #fff0ec;
  --line: rgba(24, 56, 97, 0.08);
  --shadow: 0 22px 60px rgba(17, 36, 64, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 201, 111, 0.28), transparent 20%),
    radial-gradient(circle at 88% 12%, rgba(173, 227, 204, 0.22), transparent 18%),
    linear-gradient(180deg, #fff8f0 0%, #f8f1e8 52%, #f4ece3 100%);
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .page {
  opacity: 0;
  visibility: hidden;
}

body.is-ready .page {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container,
.page {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
}

.page {
  padding: 18px 0 28px;
}

.page-top {
  padding-top: 10px;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 201, 111, 0.26), transparent 24%),
    linear-gradient(180deg, #fff8f0 0%, #f8f1e8 52%, #f4ece3 100%);
}

body.is-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-shell {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.loading-otter {
  position: relative;
  width: 94px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f4b7d, #3e79aa);
  animation: otter-swim 1.5s ease-in-out infinite;
}

.loading-otter::before,
.loading-otter::after {
  content: "";
  position: absolute;
  background: #fff4e3;
}

.loading-otter::before {
  top: 9px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 28px 0 0 #fff4e3;
}

.loading-otter::after {
  left: 22px;
  bottom: 8px;
  width: 50px;
  height: 20px;
  border-radius: 999px;
  opacity: 0.9;
}

.loading-title {
  color: var(--navy-deep);
  font-size: 1.05rem;
  font-weight: 800;
}

.loading-dots {
  display: inline-flex;
  gap: 6px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(24, 56, 97, 0.34);
  animation: dot-bounce 1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.hero,
.section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 14px;
  align-items: center;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(255, 249, 240, 0.98) 0%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 236, 199, 0.78) 100%);
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-eyebrow,
.loud-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 201, 111, 0.24), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 201, 111, 0.2);
}

.loud-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--navy-deep);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.04;
}

h1 span {
  color: #bb7000;
}

h2 {
  color: var(--navy-deep);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.18;
}

h3 {
  color: var(--navy-deep);
  font-size: 1.22rem;
  line-height: 1.35;
}

.hero-text,
.section-note,
.reward-card p,
.extra-card p,
.copy-content,
.content-list,
.submit-box,
.warning-box {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-copy .hero-text {
  display: none;
}

.hero-actions {
  margin-top: 24px;
}

.hero-title-main {
  margin: 0;
}

.hero-subtitle {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.primary-btn,
.copy-btn,
.jump-btn,
.save-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--navy), #2c669f);
  color: #fff;
  box-shadow: 0 14px 28px rgba(24, 56, 97, 0.16);
}

.jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  background: rgba(24, 56, 97, 0.08);
  color: var(--navy-deep);
  font-weight: 800;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--gold), #ffdf98);
  color: var(--navy-deep);
  font-weight: 800;
}

.join-jump-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 42px;
  background: linear-gradient(135deg, var(--gold), #ffdf98);
  color: var(--navy-deep);
  box-shadow: none;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-card {
  position: relative;
  width: min(100%, 430px);
  min-height: 250px;
}

.hero-main {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(58%, 220px);
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.hero-main-magic {
  width: min(56%, 205px);
  bottom: 0;
}

.hero-badge {
  position: absolute;
  max-width: 164px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 249, 241, 0.95);
  color: var(--navy-deep);
  font-weight: 800;
  line-height: 1.45;
  font-size: 0.9rem;
  box-shadow: 0 14px 26px rgba(10, 24, 47, 0.14);
}

.badge-top {
  top: 30px;
  right: 18px;
}

.badge-bottom {
  left: 18px;
  bottom: 26px;
}

.section-card {
  margin-top: 14px;
  padding: 18px;
}

.section-head {
  margin-bottom: 10px;
}

.section-otter {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 70px;
  opacity: 0.92;
  pointer-events: none;
}

.otter-join {
  width: 78px;
}

.otter-rewards {
  width: 82px;
  top: 12px;
}

.otter-submit {
  width: 72px;
}

.otter-materials {
  width: 76px;
}

.otter-final {
  width: 68px;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.step-card,
.reward-card,
.extra-card,
.copy-card,
.material-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-strong);
}

.step-card {
  padding: 12px;
}

.step-tip {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 201, 111, 0.35), rgba(223, 243, 234, 0.75));
  color: var(--navy);
  font-weight: 800;
}

.reward-layout,
.extra-rewards,
.copy-grid,
.materials-grid,
.submit-section {
  display: grid;
  gap: 14px;
}

.reward-layout {
  grid-template-columns: 1fr;
}

.reward-card,
.extra-card,
.copy-card {
  padding: 15px;
}

.primary-reward {
  background:
    linear-gradient(135deg, rgba(255, 201, 111, 0.2), rgba(255, 255, 255, 0.95));
}

.reward-card h3,
.extra-card h3 {
  font-size: 1.34rem;
  line-height: 1.24;
}

.reward-title {
  color: var(--navy-deep);
  font-size: clamp(1.72rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.reward-card h3 strong,
.extra-card h3 strong {
  color: var(--navy-deep);
}

.reward-highlight {
  margin-top: 8px;
  color: #b66a00;
  font-size: 1.44rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 201, 111, 0.22), rgba(255, 240, 201, 0.6));
  box-shadow: inset 0 0 0 1px rgba(255, 201, 111, 0.18);
}

.content-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.content-list li + li {
  margin-top: 8px;
}

.extra-rewards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.extra-card {
  background: rgba(255, 255, 255, 0.9);
}

.compact-card {
  padding: 14px 16px;
}

.reward-strong {
  color: var(--navy-deep);
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.42;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(223, 243, 234, 0.72), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(158, 219, 198, 0.26);
}

.merged-card {
  display: grid;
  gap: 12px;
}

.bonus-line + .bonus-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.incentive-line {
  margin-top: 6px;
  color: #b66a00;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 201, 111, 0.2), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 201, 111, 0.18);
}

.warn-card {
  background:
    linear-gradient(135deg, rgba(255, 240, 236, 0.92), rgba(255, 255, 255, 0.9));
}

.compact-section {
  padding: 16px;
}

.compact-section .section-head {
  margin-bottom: 8px;
}

.compact-section h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.6rem);
}

.warning-box {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 149, 130, 0.12);
}

.compact-section .warning-box {
  padding: 12px 14px;
}

.copy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copy-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.copy-btn {
  min-width: 102px;
  min-height: 42px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--gold), #ffdf98);
  color: var(--navy-deep);
}

.copy-btn.is-copied {
  background: linear-gradient(135deg, #bcead6, #dff5eb);
}

.copy-content {
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.42;
}

.materials-head {
  margin-top: 14px;
  margin-bottom: 8px;
}

.final-cta {
  text-align: center;
}

.final-cta .section-head {
  margin-bottom: 10px;
}

.final-btn {
  min-width: min(100%, 360px);
}

.materials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.material-card {
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}

.material-card img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 12px;
}

@keyframes otter-swim {
  0%,
  100% {
    transform: translateX(-8px);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .reward-layout,
  .submit-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .step-flow,
  .extra-rewards,
  .copy-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .page {
    width: min(100% - 20px, 1100px);
  }

  .page {
    padding: 8px 0 14px;
  }

  .loading-otter {
    width: 82px;
    height: 48px;
  }

  .loading-title {
    font-size: 0.98rem;
  }

  .hero,
  .section-card {
    padding: 12px;
    border-radius: 18px;
  }

  h1 {
    font-size: 1.72rem;
    line-height: 1.04;
  }

  .hero-subtitle {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  h2 {
    font-size: 1.22rem;
    line-height: 1.18;
  }

  .reward-highlight {
    font-size: 1.05rem;
    line-height: 1.34;
    padding: 9px 10px;
  }

  .reward-strong {
    font-size: 0.98rem;
    line-height: 1.36;
    padding: 9px 10px;
  }

  h3 {
    font-size: 0.96rem;
  }

  .hero-text,
  .reward-card p,
  .extra-card p,
  .copy-content,
  .content-list,
  .warning-box {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .hero-art-card {
    min-height: 150px;
  }

  .section-otter {
    display: none;
  }

  .hero-main {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(46%, 118px);
    margin: 0 auto;
    transform: none;
  }

  .copy-head {
    flex-direction: column;
    align-items: stretch;
  }

  .step-flow,
  .reward-layout,
  .extra-rewards,
  .submit-section,
  .copy-grid,
  .materials-grid {
    gap: 10px;
  }

  .step-card,
  .reward-card,
  .extra-card,
  .copy-card,
  .material-card {
    border-radius: 16px;
  }

  .step-card {
    padding: 10px;
  }

  .step-no {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .warning-box {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .copy-content {
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.38;
  }

  .materials-head {
    margin-top: 10px;
    margin-bottom: 8px;
  }

  .material-card img {
    max-height: none;
  }

  .final-cta {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .copy-btn,
  .primary-btn,
  .jump-btn,
  .save-btn {
    width: 100%;
    min-height: 40px;
  }
}
