/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 全局基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 渐变背景 */
.hero-gradient {
    background: radial-gradient(circle at 50% 50%, #f0f9ff 0%, #ffffff 100%);
}

/* 毛玻璃质感 */
.glass-morphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 浮动动画 1 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 浮动动画 2 (慢速) */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* 浮动动画 3 (延迟) */
@keyframes float-delayed {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 6s ease-in-out infinite;
    animation-delay: 1s;
}
/* 特色卡片悬停 */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* 打字机光标动画 */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* 首屏大图容器样式 */
.hero-image-container {
    /* 这里的 min-height 可以根据你图片的比例调整，
       确保在加载图之前撑开空间，600px 接近之前 iPhone 大模型的高度 */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-image-container {
        min-height: 600px; /* PC端保持足够的存在感 */
    }
}

/* 增强图片的投影效果，让合成图更有立体感 */
.drop-shadow-2xl {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

/* 二维码显示逻辑 */
.qr-wrapper:hover .qr-dropdown {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 统计模块图标盒子 */
.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;    /* 修复了之前的报错 */
    justify-content: center; /* 修复了之前的报错 */
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.group:hover .icon-box {
    background-color: currentColor;
    color: white;
}

/* 移动端菜单过渡 */
#mobile-menu {
    transition: all 0.3s ease;
}

/* --- iPhone 15 Pro CSS 组件 --- */
:root {
    --iphone-black: #1a1a1a;
    --iphone-bezel: #121212;
    --iphone-titanium: #444446;
}

.iphone-15-pro {
    position: relative;
    background: var(--iphone-titanium);
    border-radius: 54px;
    box-shadow:
        0 50px 100px -20px rgba(0,0,0,0.3),
        inset 0 0 4px 2px rgba(255,255,255,0.1);
    padding: 12px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.big-device { width: 300px; height: 610px; }
.small-device { width: 230px; height: 470px; border-radius: 40px; padding: 8px; }

.iphone-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--iphone-bezel);
    border-radius: 42px;
    padding: 8px;
    box-sizing: border-box;
}
.small-device .iphone-inner { border-radius: 32px; padding: 6px; }

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 36px;
    overflow: hidden;
    z-index: 1;
}
.small-device .iphone-screen { border-radius: 28px; }

.iphone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dynamic-island {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}
.small-device .dynamic-island { width: 60px; height: 18px; top: 12px; }

.iphone-screen::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%);
    pointer-events: none;
    z-index: 5;
}

.btn-silent, .btn-volume-up, .btn-volume-down, .btn-power {
    position: absolute;
    background: var(--iphone-titanium);
    border-radius: 2px;
}
.btn-silent { left: -2px; top: 100px; width: 3px; height: 25px; }
.btn-volume-up { left: -2px; top: 145px; width: 3px; height: 50px; }
.btn-volume-down { left: -2px; top: 210px; width: 3px; height: 50px; }
.btn-power { right: -2px; top: 170px; width: 3px; height: 80px; }

.feature-card:hover .iphone-15-pro {
    transform: scale(1.05);
}