/* TPlus 公开页面样式 */

/* 基础重置 */
* {
    box-sizing: border-box;
}

/* 导航栏 */
.navbar-public {
    transition: all 0.3s ease;
}

.navbar-public.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero 区域动画 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 特性卡片 */
.feature-card {
    cursor: default;
}

.feature-card .feature-icon {
    transition: transform 0.3s ease;
}

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

/* 用户评价卡片 */
.testimonial-card {
    transition: transform 0.3s ease;
}

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

/* 按钮悬停效果 */
.btn-primary-custom,
.btn-outline-custom,
.btn-success-custom {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after,
.btn-outline-custom::after,
.btn-success-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-primary-custom:active::after,
.btn-outline-custom:active::after,
.btn-success-custom:active::after {
    width: 200px;
    height: 200px;
}

/* CTA 区域 */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* 页脚链接 */
.footer-public ul li a {
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-public ul li a:hover {
    transform: translateX(4px);
}

/* 滚动动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-bar {
        flex-direction: column;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* 主题适配 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
    }
    
    .feature-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .testimonial-card {
        background: #1e293b;
    }
    
    .footer-public {
        background-color: #0f172a;
    }
}

/* 打印样式 */
@media print {
    .navbar-public,
    .footer-public,
    .btn {
        display: none;
    }
    
    body {
        background: white;
    }
}
