/* 全局样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --gradient-primary: linear-gradient(135deg, #4361ee, #3a0ca3);
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    color: var(--dark-color);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.btn-login, .btn-register {
    border-radius: 20px;
    padding: 8px 20px;
    margin-left: 5px;
}

.btn-login {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.btn-register {
    background: var(--gradient-primary);
    color: white;
}

.btn-register:hover {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    color: white;
}

/* 主横幅 */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://pic-bucket.jinaoyun.cn/haokajia/images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

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

/* 特点介绍 */
.features-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 代理优势 */
.benefits-section {
    padding: 100px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* 数据统计 */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.contact-form textarea.form-control {
    min-height: 150px;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 登录和注册页面样式 */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 100px 0;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.auth-header p {
    color: var(--gray-color);
}

.auth-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider:before,
.auth-divider:after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.auth-divider span {
    padding: 0 15px;
    color: var(--gray-color);
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-login-btn:hover {
    background-color: #eee;
}

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

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        margin-bottom: 40px; /* 增加手机端下卡片间距 */
        padding: 25px 20px; /* 调整内边距使内容更紧凑 */
    }
    
    .benefit-item {
        margin-bottom: 30px;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* 为最后一个卡片移除底部边距，避免与下一个区块间距过大 */
    .row > div:last-child .feature-card {
        margin-bottom: 10px;
    }
}

/* 增加额外的小屏幕手机适配 */
@media (max-width: 576px) {
    .feature-card {
        margin-bottom: 50px; /* 在更小屏幕上进一步增加间距 */
    }
    
    .features-section .row > div {
        padding-bottom: 40px; /* 增加行间距 */
    }
    
    /* 为最后一个卡片移除底部边距，避免与下一个区块间距过大 */
    .row > div:last-child .feature-card {
        margin-bottom: 10px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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