/* ============================
   潺澜集芯 - 入场动画样式
   中华山水意境风格
   ============================ */

/* ========== 音频播放按钮 ========== */
.audio-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.5);
    animation: audioFadeIn 1s 2.5s forwards;
}

@keyframes audioFadeIn {
    to { opacity: 1; transform: scale(1); }
}

.audio-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.audio-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    transition: all 0.3s;
}

.audio-btn.playing {
    background: rgba(201,169,110,0.25);
    border-color: rgba(201,169,110,0.5);
}

.audio-btn.playing svg { 
    animation: audioPulse 1.5s ease-in-out infinite; 
}

@keyframes audioPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.audio-btn.muted svg { 
    fill: rgba(255,255,255,0.35); 
}

.audio-btn.muted:hover svg {
    fill: rgba(255,255,255,0.6);
}

/* ========== 视频Hero（首页） ========== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 山水意境渐变遮罩 */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10,22,40,0.3) 0%,
        rgba(10,22,40,0.5) 40%,
        rgba(10,22,40,0.75) 100%
    );
    z-index: 1;
}

/* 山雾粒子效果 */
.hero-mist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-mist::before,
.hero-mist::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: mistFloat 25s ease-in-out infinite alternate;
}

.hero-mist::before {
    top: 30%;
    left: -50%;
    opacity: 0.6;
    animation-delay: 0s;
}

.hero-mist::after {
    top: 50%;
    left: -30%;
    opacity: 0.4;
    animation-delay: -12s;
    animation-duration: 30s;
}

@keyframes mistFloat {
    0% { transform: translateX(0) translateY(0); opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { transform: translateX(25%) translateY(-20px); opacity: 0.4; }
}

/* Hero内容区 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
}

/* Logo动画 */
.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    opacity: 0;
    transform: scale(0.8);
    animation: logoReveal 1.5s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 4px 30px rgba(201,169,110,0.3));
}

@keyframes logoReveal {
    to { opacity: 1; transform: scale(1); }
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.03); filter: brightness(1.1); }
}

/* 口号动画 - 中华诗意风格 */
.hero-slogan {
    color: #fff;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: sloganReveal 1.2s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sloganReveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-slogan .slogan-main {
    display: block;
    margin-bottom: 16px;
}

.hero-slogan .slogan-sub {
    display: block;
    font-size: 0.75em;
    color: rgba(201,169,110,0.9);
    letter-spacing: 0.8em;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: sloganSubReveal 1s 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sloganSubReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: scrollFadeIn 1s 2.5s forwards;
}

@keyframes scrollFadeIn {
    to { opacity: 1; }
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ========== 关于我们Hero背景 ========== */
.about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.05);
    animation: aboutBgSlowZoom 30s ease-in-out infinite alternate;
}

@keyframes aboutBgSlowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10,22,40,0.5) 0%,
        rgba(10,22,40,0.65) 50%,
        rgba(10,22,40,0.8) 100%
    );
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 24px 80px;
}

.about-hero-content h1 {
    color: #fff;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.about-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    letter-spacing: 0.15em;
}

/* ========== 滚动淡入动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 交错延迟 */
.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; }

/* ========== 卡片悬停效果增强 ========== */
.card, .product-card, .app-item, .advantage-item {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.card:hover, .product-card:hover, .app-item:hover, .advantage-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* ========== 数字递增动画 ========== */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ========== 导航栏滚动变化 ========== */
.navbar {
    transition: background 0.5s ease, 
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ========== 页面过渡 ========== */
.page {
    opacity: 0;
    animation: pageReveal 0.8s 0.3s forwards;
}

@keyframes pageReveal {
    to { opacity: 1; }
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .audio-btn {
        width: 40px;
        height: 40px;
        top: 70px;
        right: 16px;
    }
    
    .hero-logo {
        width: 90px;
        height: 90px;
    }
    
    .hero-slogan {
        letter-spacing: 0.2em;
    }
    
    .about-hero {
        min-height: 50vh;
    }
}
/* ========== 产品中心 Hero（视频背景） ========== */
.products-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.products-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10,22,40,0.5) 0%,
        rgba(10,22,40,0.65) 50%,
        rgba(10,22,40,0.8) 100%
    );
    z-index: 1;
}

.products-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 24px 80px;
}

.products-hero-content h1 {
    color: #fff;
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.products-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    letter-spacing: 0.15em;
}

@media (max-width: 768px) {
    .products-hero {
        min-height: 50vh;
    }
}