/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    padding-top: 102px; /* 顶部栏46px + 导航栏56px */
}
a{
	text-decoration: none;
}

/* 头部整体包裹 */
.header-wrapper {
    z-index: 1030;
    background: #212529;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 顶部信息栏 */
.top-bar {
    background: #212529 !important;
}

.top-bar .fs-5 {
    font-size: 1.25rem !important;
}

/* 搜索框样式优化 */
.top-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}

.top-bar input:focus {
    background-color: #2d3238 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: white !important;
}
/* 语言切换按钮样式 */
.language-switch {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #adb5bd;
}

.lang-btn.active {
    color: #fff;
    font-weight: 500;
}

/* 导航栏 */
.navbar {
    box-shadow: none; /* 移除单独的阴影，使用统一头部的阴影 */
}

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

.navbar-nav .nav-link {
    font-size: 1.1rem; /* 放大导航菜单字体 */
    font-weight: 500;
}

/* 产品详情页缩略图 */
.thumbnail {
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    opacity: 0.8;
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* 轮播图 */
.carousel-item {
    height: 600px;
}

.carousel-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-caption {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 章节标题 */
.section-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 1.1rem;
}

.feature-list i {
    margin-right: 10px;
}

/* 关于图片 */
.about-image {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
}

.image-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 优势卡片 */
.advantage-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 2.5rem;
    color: white;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h4 a{
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info h4 a:hover {
    color: var(--secondary-color) !important;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 50px;
}

.page-header h1 {
    font-weight: bold;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

/* 团队成员卡片 */
.team-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-meta i {
    margin-right: 5px;
}

/* 案例卡片 */
.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-image {
    height: 250px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 20px;
}

/* 联系表单 */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* 地图容器 */
.map-container {
    height: 400px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* 页脚 */
footer {
    margin-top: 50px;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 20px;
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
    color: rgba(255,255,255,0.7) !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

footer ul li {
    margin-bottom: 8px;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 150px; /* 移动端顶部栏更高 */
    }
    
    .top-bar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .top-bar .row {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        margin-bottom: 8px;
    }
    
    .top-bar .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .top-bar .d-flex {
        justify-content: center !important;
    }
    
    .top-bar input[type="search"] {
        width: 180px !important;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
}
