/* ==========================================================================
   云朵糖 Cloud Candy × Kobe — 品牌官网
   Design tokens are derived 1:1 from the .ardot design file.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --cream:        #FAF6EE;
  --cream-2:      #F5EFE3;
  --terracotta:   #E07856;
  --honey:        #D4A574;
  --sage:         #87A878;
  --ink:          #1F1E1B;
  --muted:        #5C5A55;
  --white:        #FFFFFF;

  --footer-bg:    #1F1E1B;
  --footer-soft:  #F0DCCF;
  --footer-soft-2:#F0D7C8;

  /* Layout */
  --page-max: 1440px;
  --pad-x: 80px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-pill: 999px;

  /* Type */
  --font-cn: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
             "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-en: "Quicksand", "Outfit", "Nunito", -apple-system,
             BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.22, .68, .28, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- Shared primitives ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.eyebrow-num {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--terracotta);
}

.section-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.body-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.body-text.lg { font-size: 17px; }

.lead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
}

.mt-8 { margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .25s var(--ease-out),
              background-color .25s ease,
              color .25s ease,
              box-shadow .25s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: #CE6644;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 120, 86, .32);
}

.btn-ghost {
  background: var(--cream);
  color: var(--terracotta);
  box-shadow: inset 0 0 0 1.5px var(--terracotta);
}
.btn-ghost:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg    { padding: 16px 32px; }
.btn-header{ padding: 12px 24px; font-size: 14px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 238, .94);
  box-shadow: 0 1px 0 rgba(31, 30, 27, .07), 0 8px 28px rgba(31, 30, 27, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 88px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}
.logo-mark-sm { width: 40px; height: 40px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.logo-en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  transition: color .25s ease;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: right .3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--ink); font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--cream); }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  min-height: 820px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--cream-2);
  color: var(--terracotta);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}

.hero-title {
  font-size: 96px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}

.hero-title-en {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--terracotta);
  margin-top: -28px;
}

.hero-divider {
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--terracotta);
  margin-top: -14px;
}

.hero-tagline {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: -14px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: -14px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  margin-top: -14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  margin-top: -14px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.video-frame {
  position: relative;
  flex: 1;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 24px 60px rgba(31, 30, 27, .10);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loop-badge {
  position: absolute;
  top: 32px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}
.loop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.72); opacity: .55; }
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease-out), background-color .25s ease;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.play-btn svg { width: 40px; height: 40px; }
.play-btn .icon-play  { display: none; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 100px 0; }
.section > .container { display: flex; flex-direction: column; }

.section-about,
.section-expressions,
.section-costumes,
.section-products,
.section-posters { background: var(--white); }

.section-origin,
.section-actions,
.section-digital,
.section-world { background: var(--cream); }

.section-kv,
.section-space { background: var(--cream-2); }

.section-about   { padding: 120px 0; }
.section-origin,
.section-expressions,
.section-actions,
.section-costumes,
.section-kv,
.section-posters,
.section-space,
.section-world  { padding: 100px 0; }
.section-products{ padding: 120px 0; }
.section-digital { padding: 120px 0; }

.section-head + .media-frame,
.section-head + .about-body,
.section-head + .product-grid { margin-top: 32px; }
.section-about .section-head + .about-body,
.section-products .section-head + .product-grid { margin-top: 64px; }

/* ----- Media frames ----- */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tall  { aspect-ratio: 1280 / 720; }
.media-short { aspect-ratio: 1280 / 520; }
.media-kv    { aspect-ratio: 1280 / 640; }
.media-world { aspect-ratio: 1280 / 560; }

/* ----- 01 About ----- */
.about-body {
  display: grid;
  grid-template-columns: 540fr 660fr;
  gap: 80px;
  align-items: start;
}

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 540 / 600;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: -16px;
}
.tag {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cream-2);
  font-size: 14px;
  font-weight: 500;
}

/* ----- 07 Products ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-2);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(31, 30, 27, .13);
}
/* 从「立即收藏」跳转过来时，高亮对应的收藏型周边卡片 */
.product-card:target {
  box-shadow: inset 0 0 0 2px var(--terracotta), 0 20px 44px rgba(224, 120, 86, .22);
}

.card-visual {
  aspect-ratio: 308 / 320;
  overflow: hidden;
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.product-card:hover .card-visual img { transform: scale(1.05); }

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
}
.card-index {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--terracotta);
}
.card-title { font-size: 24px; font-weight: 500; }
.card-desc  { font-size: 13px; color: var(--muted); }

/* ----- 08 Digital ----- */
.digital-body {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: center;
}

.digital-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

.digital-right {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 560 / 640;
}
.digital-right img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 80px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 160px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-text { font-size: 22px; font-weight: 700; }

.footer-slogan {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--footer-soft);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-soft);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  gap: 60px;
  padding-left: 120px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
}
.footer-col a {
  font-size: 14px;
  color: var(--white);
  opacity: .92;
  transition: color .25s ease, opacity .25s ease, transform .25s var(--ease-out);
  width: fit-content;
}
.footer-col a:hover {
  color: var(--terracotta);
  opacity: 1;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.copyright {
  font-size: 12px;
  color: var(--footer-soft);
}

.icp-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.icp-group a {
  font-size: 13px;
  color: var(--footer-soft-2);
  transition: color .25s ease;
}
.icp-group a:hover { color: var(--terracotta); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .09s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .27s; }

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --pad-x: 56px; }
  .hero-title { font-size: 80px; }
  .section-title { font-size: 46px; }
  .footer-top { gap: 80px; }
  .footer-columns { padding-left: 40px; }
}

@media (max-width: 1024px) {
  :root { --pad-x: 40px; }

  .site-nav { gap: 24px; }
  .nav-link { font-size: 14px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .hero-title { font-size: 72px; }
  .video-frame { min-height: 400px; aspect-ratio: 16 / 11; }

  .about-body { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 480px; }

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

  .digital-body { grid-template-columns: 1fr; gap: 40px; }
  .digital-right { max-width: 100%; aspect-ratio: 16 / 12; }

  .footer-top { grid-template-columns: 1fr; gap: 56px; }
  .footer-columns { padding-left: 0; gap: 48px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --radius-lg: 22px;
    --radius-md: 18px;
  }

  .header-inner { height: 72px; gap: 16px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-cn { font-size: 18px; }
  .logo-en { font-size: 12px; }

  .nav-toggle { display: flex; }
  .btn-header { display: none; }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 16px 20px 24px;
    background: rgba(250, 246, 238, .98);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(31, 30, 27, .10);
    border-top: 1px solid rgba(31, 30, 27, .06);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s var(--ease-out);
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { font-size: 16px; padding: 12px 0; width: 100%; }
  .nav-link::after { display: none; }

  .hero-inner { padding-top: 40px; padding-bottom: 40px; gap: 36px; }
  .hero-left { gap: 22px; }
  .hero-title { font-size: 54px; }
  .hero-title-en { font-size: 24px; margin-top: -18px; }
  .hero-divider { margin-top: -10px; }
  .hero-tagline { font-size: 22px; margin-top: -10px; }
  .hero-desc { font-size: 15px; margin-top: -10px; }
  .hero-cta { padding-top: 8px; margin-top: -10px; gap: 12px; }
  .hero-meta { gap: 12px; padding-top: 12px; margin-top: -10px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }

  .video-frame { min-height: 300px; aspect-ratio: 4 / 5; }
  .loop-badge { top: 16px; left: 16px; padding: 6px 12px; font-size: 11px; }
  .play-btn { width: 64px; height: 64px; }
  .play-btn svg { width: 30px; height: 30px; }

  .section { padding: 64px 0; }
  .section-about,
  .section-products,
  .section-digital { padding: 72px 0; }

  .section-title { font-size: 34px; }
  .section-sub { font-size: 16px; }
  .lead { font-size: 19px; }
  .body-text { font-size: 14px; }
  .body-text.lg { font-size: 15px; }

  .section-head + .media-frame,
  .section-head + .about-body,
  .section-head + .product-grid { margin-top: 24px; }
  .section-about .section-head + .about-body,
  .section-products .section-head + .product-grid { margin-top: 40px; }

  .media-tall, .media-short, .media-kv, .media-world { aspect-ratio: 4 / 3; }

  .about-copy { gap: 24px; }
  .about-visual { max-width: 100%; }

  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-visual { aspect-ratio: 16 / 10; }
  .card-footer { padding: 20px 22px; }
  .card-title { font-size: 20px; }

  .digital-right { aspect-ratio: 4 / 3; }

  .site-footer { padding: 56px 0; }
  .footer-inner { gap: 32px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .icp-group { text-align: left; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 46px; }
  .section-title { font-size: 28px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}
