:root {
    --primary-color: #e94560;
    --secondary-color: #c7365f;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 颜色类 */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 导航栏 */
.navbar {
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 确保在大屏幕上导航栏项水平排列 */
.navbar-expand-lg .navbar-nav {
    flex-direction: row !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
}

.navbar-nav .nav-item {
    margin-right: 1rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-right: 0.5rem;
    transition: var(--transition);
}

/* 小屏幕上的导航栏样式 */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        margin-right: 0;
        margin-bottom: 0;
    }
}

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

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

/* 英雄区域 */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M50 50C55 45 60 45 65 50C70 55 70 60 65 65C60 70 55 70 50 65C45 70 40 70 35 65C30 60 30 55 35 50C40 45 45 45 50 50Z" fill="rgba(255,255,255,0.1)"/%3E%3C/svg%3E');
    background-size: 200px;
    opacity: 0.5;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero .btn {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.hero .btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.hero .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 通用section样式 */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

section h3 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* 关于我们 */
#about {
    background-color: var(--bg-light);
}

#about .bg-white {
    transition: var(--transition);
}

#about .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 核心功能 */
#features .bg-white {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

#features .bg-white:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

#features .bg-primary {
    background-color: rgba(233, 69, 96, 0.1) !important;
}

/* 成功案例 */
#success {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

#success .bg-white {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

#success .bg-white:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* 用户评价 */
#testimonials .bg-light {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

#testimonials .bg-light:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#testimonials .text-warning {
    color: #ffc107 !important;
}

/* 注册区域 */
#register {
    background-color: var(--bg-light);
}

#register .bg-white {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

#register .form-control {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

#register .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
}

#register .btn-primary {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

#register .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 统计数据 */
.py-12 {
    padding: 4rem 0;
}

.py-12 .display-4 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 4rem 0 2rem;
}

footer h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

footer h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

footer p {
    color: #999;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--primary-color);
}

footer .fab {
    font-size: 1.5rem;
    transition: var(--transition);
}

footer .fab:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

footer .border-top {
    border-top: 1px solid #333 !important;
    margin-top: 2rem;
    padding-top: 2rem;
}

footer .border-top p {
    color: #999;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
    
    .py-16 {
        padding: 4rem 0;
    }
    
    .py-20 {
        padding: 8rem 0 4rem;
    }
    
    .navbar-nav .nav-link {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link.btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    section h3 {
        font-size: 1.25rem;
    }
    
    .py-16 {
        padding: 3rem 0;
    }
    
    .py-20 {
        padding: 6rem 0 3rem;
    }
    
    .hero .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(233, 69, 96, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl {
    max-width: 48rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-6 {
    margin-bottom: 2.5rem;
}

.mb-8 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 3rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-6 {
    padding: 2.5rem;
}

.p-8 {
    padding: 3rem;
}

.rounded-lg {
    border-radius: var(--border-radius);
}

.rounded-full {
    border-radius: 50%;
}

.shadow-sm {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.object-cover {
    object-fit: cover;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.rounded-pill {
    border-radius: 50px;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.hover:text-primary:hover {
    color: var(--primary-color);
}

.hover:text-white:hover {
    color: var(--white);
}