/* 自定义样式 */

/* 渐变背景 */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 英雄区域 */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* 价格卡片 */
.pricing-card-title {
    font-size: 2.5rem;
    font-weight: 300;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 统计数字动画 */
.display-4 {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .pricing-card-title {
        font-size: 2rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 表单样式 */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

/* 导航链接激活状态 */
.nav-link.active {
    font-weight: 600;
}

/* 用户下拉菜单 */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* 特性卡片图标 */
.card-body .display-4 {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.card:hover .display-4 {
    opacity: 1;
    transform: scale(1.1);
}

/* 价格方案卡片 */
.pricing-card .card-header {
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.pricing-card {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

/* 成功提示 */
.alert-success {
    border-radius: 10px;
    border: none;
    background-color: #d1f2eb;
    color: #0f5132;
}

/* 错误提示 */
.alert-danger {
    border-radius: 10px;
    border: none;
    background-color: #f8d7da;
    color: #842029;
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* 徽章样式 */
.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 500;
}

/* 进度条样式 */
.progress {
    border-radius: 10px;
    height: 8px;
}

.progress-bar {
    border-radius: 10px;
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #667eea;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    border-radius: 8px;
    background-color: #333;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #2d3748 !important;
        color: #fff;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
    
    .card {
        background-color: #2d3748;
        color: #fff;
    }
    
    .form-control {
        background-color: #4a5568;
        border-color: #4a5568;
        color: #fff;
    }
    
    .table {
        color: #fff;
    }
    
    .table thead th {
        background-color: #4a5568;
    }
}
