/* ============================================================
   hiuyo — 品牌官网
   暖纸底 · 墨字 · 珊瑚橙 · 手绘圆体 · 漂浮 squircle
   ============================================================ */

:root {
  --paper:    #FAF5EC;
  --paper-2:  #F3EBDD;
  --ink:      #26211B;
  --ink-soft: #5C5348;
  --coral:    #FF6B4A;
  --apricot:  #FFB84D;
  --blush:    #F6C9D8;
  --leaf:     #9BC59D;
  --sky:      #9FD8E5;
  --lav:      #C9B8F0;
  --radius:   28px;
  --font-round: "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei", ui-rounded, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral); color: #fff; }

/* ---------- 颗粒质感 ---------- */
.grain {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  mix-blend-mode: multiply;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(250, 245, 236, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(38, 33, 27, .08);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo .wordmark { width: 92px; height: auto; display: block; color: var(--ink); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--coral); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute; left: 50%; top: 42%;
  width: min(78vw, 720px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(255, 184, 77, .55) 0%,
    rgba(255, 140, 100, .32) 38%,
    rgba(246, 201, 216, .18) 62%,
    transparent 72%);
  border-radius: 50%;
  filter: blur(10px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.eyebrow {
  font-family: var(--font-round);
  font-size: 14px; font-weight: 600;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 22px;
}

.wordmark-hero {
  width: min(64vw, 380px);
  height: auto;
  color: var(--ink);
  filter: drop-shadow(0 10px 24px rgba(38, 33, 27, .12));
}

.tagline {
  font-family: var(--font-round);
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 700;
  margin-top: 26px;
  letter-spacing: .06em;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--ink-soft);
}
.hero-sub em { font-style: normal; color: var(--coral); font-weight: 600; font-family: var(--font-round); }

.hero-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-round);
  font-size: 15px; font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.btn:active { transform: scale(.96); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(38,33,27,.25); }
.btn-ink:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(38,33,27,.3); }
.btn-ghost { color: var(--ink); border: 2px solid rgba(38,33,27,.18); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-3px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 28px rgba(255,107,74,.4); font-size: 17px; padding: 16px 36px; }
.btn-coral:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 38px rgba(255,107,74,.5); }

/* ---------- 漂浮 squircle 概念图 ---------- */
.float-field { position: absolute; inset: 0; z-index: 1; }
.float-field > * { position: absolute; will-change: transform; }

.sq {
  border-radius: 27%;
  box-shadow: 0 18px 40px rgba(38,33,27,.14), inset 0 1px 0 rgba(255,255,255,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9%;
  animation: floaty 8s ease-in-out infinite;
}
.sq .ui-line {
  display: block; height: 8%; min-height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.75);
}
.sq .ui-dot { width: 26%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.8); }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; }
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; }

.sq-a { width: 96px;  height: 96px;  left: 12%; top: 22%; background: linear-gradient(145deg, #FFB84D, #FF8A5C); animation-delay: -1s; }
.sq-b { width: 64px;  height: 64px;  left: 20%; top: 68%; background: linear-gradient(145deg, #9BC59D, #6FAF8E); animation-delay: -3.5s; animation-duration: 9.5s; }
.sq-c { width: 52px;  height: 52px;  right: 16%; top: 20%; background: linear-gradient(145deg, #F6C9D8, #EFA3BE); animation-delay: -2s; animation-duration: 7s; }
.sq-d { width: 110px; height: 110px; right: 10%; top: 62%; background: linear-gradient(145deg, #9FD8E5, #6FBFCE); animation-delay: -5s; animation-duration: 10s; }
.sq-e { width: 44px;  height: 44px;  left: 44%; top: 12%; background: linear-gradient(145deg, #C9B8F0, #A78EE0); animation-delay: -4s; animation-duration: 8.5s; }
.sq-f { width: 58px;  height: 58px;  left: 38%; bottom: 10%; background: linear-gradient(145deg, #FFD9A0, #FFB84D); animation-delay: -6s; animation-duration: 9s; }

.ring {
  border-radius: 50%;
  border: 3px solid rgba(38,33,27,.1);
  animation: floaty 11s ease-in-out infinite;
}
.r-a { width: 150px; height: 150px; left: 6%; top: 46%; }
.r-b { width: 90px;  height: 90px;  right: 26%; bottom: 14%; border-color: rgba(255,107,74,.25); animation-delay: -3s; }

.blob {
  width: 70px; height: 70px;
  background: rgba(255,107,74,.16);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  right: 34%; top: 14%;
  animation: morph 9s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; transform: translateY(0); }
  50%      { border-radius: 42% 58% 45% 55% / 55% 45% 58% 42%; transform: translateY(-14px); }
}

/* ---------- 滚动提示 ---------- */
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(38,33,27,.25);
  border-radius: 99px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 99px; background: var(--ink-soft);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(38,33,27,.08);
  border-bottom: 1px solid rgba(38,33,27,.08);
  background: var(--paper-2);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-round);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(38,33,27,.35);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 通用 section ---------- */
.section { padding: clamp(80px, 12vw, 140px) clamp(20px, 6vw, 72px); max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-family: var(--font-round);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: .04em;
}
.section-lead { text-align: center; color: var(--ink-soft); font-size: clamp(15px, 2.4vw, 18px); margin-top: -20px; margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------- 理念卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 6px 24px rgba(38,33,27,.07);
  border: 1px solid rgba(38,33,27,.05);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: 0 18px 44px rgba(38,33,27,.12); }
.card-art {
  width: 72px; height: 72px;
  border-radius: 24%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(145deg, #FFF0E8, #FFE0D4);
  color: var(--ink);
}
.card:nth-child(2) .card-art { background: linear-gradient(145deg, #FFF3DC, #FFE7BC); }
.card:nth-child(3) .card-art { background: linear-gradient(145deg, #E4F5E7, #CDE9D2); }
.card-art svg { width: 40px; height: 40px; }
.card h3 { font-family: var(--font-round); font-size: 21px; margin-bottom: 10px; letter-spacing: .05em; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 大字引言 ---------- */
.quote-section {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 14vw, 160px) 24px;
  text-align: center;
  border-radius: clamp(30px, 6vw, 60px);
  margin: 0 clamp(12px, 3vw, 40px);
}
.quote-section blockquote p {
  font-family: var(--font-round);
  font-size: clamp(26px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
}
.quote-section em { font-style: normal; color: var(--apricot); }
.quote-section cite {
  display: block; margin-top: 30px;
  font-style: normal; font-size: 15px;
  color: rgba(250,245,236,.55);
  letter-spacing: .15em;
}

/* ---------- 概念卡片（抽象 App 界面） ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: start;
}
.concept-card {
  background: #fff;
  border-radius: 36px;
  padding: 26px 24px 32px;
  box-shadow: 0 14px 40px rgba(38,33,27,.10);
  border: 1px solid rgba(38,33,27,.05);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.concept-card:hover { transform: translateY(-10px) rotate(.6deg); }
.cc-2 { margin-top: 36px; } .cc-3 { margin-top: 72px; }
@media (max-width: 800px) { .cc-2, .cc-3 { margin-top: 0; } }

.cc-notch { width: 52px; height: 6px; border-radius: 99px; background: rgba(38,33,27,.12); margin: 0 auto 22px; }
.cc-title-line { height: 12px; border-radius: 99px; background: var(--ink); opacity: .85; margin-bottom: 22px; }

.cc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.cc-row .cc-lines { flex: 1; }
.cc-avatar { width: 36px; height: 36px; border-radius: 35%; flex-shrink: 0; }
.cc-1 .cc-row:nth-child(3) .cc-avatar { background: linear-gradient(145deg,#FFB84D,#FF8A5C); }
.cc-1 .cc-row:nth-child(4) .cc-avatar { background: linear-gradient(145deg,#9BC59D,#6FAF8E); }
.cc-1 .cc-row:nth-child(5) .cc-avatar { background: linear-gradient(145deg,#9FD8E5,#6FBFCE); }

.cc-lines { display: flex; flex-direction: column; gap: 8px; }
.cc-lines i, .cc-row .cc-lines i {
  display: block; height: 8px; border-radius: 99px;
  background: rgba(38,33,27,.14);
}

.cc-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin-bottom: 22px; }
.cc-chart span {
  flex: 1; height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #FFB84D, #FF6B4A);
  opacity: .85;
  transform-origin: bottom;
  animation: grow .8s cubic-bezier(.34,1.3,.64,1) backwards;
}
.cc-chart span:nth-child(odd) { background: linear-gradient(180deg, #9FD8E5, #6FBFCE); }
.reveal.in .cc-chart span:nth-child(1) { animation-delay: .05s } .reveal.in .cc-chart span:nth-child(2) { animation-delay: .12s }
.reveal.in .cc-chart span:nth-child(3) { animation-delay: .19s } .reveal.in .cc-chart span:nth-child(4) { animation-delay: .26s }
.reveal.in .cc-chart span:nth-child(5) { animation-delay: .33s } .reveal.in .cc-chart span:nth-child(6) { animation-delay: .40s }
.reveal.in .cc-chart span:nth-child(7) { animation-delay: .47s }
@keyframes grow { from { transform: scaleY(0); } }

.cc-ring-wrap { position: relative; width: 110px; height: 110px; margin: 4px auto 22px; }
.cc-ring {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--coral) 0 72%, rgba(38,33,27,.08) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
          mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.cc-ring-dot {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--coral);
}

/* ---------- 打招呼 ---------- */
.hello { padding: clamp(80px, 12vw, 150px) 24px; text-align: center; }
.hello-inner h2 {
  font-family: var(--font-round);
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 700; letter-spacing: .04em;
  line-height: 1.35;
}
.hello-inner em { font-style: normal; color: var(--coral); }
.hello-inner p { margin: 22px 0 34px; color: var(--ink-soft); font-size: clamp(15px, 2.4vw, 17px); }

/* ---------- 页脚 ---------- */
.footer {
  padding: 48px 24px 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  border-top: 1px solid rgba(38,33,27,.08);
}
.wordmark-footer { width: 76px; margin: 0 auto 14px; display: block; color: var(--ink-soft); opacity: .8; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .nav-links a { font-size: 14px; }
  .br-s { display: none; }
  .hero-cta .btn { width: 100%; max-width: 280px; }

  /* 小屏上装饰退到四角、变淡，不压内容 */
  .sq { opacity: .5; }
  .sq-a { left: -30px; top: 12%; }
  .sq-b { left: -20px; top: auto; bottom: 18%; }
  .sq-c { right: -16px; top: 15%; }
  .sq-d { right: -40px; top: auto; bottom: 24%; }
  .sq-e, .sq-f, .r-b, .blob { display: none; }
  .r-a { left: -70px; top: 38%; }
}
