/**
 * 网站主样式文件
 * 包含自定义样式、动画效果和响应式设计
 */

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #F9FAFB;
    transition: opacity 0.3s ease;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 自定义工具类 */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1E90FF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1873CC;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1E90FF 0%, #07C160 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #1E90FF 0%, #07C160 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn-primary {
    background-color: #1E90FF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: #1873CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(30, 144, 255, 0.3);
}

.btn-secondary {
    background-color: #07C160;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-secondary:hover {
    background-color: #06A854;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(7, 193, 96, 0.3);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* 服务卡片样式 */
.service-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

/* 价格卡片样式 */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    border: 2px solid #1E90FF;
}

.pricing-card.popular .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #1E90FF;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0 0 0 0.5rem;
    font-weight: 600;
}

/* FAQ手风琴样式 */
.faq-item {
    border-bottom: 1px solid #E5E7EB;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #1E90FF;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

/* 支付方式图标样式 */
.payment-method {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
}

.payment-method:hover,
.payment-method.active {
    border-color: #1E90FF;
    transform: translateY(-2px);
}

/* 导航栏样式增强 */
.nav-link {
    position: relative;
}

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

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

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

/* 加载动画 */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #1E90FF;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* 表单输入样式 */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #1E90FF;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
    outline: none;
}