/* =========================================================
   星野工作室 · 样式表
   想换主题色？改下面 :root 里的变量就行
   ========================================================= */

:root {
  /* 主题色 */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --accent: #06b6d4;

  /* 文字 */
  --text: #1e293b;
  --text-soft: #64748b;
  --text-light: #94a3b8;

  /* 背景 */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;

  /* 结构 */
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

  --container: 1140px;
  --header-h: 72px;

  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* ===== 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}

.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, .35);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

/* ===== 头部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s ease, border-color .3s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: width .25s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta { margin-left: 4px; }

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 90px;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob-1 {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
}
.blob-2 {
  width: 380px; height: 380px;
  bottom: -140px; left: -100px;
  background: radial-gradient(circle, #a5f3fc, transparent 70%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 820px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 26px;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary-dark);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 62px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ===== 客户 Logo 带 ===== */
.logos {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.logos-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 22px;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 48px;
}

.logo-item {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-light);
  opacity: .75;
  transition: opacity .2s ease, color .2s ease;
}
.logo-item:hover { opacity: 1; color: var(--text-soft); }

/* ===== 通用 Section ===== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-soft);
}

/* ===== 服务卡片 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  font-size: 25px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card > p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 18px;
}

.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== 案例 ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-cover {
  position: relative;
  height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.cover-1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.cover-2 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.cover-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.cover-4 { background: linear-gradient(135deg, #10b981, #14b8a6); }

.work-tag {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.work-body {
  padding: 22px 24px 26px;
}

.work-body h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.work-body p {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ===== 流程 ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-soft);
}

/* ===== 客户评价 ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote-card {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #f59e0b;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.quote-card blockquote {
  font-size: 15.5px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 22px;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.quote-card strong {
  display: block;
  font-size: 15px;
}

.quote-card small {
  color: var(--text-light);
  font-size: 12.5px;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background:
    radial-gradient(1000px 380px at 20% 0%, rgba(6, 182, 212, .35), transparent 60%),
    linear-gradient(120deg, var(--primary), var(--primary-dark));
}

.cta-inner {
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 17px;
  opacity: .9;
  margin-bottom: 30px;
}

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info .section-title,
.contact-info .section-desc {
  text-align: left;
}

.contact-info .section-desc {
  margin-bottom: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef2ff;
  font-size: 19px;
  flex-shrink: 0;
}

.contact-list small {
  display: block;
  color: var(--text-light);
  font-size: 12.5px;
}

.contact-list a:hover { color: var(--primary); }

/* 表单 */
.contact-form {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.form-field input.error,
.form-field textarea.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-note {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-note.success { color: #059669; }
.form-note.fail { color: #dc2626; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 44px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14.5px;
  color: var(--text-light);
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
}

.footer-links a,
.footer-links span {
  font-size: 14.5px;
  color: var(--text-light);
  transition: color .2s ease;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

/* ===== 滚动进场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* =========================================================
   响应式适配
   ========================================================= */
@media (max-width: 960px) {
  .cards,
  .testimonials { grid-template-columns: repeat(2, 1fr); }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s ease, opacity .32s ease;
    margin-left: 0;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: calc(var(--header-h) + 60px) 0 70px; }
  .hero-title { letter-spacing: -1px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }

  .section { padding: 72px 0; }

  .cards,
  .works-grid,
  .testimonials { grid-template-columns: 1fr; }

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

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .contact-form { padding: 24px 20px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
}

/* =========================================================
   开屏 · 感谢牢草 · 背景音乐
   ========================================================= */

/* Logo 图片 */
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .14);
}

/* 开屏遮罩 */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(1100px 620px at 50% 18%, #1e293b 0%, #0f172a 68%);
  transition: opacity .85s ease, visibility .85s ease;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  transition: opacity .45s ease, transform .45s ease;
}

/* 「感谢牢草」出现时，把 logo 那组淡出 */
.splash.thanks-on .splash-inner {
  opacity: 0;
  transform: scale(.92);
}

.splash-logo {
  width: clamp(130px, 26vw, 200px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .5);
  margin-bottom: 22px;
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.splash-brand {
  color: #cbd5e1;
  font-size: clamp(15px, 3vw, 19px);
  letter-spacing: 4px;
  margin-bottom: 34px;
}

.splash-enter {
  padding: 16px 46px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 6px;
  cursor: pointer;
  transition: transform .25s ease;
  animation: pulseRing 2.2s ease-out infinite;
}

.splash-enter:hover {
  transform: translateY(-3px) scale(1.03);
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(129, 140, 248, .55); }
  70% { box-shadow: 0 0 0 22px rgba(129, 140, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
}

.splash-hint {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 13.5px;
}

/* 「感谢牢草」四个大字 */
.thanks {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 34px);
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.thanks.show { opacity: 1; }

.thanks span {
  font-size: clamp(3.2rem, 17vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  opacity: 0;
  text-shadow:
    0 0 34px rgba(129, 140, 248, .95),
    0 0 90px rgba(6, 182, 212, .65),
    0 12px 40px rgba(0, 0, 0, .45);
  transform: scale(0) rotate(-14deg);
}

.thanks.show span {
  animation: popIn .6s cubic-bezier(.18, 1.35, .4, 1) forwards;
}
.thanks.show span:nth-child(1) { animation-delay: .02s; }
.thanks.show span:nth-child(2) { animation-delay: .16s; }
.thanks.show span:nth-child(3) { animation-delay: .30s; }
.thanks.show span:nth-child(4) { animation-delay: .44s; }

@keyframes popIn {
  0% { opacity: 0; transform: scale(0) rotate(-14deg); }
  65% { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* 背景音乐按钮 */
.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(79, 70, 229, .38);
  transition: transform .25s ease, box-shadow .25s ease;
}

.music-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, .5);
}

.music-toggle.playing .music-icon {
  animation: spinDisc 3.2s linear infinite;
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .music-toggle {
    right: 16px;
    bottom: 16px;
    padding: 11px 15px;
    font-size: 13px;
  }
}
