:root {
    --primary-color: #1a6fc4;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --menu-height: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: var(--menu-height);
}

/* 顶部菜单美化样式 */
.navbar {
    background: #000;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: var(--menu-height);
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 5px;
    position: relative;
}

.nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 8px;
    font-size: 18px;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--light-color) !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}


.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
    color: var(--light-color) !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--light-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 70%;
}

.dropdown-menu {
    background: var(--secondary-color);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 250px;
    margin-top: 10px !important;
    left: 0 !important;
    right: auto !important;
}

.dropdown-item {
    color: var(--light-color);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding-left: 25px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.navbar-toggler {
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .nav-link {
        padding: 12px 15px !important;
    }
    
    .dropdown-menu {
        background: rgba(44, 62, 80, 0.95);
        box-shadow: none;
        margin-left: 20px;
        width: calc(100% - 40px);
    }
}

/* 内容区域样式 */
.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 111, 196, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 111, 196, 0.4);
}

.slider-placeholder {
    background: linear-gradient(to right, #4b6cb7, #182848);
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

footer a {
    color: #b8c6d0;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 顶部菜单栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

/* Slider样式调整 */
#main-slider {
    width: 100%;
    margin-top: 0;
}

.carousel-item {
    height: 500px;
}

.slider-image-container {
    height: 100%;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: transparent !important; /* 完全透明 */
    border: none !important; /* 移除边框 */
    padding: 20px;
    bottom: 40%;
    transform: translateY(50%);
    left: 10%;
    right: 10%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 添加文字阴影增强可读性 */
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* 内容区块样式 */
.content-section {
    padding: 4rem 0;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-lg {
    padding: 0.8rem 2rem;
}

/* 公司简介区域 */
.company-intro {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
}

/* 产品矩阵图片样式 */
.product-matrix {
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-matrix:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-text {
    font-size: 1.2rem; /* 可根据需要调整大小 */
    font-weight: 800;  /* 可选：增加字重 */
}