/* =============================================================================
   全站统一：ToyFight 式橙底 + 白字导航 + 内页白卡片（design-style.md）
   狗骨头光标与首页像素字（Pixelify Sans）见文末与 .page-home
   ============================================================================= */

:root {
  --tf-orange: #f5a623;
  --tf-ink: #111;
  --tf-white: #fff;
  --tf-glow: #ff4d00;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --wrap: min(1100px, 92vw);
  --cursor-bone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate(16%2C16) rotate(-36) translate(-16%2C-16)' fill='%23fff4dd' stroke='%23955a12' stroke-width='1.45' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='10.5' y='12' width='11' height='8' rx='3'/%3E%3Cellipse cx='7.5' cy='11.25' rx='4.65' ry='3.55'/%3E%3Cellipse cx='7.5' cy='20.75' rx='4.65' ry='3.55'/%3E%3Cellipse cx='24.5' cy='11.25' rx='4.65' ry='3.55'/%3E%3Cellipse cx='24.5' cy='20.75' rx='4.65' ry='3.55'/%3E%3C/g%3E%3C/svg%3E")
    14 18,
    auto;
  --cursor-bone-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate(16%2C16) rotate(-36) translate(-16%2C-16)' fill='%23ffefbf' stroke='%23b56e18' stroke-width='1.45' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='10.5' y='12' width='11' height='8' rx='3'/%3E%3Cellipse cx='7.5' cy='11.25' rx='4.65' ry='3.55'/%3E%3Cellipse cx='7.5' cy='20.75' rx='4.65' ry='3.55'/%3E%3Cellipse cx='24.5' cy='11.25' rx='4.65' ry='3.55'/%3E%3Cellipse cx='24.5' cy='20.75' rx='4.65' ry='3.55'/%3E%3C/g%3E%3C/svg%3E")
    14 18,
    pointer;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5a623;
  color: var(--tf-ink);
  font-family: Poppins, system-ui, "Segoe UI", "Arial Black", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) and (pointer: fine) {
  html {
    cursor: var(--cursor-bone);
  }

  a,
  button,
  [role="button"],
  input,
  textarea,
  select,
  .hero-mascot-wrap,
  .gallery-item {
    cursor: var(--cursor-bone-pointer);
  }
}

/* ----- 首页：像素风字体（仅文字 UI，不含 SVG 路径） ----- */
.page-home .site-logo,
.page-home .site-menu a,
.page-home .hero-title,
.page-home .hero-desc,
.page-home .hero-cta-btn,
.page-home .co-strip h2,
.page-home .co-card,
.page-home .mascot-name,
.page-home .site-footer {
  font-family: "Pixelify Sans", ui-monospace, monospace;
}

.page-home .site-nav {
  font-family: "Pixelify Sans", ui-monospace, monospace;
}

.page-home .hero-title {
  letter-spacing: 0.04em;
}

.page-home .hero-desc {
  font-weight: 500;
  line-height: 1.65;
}

.page-home .co-card span {
  font-weight: 500;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 22px);
}

/* ----- 顶栏（全站） ----- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: calc(2rem + var(--safe-top)) clamp(1.25rem, 4vw, 3.5rem) 0;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.05em;
}

.site-logo {
  font-weight: 900;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--tf-white);
  text-transform: uppercase;
  text-decoration: none;
}

.site-logo span {
  opacity: 0.92;
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.site-menu a {
  color: var(--tf-white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.3em 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--tf-ink);
  border-color: var(--tf-white);
  outline: none;
}

.site-menu a[aria-current="page"] {
  border-color: var(--tf-white);
  color: var(--tf-ink);
  background: rgba(255, 255, 255, 0.35);
  padding-left: 0.35em;
  padding-right: 0.35em;
  border-radius: 4px;
}

/* ----- 首页 Hero ----- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(90vh, 920px);
  box-sizing: border-box;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5vw);
  gap: clamp(3rem, 8vw, 8vw);
}

.hero-title-zone {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 550px;
}

.hero-title {
  font-size: clamp(2.4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--tf-white);
  text-transform: uppercase;
  margin: 0 0 clamp(1rem, 3vw, 2.5rem);
  text-shadow: 5px 5px 0 var(--tf-ink), 12px 0 36px rgba(255, 77, 0, 0.45);
}

.hero-desc {
  font-size: clamp(1rem, 2.6vw, 1.75rem);
  font-weight: 600;
  color: var(--tf-white);
  margin: 0 0 clamp(1.5rem, 4vw, 3.5rem);
  max-width: 42ch;
  line-height: 1.5;
  text-shadow: 2px 2px 0 rgba(17, 17, 17, 0.3);
  background: rgba(17, 17, 17, 0.25);
  padding: 0.8em 1.2em;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-family: "Pixelify Sans", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.hero-desc::before {
  content: "▸ ";
  color: var(--tf-white);
}

.hero-cta-btn {
  display: inline-block;
  background: var(--tf-ink);
  color: var(--tf-white);
  border: none;
  font-size: clamp(1rem, 2.4vw, 1.65rem);
  font-weight: 800;
  padding: 0.75em 2.2em;
  border-radius: 40px;
  transition:
    background 0.15s cubic-bezier(0.7, 0, 0.7, 1),
    color 0.15s cubic-bezier(0.7, 0, 0.7, 1),
    transform 0.25s cubic-bezier(0.9, 0, 0.1, 1),
    box-shadow 0.2s;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 77, 0, 0.18);
}

.hero-cta-btn:hover,
.hero-cta-btn:focus-visible {
  background: var(--tf-white);
  color: var(--tf-ink);
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.15), 0 2px 10px rgba(255, 77, 0, 0.15);
  outline: none;
}

.hero-image-zone {
  flex: 1 1 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 450px;
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title-zone {
    align-items: center;
    max-width: 100%;
  }
  
  .hero-image-zone {
    max-width: 100%;
  }
}

.hero-image {
  background: var(--tf-white);
  border-radius: 32px;
  box-shadow:
    0 24px 56px rgba(255, 77, 0, 0.12),
    0 2px 8px rgba(34, 34, 34, 0.2);
  padding: clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: min(380px, 52vh);
  position: relative;
  transition: box-shadow 0.2s cubic-bezier(0.8, 0, 0.2, 1);
}

.hero-image:hover {
  box-shadow:
    0 28px 64px rgba(255, 77, 0, 0.2),
    0 4px 12px rgba(34, 34, 34, 0.22);
}

.hero-image::before {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: rgba(245, 166, 35, 0.25);
  border-radius: 100px;
  filter: blur(3px);
  z-index: 0;
}

.hero-image-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-mascot-wrap {
  max-width: 240px;
  width: 100%;
  outline: none;
}

.hero-mascot-wrap:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.65);
  border-radius: 16px;
}

.hero-mascot-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.mascot-name {
  margin: 0;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #5c3a24;
}

@media (hover: hover) and (pointer: fine) {
  .hero-mascot-wrap:hover .mascot-tail-swing,
  .hero-mascot-wrap:focus-within .mascot-tail-swing {
    animation: mascot-tail-wag 0.4s ease-in-out infinite alternate;
  }

  .hero-mascot-wrap:hover .mascot-eyes-blink,
  .hero-mascot-wrap:focus-within .mascot-eyes-blink {
    animation: mascot-eye-blink 2.8s ease-in-out infinite;
  }
}

.home-mascot-svg--flat .mascot-flat-fill {
  fill: #fff9e6;
  stroke: #5c3a24;
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.home-mascot-svg--flat .mascot-flat-ear {
  fill: #e8a87c;
  stroke: #5c3a24;
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.home-mascot-svg--flat .mascot-flat-tuft {
  fill: none;
  stroke: #c9a88a;
  stroke-width: 2;
  stroke-linecap: round;
}

.home-mascot-svg--flat .mascot-flat-eye {
  fill: #3d2818;
  stroke: #5c3a24;
  stroke-width: 2;
}

.home-mascot-svg--flat .mascot-flat-nose {
  fill: #3d2818;
  stroke: #5c3a24;
  stroke-width: 2;
}

@media (hover: hover) and (pointer: fine) {
  .hero-mascot-wrap:hover .mascot-tail-swing,
  .hero-mascot-wrap:focus-within .mascot-tail-swing {
    animation: mascot-tail-wag 0.7s ease-in-out infinite alternate;
    transform-origin: 0 0;
  }

  .hero-mascot-wrap:hover .mascot-eyes-blink,
  .hero-mascot-wrap:focus-within .mascot-eyes-blink {
    animation: mascot-eye-blink 2.8s ease-in-out infinite;
    transform-origin: 0 0;
  }
}

@keyframes mascot-tail-wag {
  from {
    transform: rotate(-8deg);
  }

  to {
    transform: rotate(8deg);
  }
}

@keyframes mascot-eye-blink {
  0%,
  86%,
  100% {
    transform: scaleY(1);
  }

  88%,
  91% {
    transform: scaleY(0.14);
  }
}

@media (max-width: 980px) {
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .hero-title-zone {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    text-shadow: 4px 4px 0 var(--tf-ink), 8px 0 28px rgba(255, 77, 0, 0.4);
  }

  .hero-desc {
    max-width: 42ch;
  }
}

/* ----- 首页次屏 ----- */
.co-strip {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 5vw) calc(3rem + var(--safe-bottom));
  background: #f5a623;
}

.co-strip h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--tf-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.co-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .co-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.co-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--tf-ink);
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s;
}

.co-card:hover,
.co-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  outline: none;
}

.co-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.co-card span {
  font-weight: 600;
  opacity: 0.82;
  font-size: 0.88rem;
}

/* ----- 内页通用 ----- */
.page-hero {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--tf-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 rgba(17, 17, 17, 0.25);
}

.page-hero p {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--tf-ink);
  opacity: 0.9;
}

.page-hero code {
  background: rgba(255, 255, 255, 0.55);
  padding: 0.12em 0.35em;
  border-radius: 6px;
  font-size: 0.88em;
}

.tf-muted {
  margin-top: 1.35rem;
  font-size: 0.88rem;
  color: rgba(17, 17, 17, 0.72);
  font-weight: 600;
}

/* ----- 博客 ----- */
.blog-list {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 calc(3rem + var(--safe-bottom));
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  display: block;
  padding: 1.35rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.06);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  outline: none;
}

.article-card time {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tf-glow);
}

.article-card h2 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
}

.article-card p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.82;
  font-weight: 600;
}

/* ----- 作品集 ----- */
.portfolio-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 calc(3rem + var(--safe-bottom));
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.gallery-caption {
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
}

.gallery-caption strong {
  display: block;
  color: var(--tf-ink);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.video-wrap {
  position: relative;
  background: #1a1410;
}

.play-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  opacity: 0.88;
}

/* ----- 联系 ----- */
.contact-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 calc(3rem + var(--safe-bottom));
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.contact-card p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.06);
  border: 2px solid rgba(17, 17, 17, 0.12);
  text-decoration: none;
  color: var(--tf-ink);
  font-weight: 800;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.social-link:hover,
.social-link:focus-visible {
  transform: scale(1.04);
  background: var(--tf-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  outline: none;
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65em 1.4em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-ghost {
  background: var(--tf-white);
  color: var(--tf-ink);
  border: 2px solid rgba(17, 17, 17, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  outline: none;
}

.mail-big {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 900;
  word-break: break-all;
}

/* ----- 页脚 ----- */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem calc(1.5rem + var(--safe-bottom));
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: var(--tf-white);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-btn:hover,
  .hero-cta-btn:focus-visible,
  .co-card:hover,
  .article-card:hover,
  .gallery-item:hover,
  .social-link:hover {
    transform: none;
  }

  .hero-mascot-wrap:hover .mascot-tail-swing,
  .hero-mascot-wrap:focus-within .mascot-tail-swing,
  .hero-mascot-wrap:hover .mascot-eyes-blink,
  .hero-mascot-wrap:focus-within .mascot-eyes-blink {
    animation: none;
  }
}

/* =============================================================================
   动态效果扩展 - 新增动画与交互
   ============================================================================= */

/* ----- 滚动淡入动画 ----- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* 延迟类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ----- 脉冲呼吸动画 ----- */
@keyframes pulse-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px 5px rgba(255, 77, 0, 0.2);
  }
}

.pulse-breathe {
  animation: pulse-breathe 2.5s ease-in-out infinite;
}

/* ----- 浮动动画 ----- */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}

.float-slow {
  animation: float 4s ease-in-out infinite;
}

.float-fast {
  animation: float 2s ease-in-out infinite;
}

/* ----- 闪烁光效 ----- */
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 77, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.9));
  }
}

.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ----- 旋转加载动画 ----- */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--tf-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ----- 骨架屏加载动画 ----- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ----- 打字机效果 ----- */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--tf-white);
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--tf-white); }
}

/* ----- 背景渐变动画 ----- */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-anim {
  background: linear-gradient(-45deg, #f5a623, #ff4d00, #f5a623, #ff6b35);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

/* ----- 边框流光效果 ----- */
@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.border-glow {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.border-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, var(--tf-white), transparent);
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
  border-radius: inherit;
  z-index: -1;
}

/* ----- 按钮点击涟漪效果 ----- */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.ripple-effect:active::after {
  transform: translate(-50%, -50%) scale(2.5);
  opacity: 1;
  transition: 0s;
}

/* ----- 卡片悬停3D倾斜效果 ----- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
}

/* ----- 页面切换过渡 ----- */
.page-transition {
  animation: page-in 0.4s ease-out;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- 社交图标悬浮动画 ----- */
.social-icon {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s;
}

.social-icon:hover {
  transform: scale(1.2) translateY(-3px);
}

/* ----- 进度条动画 ----- */
@keyframes progress-grow {
  from { width: 0; }
}

.progress-bar {
  animation: progress-grow 1.5s ease-out forwards;
}

/* ----- 弹跳效果 ----- */
@keyframes bounce-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.bounce-in {
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* ----- 通知提示动画 ----- */
.toast {
  animation: toast-in 0.4s ease-out, toast-out 0.4s ease-in 2.5s forwards;
}

@keyframes toast-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* ----- 导航栏滚动效果 ----- */
.site-nav.scrolled {
  background: rgba(255, 77, 0, 0.95);
  backdrop-filter: blur(10px);
  padding-top: calc(0.8rem + var(--safe-top));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* ----- 滚动进度指示器 ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tf-white), var(--tf-glow));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ----- 返回顶部按钮 ----- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--tf-ink);
  color: var(--tf-white);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ----- 图片悬浮放大 ----- */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* ----- 标签云动画 ----- */
.tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tf-ink);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px;
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background: var(--tf-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ----- 评论区头像悬浮 ----- */
.comment-avatar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ----- 点赞心跳动画 ----- */
@keyframes heartbeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.3); }
  60% { transform: scale(1); }
}

.heartbeat {
  animation: heartbeat 1s ease-in-out;
}

/* ----- 文章卡片专用效果 ----- */
.article-card .card-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--tf-glow);
  color: var(--tf-white);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transform: rotate(-2deg);
}

.article-card:hover .card-badge {
  transform: rotate(0deg) scale(1.05);
}

/* ----- 悬浮预览效果 ----- */
.preview-trigger {
  position: relative;
}

.preview-trigger::after {
  content: attr(data-preview);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 8px 12px;
  background: var(--tf-ink);
  color: var(--tf-white);
  font-size: 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.preview-trigger:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* ----- 加载占位动画 ----- */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.3) 50%, 
    rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ----- 打字机光标闪烁 ----- */
.cursor-blink::after {
  content: '|';
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  50% { opacity: 0; }
}

/* ----- 彩虹渐变文字 ----- */
.rainbow-text {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
  to { background-position: 200% center; }
}

/* ----- 边框呼吸灯 ----- */
.border-breathe {
  animation: border-breathe 2s ease-in-out infinite;
}

@keyframes border-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* ----- 摇晃提示 ----- */
.shake-hint {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

/* ----- 弹出层效果 ----- */
.pop-in {
  animation: pop-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ----- 滑动抽屉 ----- */
.slide-drawer {
  animation: slide-in 0.3s ease-out forwards;
}

@keyframes slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* ----- 背景粒子效果（需JS配合）----- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: float-up 8s infinite;
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ----- 分割线动画 ----- */
.animated-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tf-white), transparent);
  background-size: 200% 100%;
  animation: divider-flow 2s linear infinite;
}

@keyframes divider-flow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ----- 标签动画 ----- */
.tag-animated {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tag-animated:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ----- 阅读进度条 ----- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tf-glow), var(--tf-white));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ----- 滚动解锁动画 ----- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----- 鼠标跟随效果 ----- */
.mouse-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--tf-white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
}

.mouse-follower.hover {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ----- 列表项依次出现 ----- */
.stagger-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: stagger-in 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes stagger-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ----- 按钮加载状态 ----- */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ----- 通知角标 ----- */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--tf-glow);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.3s ease;
}

/* ----- 滑块拖拽指示 ----- */
.slider-hint {
  animation: slide-hint 2s ease-in-out infinite;
}

@keyframes slide-hint {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(10px); opacity: 1; }
}

/* ----- 移动端菜单动画 ----- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--tf-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .site-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--tf-ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }
  
  .site-menu.open {
    right: 0;
  }
  
  .site-menu a {
    font-size: 1.5rem;
  }
}

/* ----- 模态框动画 ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--tf-white);
  border-radius: 20px;
  padding: 2rem;
  max-width: 90%;
  width: 500px;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* ----- 禁用动画偏好 ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in-up,
  .fade-in-left,
  .fade-in-right,
  .fade-in-scale {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================================
   留言板样式（Blog页面）
   ============================================================================= */

.guestbook-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 calc(3rem + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.06));
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--tf-ink);
}

.title-icon {
  font-size: 1.5em;
}

.section-desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.7);
}

.guestbook-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .guestbook-layout {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

.guestbook-form-wrapper {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 2rem;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-form .form-group {
  margin: 0;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--tf-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--tf-glow);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.12);
}

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

.guestbook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85em 1.8em;
  background: var(--tf-glow);
  color: var(--tf-white);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.guestbook-btn:hover {
  background: var(--tf-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.25);
}

.btn-icon {
  font-size: 1.1rem;
}

.guestbook-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: slide-in 0.4s ease-out;
}

.message-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tf-orange), var(--tf-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-white);
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.message-item:hover .message-avatar {
  transform: scale(1.1) rotate(5deg);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.message-name {
  font-weight: 800;
  font-size: 1rem;
}

.message-time {
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.5);
  background: rgba(17, 17, 17, 0.06);
  padding: 0.2em 0.6em;
  border-radius: 10px;
}

.message-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.85);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .guestbook-btn {
    width: 100%;
  }
}

/* =============================================================================
   光标交互效果
   ============================================================================= */

/* ----- 光标跟随光斑 ----- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}

/* ----- 光标拖拽粒子 ----- */
.cursor-particle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.cursor-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ----- 光标涟漪效果 ----- */
.cursor-ripple-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  overflow: hidden;
}

.cursor-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple-expand 1s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* ----- 鼠标轨迹 ----- */
.mouse-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
}

.mouse-trail div {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ----- 卡片悬浮激活态 ----- */
.area-hover-active {
  z-index: 10;
}

.area-hover-active::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3));
  opacity: 1;
  animation: shimmer-border 1.5s linear infinite;
  background-size: 200% 200%;
  z-index: -1;
}

@keyframes shimmer-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ----- 标题光效 ----- */
.title-glow-effect {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  transition: opacity 0.3s;
}

.hero-title:hover .title-glow-effect {
  opacity: 0.8;
}

/* ----- 统计数字悬浮高亮 ----- */
.stat-item {
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.stat-num {
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat-item:hover .stat-num {
  transform: scale(1.1);
  color: #fff;
}

/* ----- 增强悬浮效果 ----- */
.page-home .co-card,
.page-home .stat-item {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}

/* ----- 吉祥物光效跟随 ----- */
.hero-image {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* ----- 首页浮动表情增强 ----- */
.page-home .floating-emoji {
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  will-change: transform;
}

/* ----- Hero 区域增强 ----- */
.page-home .hero-section {
  position: relative;
  overflow: hidden;
}

.page-home .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255,255,255,0.1) 0%, 
    transparent 50%);
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
}

/* ----- 卡片悬浮时的光效 ----- */
.page-home .co-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255,77,0,0.15) 0%, 
    transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.page-home .co-card:hover::after {
  opacity: 1;
}

/* ----- CTA按钮光效 ----- */
.page-home .hero-cta-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #fff, transparent, #fff);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.page-home .hero-cta-btn:hover::before {
  opacity: 0.3;
  animation: btn-shine 1.5s ease-in-out infinite;
}

@keyframes btn-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ----- 导航菜单光效 ----- */
.page-home .site-menu a {
  position: relative;
  overflow: hidden;
}

.page-home .site-menu a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.page-home .site-menu a:hover::before {
  width: 200px;
  height: 200px;
}

/* ----- 数字统计动画增强 ----- */
.page-home .stat-item {
  position: relative;
}

.page-home .stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 12px;
}

.page-home .stat-item:hover::before {
  opacity: 1;
}

/* ----- 吉祥物眼睛跟随效果 ----- */
.home-mascot-svg--flat {
  transition: transform 0.1s ease;
}

.mascot-eye-highlight {
  transition: transform 0.1s ease;
}

/* ----- 首页背景动态效果 ----- */
.page-home {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* =============================================================================
   动态效果增强
   ============================================================================= */

/* ----- 背景粒子效果 ----- */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-particles::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  background-position: 0 0, 25px 25px;
  animation: particles-move 20s linear infinite;
}

@keyframes particles-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

/* ----- 浮动表情 ----- */
.floating-emoji {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  filter: blur(1px);
}

.emoji-1 {
  top: 20%;
  left: 8%;
  animation: float-emoji 8s ease-in-out infinite;
}

.emoji-2 {
  top: 35%;
  right: 12%;
  animation: float-emoji 10s ease-in-out infinite 2s;
}

.emoji-3 {
  bottom: 25%;
  left: 15%;
  animation: float-emoji 12s ease-in-out infinite 1s;
}

.emoji-4 {
  bottom: 40%;
  right: 8%;
  animation: float-emoji 9s ease-in-out infinite 3s;
}

@keyframes float-emoji {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  25% { transform: translateY(-20px) rotate(10deg); opacity: 0.8; }
  50% { transform: translateY(-10px) rotate(-5deg); opacity: 0.5; }
  75% { transform: translateY(-25px) rotate(5deg); opacity: 0.7; }
}

/* ----- 标题文字动画 ----- */
.title-word {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: title-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.title-word:nth-child(1) { animation-delay: 0.3s; }
.title-word:nth-child(2) { animation-delay: 0.6s; }
.title-word:nth-child(3) { animation-delay: 0.9s; }

@keyframes title-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-accent {
  color: var(--tf-white);
  text-shadow: 4px 4px 0 var(--tf-ink), 8px 0 30px rgba(255, 77, 0, 0.4);
}

/* ----- 按钮脉冲发光 ----- */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(255, 77, 0, 0.18);
  }
  50% {
    box-shadow: 0 8px 40px rgba(255, 77, 0, 0.5), 0 0 60px rgba(255, 77, 0, 0.3);
  }
}

/* ----- 卡片悬浮效果 ----- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* ----- 卡片发光边框 ----- */
.hover-glow {
  position: relative;
}

.hover-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(45deg, var(--tf-glow), var(--tf-white), var(--tf-glow));
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: border-rainbow 3s linear infinite;
}

@keyframes border-rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hover-glow:hover::before {
  opacity: 0.3;
}

/* ----- 卡片表情动画 ----- */
.card-emoji {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.co-card:hover .card-emoji {
  animation: emoji-bounce 0.6s ease;
}

@keyframes emoji-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.3) rotate(-10deg); }
  50% { transform: scale(0.9) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
}

/* ----- Section Title 动画 ----- */
.section-title-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: section-title-in 0.8s ease forwards 0.5s;
}

@keyframes section-title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- 数据统计区域 ----- */
.stats-section {
  padding: 3rem 0;
  background: #f5a623;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--tf-glow);
  font-family: "Pixelify Sans", monospace;
  text-shadow: 2px 2px 0 rgba(255, 77, 0, 0.2);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hover-bounce:hover {
  transform: translateY(-5px) scale(1.05);
}

.hover-bounce:hover .stat-num {
  animation: num-shake 0.5s ease;
}

@keyframes num-shake {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ----- 导航链接下划线动画 ----- */
.site-menu a {
  position: relative;
}

.site-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--tf-white);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.site-menu a:hover::after,
.site-menu a[aria-current="page"]::after {
  width: 100%;
}

/* ----- Logo 动画 ----- */
.site-logo {
  transition: transform 0.3s ease;
}

.site-logo:hover {
  animation: logo-wiggle 0.5s ease;
}

@keyframes logo-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* ----- 滚动进入动画 ----- */
.co-card {
  opacity: 0;
  transform: translateY(40px);
  animation: card-appear 0.6s ease forwards;
}

.co-card:nth-child(1) { animation-delay: 0.8s; }
.co-card:nth-child(2) { animation-delay: 1s; }
.co-card:nth-child(3) { animation-delay: 1.2s; }

@keyframes card-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- 装饰线条动画 ----- */
.co-strip h2::before {
  content: '◆ ';
  color: var(--tf-white);
  animation: star-blink 1s ease infinite;
}

@keyframes star-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ----- 响应式 ----- */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .floating-emoji {
    font-size: 1.2rem;
    opacity: 0.4;
  }
  
  .emoji-1 { top: 8%; left: 3%; }
  .emoji-2 { top: 20%; right: 3%; }
  .emoji-3 { bottom: 12%; left: 3%; }
  .emoji-4 { bottom: 25%; right: 3%; }
  
  .scroll-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.5rem 0.75rem;
  }
  
  .stat-num {
    font-size: 2rem;
  }
}

/* ----- 减少动画偏好 ----- */
@media (prefers-reduced-motion: reduce) {
  .bg-particles::before,
  .floating-emoji,
  .title-word,
  .pulse-glow,
  .co-card,
  .card-emoji,
  .section-title-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .hover-lift:hover,
  .hover-bounce:hover,
  .hover-glow:hover {
    transform: none;
  }
}

/* =============================================================================
   全屏滚动式布局
   ============================================================================= */

/* ----- Scroll Snap Container ----- */
.scroll-snap {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* ----- Individual Section ----- */
.scroll-section {
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
}

/* ----- Section Content Wrapper ----- */
.scroll-section .section-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* ----- Scroll Navigation Dots ----- */
.scroll-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.scroll-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

.scroll-nav-dot span {
  position: absolute;
  right: 100%;
  margin-right: 1rem;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.scroll-nav-dot:hover span {
  opacity: 1;
  transform: translateX(0);
}

.scroll-nav-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* ----- Scroll Indicator ----- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  animation: bounce-indicator 2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hero-section:not(.in-view) .scroll-indicator {
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 3px solid rgba(255, 255, 255, 0.8);
  border-bottom: 3px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  animation: scroll-arrow 2s ease-in-out infinite;
}

@keyframes bounce-indicator {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-arrow {
  0%, 100% { opacity: 0.5; transform: rotate(45deg) translateY(0); }
  50% { opacity: 1; transform: rotate(45deg) translateY(5px); }
}

/* ----- Hero Section Layout ----- */
.hero-section {
  padding: 0;
  overflow: hidden;
}

.hero-section .site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5vw);
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.hero-title-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-image-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title-zone {
    align-items: center;
  }
}

/* ----- About Section ----- */
.about-section {
  background: rgba(255, 255, 255, 0.95);
  color: var(--tf-ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--tf-ink);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 500px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(245, 166, 35, 0.15);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--tf-ink);
}

.feature-item p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

/* ----- Explore Section ----- */
.explore-section {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.15));
}

.explore-section .section-title {
  color: var(--tf-white);
}

.explore-section .co-grid {
  margin-top: 2rem;
}

/* ----- Stats Section ----- */
.stats-section {
  background: rgba(255, 255, 255, 0.95);
  color: var(--tf-ink);
}

.stats-section .section-title {
  color: var(--tf-ink);
}

.stats-section .stats-grid {
  margin-top: 2rem;
}

.stats-section .stat-item {
  background: var(--tf-orange);
  color: var(--tf-white);
}

.stats-section .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* ----- Contact Section ----- */
.contact-section {
  background: var(--tf-orange);
}

.contact-desc {
  font-size: 1.2rem;
  color: var(--tf-white);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--tf-white);
  color: var(--tf-ink);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  font-size: 1.3rem;
}

.footer-copy {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* ----- Section Titles ----- */
.scroll-section .section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(17, 17, 17, 0.15);
  text-align: center;
  margin-bottom: 0;
}

.about-section .section-title,
.stats-section .section-title {
  text-shadow: none;
}

/* ----- Scroll Reveal Animation ----- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Background Particles for Hero ----- */
.scroll-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scroll-bg-particles::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  background-position: 0 0, 25px 25px;
  animation: particles-move 20s linear infinite;
}

/* ----- Site Footer in Scroll Layout ----- */
.page-home .site-footer {
  background: rgba(17, 17, 17, 0.9);
  padding: 1.5rem;
  text-align: center;
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {
  .scroll-nav {
    right: 1rem;
  }
  
  .scroll-nav-dot {
    width: 10px;
    height: 10px;
  }
  
  .scroll-nav-dot span {
    display: none;
  }
  
  .scroll-section {
    padding: 1rem;
  }
  
  .co-grid {
    grid-template-columns: 1fr !important;
  }
  
  .scroll-indicator {
    bottom: 1rem;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ----- Hide Footer in Scroll Mode ----- */
.scroll-snap + .site-footer {
  display: none;
}
