/* ==========================================================================
   火眼观面 · 官方网站核心样式表
   技术栈：HTML5 + Tailwind CSS + 原生 CSS3 动画
   主题风格：第一张图浅粉暖白国风科技配色（Light Peach/Coral Theme）
   特性：深浅层级自然过渡、高保真东方科技美学、全端无缝自适应
   ========================================================================== */

/* 核心变量与基础重置 */
:root {
  --primary-color: #ff4d4f;       /* 朱雀红/活力珊瑚色，与小程序完全一致 */
  --primary-hover: #e0383a;
  --primary-light: #fff1f2;       /* 浅粉色底衬 */
  --light-bg: #fff8f8;            /* 柔和暖粉白底 */
  --card-bg: #ffffff;
  --card-border: #ffe4e6;
  --text-main: #111827;           /* 深炭黑主标题字 */
  --text-muted: #6b7280;          /* 优雅深灰说明字 */
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: #fff8f8;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* 隐藏滚动条但保留滚动能力 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 浅粉柔和光晕背景效果 */
.radial-glow {
  background: radial-gradient(circle at 85% 15%, rgba(254, 205, 211, 0.45) 0%, rgba(255, 255, 255, 0) 65%),
              radial-gradient(circle at 10% 40%, rgba(255, 228, 230, 0.35) 0%, rgba(255, 255, 255, 0) 50%);
}

.ambient-blur {
  filter: blur(80px);
  pointer-events: none;
}

/* 浅色立体磨砂卡片 */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 228, 230, 0.85);
  box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.05);
}

.glass-panel-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(255, 77, 79, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(255, 77, 79, 0.15);
}

/* 渐变标题文字 */
.coral-gradient-text {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #ff4d4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 扫码框微动呼吸效果 */
@keyframes qr-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 77, 79, 0);
  }
}

.qr-pulse-glow {
  animation: qr-pulse 3s infinite ease-in-out;
}

/* 手机轻微浮动展示动画 */
@keyframes phone-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.phone-float-animation {
  animation: phone-float 6s ease-in-out infinite;
}

/* 弹窗淡入淡出动画 */
.modal-backdrop {
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}
.modal-backdrop.hidden-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-backdrop.active-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}
.hidden-modal .modal-container {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
}
.active-modal .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 移动端菜单过渡 */
.mobile-menu-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
