.slideshow {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.swiper-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}

.swiper-container .swiper-wrapper {
    width: 100% !important;
}

.swiper-container .swiper-slide {
    width: 100% !important;
    display: block;
}

.swiper-container .swiper-slide img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.swiper-container .swiper-slide .container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    max-width: 100%;
    width: 100%;
    pointer-events: none;
}

.swiper-container .swiper-slide .container > * {
    pointer-events: auto;
}

/* 发展历程时间轴样式 */
.timeline-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: visible;
    min-height: 500px;
}

.timeline-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    min-height: 400px;
}

.timeline-container::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}

.timeline-track {
    position: relative;
    display: flex;
    min-width: 100%;
    padding: 150px 0;
    min-height: 500px;
}

.timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #ddd 0,
        #ddd 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex-shrink: 0;
    min-width: 200px;
    padding: 0 30px;
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #dc3545;
    z-index: 20;
}

/* 时间轴红色实线部分（连接各个节点） */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #dc3545;
    z-index: 15;
}

.timeline-item:not(:last-child)::after {
    width: calc(100% - 12px);
    left: calc(50% + 6px);
}

.timeline-item.active::before {
    background: #dc3545;
    box-shadow: 0 0 0 3px #dc3545, 0 0 10px rgba(220, 53, 69, 0.5);
}

.timeline-item-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    max-width: 180px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
}

/* 自定义滚动条样式 */
.timeline-item-content::-webkit-scrollbar {
    width: 4px;
}

.timeline-item-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.timeline-item-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.timeline-item-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.timeline-item-content.above {
    bottom: 100%;
    margin-bottom: 20px;
    max-height: 200px;
}

.timeline-item-content.below {
    top: 100%;
    margin-top: 20px;
    max-height: 200px;
}

.timeline-date {
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 0;
    z-index: 11;
    border-radius: 4px;
}

.timeline-event {
    color: #000000;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-item-content {
    top: 100%;
    margin-top: 20px;
    bottom: auto;
    max-height: 200px;
}

.timeline-item:nth-child(even) .timeline-item-content {
    bottom: 100%;
    margin-bottom: 20px;
    top: auto;
    max-height: 200px;
}

.timeline-slider-control {
    margin-top: 30px;
    padding: 0 20px;
}

.timeline-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.timeline-loading {
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .timeline-wrapper {
        padding: 220px 0;
        min-height: 400px;
    }
    
    .timeline-track {
        padding: 120px 0;
        min-height: 400px;
    }
    
    .timeline-item {
        min-width: 150px;
        padding: 0 20px;
    }
    
    .timeline-item-content {
        width: 130px;
        max-width: 130px;
        max-height: 150px;
    }
    
    .timeline-item-content.above,
    .timeline-item-content.below {
        max-height: 150px;
    }
    
    .timeline-item:nth-child(odd) .timeline-item-content,
    .timeline-item:nth-child(even) .timeline-item-content {
        max-height: 150px;
    }
    
    .timeline-date {
        font-size: 12px;
    }
    
    .timeline-event {
        font-size: 12px;
    }
}

/* 核心服务悬浮效果 */
.service-item {
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.service-item h5 {
    transition: color 0.3s ease;
}

.service-item:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.service-item:hover h5 {
    color: #dc3545 !important;
}

/* 导航栏样式 */
.navbar-light.bg-white {
    background-color: #fff !important;
}

.navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center;
    justify-content: space-between;
}

.navbar-nav {
    flex-direction: row;
    margin-right: auto;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item:not(:last-child)::after {
    display: none;
}

.navbar-nav .nav-link {
    color: #6c757d !important;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 1.2rem !important;
}

.navbar-nav .nav-link:hover {
    color: #212529 !important;
}

.navbar-nav .nav-item.active .nav-link {
    color: #dc3545 !important;
}

.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background-color: #dc3545;
}

/* 联系我们按钮下拉菜单 */
.contact-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dee2e6;
}

.contact-dropdown::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

/* 公司动态走马灯样式 */
.news-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    overflow: visible;
}

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

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.news-carousel-item {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .news-carousel-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 575.98px) {
    .news-carousel-item {
        flex: 0 0 100%;
    }
}

/* 公司动态卡片样式 */
.news-carousel-item .card,
.bg-white .card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-carousel-item a:hover .card,
.bg-white a:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.news-carousel-item a {
    display: block;
    height: 100%;
    width: 100%;
}

.news-carousel-item .card-img-top {
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.news-carousel-item .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-carousel-item .card-title {
    font-weight: 500;
    color: #333;
}

.news-carousel-item .card-body p {
    margin-top: auto;
    color: #999;
}

.news-carousel-button-prev,
.news-carousel-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 1;
}

.news-carousel-button-prev:hover,
.news-carousel-button-next:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.news-carousel-button-prev {
    left: 5px;
}

.news-carousel-button-next {
    right: 5px;
}

.news-carousel-button-prev i,
.news-carousel-button-next i {
    color: #999;
    font-size: 16px;
    transition: color 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.news-carousel-button-prev:hover i,
.news-carousel-button-next:hover i {
    color: #666;
}

/* Footer深色主题样式 */
.footer-dark {
    background: #1a1d29 !important;
    background-color: #1a1d29 !important;
    color: #fff !important;
    margin-top: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 0 !important;
}

body .footer-dark {
    background: #1a1d29 !important;
    background-color: #1a1d29 !important;
}

.footer-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-dark .text-white-50:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 11px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-copyright {
    background: #1a1d29 !important;
    background-color: #1a1d29 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body .footer-copyright {
    background: #1a1d29 !important;
    background-color: #1a1d29 !important;
}

.footer-copyright a {
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #fff !important;
}

.footer-dark .code {
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    display: inline-block;
}

.footer-dark .code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-box {
    background: #fff;
    border: 1px solid #000;
    padding: 8px;
    display: inline-block;
    width: 136px;
    height: 136px;
    box-sizing: border-box;
    overflow: hidden;
}

.qrcode-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    display: block;
}

.qrcode-box .qrcode,
.qrcode-box img.qrcode,
.qrcode-box img[class*="qrcode"] {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    display: block;
}

/* 合作伙伴样式 */
.partner-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.partner-wrapper::before,
.partner-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 10;
    pointer-events: none;
}

.partner-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.partner-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.partner-row-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
}

.partner-row-container:last-child {
    margin-bottom: 0;
}

.partner-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
    animation: partnerScroll 15s linear infinite;
}

.partner-row-2 {
    animation: partnerScroll 21s linear infinite;
}

.partner-item {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
}

@keyframes partnerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partner-logo-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.partner-logo-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-logo-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.partner-logo-card:hover img {
    filter: grayscale(0%);
}

/* 移动端响应式调整 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item::after {
        display: none;
    }
    
    .contact-dropdown {
        position: static !important;
        margin-top: 10px !important;
        width: 100% !important;
        min-width: auto !important;
    }
    
    .contact-dropdown::before,
    .contact-dropdown::after {
        display: none;
    }
    
    .news-carousel-wrapper {
        padding: 0 40px;
    }
    
    .news-carousel-button-prev {
        left: 5px;
    }
    
    .news-carousel-button-next {
        right: 5px;
    }
    
    .partner-wrapper {
        padding: 0 40px;
    }
    
    .partner-wrapper::before,
    .partner-wrapper::after {
        width: 120px;
    }
    
    .partner-item {
        width: 160px;
        min-width: 160px;
    }
    
    .partner-row {
        animation-duration: 15s;
    }
    
    .partner-row-2 {
        animation-duration: 21s;
    }
}

@media (max-width: 575.98px) {
    .news-carousel-wrapper {
        padding: 0 35px;
    }
    
    .news-carousel-button-prev {
        left: 5px;
    }
    
    .news-carousel-button-next {
        right: 5px;
    }
    
    .news-carousel-button-prev,
    .news-carousel-button-next {
        width: 35px;
        height: 35px;
    }
    
    .news-carousel-button-prev i,
    .news-carousel-button-next i {
        font-size: 14px;
    }
    
    .partner-wrapper {
        padding: 0 20px;
    }
    
    .partner-wrapper::before,
    .partner-wrapper::after {
        width: 80px;
    }
    
    .partner-item {
        width: 140px;
        min-width: 140px;
    }
    
    .partner-row {
        gap: 15px;
        animation-duration: 10s;
    }
    
    .partner-row-2 {
        animation-duration: 14s;
    }
    
    .partner-row-container {
        margin-bottom: 20px;
    }
}

/* 业务咨询弹窗样式 */
.business-consult-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-consult-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.business-consult-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.business-consult-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.business-consult-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: color 0.3s;
}

.business-consult-modal-close:hover {
    color: #333;
}

.business-consult-modal-body {
    padding: 24px 32px;
}

.business-consult-modal-body .form-group {
    margin-bottom: 20px;
}

.business-consult-modal-body .form-group-inline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
}

.business-consult-modal-body .form-group-inline label {
    flex-shrink: 0;
    margin-bottom: 0;
    min-width: 100px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: left;
    padding-right: 4px;
    padding-top: 10px;
}

.business-consult-modal-body .form-group-inline .form-control {
    flex: 1;
    width: auto;
}

.business-consult-modal-body .form-group-textarea {
    align-items: flex-start;
}

.business-consult-modal-body .form-group-textarea label {
    padding-top: 12px;
}

.business-consult-modal-body .form-group-textarea textarea {
    flex: 1;
    width: auto;
    resize: vertical;
}

.business-consult-modal-body .form-group-checkbox {
    padding: 0 16px;
}

.business-consult-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.business-consult-modal-body .form-control {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.business-consult-modal-body .form-group:not(.form-group-inline) .form-control {
    width: 100%;
}

.business-consult-modal-body .form-control:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.business-consult-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.business-consult-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.business-consult-btn {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.3s;
}

.business-consult-btn:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}
