/* 自定义样式 - AGA-CIRANKO LIMITED */
:root {
    --primary-color: #7c3aed; /* 优雅紫色 */
    --secondary-color: #38bdf8; /* 浅蓝色 - APP主题色 */
    --accent-color: #fbbf24; /* 琥珀色点缀 */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --gradient-secondary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    color: #334155;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.95);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand .brand-accent {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* 按钮样式 */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(rgba(30, 41, 59, 0.92), rgba(30, 41, 59, 0.92)), url('../images/background.png');;
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* 卡片样式 */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

/* 应用展示区域 */
.app-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
}

.app-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.app-screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.app-screenshot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
}

.app-screenshot:hover {
    transform: scale(1.03);
}

/* 统计卡片 */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .feature-card {
        margin-bottom: 1.5rem;
        padding: 2rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }
}

/* 加载动画 */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 进度条 */
.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring-circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* 工具类 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}