/**
 * 即销客 - 现代化软件产品宣传模板
 * 基于 Bootstrap 5 的自定义样式
 */

/* ========== 全局样式 ========== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========== 导航栏样式 ========== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* ========== Hero 区域 ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0043a8 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* ========== 卡片悬停效果 ========== */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ========== 功能图标 ========== */
.feature-icon {
    transition: all 0.3s ease;
}

.hover-shadow:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========== 按钮样式 ========== */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* ========== 渐变背景 ========== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0043a8 100%);
}

/* ========== 内容区域样式 ========== */
.content {
    line-height: 1.8;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.content p {
    margin-bottom: 1rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content table th,
.content table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

.content table th {
    background-color: var(--light-color);
    font-weight: 600;
}

/* ========== 轮播图样式 ========== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* ========== 分页样式 ========== */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-color: var(--primary-color);
}

/* ========== 表单样式 ========== */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ========== 动画效果 ========== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        left: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

/* ========== 工具类 ========== */
.fs-sm-28 {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    .fs-sm-28 {
        font-size: 1.5rem;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.hover-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ========== 页脚样式 ========== */
footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ========== 位置导航 ========== */
.position-nav {
    background-color: var(--light-color);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}

.position-nav a {
    color: var(--primary-color);
    text-decoration: none;
}

.position-nav a:hover {
    text-decoration: underline;
}

/* ========== 图片画廊 ========== */
.img-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ========== 标签页样式 ========== */
.nav-tabs .nav-link {
    color: var(--secondary-color);
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid var(--primary-color);
}

/* ========== 卡片图片固定高度 ========== */
.card-img-200 {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-200 img {
    max-height: 100%;
    object-fit: cover;
}

/* ========== 徽章样式 ========== */
.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
}

/* ========== 列表组样式 ========== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-color);
    transform: translateX(5px);
}

/* ========== 引用块样式 ========== */
.blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
}

.blockquote-footer {
    color: var(--dark-color);
    font-weight: 600;
}

/* ========== 加载动画 ========== */
@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;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
