/* 全局样式 - 参考金蝶官网 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* 导航栏样式 - 参考金蝶官网 */
.navbar {
    padding: 12px 0;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 64px;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 500;
    color: #1890ff !important;
    padding: 0;
}

.nav-link {
    font-weight: 400;
    font-size: 14px;
    margin: 0 20px;
    color: #333 !important;
    transition: color 0.2s;
    padding: 8px 0 !important;
    line-height: 1.5;
}

.nav-link:hover {
    color: #1890ff !important;
}

.nav-link.dropdown-toggle::after {
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
    color: #333;
    text-decoration: none;
}

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

/* 多列下拉菜单（Mega Menu）样式 */
.dropdown-mega {
    position: relative !important;
}

.dropdown-menu-mega {
    width: auto;
    min-width: 800px;
    max-width: 1000px;
    left: 50% !important;
    transform: translateX(-30%);
    padding: 0;
    margin-top: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    min-height: 100px;
    position: absolute;
    top: 100%;
}

.dropdown-menu-mega .container-fluid {
    padding: 24px 40px 24px 60px;
}

/* 下拉菜单分类标题 - 参考金蝶官网 */
.dropdown-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 0;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
    text-transform: none;
    line-height: 1.5;
    letter-spacing: 0;
}

/* 下拉菜单分类列表 - 参考金蝶官网 */
.dropdown-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-category-list li {
    margin: 0;
    padding: 0;
    line-height: 32px;
}

.dropdown-category-list li a {
    display: block;
    padding: 0;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
    line-height: 32px;
}

.dropdown-category-list li a:hover {
    color: #1890ff;
    padding-left: 0;
    background: transparent;
}

/* 下拉菜单产品项样式 */
.dropdown-product-item {
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0.5rem;
    border-radius: 4px;
}

.dropdown-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.dropdown-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.dropdown-product-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 下拉子菜单 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* 鼠标悬停显示下拉菜单（桌面端） */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown:hover > .dropdown-menu-mega,
    .navbar-nav .dropdown-mega:hover > .dropdown-menu-mega,
    .navbar-nav .dropdown-mega.show > .dropdown-menu-mega {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .navbar-nav .dropdown.show > .dropdown-menu,
    .navbar-nav .dropdown.show > .dropdown-menu-mega {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .navbar-nav .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    
    /* 多列菜单的列样式 - 参考金蝶官网 */
    .dropdown-menu-mega .col-auto {
        padding-left: 0;
        padding-right: 40px;
    }
    
    .dropdown-menu-mega .col-auto:last-child {
        padding-right: 0;
    }
    
    /* 确保下拉菜单在最上层 */
    .dropdown-menu-mega {
        z-index: 1050;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-30%) !important;
    }
}

/* 移动端样式 */
@media (max-width: 991px) {
    .dropdown-menu-mega {
        width: 100%;
        left: 0 !important;
        transform: none;
        max-width: 100%;
    }
    
    .dropdown-menu-mega .col-md-3,
    .dropdown-menu-mega .col-sm-6 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* 右侧滑出导航内：下拉默认收起，点击父项才展开 */
    .navbar-collapse .dropdown-menu,
    .navbar-collapse .dropdown-menu-mega {
        opacity: 1 !important;
        visibility: visible !important;
    }
    /* Bootstrap 5 把 .show 加在 .dropdown-menu 上 */
    .navbar-collapse .dropdown-menu.show,
    .navbar-collapse .dropdown-menu-mega.show {
        display: block !important;
    }
}

/* 轮播图样式 */
.hero-carousel {
    margin-top: 0;
}

.carousel-caption {
    text-align: left;
    max-width: 600px;
}

/* 功能卡片样式 */
.feature-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #007bff;
    box-shadow: 0 10px 30px rgba(0,123,255,0.1);
}

/* 案例滚动样式 */
.case-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.case-card {
    flex: 0 0 auto;
    width: 300px;
}

/* 统计数据样式 */
.statistics-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 背景图片区域 */
.background-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}

.background-section .container {
    position: relative;
    z-index: 1;
}

/* 底部样式 - 参考金蝶官网 */
.footer {
    background-color: #262626;
    color: #fff;
    padding: 48px 0 24px;
}

.footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer a:hover {
    color: #fff;
}

.footer h5 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

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

.footer ul li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Tab切换样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #007bff;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom: 3px solid #007bff;
}

.tab-content {
    padding: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .background-section {
        padding: 60px 0;
    }
}

/* 卡片样式增强 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 按钮样式 - 参考金蝶官网 */
.btn-primary {
    background-color: #1890ff;
    border-color: #1890ff;
    padding: 8px 24px;
    font-weight: 400;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
    transform: none;
    box-shadow: 0 2px 8px rgba(24,144,255,0.3);
}

/* 内容区域 - 参考金蝶官网 */
.content {
    line-height: 1.8;
    color: #666;
    font-size: 14px;
}

/* 标题样式 - 参考金蝶官网 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007bff;
}

.timeline .card {
    position: relative;
    margin-left: 2rem;
}

.timeline .card::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #007bff;
}
