/* ========================================
   ZenCode Index Page - Custom Styles
   Extracted from index.html for better maintainability
   ======================================== */

/* ========== Loading Screen Styles ========== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}
#loading-screen.hidden {
    display: none;
}
#loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
/* Mobile: Simple gradient background instead of Vanta.js */
@media (max-width: 767px) {
    #loading-bg {
        background: linear-gradient(135deg, #050505 0%, #0a1628 50%, #050505 100%);
    }
    #loading-bg::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(0, 194, 255, 0.15) 0%, transparent 70%);
        animation: pulse-glow 2s ease-in-out infinite;
    }
    #loading-bg::after {
        content: '';
        position: absolute;
        top: 20%;
        right: 10%;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(0, 194, 255, 0.1) 0%, transparent 70%);
        animation: pulse-glow 2.5s ease-in-out infinite 0.5s;
    }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
#loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    pointer-events: none;
}
#loading-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}
#loading-content p {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}
#loading-content .loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.9s;
}
#loading-content .loading-dots span {
    width: 8px;
    height: 8px;
    background: #00C2FF;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}
#loading-content .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
#loading-content .loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ========== 手机端侧边栏菜单 ========== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 320px;
    background: rgba(20, 20, 30, 0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    padding: 80px 24px 40px;
    overflow-y: auto;
}

/* ========== 动态响应式变量系统 ========== */
:root {
    /* 视口单位：移动端滚动时稳定（避免地址栏收起/出现导致跳动） */
    --vh: 1vh; /* fallback */
    /* 动态字体大小 - 基于视口高度 */
    --font-hero: clamp(1.5rem, calc(var(--vh) * 5), 4.5rem);
    --font-title: clamp(1.25rem, calc(var(--vh) * 4), 3.5rem);
    --font-subtitle: clamp(1rem, calc(var(--vh) * 3), 2.5rem);
    --font-body: clamp(0.75rem, calc(var(--vh) * 1.8), 1rem);
    --font-small: clamp(0.625rem, 1.5vh, 0.875rem);
    /* 动态间距 - 基于视口高度 */
    --space-xs: clamp(0.25rem, 1vh, 0.5rem);
    --space-sm: clamp(0.5rem, 1.5vh, 1rem);
    --space-md: clamp(0.75rem, 2vh, 1.5rem);
    --space-lg: clamp(1rem, 3vh, 2rem);
    --space-xl: clamp(1.5rem, 4vh, 3rem);
    --space-2xl: clamp(2rem, 5vh, 4rem);
    /* 动态 padding */
    --pad-section: clamp(3rem, 8vh, 6rem);
    --pad-content: clamp(1rem, 3vh, 1.5rem);
}
@supports (height: 1svh) {
    :root {
        --vh: 1svh;
    }
}

/* 关闭滚动锚点，避免图片/字体加载引起页面突然跳动 */
html { overflow-anchor: none; }

.carousel-section {
    min-height: calc(var(--vh, 1vh) * 100);
}

/* 轮播内容容器 - 动态适配 */
.slide-content-wrapper {
    padding-top: var(--pad-section);
    padding-bottom: var(--pad-section);
    gap: var(--space-lg);
}

/* 动态标题样式 */
.dynamic-hero-title {
    font-size: var(--font-hero) !important;
    line-height: 1.15 !important;
    margin-bottom: var(--space-md) !important;
}

.dynamic-title {
    font-size: var(--font-title) !important;
    line-height: 1.2 !important;
    margin-bottom: var(--space-md) !important;
}

.dynamic-subtitle {
    font-size: var(--font-subtitle) !important;
    line-height: 1.3 !important;
}

.dynamic-body {
    font-size: var(--font-body) !important;
    margin-bottom: var(--space-md) !important;
}

.dynamic-small {
    font-size: var(--font-small) !important;
}

/* 动态间距 */
.dynamic-gap-sm { gap: var(--space-sm) !important; }
.dynamic-gap-md { gap: var(--space-md) !important; }
.dynamic-gap-lg { gap: var(--space-lg) !important; }
.dynamic-mb-sm { margin-bottom: var(--space-sm) !important; }
.dynamic-mb-md { margin-bottom: var(--space-md) !important; }
.dynamic-mb-lg { margin-bottom: var(--space-lg) !important; }
.dynamic-mt-sm { margin-top: var(--space-sm) !important; }
.dynamic-mt-md { margin-top: var(--space-md) !important; }
.dynamic-mt-lg { margin-top: var(--space-lg) !important; }

/* 移动端特殊调整 */
@media (max-width: 767px) {
    /* Scroll Snap 锚点吸附 - 仅轮播区底部吸附 */
    html {
        scroll-snap-type: y proximity;
    }

    .carousel-section {
        scroll-snap-align: end;
    }

    :root {
        --font-hero: clamp(1.5rem, 6vw, 2.5rem);
        --font-title: clamp(1.25rem, 5vw, 2rem);
        --font-subtitle: clamp(1rem, 4vw, 1.5rem);
        --pad-section: clamp(2rem, 6vh, 4rem);
    }

    .slide-content-wrapper {
        padding-top: calc(var(--vh, 1vh) * 12);
        padding-bottom: calc(var(--vh, 1vh) * 6);
    }

    /* 移除所有负 margin */
    .slide-3-container,
    .slide-4-carousel-container,
    .slide-2-image-container {
        margin-top: 0 !important;
    }

    /* 减少 section 间距 */
    #target-audience {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* 超小屏幕（如 iPhone SE） */
@media (max-height: 667px) {
    :root {
        --font-hero: clamp(1.25rem, 5vw, 2rem);
        --font-title: clamp(1rem, 4vw, 1.75rem);
        --font-body: clamp(0.65rem, 1.6vh, 0.875rem);
        --space-lg: clamp(0.5rem, 2vh, 1rem);
        --space-xl: clamp(0.75rem, 2.5vh, 1.5rem);
        --pad-section: clamp(1.5rem, 5vh, 3rem);
    }
}

/* ========== Flip Nav Buttons ========== */
.flip-nav-btn {
    height: 52px;
    min-width: 100px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flip-nav-btn:hover {
    box-shadow: 0 0 30px currentColor;
    transform: translateY(-2px);
}

.flip-nav-btn::before,
.flip-nav-btn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.5s ease-in-out;
}

.flip-nav-btn::before {
    transform: translateY(0) scale(1);
}

.flip-nav-btn::after {
    transform: translateY(52px);
}

.flip-nav-btn:hover::before {
    transform: translateY(-42px) scale(0.8) rotate(10deg);
    opacity: 0;
}

.flip-nav-btn:hover::after {
    transform: translateY(0) scale(1.05);
}

/* 默认状态：所有按钮使用淡蓝色 */
.flip-nav-btn::before { background: rgba(0, 194, 255, 0.15); color: #00C2FF; }
.flip-nav-btn { color: #00C2FF; }

/* Green - 服务定价 (hover时变绿) */
.flip-green::after { background: #00FFA3; color: #000; }
.flip-green:hover { color: #00FFA3; }

/* Blue - 技术栈 / 首页 (hover时保持蓝) */
.flip-blue::after { background: #00C2FF; color: #000; }
.flip-blue:hover { color: #00C2FF; }

/* Purple - 成功案例 (hover时变紫) */
.flip-purple::after { background: #BD00FF; color: #fff; }
.flip-purple:hover { color: #BD00FF; }

/* Orange - 小程序演示 (hover时变橙) */
.flip-orange::after { background: #FF6B00; color: #fff; }
.flip-orange:hover { color: #FF6B00; }

/* Pink - 关于我们 (hover时变粉) */
.flip-pink::after { background: #FF0080; color: #fff; }
.flip-pink:hover { color: #FF0080; }

/* Dynamic Capsule Navigation Styles */
.capsule-nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.capsule-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.capsule-nav-link.capsule-active {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.15);
}

/* Capsule container spring animation */
.capsule-container {
    will-change: width;
}

/* Add subtle bounce effect on hover */
.group:hover .capsule-container {
    animation: capsule-expand 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes capsule-expand {
    0% { width: 120px; }
    60% { width: 700px; }
    80% { width: 670px; }
    100% { width: 680px; }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hide canvas particle effects on mobile (circle noise particles) */
@media (max-width: 767px) {
    #canvas1 {
        display: none !important;
    }

    /* Hide loading indicator for canvas */
    #loading {
        display: none !important;
    }

    /* Adjust hero section for mobile */
    .hero-content-mobile {
        padding-top: 100px;
    }

    /* Mobile button scaling */
    .flip-nav-btn {
        height: 44px;
        min-width: 80px;
        padding: 0 16px;
        font-size: 14px;
    }

    .flip-nav-btn::before,
    .flip-nav-btn::after {
        font-size: 14px;
    }

    .flip-nav-btn::after {
        transform: translateY(44px);
    }

    /* Larger touch targets for mobile */
    a, button {
        min-height: 44px;
    }
}

/* Tablet adjustments */
@media (max-width: 1023px) and (min-width: 768px) {
    .capsule-container {
        width: 100px;
    }
    .group:hover .capsule-container {
        animation: none;
        width: 640px;
    }
}

/* Alpine.js cloak fix */
[x-cloak] {
    display: none !important;
}

/* ============================================
   MOBILE SPECIFIC ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    /* 1. 轮播第二页：图片与文字间距调小 */
    .slide-2-image-container {
        height: 280px !important;
        margin-bottom: -20px;
    }

    /* 2. 轮播第二页：三个卡片改为横向滚动或调整布局 */
    .slide-2-features-grid {
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .slide-2-features-grid > div {
        padding: 10px !important;
    }

    .slide-2-features-grid > div p {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    /* 3. 轮播第三页：文字部分向上移动，与呼吸图片间距缩小 */
    /* 轮播第二页：图片与文字重叠 */
    .slide-2-image-container {
        margin-bottom: -30px !important;
    }

    /* 轮播第三页：图片与文字重叠 */
    .slide-3-container {
        gap: 0 !important;
    }

    .slide-3-content {
        margin-top: -40px !important;
        position: relative;
        z-index: 10;
    }

    .slide-3-image {
        height: calc(var(--vh, 1vh) * 55) !important;
    }

    .slide-3-image img {
        max-height: calc(var(--vh, 1vh) * 55) !important;
        transform: scale(1.25);
    }

    /* 4. 轮播第四页：标题一行显示 + 间距紧凑 */
    .slide-4-title {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs) !important;
    }

    .slide-4-title span {
        display: inline !important;
    }

    /* 问题1：第二页按钮文字居中 */
    .slide-2-cta a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    /* 问题2：第四页轮播与按钮距离优化 */
    .slide-4-cta-section {
        margin-top: var(--space-sm) !important;
        margin-bottom: 0.25rem !important;
    }

    .slide-4-carousel-container {
        margin-top: -2.5rem !important;
        height: calc(var(--vh, 1vh) * 35) !important;
        align-items: center !important;
    }

    /* 5. Footer视觉实验室间距调小 */
    .footer-lab-section h4 {
        margin-bottom: 4px !important;
    }

    .footer-lab-section ul {
        gap: 0 !important;
    }

    .footer-lab-section li {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .footer-lab-section li.text-xs {
        margin-top: 4px !important;
    }

    /* 进入特效展示厅按钮样式 */
    .gallery-btn {
        display: inline-flex !important;
        width: auto !important;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
        color: white !important;
        padding: 10px 20px !important;
        border-radius: 9999px !important;
        font-weight: 600 !important;
        justify-content: center !important;
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    }

    .gallery-btn-dot {
        display: none !important;
    }

    .gallery-btn svg {
        opacity: 1 !important;
        margin-left: 4px !important;
    }
}

/* ========== Footer 快速导航按钮 ========== */
/* PC端：斜切填充效果 */
.footer-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 5px;
    border: 1px solid currentColor;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    background: transparent;
    text-decoration: none;
    line-height: 1.2;
}

.footer-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    transform: translateX(-50%) skew(-15deg);
    transition: all 0.4s ease;
    z-index: -1;
}

.footer-nav-btn:hover::before {
    width: 130%;
}

.footer-nav-btn:hover span {
    color: white;
}

.footer-nav-btn span {
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* 成功案例 - 蓝色 */
.footer-nav-btn.btn-cases { color: #0369a1; }
.footer-nav-btn.btn-cases::before { background: linear-gradient(135deg, #0284c7, #0ea5e9); }

/* 小程序演示 - 绿色 */
.footer-nav-btn.btn-demo { color: #059669; }
.footer-nav-btn.btn-demo::before { background: linear-gradient(135deg, #059669, #10b981); }

/* 解决方案 - 紫色 */
.footer-nav-btn.btn-solutions { color: #7c3aed; }
.footer-nav-btn.btn-solutions::before { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

/* 服务定价 - 橙色 */
.footer-nav-btn.btn-pricing { color: #ea580c; }
.footer-nav-btn.btn-pricing::before { background: linear-gradient(135deg, #ea580c, #fb923c); }

/* 代码欣赏 - 灰色 */
.footer-nav-btn.btn-gallery { color: #475569; }
.footer-nav-btn.btn-gallery::before { background: linear-gradient(135deg, #475569, #94a3b8); }

/* 手机端：发光底边科技感按钮 */
@media (max-width: 767px) {
    .footer-nav-btn {
        padding: 6px 14px;
        border-radius: 6px;
        border: none;
        background: linear-gradient(145deg, #f8fafc, #e2e8f0);
        box-shadow:
            2px 2px 4px rgba(0,0,0,0.1),
            -1px -1px 3px rgba(255,255,255,0.8);
    }

    .footer-nav-btn::before {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        transform: none;
        border-radius: 0 0 6px 6px;
        opacity: 0.8;
    }

    .footer-nav-btn::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 6px;
        transform: translateX(-50%);
        border-radius: 50%;
        filter: blur(4px);
        transition: all 0.3s ease;
        z-index: -1;
    }

    .footer-nav-btn:active {
        transform: scale(0.96);
        box-shadow:
            1px 1px 2px rgba(0,0,0,0.1),
            -1px -1px 2px rgba(255,255,255,0.6);
    }

    .footer-nav-btn:active::after {
        width: 80%;
        opacity: 1;
    }

    .footer-nav-btn span {
        font-size: 11px;
        font-weight: 600;
    }

    .footer-nav-btn:active span {
        color: inherit;
    }

    /* 各按钮底边发光颜色 */
    .footer-nav-btn.btn-cases { color: #0369a1; }
    .footer-nav-btn.btn-cases::before { background: linear-gradient(90deg, transparent, #0ea5e9, transparent); }
    .footer-nav-btn.btn-cases::after { background: #0ea5e9; }

    .footer-nav-btn.btn-demo { color: #059669; }
    .footer-nav-btn.btn-demo::before { background: linear-gradient(90deg, transparent, #10b981, transparent); }
    .footer-nav-btn.btn-demo::after { background: #10b981; }

    .footer-nav-btn.btn-solutions { color: #7c3aed; }
    .footer-nav-btn.btn-solutions::before { background: linear-gradient(90deg, transparent, #a78bfa, transparent); }
    .footer-nav-btn.btn-solutions::after { background: #a78bfa; }

    .footer-nav-btn.btn-pricing { color: #ea580c; }
    .footer-nav-btn.btn-pricing::before { background: linear-gradient(90deg, transparent, #fb923c, transparent); }
    .footer-nav-btn.btn-pricing::after { background: #fb923c; }

    .footer-nav-btn.btn-gallery { color: #475569; }
    .footer-nav-btn.btn-gallery::before { background: linear-gradient(90deg, transparent, #94a3b8, transparent); }
    .footer-nav-btn.btn-gallery::after { background: #94a3b8; }
}

/* ========== Portfolio 背景光晕动画 ========== */
@keyframes float-blob-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(150px, -100px) scale(1.15); }
    66% { transform: translate(-100px, 80px) scale(0.9); }
}

@keyframes float-blob-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-120px, 150px) scale(0.85); }
    66% { transform: translate(100px, -80px) scale(1.1); }
}

@keyframes float-blob-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(calc(-50% + 80px), calc(-50% - 60px)) scale(1.2); }
}

@keyframes float-blob-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, -120px) scale(1.15); }
}

.portfolio-blob-1 {
    animation: float-blob-1 12s ease-in-out infinite;
}

.portfolio-blob-2 {
    animation: float-blob-2 15s ease-in-out infinite;
}

.portfolio-blob-3 {
    animation: float-blob-3 18s ease-in-out infinite;
}

.portfolio-blob-4 {
    animation: float-blob-4 10s ease-in-out infinite;
}

/* ========== Hero 渐变边框旋转按钮 ========== */
.hero-gradient-btn {
    position: relative;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-gradient-btn:hover {
    transform: scale(1.03);
}

.hero-gradient-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57,
        #ff9ff3,
        #ff6b6b
    );
    z-index: -2;
    filter: blur(8px);
    transform: rotate(0deg);
    transition: transform 1.5s ease-in-out;
}

.hero-gradient-btn:hover::before {
    transform: rotate(180deg);
}

.hero-gradient-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 48px;
    z-index: -1;
}

.hero-gradient-btn span {
    color: transparent;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #4ecdc4,
        #45b7d1,
        #96ceb4,
        #feca57,
        #ff9ff3,
        #ff6b6b
    );
    background-clip: text;
    -webkit-background-clip: text;
    filter: hue-rotate(0deg);
    transition: filter 0.3s ease;
}

.hero-gradient-btn:hover span {
    animation: hue-rotating 2s linear infinite;
}

.hero-gradient-btn:active {
    transform: scale(0.99);
}

@keyframes hue-rotating {
    to {
        filter: hue-rotate(360deg);
    }
}

/* 手机端适配 */
@media (max-width: 767px) {
    .hero-gradient-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ========== 即将上线APP展示区 ========== */

/* 展开按钮 */
.app-expand-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
}

.app-expand-btn-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.4s ease;
}

.app-expand-btn:hover .app-expand-btn-bg {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.app-expand-btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* 核心价值卡片 */
.dy-value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.dy-value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.dy-value-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* 功能模块卡片 */
.dy-module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dy-module-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dy-module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.dy-module-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dy-feature-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dy-feature-item p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.5;
}

.dy-feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

/* 使用场景卡片 */
.dy-scene-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.dy-scene-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dy-scene-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.dy-scene-card span {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.dy-scene-card p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

/* 图片画廊 */
.dy-gallery-item {
    position: relative;
    overflow: visible;
    border-radius: 12px;
    z-index: 1;
    transition: z-index 0s 0.3s;
}

.dy-gallery-item:hover {
    z-index: 10;
    transition: z-index 0s 0s;
}

.dy-gallery-item img {
    border-radius: 12px;
}

/* 图片网格容器需要给放大的图片留空间 */
.dy-gallery {
    overflow: visible;
}

.dy-gallery .grid {
    overflow: visible;
    padding: 20px;
    margin: -20px;
}

/* 信息卡片 */
.dy-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .app-expand-btn {
        padding: 14px 32px;
    }

    .app-expand-btn-text {
        font-size: 14px;
    }

    .dy-value-card {
        padding: 16px;
    }

    .dy-value-icon {
        font-size: 1.5rem;
    }

    .dy-module-header {
        padding: 12px 16px;
    }

    .dy-module-content {
        padding: 12px 16px;
    }

    .dy-scene-card {
        padding: 12px;
    }

    .dy-scene-icon {
        font-size: 1.25rem;
    }
}

/* ========== 信息架构流程图 ========== */
.dy-flowchart {
    position: relative;
}

.dy-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.dy-flow-node span {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.dy-flow-node p {
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
}

.dy-flow-root {
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
    padding: 16px 24px;
}

.dy-flow-root span {
    font-size: 1.5rem;
}

.dy-flow-root p {
    font-size: 14px;
}

.dy-flow-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dy-flow-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.dy-flow-highlight {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

.dy-flow-tertiary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dy-flow-tertiary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* 可点击的节点 */
.dy-flow-clickable {
    cursor: pointer;
    position: relative;
}

.dy-flow-clickable::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dy-flow-clickable:hover::after {
    border-color: rgba(249, 115, 22, 0.5);
}

.dy-flow-clickable:active {
    transform: scale(0.95);
}

.dy-flow-branches {
    width: 80%;
    max-width: 800px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.5) 10%, rgba(249, 115, 22, 0.5) 90%, transparent);
    position: relative;
}

/* ========== 功能矩阵表 ========== */
.dy-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    font-size: 12px;
}

.dy-matrix-header-cell {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(236, 72, 153, 0.3));
    color: white;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
    font-size: 11px;
}

.dy-matrix-row-header {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    border-radius: 6px 0 0 6px;
    font-size: 12px;
}

.dy-matrix-cell {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
}

.dy-matrix-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-weight: bold;
}

/* 手机端矩阵表适配 */
@media (max-width: 767px) {
    .dy-matrix-table {
        font-size: 10px;
    }

    .dy-matrix-header-cell {
        padding: 8px 4px;
        font-size: 9px;
    }

    .dy-matrix-row-header {
        padding: 8px 6px;
        font-size: 10px;
    }

    .dy-matrix-cell {
        padding: 8px 4px;
        font-size: 12px;
    }

    /* 手机端流程图分支线 */
    .dy-flow-branches {
        width: 95%;
    }

    .dy-flow-node {
        padding: 8px 4px;
    }

    .dy-flow-node span {
        font-size: 1rem;
    }

    .dy-flow-node p {
        font-size: 9px;
    }

    /* 手机端场景卡片更紧凑 */
    .dy-scene-card {
        padding: 10px 8px;
    }

    .dy-scene-icon {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .dy-scene-card span {
        font-size: 12px;
    }

    .dy-scene-card p {
        font-size: 10px;
    }

    /* 手机端核心价值卡片 */
    .dy-value-card {
        padding: 12px 8px;
    }

    .dy-value-icon {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .dy-value-card h4 {
        font-size: 13px;
    }

    .dy-value-card p {
        font-size: 10px;
        line-height: 1.4;
    }

    /* 手机端功能模块卡片 */
    .dy-module-header {
        padding: 10px 12px;
    }

    .dy-module-header span {
        font-size: 1.25rem;
    }

    .dy-module-header h3 {
        font-size: 14px;
    }

    .dy-module-content {
        padding: 10px 12px;
        gap: 8px;
    }

    .dy-feature-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .dy-feature-item p {
        font-size: 11px;
    }

    .dy-flow-root {
        padding: 12px 16px;
    }

    .dy-flow-root span {
        font-size: 1.25rem;
    }

    .dy-flow-root p {
        font-size: 12px;
    }
}

/* ========== Audience Section Background Effects ========== */

/* 背景光晕 - 静态，使用 will-change 优化 */
.audience-bg-blob-1,
.audience-bg-blob-2,
.audience-bg-blob-3 {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 桌面端：简化动画，只用 transform，去掉 scale 变化 */
@media (min-width: 768px) {
    .audience-bg-blob-1 {
        animation: audience-blob-float-1 20s ease-in-out infinite;
    }

    .audience-bg-blob-2 {
        animation: audience-blob-float-2 25s ease-in-out infinite;
    }

    /* 第三个光晕改为静态，减少一个动画 */
    .audience-bg-blob-3 {
        animation: none;
    }
}

/* 移动端禁用 */
@media (max-width: 767px) {
    .audience-bg-blob-1,
    .audience-bg-blob-2,
    .audience-bg-blob-3,
    .audience-stars {
        display: none;
    }
}

/* 简化的动画 - 只做位移，不做缩放 */
@keyframes audience-blob-float-1 {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(20px, -20px, 0);
    }
}

@keyframes audience-blob-float-2 {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-20px, 15px, 0);
    }
}

/* 星点背景 - 静态，不做动画 */

/* ========== Audience Cards Enhanced Effects ========== */

/* 卡片入场动画 */
.audience-card-wrapper {
    animation: audience-fade-in 0.6s ease-out backwards;
}

@keyframes audience-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 流星动画 */
.audience-meteor {
    animation: meteor-slide 3s linear infinite;
}

@keyframes meteor-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* 流光边框效果 - 各颜色 */
.audience-glow-border-pink {
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.3), transparent);
    background-size: 200% 100%;
    animation: glow-border-move 2s linear infinite;
}

.audience-glow-border-blue {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    background-size: 200% 100%;
    animation: glow-border-move 2s linear infinite;
}

.audience-glow-border-amber {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    background-size: 200% 100%;
    animation: glow-border-move 2s linear infinite;
}

.audience-glow-border-indigo {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    background-size: 200% 100%;
    animation: glow-border-move 2s linear infinite;
}

@keyframes glow-border-move {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 卡片内部光效 */
.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.audience-card-wrapper:hover .audience-card::before {
    left: 100%;
}

/* 列表项 hover 效果 */
.audience-list-item {
    position: relative;
}

.audience-card-wrapper:hover .audience-list-item {
    transform: translateX(4px);
}

/* 移动端性能优化 */
@media (max-width: 767px) {
    .audience-card-wrapper {
        animation: none !important;
    }

    /* 禁用流星动画 */
    .audience-meteor {
        display: none;
    }

    /* 禁用流光边框动画 */
    .audience-glow-border-pink,
    .audience-glow-border-blue,
    .audience-glow-border-amber,
    .audience-glow-border-indigo {
        display: none;
    }

    /* 禁用卡片背景光晕 */
    .audience-card-wrapper > div:first-child {
        display: none;
    }

    /* 禁用扫光效果 */
    .audience-card::before {
        display: none;
    }

    /* 轻量边框流光动画 */
    .audience-card {
        position: relative;
        border: 1px solid rgba(75, 85, 99, 0.4);
        overflow: hidden;
    }

    /* 流光效果 - 顶部边框 */
    .audience-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
        animation: mobile-border-glow 3s ease-in-out infinite;
    }

    /* 错开动画时间 */
    .audience-card-wrapper:nth-child(2) .audience-card::after {
        animation-delay: 0.5s;
    }
    .audience-card-wrapper:nth-child(3) .audience-card::after {
        animation-delay: 1s;
    }
    .audience-card-wrapper:nth-child(4) .audience-card::after {
        animation-delay: 1.5s;
    }
}

@keyframes mobile-border-glow {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    60%, 100% {
        left: 100%;
        opacity: 0;
    }
}

/* 桌面端保留完整 hover 效果 */
@media (min-width: 768px) {
    .audience-card-wrapper {
        transition: transform 0.5s ease;
    }

    .audience-card-wrapper .audience-card {
        transition: box-shadow 0.5s ease, border-color 0.5s ease;
    }

    .audience-card-wrapper > div:first-child {
        transition: opacity 0.7s ease;
    }

    .audience-card-wrapper h3 {
        transition: color 0.3s ease;
    }

    .audience-card-wrapper li {
        transition: transform 0.3s ease;
    }

    .audience-card-wrapper li span:last-child {
        transition: color 0.3s ease;
    }

    .audience-card-wrapper svg {
        transition: transform 0.5s ease, color 0.5s ease;
    }
}
