/* ============================================
   舒心安官网 - 公共样式文件
   ============================================ */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 基础字体 */
body {
    font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

/* ============================================
   导航栏样式
   ============================================ */
.nav-glass {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   按钮样式
   ============================================ */
.btn-primary {
    background: linear-gradient(to right, #52C41A, #389E0D);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(82, 196, 26, 0.4);
    transform: scale(1.05) translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: white;
    color: #389E0D;
}

/* ============================================
   文字渐变效果
   ============================================ */
.gradient-text {
    background: linear-gradient(to right, #52C41A, #389E0D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   卡片样式
   ============================================ */
.card-hover {
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(82, 196, 26, 0.15);
}

.card-3d {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateY(-12px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 24px 64px rgba(82, 196, 26, 0.25);
}

/* ============================================
   标题装饰线
   ============================================ */
.title-decoration::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #52C41A, #73D13D);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ============================================
   滚动动画系统
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* 交错动画延迟 */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   动画关键帧
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(82, 196, 26, 0.1); }
}

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

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

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   动画类
   ============================================ */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.shimmer-text {
    background: linear-gradient(90deg, #52C41A 0%, #73D13D 25%, #52C41A 50%, #389E0D 75%, #52C41A 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

.rotate-decoration {
    animation: rotate-slow 20s linear infinite;
}

/* ============================================
   卡片光晕效果
   ============================================ */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #52C41A, #73D13D, #389E0D, #52C41A);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.card-glow:hover::before {
    opacity: 1;
}

/* ============================================
   粒子效果
   ============================================ */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(82, 196, 26, 0.3);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   图片悬浮缩放
   ============================================ */
.image-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.image-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   光晕效果
   ============================================ */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #52C41A, #73D13D, #64B8E8, #52C41A);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    animation: gradient-shift 4s ease infinite;
}

.glow-effect:hover::before {
    opacity: 1;
}

/* ============================================
   流光效果
   ============================================ */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

/* ============================================
   图片装饰框
   ============================================ */
.image-frame {
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(82, 196, 26, 0.3);
    border-radius: 1rem;
    z-index: -1;
    transition: all 0.5s;
}

.image-frame:hover::before {
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border-color: rgba(82, 196, 26, 0.6);
}

/* ============================================
   滚动进度条
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #52C41A, #73D13D);
    z-index: 9999;
    transition: width 0.1s;
}

/* ============================================
   背景装饰圆
   ============================================ */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

/* ============================================
   区块标题装饰线
   ============================================ */
.section-title-decoration::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #52C41A, #73D13D);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ============================================
   图标容器渐变
   ============================================ */
.icon-gradient {
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.15), rgba(115, 209, 61, 0.08));
}

/* ============================================
   功能图标样式（替代Font Awesome）
   ============================================ */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

/* 常用图标CSS实现 */
.icon-home::before { content: "🏠"; }
.icon-mobile::before { content: "📱"; }
.icon-robot::before { content: "🤖"; }
.icon-check::before { content: "✓"; font-weight: bold; }
.icon-arrow-right::before { content: "→"; }
.icon-times::before { content: "✕"; }
.icon-qrcode::before { content: "⊞"; font-size: 1.2em; }
.icon-bars::before { content: "☰"; }
.icon-heart::before { content: "♥"; }
.icon-star::before { content: "★"; }
.icon-map-marker::before { content: "📍"; }
.icon-cogs::before { content: "⚙"; }
.icon-briefcase::before { content: "💼"; }
.icon-chain::before { content: "🔗"; }
.icon-volume-up::before { content: "🔊"; }
.icon-link::before { content: "🔗"; }
.icon-wheelchair::before { content: "♿"; }
.icon-heartbeat::before { content: "💓"; }
.icon-users::before { content: "👥"; }
.icon-chevron-left::before { content: "‹"; font-size: 1.5em; font-weight: bold; }
.icon-chevron-right::before { content: "›"; font-size: 1.5em; font-weight: bold; }
.icon-apple::before { content: ""; }
.icon-android::before { content: ""; }
.icon-weixin::before { content: "💬"; }
.icon-lightbulb-o::before { content: "💡"; }
.icon-user-o::before { content: "👤"; }
.icon-medkit::before { content: "🏥"; }
.icon-random::before { content: "⇄"; }
.icon-recycle::before { content: "♻"; }
.icon-microchip::before { content: "🔧"; }
.icon-arrow-down::before { content: "↓"; }
.icon-cubes::before { content: "📦"; }

/* ============================================
   WOW动画基础样式
   ============================================ */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
.fadeInLeft { animation: fadeInLeft 0.8s ease-out forwards; }
.fadeInRight { animation: fadeInRight 0.8s ease-out forwards; }
.fadeInDown { animation: fadeInDown 0.8s ease-out forwards; }

/* ============================================
   Banner遮罩样式
   ============================================ */
.banner-overlay {
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.55) 0%, 
        rgba(0, 0, 0, 0.25) 40%, 
        rgba(0, 0, 0, 0.05) 70%, 
        transparent 100%);
}

.banner-overlay-bottom {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.3) 0%, 
        transparent 40%);
}

.hero-overlay {
    background: linear-gradient(to bottom right,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.3),
        transparent);
}

/* ============================================
   卡片悬浮增强
   ============================================ */
.elevate {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elevate:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(82, 196, 26, 0.18);
}

/* ============================================
   场景卡片
   ============================================ */
.scene-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.5s ease;
}

.scene-card:hover {
    box-shadow: 0 16px 48px rgba(82, 196, 26, 0.15);
}

/* ============================================
   功能图标容器
   ============================================ */
.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.1), rgba(82, 196, 26, 0.05));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52C41A;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
}

/* ============================================
   Tab导航样式
   ============================================ */
.tab-active {
    color: #52C41A;
    font-weight: 600;
    border-bottom: 2px solid #52C41A;
    position: relative;
}

.tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #52C41A;
    border-radius: 50%;
}

/* ============================================
   设备卡片
   ============================================ */
.device-card {
    transition: all 0.5s ease;
}

.device-card.animated {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   Swiper自定义样式
   ============================================ */
.banner-swiper .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    width: 48px;
    background: #fff;
}

.banner-swiper .swiper-pagination {
    bottom: 40px !important;
}

.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after {
    content: '' !important;
}

.banner-swiper .swiper-button-prev i,
.banner-swiper .swiper-button-next i {
    font-size: 18px;
    line-height: 1;
}

/* 轮播内容动画 */
.swiper-slide .swiper-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .swiper-content {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide .swiper-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .swiper-content > *:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.swiper-slide-active .swiper-content > *:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.swiper-slide-active .swiper-content > *:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
