/* =============================================
   一竹文化传播 — 全站通用样式
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'PingFang SC', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #F7F8FC;
}

/* =============================================
   KEYFRAMES
   ============================================= */

@keyframes slideUp {
  to { transform: translateY(0); }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes morphShape {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
  75% { border-radius: 40% 50% 60% 40% / 60% 50% 40% 50%; }
}

@keyframes spinGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

@keyframes borderRotate {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

@keyframes pillarUp {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,92,252,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(124,92,252,0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes imageReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}

/* =============================================
   CUSTOM PROPERTIES
   ============================================= */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #7C5CFC;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(124,92,252,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease-out;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(124,92,252,0.8);
  background: rgba(124,92,252,0.05);
}

/* =============================================
   TEXT ANIMATIONS
   ============================================= */

.split-line {
  overflow: hidden;
}

.split-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =============================================
   HERO ANIMATIONS
   ============================================= */

.blob-1 { animation: blobFloat 9s ease-in-out infinite; }
.blob-2 { animation: blobFloat 12s ease-in-out infinite reverse; }
.blob-3 { animation: blobFloat 7s ease-in-out infinite 2s; }

.spin-ring {
  animation: spinGlow 20s linear infinite;
}

.morph-shape {
  animation: morphShape 8s ease-in-out infinite;
}

.marquee-track {
  animation: marquee 28s linear infinite;
}

.float-1 { animation: floatY 4s ease-in-out infinite; }
.float-2 { animation: floatY 5.5s ease-in-out infinite 1.2s; }
.float-3 { animation: floatY 3.8s ease-in-out infinite 0.6s; }

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

/* =============================================
   GLASS CARD
   ============================================= */

.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
}

/* =============================================
   BUSINESS CARDS
   ============================================= */

.biz-card {
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.biz-card:hover .biz-icon-wrap {
  transform: scale(1) rotate(-5deg);
}

.biz-card:hover .biz-num {
  color: rgba(124,92,252,0.15);
}

.biz-icon-wrap {
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-num {
  transition: color 0.45s ease;
}

/* =============================================
   SERVICE / ADVANTAGE CARDS
   ============================================= */

.svc-card {
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(124,92,252,0.12);
}

.svc-card:hover .svc-icon {
  transform: rotate(-8deg) scale(1.1);
}

.svc-icon {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   CTA BUTTON
   ============================================= */

.btn-cta {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-cta:hover::before { opacity: 1; }

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,92,252,0.35);
}

.btn-cta:active { transform: scale(0.97); }

/* =============================================
   RIPPLE EFFECT
   ============================================= */

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C5CFC, #FF6B6B, #00C9A7);
  z-index: 9997;
  width: 0%;
  transition: width 0.05s linear;
}

/* =============================================
   SECTION REVEAL (Scroll animations)
   ============================================= */

.section-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal-delay-1 { transition-delay: 0.1s; }
.section-reveal-delay-2 { transition-delay: 0.2s; }
.section-reveal-delay-3 { transition-delay: 0.3s; }
.section-reveal-delay-4 { transition-delay: 0.4s; }
.section-reveal-delay-5 { transition-delay: 0.5s; }
.section-reveal-delay-6 { transition-delay: 0.6s; }

/* =============================================
   ANIMATED GRADIENT BORDER
   ============================================= */

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), #7C5CFC, #FF6B6B, #00C9A7, #FF9F43, #7C5CFC);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before { opacity: 1; }

/* =============================================
   PILLAR ANIMATION
   ============================================= */

.pillar-animate {
  transform: scaleY(0);
  transform-origin: bottom;
}

.pillar-animate.animate {
  animation: pillarUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =============================================
   NAV SCROLL EFFECT
   ============================================= */

.nav-scrolled-bright {
  background: rgba(247,248,252,0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-scrolled-bright .nav-link { color: #1A1A2E !important; }
.nav-scrolled-bright .nav-logo { color: #7C5CFC !important; }

/* =============================================
   MOBILE MENU
   ============================================= */

.mobile-menu-bright {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-bright.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.mobile-menu-bright.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =============================================
   FORM INPUTS
   ============================================= */

.form-input-bright {
  transition: all 0.25s ease;
  outline: none;
}

.form-input-bright:focus {
  border-color: #7C5CFC !important;
  box-shadow: 0 0 0 3px rgba(124,92,252,0.1);
}

/* =============================================
   STAGGER LIST ANIMATION
   ============================================= */

.stagger-item {
  opacity: 0;
}

.stagger-item.animate {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =============================================
   IMAGE REVEAL
   ============================================= */

.img-reveal {
  animation: imageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =============================================
   HORIZONTAL DIVIDER
   ============================================= */

.split-line-h {
  background: linear-gradient(90deg, transparent, #7C5CFC, #FF6B6B, transparent);
  height: 1px;
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #F7F8FC; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#7C5CFC, #FF6B6B);
  border-radius: 3px;
}

/* =============================================
   MAGNETIC BUTTON
   ============================================= */

.magnetic {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   ACCESSIBILITY — Reduced Motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2, .blob-3,
  .morph-shape, .spin-ring,
  .float-1, .float-2, .float-3,
  .btn-cta, .biz-card, .svc-card,
  .svc-icon, .biz-icon-wrap,
  .stagger-item, .pillar-animate,
  .section-reveal, .split-line span,
  .pulse-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track { animation: none !important; }
}
