/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0a1929;
    line-height: 1.6;
}

/* 自定义工具类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

/* 图表容器样式 */
.chart-container {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.chart-container.loaded {
    opacity: 1;
}

/* 数据统计卡片样式 */
.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.stats-card:hover::before {
    transform: scaleX(1);
}

/* 对比标签样式 */
.comparison-tab {
    cursor: pointer;
    outline: none;
    border: none;
    transition: all 0.2s ease;
}

.comparison-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 优势列表项样式 */
.advantage-item {
    position: relative;
    overflow: hidden;
}

.advantage-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.advantage-item:hover::after {
    width: 100%;
}

/* 滚动条隐藏 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 产品优势区域响应式调整 */
@media (max-width: 768px) {
    .stats-card p:first-child {
        font-size: 2rem !important;
    }
    
    .advantage-item .w-10 {
        width: 8px;
        height: 8px;
    }
    
    .advantage-item h4 {
        font-size: 1rem !important;
    }
}

/* 滚动动画 */
.section-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航样式 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0e6fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 卡片样式 */
.feature-card,
.team-card {
    transition: all 0.3s ease;
}

.feature-card:hover,
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(14, 111, 255, 0.1);
}

/* 时间线样式 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -37px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0e6fff;
    border: 4px solid #e6f0ff;
    z-index: 1;
}

.timeline-item:last-child::before {
    height: 20px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0e6fff;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(14, 111, 255, 0.1);
}

.btn-primary:hover {
    background-color: rgba(14, 111, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(14, 111, 255, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #0e6fff;
    border: 1px solid #0e6fff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #0e6fff;
    box-shadow: 0 0 0 3px rgba(14, 111, 255, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-item::before {
        left: -25px;
    }
    
    .timeline-item::after {
        left: -32px;
    }
    
    .timeline-item .absolute {
        left: -40px !important;
    }
}

/* 渐变遮罩 */
.gradient-mask {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
}

/* 下拉菜单样式 */
#phone-dropdown-toggle {
    position: relative;
    cursor: pointer;
}

#phone-dropdown {
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保下拉菜单在导航栏下方正确定位 */
.header-container {
    position: relative;
}

/* 返回顶部按钮 */
#back-to-top {
    background-color: #0e6fff;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: rgba(14, 111, 255, 0.9);
    transform: translateY(-2px);
}

/* 社交图标 */
.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #0e6fff;
    transform: translateY(-2px);
}

/* 加载动画 */
.loader {
    border: 3px solid rgba(14, 111, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #0e6fff;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片悬停效果 */
.img-hover {
    transition: all 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.05);
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 文字截断 */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 多行文字截断 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 间距工具类 */
.margin-auto {
    margin-left: auto;
    margin-right: auto;
}

.padding-x-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.padding-y-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* 文本对齐 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* 背景颜色工具类 */
.bg-primary {
    background-color: #0e6fff;
}

.bg-secondary {
    background-color: #36cbcb;
}

.bg-tertiary {
    background-color: #6f42c1;
}

.bg-dark {
    background-color: #0a1929;
}

.bg-light {
    background-color: #f8fafc;
}

.bg-success {
    background-color: #00b42a;
}

.bg-warning {
    background-color: #ff7d00;
}

.bg-danger {
    background-color: #f53f3f;
}

/* 文本颜色工具类 */
.text-primary {
    color: #0e6fff;
}

.text-secondary {
    color: #36cbcb;
}

.text-tertiary {
    color: #6f42c1;
}

.text-dark {
    color: #0a1929;
}

.text-light {
    color: #f8fafc;
}

.text-success {
    color: #00b42a;
}

.text-warning {
    color: #ff7d00;
}

.text-danger {
    color: #f53f3f;
}