/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-bg: #0a0e27;
    --dark-card: #141b2d;
    --gradient-start: #00d4ff;
    --gradient-end: #0d6efd;
    --text-light: #e9ecef;
    --text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 导航栏 */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gradient-start) !important;
}

.navbar-toggler {
    border: none;
    color: var(--text-light);
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    padding-top: 100px;
    padding-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    animation: pulse 20s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-subtitle {
    color: var(--gradient-start);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.hero-buttons {
    margin-bottom: 0;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-image {
    position: relative;
    height: 500px;
    will-change: transform;
}

.floating-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--gradient-start);
    box-shadow: 0 0 50px rgba(13, 110, 253, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

/* 功能卡片 */
.features-section {
    background: var(--dark-bg);
    padding: 2rem 0;
}

.feature-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    border-color: rgba(13, 110, 253, 0.5);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gradient-start);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* 特性列表 */
.benefits-section {
    background: var(--dark-card);
    padding: 1.5rem 0;
}

/* 首屏容器 - 将Hero、功能卡片、特性列表组合为100vh */
.first-screen {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto auto;
}

.first-screen .hero-section {
    min-height: 0;
    display: flex;
    align-items: center;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 1rem;
}

.benefit-item i {
    color: var(--gradient-start);
    font-size: 1.25rem;
}

/* 产品介绍 */
.products-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.section-subtitle {
    color: var(--gradient-start);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-item {
    margin-bottom: 5rem;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-features {
    margin-bottom: 2rem;
}

.product-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-light);
}

.product-feature-item i {
    color: var(--gradient-start);
    font-size: 1.25rem;
}

.product-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-icon {
    position: absolute;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.4);
    animation: pulse-icon 3s ease-in-out infinite;
}

.visual-icon.large {
    width: 200px;
    height: 200px;
    font-size: 5rem;
    color: var(--gradient-start);
}

.visual-icon.small {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    color: var(--gradient-end);
}

.visual-icon.top-left {
    top: 0;
    left: 0;
    animation-delay: 0.5s;
}

.visual-icon.top-right {
    top: 0;
    right: 0;
    animation-delay: 1s;
}

.visual-icon.bottom-left {
    bottom: 0;
    left: 0;
    animation-delay: 1.5s;
}

.visual-icon.bottom-right {
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 为什么选择我们 */
.why-choose-section {
    background: var(--dark-card);
    padding: 5rem 0;
}

.advantage-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    border-color: rgba(13, 110, 253, 0.5);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gradient-start);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.advantage-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.advantage-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.advantage-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 下载中心 */
.download-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    padding: 5rem 0;
}

.download-cta {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 212, 255, 0.2));
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.download-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.download-cta .btn-light {
    background: white;
    color: var(--dark-bg);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
}

.download-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* 页脚 */
.footer {
    background: var(--dark-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 页脚列间距调整 */
.footer .row > div:first-child {
    padding-right: 3rem;
}

.footer .row > div:nth-child(2) {
    padding-left: 2rem;
    padding-right: 1rem;
}

.footer .row > div:nth-child(3) {
    padding-left: 1rem;
}

@media (max-width: 991px) {
    .footer .row > div:first-child,
    .footer .row > div:nth-child(2),
    .footer .row > div:nth-child(3) {
        padding-left: 0;
        padding-right: 0;
    }
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.footer-brand i {
    font-size: 1.5rem;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-social i {
    font-size: 1.5rem;
    color: var(--gradient-start);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-social i:hover {
    transform: scale(1.2);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gradient-start);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--gradient-start);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--gradient-start);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .visual-icon.large {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
    }
    
    .visual-icon.small {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-start);
}

/* ========== 新增动画效果 ========== */

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 从左侧滑入 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 从右侧滑入 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 缩放淡入 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 旋转淡入 */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* 弹跳效果 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* 闪烁效果 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 3D翻转 */
@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    40% {
        transform: perspective(400px) rotateY(-20deg);
    }
    60% {
        opacity: 1;
        transform: perspective(400px) rotateY(10deg);
    }
    80% {
        transform: perspective(400px) rotateY(-5deg);
    }
    to {
        transform: perspective(400px) rotateY(0deg);
    }
}

/* 渐变文字动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 页面加载动画类 */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
}

.flip-in {
    animation: flipInY 0.8s ease-out forwards;
}

/* 初始隐藏状态 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* 增强卡片悬停效果 */
.feature-card, .advantage-card, .product-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover, .advantage-card:hover, .product-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.4);
}

/* 增强按钮效果 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.5);
}

/* 增强图标动画 */
.advantage-icon, .feature-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon,
.advantage-card:hover .advantage-icon {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.6);
}

/* 文字渐显效果 */
.text-gradient-animated {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end), var(--gradient-start));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(13, 110, 253, 0.1);
    border-top-color: var(--gradient-start);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 视差效果 */
.parallax {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* 性能优化 */
.animate-on-scroll,
.feature-card,
.advantage-card,
.product-card,
.main-download-card,
.sub-app-card,
.choose-card {
    will-change: transform, opacity;
}