/* ================================================
   khot.cn - enhanced animations & interactions v1.0
   ================================================ */

.hero-tech-bg {
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 0;
}
.hero-tech-bg .particle {
    position: absolute; width: 4px; height: 4px;
    background: radial-gradient(circle, rgba(37,99,235,0.6) 0%, transparent 70%);
    border-radius: 50%; animation: float-particle linear infinite; opacity: 0;
}
@keyframes float-particle {
    0% { transform: translateY(100%) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.hover-glow { position: relative; overflow: hidden; }
.hover-glow::before {
    content: ""; position: absolute;
    top: var(--mouse-y, 50%); left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none; border-radius: 50%;
}
.hover-glow:hover::before { opacity: 1; }

.animated-border { position: relative; isolation: isolate; }
.animated-border::before {
    content: ""; position: absolute; inset: -2px; border-radius: inherit;
    background: conic-gradient(from 0deg, #2563EB, #7c3aed, #2563EB, #06b6d4, #2563EB);
    z-index: -1; animation: border-spin 4s linear infinite; opacity: 0.4;
}
.animated-border::after {
    content: ""; position: absolute; inset: 1px;
    border-radius: calc(0.75rem - 1px); background: inherit; z-index: -1;
}
@keyframes border-spin { to { transform: rotate(360deg); } }

.typing-cursor::after {
    content: "|"; animation: blink-cursor 1s step-end infinite;
    color: #2563EB; font-weight: 300; margin-left: 2px;
}
@keyframes blink-cursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.scroll-indicator {
    position: fixed; top: 0; left: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, #2563EB, #7c3aed);
    z-index: 99999; transition: width 0.1s linear;
}

.page-enter { animation: pageEnter 0.5s ease-out; }
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-enhanced { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card-enhanced:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 40px rgba(37,99,235,0.12);
}

.social-float {
    position: fixed; right: 20px; bottom: 170px;
    z-index: 99; display: flex; flex-direction: column; gap: 8px;
}
.social-float-btn {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid #e8e8e8; background: #fff; color: #475569;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-size: 18px; position: relative;
}
.social-float-btn:hover { transform: translateX(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.social-float-btn .s-tooltip {
    position: absolute; right: 52px; top: 50%;
    transform: translateY(-50%); background: #0f172a; color: #fff;
    padding: 4px 10px; border-radius: 6px; font-size: 12px;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s;
}
.social-float-btn:hover .s-tooltip { opacity: 1; right: 56px; }
.social-float-btn.phone-float { color: #22c55e; }
.social-float-btn.phone-float:hover { background: #22c55e; color: #fff; border-color: #22c55e; }
.social-float-btn.wechat-float { color: #07c160; }
.social-float-btn.wechat-float:hover { background: #07c160; color: #fff; border-color: #07c160; }
@media (max-width: 768px) { .social-float { display: none; } }

.strength-item.revealed .strength-number .count-up {
    animation: countPop 0.3s ease-out;
}
@keyframes countPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.reveal-enhanced {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-enhanced.revealed { opacity: 1; transform: translateY(0); }

.float-consult-btn.pulse-ring {
    animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.toast-container {
    position: fixed; top: 80px; right: 20px; z-index: 100000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 20px; background: #0f172a; color: #fff;
    border-radius: 10px; font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 8px; min-width: 200px;
}
.toast.show { transform: translateX(0); }
.toast-success { border-left: 3px solid #22c55e; }
.toast-info { border-left: 3px solid #2563EB; }

/* ═══════════════════════════════════════════
   v2.0 - New Animations: Glassmorphism, Shimmer, Glitch, 3D Tilt, Gradient Text
   ═══════════════════════════════════════════ */

/* ── Glassmorphism Card ── */
.glass-card {
    background: rgba(22,27,34,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
    background: rgba(22,27,34,0.75);
    border-color: rgba(88,166,255,0.25);
    box-shadow: 0 12px 48px rgba(88,166,255,0.1), 0 0 0 1px rgba(88,166,255,0.08);
    transform: translateY(-4px);
}

/* ── Shimmer Loading Skeleton ── */
.shimmer {
    position: relative;
    overflow: hidden;
    background: #1C2333;
    border-radius: 8px;
}
.shimmer::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(88,166,255,0.08) 50%,
        transparent 100%
    );
    animation: shimmer-slide 1.8s ease-in-out infinite;
    transform: translateX(-100%);
}
@keyframes shimmer-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Animated Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, #58A6FF 0%, #79C0FF 30%, #D2A8FF 60%, #F0883E 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Subtle Glitch Text (for headings) ── */
.glitch-text {
    position: relative;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    pointer-events: none;
}
.glitch-text::before {
    color: #58A6FF;
    animation: glitch-offset 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch-text::after {
    color: #F0883E;
    animation: glitch-offset 2.8s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes glitch-offset {
    0%   { transform: translate(0); }
    20%  { transform: translate(-1px, 1px); }
    40%  { transform: translate(1px, -1px); }
    60%  { transform: translate(-1px, 0); }
    80%  { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

/* ── 3D Tilt Perspective on Hover ── */
.tilt-3d {
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    transform-style: preserve-3d;
    perspective: 800px;
}
.tilt-3d:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(4deg) scale(1.02);
}

/* ── Smooth Fade-Up Stagger (for lists) ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.revealed { opacity: 1; transform: translateY(0); }
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }

/* ── Scale-in Entrance ── */
.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.scale-in.revealed { opacity: 1; transform: scale(1); }

/* ── Slide-in from Left/Right ── */
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
}
.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
}
.slide-in-left.revealed,
.slide-in-right.revealed { opacity: 1; transform: translateX(0); }

/* ── Floating / Levitating Animation ── */
.float-levitate {
    animation: levitate 3s ease-in-out infinite;
}
@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Pulse-Glow (CTA button emphasis) ── */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(88,166,255,0.4); }
    50%      { box-shadow: 0 0 20px 4px rgba(88,166,255,0.15); }
}

/* ── Rotating Gear / Spinner Icon ── */
.spin-slow {
    animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Bounce-in (notification / badge) ── */
.bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Ripple click effect on buttons ── */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    width: 100px; height: 100px;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.ripple:active::after {
    animation: ripple-expand 0.6s ease-out;
}
@keyframes ripple-expand {
    0%   { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

/* ── Neon Border Glow ── */
.neon-border {
    position: relative;
    isolation: isolate;
    border: 1px solid transparent;
    border-radius: 10px;
}
.neon-border::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        #58A6FF, #7c3aed, #06b6d4, #58A6FF
    );
    background-size: 300% 300%;
    z-index: -1;
    animation: neon-shift 3s ease-in-out infinite;
    opacity: 0.3;
    transition: opacity 0.3s;
}
.neon-border:hover::before { opacity: 0.8; }
@keyframes neon-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Dark-mode specific social-float overrides ── */
.theme-dark .social-float-btn {
    background: #161B22;
    border-color: rgba(255,255,255,0.08);
    color: #8B949E;
}
.theme-dark .social-float-btn:hover {
    background: #1C2333;
    border-color: rgba(88,166,255,0.3);
    color: #58A6FF;
}

/* ── Section reveal with clip-path ── */
.reveal-clip {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal-clip.revealed {
    clip-path: inset(0 0 0 0);
}

/* ── Smooth dark-mode body transition ── */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.4s ease,
                color 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;
}

/* ── Image zoom overlay ── */
.img-zoom-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}
.img-zoom-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.img-zoom-overlay img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.img-zoom-overlay.active img {
    transform: scale(1);
}

/* ═══════════════════════════════════════════
   v3.0 - New: Lazy Load Blur-Up, Wave BG, Image Reveal, Dark Toggle
   ═══════════════════════════════════════════ */

/* ── Image Lazy Load Blur-Up ── */
.img-blur {
    filter: blur(20px);
    transition: filter 0.4s ease-out;
    transform: scale(1.05);
}
.img-blur.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* ── Image Reveal on Scroll ── */
.img-reveal {
    position: relative;
    overflow: hidden;
}
.img-reveal img {
    opacity: 0;
    transform: scale(1.1) translateY(20px);
    transition: all 0.8s cubic-bezier(0.22,1,0.36,1);
}
.img-reveal.revealed img {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── Wave Background Animation ── */
.wave-bg {
    position: relative;
    overflow: hidden;
}
.wave-bg::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0; left: -50%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(37,99,235,0.03) 25%,
        rgba(37,99,235,0.06) 50%,
        rgba(37,99,235,0.03) 75%,
        transparent 100%
    );
    animation: wave-slide 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes wave-slide {
    0%   { transform: translateX(0) skewX(-5deg); }
    50%  { transform: translateX(25%) skewX(5deg); }
    100% { transform: translateX(0) skewX(-5deg); }
}

/* ── Animated Gradient Border Card ── */
.gradient-border-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    isolation: isolate;
}
.gradient-border-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #2563EB, #7c3aed, #ec4899, #2563EB, #06b6d4
    );
    background-size: 300% 300%;
    z-index: -1;
    animation: gradientMove 4s ease-in-out infinite;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.gradient-border-card:hover::before {
    opacity: 0.8;
}
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Stat Counter Pop Animation ── */
.stat-number {
    display: inline-block;
    transition: all 0.3s;
}
.stat-number.counting {
    animation: countPop 0.4s ease-out;
}

/* ── Live Indicator Dot ── */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Reveal Stagger for Grid Items ── */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Split Text Reveal ── */
.split-reveal {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}
.split-reveal > span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.split-reveal.revealed > span {
    transform: translateY(0);
}

/* ── Dark Mode Toggle Button ── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    margin-left: 8px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: #eff6ff;
    transform: rotate(15deg);
}
.theme-dark .theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #fbbf24;
}
.theme-dark .theme-toggle:hover {
    background: #334155;
    border-color: #fbbf24;
    color: #fbbf24;
}

/* ── Dark Mode Base Styles ── */
.theme-dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}
.theme-dark body {
    background: var(--bg-primary);
    color: var(--text-primary);
}
.theme-dark .site-header {
    background: rgba(15,23,42,0.9);
    border-bottom-color: #1e293b;
}
.theme-dark .site-header--scrolled {
    background: rgba(15,23,42,0.97);
}
.theme-dark .nav-link {
    color: #cbd5e1;
}
.theme-dark .nav-link:hover,
.theme-dark .nav-link.active {
    color: #60a5fa;
}
.theme-dark .gradient-border-card {
    background: #1e293b;
}
.theme-dark .logo-text strong {
    color: #ffffff;
}
.theme-dark .logo-text small {
    color: #94a3b8;
}
.theme-dark .mobile-logo-text {
    color: #ffffff;
}

/* ── Shimmer Loading for Content ── */
.skeleton {
    background: linear-gradient(
        90deg,
        #f1f5f9 25%,
        #e2e8f0 37%,
        #f1f5f9 63%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
}
.theme-dark .skeleton {
    background: linear-gradient(
        90deg,
        #1e293b 25%,
        #334155 37%,
        #1e293b 63%
    );
    background-size: 200% 100%;
}
@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Mouse Scroll Indicator ── */
.scroll-mouse {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid #94a3b8;
    border-radius: 12px;
    position: relative;
}
.scroll-mouse .mouse::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #2563EB;
    border-radius: 3px;
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ── Floating Tech Particles ── */
.tech-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
}
.tech-particle.circle {
    border: 1px solid #2563EB;
    background: transparent;
}
.tech-particle.dot {
    background: #2563EB;
    box-shadow: 0 0 6px rgba(37,99,235,0.3);
}
.tech-particle.triangle {
    width: 0; height: 0;
    background: transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid rgba(37,99,235,0.15);
    border-radius: 0;
}

/* ═══════════════════════════════════════════
   v3.5 — 新增动效 (科鸿特持续优化)
   ═══════════════════════════════════════════ */

/* ── 1. 渐变闪烁文字 ── */
.gradient-shimmer {
    background: linear-gradient(90deg, #2563EB, #7c3aed, #06b6d4, #2563EB);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 4s ease-in-out infinite;
}
@keyframes shimmer-text {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── 2. 浮动发光装饰球 ── */
.float-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.2), rgba(124,58,237,0.05) 70%);
    filter: blur(40px);
    animation: orb-float 8s ease-in-out infinite;
}
.float-orb:nth-child(2) {
    animation-delay: -3s;
    background: radial-gradient(circle at 70% 30%, rgba(6,182,212,0.15), rgba(37,99,235,0.05) 70%);
    width: 300px; height: 300px;
}
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-10px, -40px) scale(0.95); }
    75% { transform: translate(-30px, 10px) scale(1.02); }
}

/* ── 3. AI 智能助手浮动按钮 ── */
.ai-assistant-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #7c3aed);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}
.ai-assistant-btn.visible {
    opacity: 1;
    transform: scale(1);
}
.ai-assistant-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 28px rgba(37,99,235,0.55);
}
.ai-assistant-btn .pulse-ring-ai {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.35);
    animation: pulse-ring-ai 2s ease-out infinite;
}
@keyframes pulse-ring-ai {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── 4. AI 对话面板 ── */
.ai-chat-panel {
    position: fixed;
    bottom: 170px;
    right: 24px;
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: panel-in 0.35s ease-out;
}
.ai-chat-panel.open { display: flex; }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563EB, #7c3aed);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.ai-chat-close {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ai-chat-close:hover { background: rgba(255,255,255,0.35); }
.ai-chat-body {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #334155;
    min-height: 180px;
}
.ai-chat-msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-break: break-word;
}
.ai-chat-msg.bot {
    background: #f1f5f9;
    border-bottom-left-radius: 4px;
}
.ai-chat-msg.user {
    background: #2563EB;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.ai-chat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
}
.ai-chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}
.ai-chat-input:focus { border-color: #2563EB; }
.ai-chat-send {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #2563EB;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.ai-chat-send:hover { background: #1d4ed8; }

/* ── 5. 页面过渡遮罩 ── */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.page-transition-overlay.active { opacity: 1; }
.theme-dark .page-transition-overlay {
    background: #0f172a;
}

/* ── 6. 表格交替行颜色 ── */
.table-striped tbody tr:nth-child(odd) {
    background: rgba(37,99,235,0.03);
}
.table-striped tbody tr:hover {
    background: rgba(37,99,235,0.06);
}

/* ── 7. 选中文本高亮 ── */
::selection {
    background: rgba(37,99,235,0.2);
    color: inherit;
}
.theme-dark ::selection {
    background: rgba(96,165,250,0.3);
}

/* ── 8. 骨架屏增强 ── */
.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 100%;
}
.skeleton-text:last-child { width: 60%; }
.skeleton-title {
    height: 22px;
    width: 70%;
    margin-bottom: 16px;
}
.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 16px;
}

/* ── 9. 科技感点阵背景 ── */
.tech-dots-bg {
    background-image: radial-gradient(rgba(37,99,235,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* prefers-reduced-motion — 低动效模式 */
@media (prefers-reduced-motion: reduce) {
    .gradient-shimmer,
    .float-orb,
    .pulse-ring-ai,
    .ai-chat-panel { animation: none !important; }
    .ai-chat-panel.open { display: flex; }
    .skeleton,
    .skeleton-text,
    .skeleton-title,
    .skeleton-image { animation: none !important; }
}

/* ═══════════════════════════════════════════
   v4.0 - 全站增强交互效果
   ═══════════════════════════════════════════ */

/* ── Particle Container ── */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ── 导航栏滚动后效果 ── */
.site-header.scrolled {
    background: rgba(6, 6, 26, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

/* ── Page Enter Animation ── */
.page-enter {
    animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Reveal class (通用) ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Staggered reveal delays ── */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── 产品卡片光晕边框 ── */
.product-card {
    position: relative;
    isolation: isolate;
}
.product-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0),
        rgba(6, 182, 212, 0),
        rgba(124, 58, 237, 0));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.3),
        rgba(6, 182, 212, 0.2),
        rgba(236, 72, 153, 0.15));
}

/* ── 分类筛选按钮激活态 ── */
.filter-btn.active,
.category-filter button.active {
    background: var(--ai-purple, #7C3AED) !important;
    color: #fff !important;
    border-color: var(--ai-purple, #7C3AED) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ── Counter animation helpers ── */
.counter-number,
.count-up {
    font-variant-numeric: tabular-nums;
}

/* ── 页面加载骨架动画 ── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, 
        rgba(124,58,237,0.04) 25%, 
        rgba(124,58,237,0.1) 50%, 
        rgba(124,58,237,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}
.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    width: 60%;
}
.skeleton-image {
    aspect-ratio: 16/9;
    width: 100%;
    margin-bottom: 16px;
}

/* ── Back to top button smooth ── */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Hover lift effect for cards ── */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

/* ── Pulse glow for important CTAs ── */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(124, 58, 237, 0.15); }
}

/* ── Smooth appearance for lazy images ── */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ── Responsive fix for small screens ── */
@media (max-width: 768px) {
    .product-card::after { display: none; }
    .particle-container { opacity: 0.15; }
}

/* ================================================
   v4.0 Enhanced Interactions & Animations
   ================================================ */

/* ── Scroll Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── Product Image Zoom on Hover ── */
.product-card .product-card__img {
    overflow: hidden;
}
.product-card .product-card__img img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover .product-card__img img {
    transform: scale(1.08);
}

/* ── Gradient Text Animation ── */
.text-gradient-animate {
    background: linear-gradient(90deg, #2563EB, #7C3AED, #06B6D4, #2563EB);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Ripple Effect for Buttons ── */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Floating Elements ── */
.float-animate {
    animation: floatY 3s ease-in-out infinite;
}
.float-animate-delayed {
    animation: floatY 3s ease-in-out 1.5s infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Shimmer loading overlay ── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Card border glow on hover ── */
.card-glow {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15),
                0 8px 40px rgba(37, 99, 235, 0.1);
}

/* ── Staggered child animation ── */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}
.stagger-children.revealed > * {
    animation: staggerIn 0.5s ease-out forwards;
}
.stagger-children.revealed > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children.revealed > *:nth-child(8) { animation-delay: 0.4s; }
@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Smooth image gallery lightbox effect ── */
.img-lightbox {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.img-lightbox:hover {
    transform: scale(1.02);
}
.img-lightbox:active {
    transform: scale(0.98);
}

/* ── Animated underline for nav links ── */
.nav-underline {
    position: relative;
    text-decoration: none;
}
.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-underline:hover::after {
    width: 100%;
}

/* ── Counter up animation ── */
.counter-animate {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
.counter-animate.counting {
    animation: counterPop 0.3s ease-out;
}
@keyframes counterPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Notification toast ── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateX(120%);
    animation: toastIn 0.4s ease-out forwards;
    max-width: 360px;
}
.toast.toast-out {
    animation: toastOut 0.3s ease-in forwards;
}
.toast.toast-success { border-left: 4px solid #22c55e; }
.toast.toast-error { border-left: 4px solid #ef4444; }
.toast.toast-info { border-left: 4px solid #3b82f6; }
@keyframes toastIn {
    to { transform: translateX(0); }
}
@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ── 按钮点击微动效 ── */
.btn:active {
    transform: scale(0.96);
}

/* ── 价格标签脉冲 ── */
.price-pulse {
    animation: pricePulse 2s ease-in-out infinite;
}
@keyframes pricePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ── Skeleton card placeholder ── */
.skeleton-card {
    background: linear-gradient(90deg,
        rgba(124,58,237,0.04) 25%,
        rgba(124,58,237,0.1) 50%,
        rgba(124,58,237,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
    min-height: 320px;
}

/* ═══════════════════════════════════════════════════════════════
   v2.0 - 科鸿特 全新动效增强包
   ═══════════════════════════════════════════════════════════════ */

/* ── 打字机效果 ── */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    50% { border-color: transparent; }
}
.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary, #2563EB);
    animation: typing 2s steps(30, end), blink-caret 0.75s step-end infinite;
    max-width: fit-content;
}

/* ── 视口滚动入场动画 ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ── 3D 卡片悬停倾斜效果 ── */
.card-tilt-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}
.card-tilt-3d .card-tilt-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}
.card-tilt-3d:hover {
    z-index: 10;
}

/* ── 涟漪按钮 ── */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ── 浮动悬浮阴影 ── */
.float-shadow {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.float-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.15), 0 8px 20px rgba(0,0,0,0.08);
}

/* ── 渐变边框流光 ── */
.gradient-border-flow {
    position: relative;
    border: none !important;
}
.gradient-border-flow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #2563EB, #7C3AED, #EC4899, #2563EB);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 3s ease infinite;
}
@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── 渐变文本 ── */
.gradient-text {
    background: linear-gradient(135deg, #2563EB, #7C3AED, #EC4899);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ── 数字跳动计数器 ── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.count-animate {
    animation: countUp 0.5s ease forwards;
}

/* ── 霓虹光晕 ── */
.neon-glow {
    box-shadow: 0 0 5px rgba(37,99,235,0.2),
                0 0 10px rgba(37,99,235,0.15),
                0 0 15px rgba(37,99,235,0.1);
    transition: box-shadow 0.3s ease;
}
.neon-glow:hover {
    box-shadow: 0 0 10px rgba(37,99,235,0.3),
                0 0 20px rgba(37,99,235,0.2),
                0 0 30px rgba(37,99,235,0.15);
}

/* ── 脉冲光环（用于新品/热销标签）── */
.pulse-ring {
    position: relative;
}
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(37,99,235,0.4);
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ── 平滑页面滚动 ── */
html {
    scroll-behavior: smooth;
}

/* ── 加载骨架屏动画 ── */
@keyframes shimmerSlide {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmerSlide 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

/* ── 点亮计数器 ── */
@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: dotPulse 2s ease-in-out infinite;
}

/* ── 按钮微交互动画 ── */
.btn-bounce:active {
    transform: scale(0.96);
}
.btn-bounce {
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-bounce:hover {
    transform: scale(1.03);
}

/* ── 文字浮入 ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
.animate-fade-in-up-d1 { animation-delay: 0.1s; }
.animate-fade-in-up-d2 { animation-delay: 0.2s; }
.animate-fade-in-up-d3 { animation-delay: 0.3s; }
.animate-fade-in-up-d4 { animation-delay: 0.4s; }
.animate-fade-in-up-d5 { animation-delay: 0.5s; }

/* ── 旋转加载器 ── */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(37,99,235,0.2);
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
