/* ===== KOOK 官方 · 入口（奶龙开场 + 亮色导航） ===== */
:root {
  --ink: #14161a;
  --muted: #6b7480;
  --muted-2: #98a0ac;
  --line: #e9ecf2;
  --bg: #f4f6f9;
  --card: #ffffff;
  --lime: #FFC93C;
  --lime-deep: #FFB300;
  --sun: #ffd34d;
  --sun-deep: #ffc633;
  --blue: #FF8F00;
  --blue-2: #FFB300;
  --dark: #08090b;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body.entry-body {
  margin: 0;
  background: var(--dark);
  color: #eef1f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .45s ease, color .45s ease;
}

body.entry-body.is-hub {
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(167, 228, 43, .1), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(47, 123, 255, .08), transparent 60%),
    var(--bg);
  color: var(--ink);
  overflow-y: auto;
}

/* ---------- 背景粒子 ---------- */
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}

body.is-hub .fx { opacity: 0; }

/* ================= 启动画面 ================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

.intro.is-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.intro-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .6;
  pointer-events: none;
}

.orb-a {
  width: 560px;
  height: 560px;
  left: -12%;
  top: -16%;
  background: radial-gradient(circle, rgba(255, 211, 77, .3), transparent 68%);
  animation: drift 16s ease-in-out infinite;
}

.orb-b {
  width: 620px;
  height: 620px;
  right: -14%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(167, 228, 43, .22), transparent 68%);
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -20px, 0) scale(1.06); }
}

.intro-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

/* ---------- 奶龙 ---------- */
.mascot {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  animation: hop 3.4s cubic-bezier(.3, .7, .2, 1) infinite;
}

.mascot-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  max-width: 78vw;
  max-height: 78vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 77, .26), rgba(255, 211, 77, 0) 66%);
  filter: blur(4px);
  animation: glowPulse 4.4s ease-in-out infinite;
}

.mascot-img {
  position: relative;
  height: 268px;
  width: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45));
  animation: mascotIn .95s cubic-bezier(.2, 1.35, .4, 1) both .05s;
}

@keyframes mascotIn {
  from { opacity: 0; transform: translateY(30px) scale(.55); }
  70% { opacity: 1; transform: translateY(-8px) scale(1.05); }
  to { opacity: 1; transform: none; }
}

@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-12px) scale(1.015); }
  58% { transform: translateY(-4px) scale(.996); }
}

/* ---------- KOOK 字母 ---------- */
.word {
  position: relative;
  margin: 6px 0 0;
  display: flex;
  gap: .04em;
  font-size: clamp(58px, 11.4vw, 106px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 88%;
  text-shadow:
    0 10px 40px rgba(255, 211, 77, .22),
    0 0 70px rgba(167, 228, 43, .16);
  animation:
    letterPop .8s cubic-bezier(.18, 1.5, .35, 1) forwards,
    letterBob 4.6s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * .17s + .15s),
    calc(var(--i) * .17s + 1.3s);
}

@keyframes letterPop {
  0% { opacity: 0; transform: translateY(42px) scale(.5) rotate(-11deg); }
  55% { opacity: 1; transform: translateY(-12px) scale(1.13) rotate(3deg); }
  76% { transform: translateY(3px) scale(.97) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes letterBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--sun);
  opacity: 0;
  pointer-events: none;
  animation: sparkle 3.8s ease-in-out infinite;
}

.s1 { top: -14%; left: 6%; animation-delay: 1.3s; }
.s2 { top: 12%; right: 1%; width: 6px; height: 6px; background: var(--lime); animation-delay: 2.1s; }
.s3 { bottom: -12%; left: 24%; width: 5px; height: 5px; background: #fff; animation-delay: 2.7s; }
.s4 { bottom: 4%; right: 14%; width: 7px; height: 7px; background: var(--sun-deep); animation-delay: 3.3s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  28% { opacity: 1; transform: scale(1) rotate(45deg); }
  56% { opacity: 0; transform: scale(.5) rotate(90deg); }
}

.intro-sub {
  margin: 20px 0 0;
  font-size: 13px;
  letter-spacing: .2em;
  color: #8f97a3;
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) both .95s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 进度 ---------- */
.loader {
  width: min(360px, 78vw);
  margin-top: 34px;
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) both 1.1s;
}

.loader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: #8b93a1;
}

.loader-pct {
  color: var(--sun);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.loader-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}

.loader-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9ae62a, #ffe066);
  box-shadow: 0 0 18px rgba(255, 224, 102, .5);
  transition: width .12s linear;
}

.intro-skip {
  margin-top: 34px;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: #c9d0da;
  font-size: 12.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) both 1.3s;
}

.intro-skip:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

.intro-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: #4b525e;
}

/* ---------- 音乐开关 ---------- */
.music-btn {
  position: fixed;
  left: 26px;
  bottom: 58px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #c9d0da;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, color .2s;
}

.music-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); color: #fff; }

.music-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 211, 77, .16);
  color: #ffd34d;
  font-size: 11px;
}

.music-btn.is-on {
  color: #fff;
  border-color: rgba(255, 211, 77, .5);
  background: rgba(255, 211, 77, .12);
}

.music-btn.is-hint { animation: musicHint 1.8s ease-in-out infinite; }

@keyframes musicHint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 211, 77, .35); }
  50% { box-shadow: 0 0 0 7px rgba(255, 211, 77, 0); }
}

body.is-hub .music-btn { display: none; }

/* ================= 导航页 ================= */
.hub {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 20px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease .04s, transform .5s cubic-bezier(.2, .8, .2, 1) .04s;
}

body.is-hub .hub {
  opacity: 1;
  transform: none;
}

.hub-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hub-brand { display: flex; align-items: center; gap: 14px; }
.hub-logo { height: 42px; width: auto; }

.hub-brand-text h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111318;
}

.hub-brand-text p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted-2); }

.hub-chips { display: none; }

.cards {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 26px 50px -38px rgba(16, 24, 40, .7);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1), box-shadow .26s, border-color .26s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #dde2ec;
  box-shadow: 0 34px 62px -34px rgba(16, 24, 40, .45);
}

.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.card-top { display: flex; align-items: center; justify-content: space-between; }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, #2f7bff, #63a6ff);
  box-shadow: 0 14px 26px -16px rgba(47, 123, 255, .95);
}

.card-icon svg { width: 26px; height: 26px; }

.card-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #1c7a3e;
  background: #eaf8ef;
  border-radius: 999px;
  padding: 4px 11px;
}

.card-title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111318;
}

.card-desc { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

.card-tags i {
  font-style: normal;
  font-size: 11.5px;
  color: #6b7480;
  background: #f4f6f9;
  border-radius: 999px;
  padding: 4px 10px;
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 13px;
  background: #111318;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}

.card-cta svg { width: 17px; height: 17px; transition: transform .2s; }
.card:hover .card-cta svg { transform: translateX(3px); }

.card-qq .card-icon {
  color: #16210a;
  background: linear-gradient(140deg, #b4ef3a, #7ecb00);
  box-shadow: 0 14px 26px -16px rgba(126, 203, 0, .95);
}

.card-qq .card-badge { color: #5f7a12; background: #f3fbe4; }

.card-qq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: #f8faf3;
  border: 1px solid #eef3e2;
}

.qq-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #31420f;
}

.qq-copy {
  border: 1px solid #e4ebd8;
  background: #fff;
  color: #5c7026;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.qq-copy:hover { background: #f2f9e4; border-color: #cfe2a8; }

.card-qq .card-cta {
  background: linear-gradient(135deg, #a7e42b, #84cf00);
  color: #14210a;
}

.card-qq:hover .card-cta { background: linear-gradient(135deg, #b4ef3a, #8fdc00); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17, 19, 24, .94);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .6);
  animation: toastIn .2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .hub { padding: 34px 16px 46px; }
  .hub-logo { height: 36px; }
  .hub-brand-text h2 { font-size: 19px; }
  .mascot-img { height: 210px; }
}

@media (max-width: 560px) {
  .intro-foot { font-size: 10.5px; padding: 0 18px; bottom: 18px; }
  .card { padding: 22px; border-radius: 18px; }
  .card-title { font-size: 20px; }
  .mascot-img { height: 176px; }
  .intro-sub { font-size: 11.5px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .orb-a, .orb-b, .mascot, .mascot-glow { animation: none; }
  .letter { animation: none; opacity: 1; }
  .intro, .hub, .card { transition: none; }
}
