/* ============================================================
   天天快乐 — 极简沉浸式全屏设计
   风格：阳光 · 梦幻 · 留白 · 精致
   ============================================================ */

/* ---------- Reset & Root ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sun:   #F5C842;
  --warm:  #FF8C69;
  --sky:   #A8D8EA;
  --mint:  #B8F0D8;
  --cream: #FDFAF3;
  --ink:   #1A1814;
  --muted: #8A857A;
  --white: #FFFFFF;

  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-sans:  'Noto Sans SC', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sun); border-radius: 2px; }

/* ---------- Progress Bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sun), var(--warm));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(253, 250, 243, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #FF6B6B 0%, #FF9F43 18%, #F5C842 36%, #26de81 54%, #45aaf2 72%, #a55eea 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 0;
}

.dot.active {
  background: var(--sun);
  border-color: var(--sun);
  transform: scale(1.4);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 120px 48px 80px;
}

.section-inner.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-label.light { color: rgba(255,255,255,0.6); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-title.light { color: var(--white); }

/* ---------- Animate-in ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ---------- S0: Hero ---------- */
.s-hero {
  background: var(--cream);
  position: relative;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 48px;
  margin-top: -40px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: normal;
  color: var(--sun);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 44px;
  font-weight: 300;
  line-height: 1.8;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s;
  letter-spacing: 0.02em;
}

.cta-btn:hover {
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.hero-scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--sun);
  animation: lineSlide 2s ease-in-out infinite;
}

@keyframes lineSlide {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ---------- S1: Features（深色页）---------- */
.s-features {
  background: #1E2A3A;
  /* 极淡的深蓝网格 */
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 深色页文字反色 */
.s-features .section-label { color: rgba(255,255,255,0.45); }
.s-features .section-title { color: #FFFFFF; }
.s-features .feature-item  { border-left-color: rgba(255,255,255,0.08); }
.s-features .feature-item:hover { background: rgba(255,255,255,0.04); }
.s-features .feature-item h3 { color: #FFFFFF; }
.s-features .feature-item p  { color: rgba(255,255,255,0.5); }
.s-features .fi-icon svg { stroke: #F5C842; }

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.feature-item {
  padding: 48px 36px;
  border-left: 1px solid #E8E4DB;
  position: relative;
  transition: background 0.3s;
}

.feature-item:first-child {
  border-left: none;
}

.feature-item:hover {
  background: var(--cream);
}

.fi-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--sun);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.fi-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.feature-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- S2: Moments（浅色页）---------- */
.s-moments {
  background: #F8F5F0;
}

.moments-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(245,200,66,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 85%, rgba(168,216,234,0.10) 0%, transparent 50%);
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
}

.moment-card {
  background: rgba(255,255,255,0.85);
  border: none;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: pointer;
  position: relative;
}

.moment-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}

.moment-card:hover {
  background: var(--white);
  transform: none;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.mc-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mc-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}

.moment-card:hover .mc-icon-wrap {
  background: var(--sun);
  color: var(--white);
}

.mc-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.mc-body {
  padding: 24px 28px 28px;
}

.mc-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.mc-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- S3: Mood（深色页）---------- */
.s-mood {
  background: #1A2E22;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 60px;
  padding: 0;
  align-items: stretch;
}

/* 深色页文字反色 */
.s-mood .section-label { color: rgba(255,255,255,0.45); }
.s-mood .mood-list     { border-right-color: rgba(255,255,255,0.08); }
.s-mood .mood-item     { border-bottom-color: rgba(255,255,255,0.07); }
.s-mood .mi-num        { color: rgba(255,255,255,0.35); }
.s-mood .mi-text       { color: #FFFFFF; }
.s-mood .mood-default-hint p { color: rgba(255,255,255,0.4); }
.s-mood .mdh-circle    { border-color: rgba(255,255,255,0.2); }
.s-mood .mood-card     { background: rgba(255,255,255,0.06); box-shadow: 0 12px 48px rgba(0,0,0,0.3); }
.s-mood .mc-tag        { color: rgba(255,255,255,0.4); }
.s-mood .mc-quote      { color: #FFFFFF; }
.s-mood .sg-label      { color: rgba(255,255,255,0.4); }
.s-mood .sg-arrow      { color: rgba(255,255,255,0.4); }

.mood-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* 左侧情绪列表 */
.mood-list {
  padding: 120px 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.mood-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease-out);
  position: relative;
}

.mood-item:last-child {
  border-bottom: none;
}

.mood-item:hover,
.mood-item.active {
  padding-left: 16px;
}

.mi-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  width: 24px;
  flex-shrink: 0;
}

.mi-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  transition: color 0.3s;
  flex: 1;
}

.mood-item.active .mi-text {
  color: var(--ink);
}

.mi-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.mood-item.active .mi-dot,
.mood-item:hover .mi-dot {
  opacity: 1;
  transform: scale(1);
}

/* 右侧回应区 */
.mood-response-area {
  padding: 120px 72px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mood-default-hint {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: opacity 0.4s;
}

.mood-default-hint.hide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.mdh-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(0,0,0,0.12);
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.mood-default-hint p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.mood-card {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  background: var(--white);
  animation: fadeUp 0.5s var(--ease-out) both;
}

.mood-card.show {
  display: flex;
}

.mc-accent {
  height: 6px;
  width: 100%;
  transition: background 0.4s;
}

.mc-content {
  padding: 48px 40px 52px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mc-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.mc-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- S4: About（浅色页）---------- */
.s-about {
  background: #FEF8F4;
  position: relative;
  overflow: hidden;
}

.s-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,59,47,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(245,200,66,0.10) 0%, transparent 50%);
}

/* 浅色背景下关于页文字改为深色 */
.s-about .section-label.light { color: var(--muted); }
.s-about .section-title.light { color: var(--ink); }
.s-about .about-desc.light    { color: var(--muted); }
.s-about .footer-copy         { color: rgba(0,0,0,0.25); }
.s-about .contact-chip {
  border-color: rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
}
.s-about .contact-chip:hover {
  border-color: #FF3B2F;
  background: rgba(255,59,47,0.06);
}
.s-about .cc-label { color: rgba(0,0,0,0.65); }

.about-sun {
  position: relative;
  width: 120px; height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.sun-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,59,47,0.40) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

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

.sun-face {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 28px rgba(255,59,47,0.65));
  animation: spin 20s linear infinite;
}

.sun-face svg {
  width: 80px;
  height: 80px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.about-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  line-height: 1.9;
  margin: 20px 0 52px;
  font-weight: 300;
}

.about-desc.light { color: rgba(255,255,255,0.5); }

.contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  background: rgba(255,255,255,0.04);
}

.contact-chip:hover {
  border-color: var(--sun);
  background: rgba(245,200,66,0.1);
  transform: translateY(-2px);
}

.cc-icon {
  font-size: 16px;
  color: var(--sun);
  font-style: normal;
}

.cc-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ---------- Scroll Guide (每屏底部引导) ---------- */
.scroll-guide {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-guide.show {
  opacity: 1;
  transform: none;
}

.scroll-guide.hidden {
  opacity: 0;
  pointer-events: none;
}

.sg-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sg-label.light { color: rgba(255,255,255,0.4); }

.sg-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2.2s ease-in-out infinite;
}

.sg-arrow.light {
  color: rgba(255,255,255,0.35);
}

.sg-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ---------- Burst / Particle ---------- */
.burst-particle {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .feature-item:nth-child(odd) {
    border-left: none;
  }

  .feature-item:nth-child(even) {
    border-left: 1px solid #E8E4DB;
  }

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

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

  .mood-list {
    padding: 100px 36px 40px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .mood-response-area {
    padding: 40px 36px 80px;
  }

  .nav { padding: 16px 24px; }
  .section-inner { padding: 100px 24px 60px; }
  .hero-content { padding: 0 24px; }
  .hero-scroll-hint { left: 24px; }
}

@media (max-width: 600px) {
  .features-row {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-left: none !important;
    border-top: 1px solid #E8E4DB;
  }

  .moments-grid {
    grid-template-columns: 1fr;
  }

  .contact-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .contact-chip {
    justify-content: center;
  }
}
