/* 乐维网络企业网站自定义样式 */

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    color: #333;
    background-color: #f7f8fa;
    line-height: 1.7;
    font-size: 14px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 12px;
    height: 40px;
    width: auto;
}

.navbar-brand span {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #5a6c7d !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
    border-bottom-color: #007bff;
}

.navbar-nav .nav-link.active {
    color: #007bff !important;
    border-bottom-color: #007bff;
}

.navbar-toggler {
    border-color: rgba(0, 123, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 123, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* 论坛入口样式 */
.navbar-nav .nav-item .nav-link i {
    margin-right: 5px;
}

/* 页脚样式 */
footer {
    background-color: #212529;
    color: #adb5bd;
}

footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer hr {
    border-color: #495057;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 0;
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    transition: -webkit-transform 0.6s ease;
    transition: transform 0.6s ease;
    transition: transform 0.6s ease, -webkit-transform 0.6s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.carousel-item.active, .carousel-item-next, .carousel-item-prev {
    display: block;
}

.carousel-item-next, .carousel-item-prev {
    position: absolute;
    top: 0;
}

.carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) {
    .carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.carousel-item-next, .active.carousel-item-right {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}

@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) {
    .carousel-item-next, .active.carousel-item-right {
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
    }
}

.carousel-item-prev, .active.carousel-item-left {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}

@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) {
    .carousel-item-prev, .active.carousel-item-left {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

.carousel img {
    height: 650px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 30%;
    left: 15%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0;
    padding: 3rem 0 1.5rem;
}

.carousel-caption h5 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.carousel-caption p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.15s ease;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.carousel-control-next {
    right: 0;
    left: auto;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
    border-radius: 50%;
    border: 2px solid #fff;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 15;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.carousel-indicators li {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    margin-left: 10px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 企业数据展示 */
.bg-light {
    background-color: #f7f8fa !important;
}

.data-item {
    padding: 2.5rem 1.25rem;
    background-color: transparent;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid #d9e1e7;
}

.data-item:last-child {
    border-right: none;
}

.data-item:hover {
    transform: translateY(0);
    background-color: rgba(0, 123, 255, 0.05);
}

.data-item h3 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.data-item p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 解决方案卡片 */
.solution-card {
    padding: 2.25rem 1.75rem;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: left;
    color: #2c3e50;
    border: 1px solid #e8ecef;
    border-left: 4px solid #3498db;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-3px);
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
    border-left-width: 5px;
}

.solution-card h3 {
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.solution-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 产品服务卡片 */
.product-card {
    padding: 2.25rem 1.75rem;
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #dde6e9;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border-color: #2980b9;
}

.product-card h4 {
    color: #1a5276;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* 客户案例卡片 */
.case-card {
    padding: 1.75rem 1.5rem;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: left;
    height: 100%;
    border: 1px solid #e8ecef;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.case-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: normal;
}

/* 品牌认可 */
.brand-logo {
    padding: 1.25rem 0.75rem;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.brand-logo:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.brand-logo img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 新闻资讯卡片 */
.news-card {
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #2c3e50;
}

.news-card .news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-card .news-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card:hover h4 {
    color: #3498db;
}

.news-card p {
    color: #7f8c8d;
    margin-bottom: 1.2rem;
    font-size: 0.875rem;
    line-height: 1.7;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.news-date {
    color: #95a5a6;
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card .news-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.news-card .read-more {
    color: #3498db;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card .read-more:hover {
    color: #2c3e50;
    text-decoration: underline;
}




/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:focus, .btn-primary:active {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
    transform: translateY(0);
}

.btn-light {
    background-color: #fff;
    border-color: #e9ecef;
    color: #2c3e50;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.btn-lg {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
}

/* 回到顶部按钮样式 */
.btn-floating {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 52px;
    height: 52px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.25rem;
}

.btn-floating:hover {
    background-color: #0069d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    color: #fff;
}

.btn-floating.show {
    opacity: 1;
    visibility: visible;
}

/* 表单样式 */
.form-control {
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 备案信息样式 */
footer .text-muted a {
    color: #adb5bd;
    text-decoration: none;
}

footer .text-muted a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel img {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 0.5rem;
        bottom: 20%;
    }
    
    .carousel-caption h5 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .carousel-caption p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        max-width: 90%;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
    
    .data-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-right: none;
        border-bottom: 1px solid #d9e1e7;
    }
    
    .data-item:last-child {
        border-bottom: none;
    }
    
    .solution-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .case-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .brand-logo {
        padding: 1rem;
        margin-bottom: 1rem;
        min-height: 80px;
    }
    
    .brand-logo img {
        max-height: 40px;
    }
    
    .news-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .news-card .news-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .carousel img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 0.25rem;
        bottom: 15%;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        max-width: 95%;
    }
    
    .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin-right: 6px;
        margin-left: 6px;
    }
    
    .carousel-indicators li.active {
        width: 20px;
    }
    
    .btn-floating {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
        font-size: 1rem;
    }
    
    .data-item h3 {
        font-size: 1.5rem;
    }
    
    .data-item p {
        font-size: 0.85rem;
    }
    
    .solution-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    
    .solution-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .product-card {
        padding: 1.25rem 0.875rem;
        min-height: 200px;
    }
    
    .product-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
    
    .case-card {
        padding: 1.25rem 0.875rem;
        min-height: 150px;
    }
    
    .case-card p {
        font-size: 0.9rem;
    }
    
    .news-card {
        padding: 1.25rem 0.875rem;
    }
    
    .news-card .news-image {
        height: 120px;
    }
    
    .news-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .news-card p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .news-date {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .news-card .read-more {
        font-size: 0.85rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}