/* ============================================================
   鼠图图 Shututu · 官网样式
   配色：奶酪黄 + 鼠灰 + 奶油底
   ============================================================ */

:root {
  --cheese: #ffc93c;
  --cheese-dark: #e8a20c;
  --mouse: #8d99ae;
  --mouse-dark: #5c677d;
  --ink: #2b2118;
  --ink-soft: #6b5d52;
  --cream: #fff8e7;
  --cream-deep: #fdf0d0;
  --white: #ffffff;
  --pink: #f7b2ad;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.08);
  --shadow-hover: 0 18px 40px rgba(43, 33, 24, 0.14);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cheese), var(--cheese-dark));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(232, 162, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(232, 162, 12, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 2px solid rgba(43, 33, 24, 0.15);
}

.btn-ghost:hover {
  background: var(--white);
  transform: translateY(-3px);
}

.btn-small {
  padding: 8px 20px;
  font-size: 14px;
  background: var(--cheese);
  color: var(--ink);
  border-radius: 999px;
}

.btn-small:hover {
  background: var(--cheese-dark);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6vw;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(43, 33, 24, 0.08);
  padding: 10px 6vw;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}

.brand-logo {
  font-size: 28px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-12deg) scale(1.15);
}

.brand-name {
  font-size: 22px;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--cheese);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 150px 6vw 90px;
  background: linear-gradient(160deg, #fff3cf 0%, #ffe9a8 45%, #ffd97a 100%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed var(--cheese-dark);
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 1px;
}

.highlight {
  background: linear-gradient(transparent 55%, rgba(255, 255, 255, 0.9) 55%);
  padding: 0 4px;
  border-radius: 4px;
  color: var(--cheese-dark);
  -webkit-text-stroke: 0.6px var(--ink);
}

.hero-sub {
  margin: 22px 0 30px;
  font-size: 17px;
  color: #4a3d31;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tip {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(43, 33, 24, 0.55);
}

.hero-art {
  display: flex;
  justify-content: center;
  animation: bob 3.2s ease-in-out infinite;
}

.hero-art svg {
  width: min(340px, 70%);
  filter: drop-shadow(0 18px 24px rgba(43, 33, 24, 0.18));
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* 漂浮奶酪 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float-cheese {
  position: absolute;
  font-size: 34px;
  opacity: 0.55;
  animation: floatCheese 7s ease-in-out infinite;
}

.c1 { top: 18%; left: 8%; animation-delay: 0s; }
.c2 { top: 66%; left: 4%; font-size: 26px; animation-delay: 1.4s; }
.c3 { top: 14%; right: 10%; font-size: 42px; animation-delay: 0.8s; }
.c4 { top: 70%; right: 16%; font-size: 24px; animation-delay: 2.1s; }
.c5 { top: 42%; left: 46%; font-size: 20px; animation-delay: 3s; }

@keyframes floatCheese {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-24px) rotate(10deg); }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
}

.hero-wave svg {
  width: 100%;
  height: 70px;
}

/* ---------- 数据栏 ---------- */
.stats {
  max-width: 1100px;
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
}

.stat {
  text-align: center;
  padding: 6px 10px;
}

.stat + .stat {
  border-left: 2px dashed var(--cream-deep);
}

.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--cheese-dark);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 90px 6vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--cream);
  max-width: none;
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--cheese-dark);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- 产品卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.section .card {
  background: var(--white);
}

.section-alt .card {
  background: var(--white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cheese);
}

.card-icon {
  font-size: 42px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(-8deg);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card h3 .en {
  font-size: 13px;
  font-weight: 600;
  color: var(--mouse-dark);
  margin-left: 4px;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.card-tag {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--cheese-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 鼠文化 ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.culture-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.culture-item:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover);
}

.culture-emoji {
  font-size: 44px;
  margin-bottom: 14px;
}

.culture-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.culture-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    var(--cheese) 0 12px,
    var(--cheese-dark) 12px 24px
  );
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 26px;
}

.timeline-item::before {
  content: "🐭";
  position: absolute;
  left: -34px;
  top: -2px;
  font-size: 20px;
  background: var(--white);
  border-radius: 50%;
  line-height: 1;
  padding: 4px;
}

.timeline-year {
  display: inline-block;
  font-weight: 900;
  font-size: 15px;
  color: var(--white);
  background: var(--mouse-dark);
  padding: 2px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.timeline-body h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.timeline-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- 团队 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--cream), var(--cheese));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: inset 0 -6px 12px rgba(43, 33, 24, 0.08);
  transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.08) rotate(6deg);
}

.team-card h3 {
  font-size: 20px;
}

.team-role {
  display: block;
  font-size: 12.5px;
  color: var(--cheese-dark);
  font-weight: 700;
  margin: 6px 0 10px;
}

.team-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- 跑轮彩蛋 ---------- */
.wheel-section {
  background: var(--cream);
  max-width: none;
}

.wheel-panel {
  max-width: 1000px;
  margin: 0 auto 70px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

.wheel-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
}

.wheel-text p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.wheel-score {
  margin-top: 14px;
  font-size: 15px !important;
}

.wheel-score b {
  color: var(--cheese-dark);
  font-size: 22px;
}

.squeak {
  display: inline-block;
  color: var(--pink);
  font-weight: 800;
}

.wheel {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.wheel:hover {
  transform: scale(1.05);
}

.wheel svg {
  width: 100%;
  height: 100%;
}

.wheel-rim {
  fill: none;
  stroke: var(--cheese-dark);
  stroke-width: 8;
}

.wheel-inner {
  fill: var(--cream);
  stroke: var(--cheese);
  stroke-width: 4;
}

.wheel-spokes {
  stroke: var(--mouse-dark);
  stroke-width: 4;
  stroke-linecap: round;
}

.wheel-hub {
  fill: var(--mouse-dark);
}

.wheel svg {
  transform-origin: 50% 50%;
}

.wheel.spinning svg {
  animation: wheelSpin 0.55s linear infinite;
}

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- CTA ---------- */
.cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--cheese), var(--cheese-dark));
  border-radius: var(--radius);
  padding: 56px 40px;
  box-shadow: 0 16px 40px rgba(232, 162, 12, 0.35);
}

.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta p {
  margin-bottom: 26px;
  color: rgba(43, 33, 24, 0.8);
}

.cta .btn-primary {
  background: var(--ink);
  color: var(--cheese);
  box-shadow: 0 10px 24px rgba(43, 33, 24, 0.3);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 6vw 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand b {
  color: var(--cheese);
  font-size: 18px;
}

.footer-brand p {
  font-size: 13.5px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--cheese);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 13px;
  padding: 18px 0;
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 奶酪碎屑 ---------- */
.cheese-crumb {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  font-size: 14px;
  animation: crumbFall 0.9s ease-in forwards;
}

@keyframes crumbFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(46px) rotate(80deg) scale(0.5); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art svg {
    width: 220px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
    margin: -20px 6vw 0;
  }

  .stat:nth-child(3) {
    border-left: none;
  }

  .wheel-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    padding: 20px 0;
    gap: 18px;
    box-shadow: 0 12px 24px rgba(43, 33, 24, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero {
    padding-top: 120px;
  }
}
