/* 自定义CSS */

/* 引入字体 */
@import url(https://fonts.font.im/css?family=Inter:300,400,500,600,700,800);

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

html {
    height: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--gray-700);
    line-height: 1.6;
}

/* 强制 Sticky Footer */
.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    flex-shrink: 0;
    margin-top: auto !important;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer.mt-5,
footer.mt-4,
footer.mt-3,
footer.mt-2,
footer.mt-1 {
    margin-top: 0 !important;
}

/* 导航栏 */
.navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 主内容区 */
main {
    padding-bottom: 40px;
}

/* 英雄区域 */
.hero-section {
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
}

/* 卡片样式 */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
}

.feature-icon.primary {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-600);
}

.feature-icon.success {
    background: linear-gradient(135deg, var(--success-100), var(--success-200));
    color: var(--success-600);
}

.feature-icon.warning {
    background: linear-gradient(135deg, var(--warning-100), var(--warning-200));
    color: var(--warning-600);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--gray-500);
    line-height: 1.7;
}

/* 功能卡片 */
.function-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.function-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.function-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* CTA 区域 */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* 联系作者卡片 */
.contact-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 1000;
    max-width: 280px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.contact-icon.qq {
    background: #1877f2;
}

.contact-icon.wechat {
    background: #07c160;
}

/* 页脚 */
.footer-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 32px 0;
    margin-top: 60px;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* 表单样式 */
.form-control {
    border-radius: 12px;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

.form-control:focus {
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

/* 按钮 */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-600), var(--success-700));
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    .cta-section {
        padding: 32px 20px;
    }
    
    .contact-card {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

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