/* 自定义样式补充 Tailwind CSS */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

/* Logo图片优化 */
.logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.3s ease;
}

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

/* 按钮特效 */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:before {
    left: 100%;
}

/* 文字渐变效果 */
.text-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 圆角优化 */
.rounded-xl-custom {
    border-radius: 1rem;
}

.rounded-2xl-custom {
    border-radius: 1.5rem;
}

.rounded-3xl-custom {
    border-radius: 2rem;
}

/* 阴影优化 */
.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.shadow-medium {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* 响应式图标 */
.icon-responsive {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .icon-responsive {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* 毛玻璃效果 */
.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}

.glass-effect-dark {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.8);
}

/* 版本标签样式 */
.version-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.3);
}

/* 更新日志时间轴 */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #14b8a6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #f0fdfa;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 1.25rem;
    bottom: -1.5rem;
    width: 2px;
    background-color: #ccfbf1;
}

.timeline-item:last-child::after {
    display: none;
}

/* 特殊强调文本 */
.text-emphasis {
    position: relative;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.375rem;
    font-weight: 600;
    color: #92400e;
}

/* 链接悬浮效果 */
.link-hover {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    transition: width 0.3s ease;
}

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

/* 移动端优化 */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    .card-padding {
        padding: 1.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .shadow-lg,
    .shadow-xl,
    .shadow-2xl {
        box-shadow: none !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid #000;
    }
    
    .text-gradient {
        -webkit-text-fill-color: unset;
        color: #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
