/* 主体样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 20px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 20px;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* 表单样式 */
.form-control-lg {
    border-radius: 8px;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e9ecef;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .form-control-lg {
        padding: 12px 50px 12px 15px;
    }
    
    .position-absolute.top-50.end-0.translate-middle-y {
        transform: translateY(-50%);
        right: 5px;
    }
}

@media (max-width: 375px) {
    .form-control-lg {
        padding: 12px 45px 12px 15px;
    }
    
    .position-absolute.top-50.end-0.translate-middle-y {
        transform: translateY(-50%);
        right: 3px;
    }
}

.form-control-lg:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 标题样式 */
.display-5 {
    color: #0d6efd;
}

/* 功能介绍卡片 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    .form-control-lg {
        padding: 10px 12px;
    }
}

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

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

/* 加载动画 */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
}

/* 页脚样式 */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
}

/* 语言切换按钮样式 */
#languageDropdown {
    border-radius: 8px;
    font-weight: 500;
}

#languageDropdown:hover {
    background-color: #e9ecef;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #0d6efd;
}