/* 全局样式 */
:root {
    --primary-red: #E60012;
    --dark-red: #B8000E;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--black);
}

/* 导航栏 */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
}

/* Hero区域 */
.hero-section {
    margin-top: 0;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.carousel-indicators {
    margin-bottom: 30px;
}

.carousel-indicators button {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid white !important;
    margin: 0 6px !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.carousel-indicators button.active {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* 轮播箭头样式 */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(230, 0, 18, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-red);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Banner文字动画 */
.carousel-item.active .hero-slide h1 {
    animation: fadeInDown 0.8s ease forwards;
}

.carousel-item.active .hero-slide p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.carousel-item.active .hero-slide .btn {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* 服务卡片 */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* 优势卡片 */
.advantage-card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.advantage-card:hover {
    background: var(--gray-light);
}

/* 合作伙伴 */
.partner-logo {
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 时间线 */
.timeline-item {
    position: relative;
}

.timeline-year {
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-year {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary-red) 100%);
    padding: 120px 0 60px;
    margin-bottom: 0;
}

/* 案例卡片 */
.case-card {
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-card img {
    transition: transform 0.3s ease;
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
}

/* 新闻卡片 */
.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray);
}

/* 团队成员 */
.team-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.team-card:hover {
    background: var(--gray-light);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-red);
    margin-bottom: 15px;
}

/* 联系表单 */
.contact-form .form-control {
    border: 2px solid #eee;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.1);
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-danger:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

/* 员工风采 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* 锦旗展示 */
.honor-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #ffe0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.honor-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.1);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-slide {
        min-height: 80vh;
    }

    .hero-slide h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 70vh;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* 数据统计区域 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-plus {
    font-size: 2rem;
    vertical-align: top;
}

/* 服务卡片增强 */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 0, 18, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(230, 0, 18, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
}

.service-card:hover .service-icon i {
    color: white !important;
    transform: scale(1.2) rotate(5deg);
}

/* 优势卡片增强 */
.advantage-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.advantage-card:hover {
    border-left-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

/* 合作伙伴增强 */
.partner-logo {
    height: 100px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-logo:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 时间线增强 */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), var(--primary-red), transparent);
    z-index: 0;
}

@media (max-width: 767px) {
    .timeline::before {
        display: none;
    }
}

.timeline-item {
    position: relative;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary-red) 50%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 浮动动画 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 渐入动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 标题装饰 */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    border-radius: 2px;
}


/* 在线客服浮框 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
}

.cs-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.4);
    transition: all 0.3s ease;
    animation: pulse-ring 2s infinite;
}

.cs-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(230, 0, 18, 0.6);
}

.cs-toggle.active {
    animation: none;
}

.cs-toggle i {
    font-size: 1.8rem;
    color: white;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(230, 0, 18, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 18, 0);
    }
}

.cs-panel {
    position: absolute;
    right: 70px;
    bottom: 0;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.cs-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cs-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.cs-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cs-close:hover {
    opacity: 0.8;
}

.cs-body {
    padding: 20px;
    text-align: center;
}

.cs-qrcode {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.qr-placeholder {
    color: var(--primary-red);
}

.cs-phone {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
}

.cs-time {
    color: var(--gray);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: var(--black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* 大气页脚样式 */
.footer-main {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E60012, #ff6b6b, #E60012);
}

.footer-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 18, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-decoration-1 {
    top: -200px;
    right: -100px;
}

.footer-decoration-2 {
    bottom: -200px;
    left: -100px;
}

.footer-brand {
    font-size: 2.5rem;
    font-weight: 800;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.7;
    max-width: 350px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #E60012;
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #E60012;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #E60012;
    margin-right: 0;
    transition: all 0.3s;
}

.footer-links a:hover::before {
    width: 15px;
    margin-right: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.footer-contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #E60012 0%, #B8000E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* 地址列表样式 */
.footer-address-compact {
    flex: 1;
}
.footer-address-compact p {
    color: #fff;
}
.footer-addr-row {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
}
.footer-addr-dot {
    width: 4px;
    height: 4px;
    background: #E60012;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 8px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #E60012;
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #E60012;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .customer-service {
        right: 15px;
        bottom: 80px;
    }

    .cs-toggle {
        width: 50px;
        height: 50px;
    }

    .cs-toggle i {
        font-size: 1.5rem;
    }

    .cs-panel {
        right: 60px;
        width: 260px;
    }

    .back-to-top {
        right: 15px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}


/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 1rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    color: #E60012;
    border-color: #E60012;
    background: #fff;
}

/* 当前页码高亮 - 兼容eyou模板 */
.pagination b,
.pagination strong,
.pagination .active a,
.pagination a.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 1rem;
    border-radius: 8px;
    font-weight: 600;
    background: #E60012 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

/* 上一页 */
.pagination a:first-child {
    color: #666;
    padding: 0 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* 下一页 */
.pagination a:last-child {
    color: #E60012;
    padding: 0 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.pagination a:first-child:hover,
.pagination a:last-child:hover {
    color: #E60012;
    border-color: #E60012;
    background: #fff5f5;
}
.web_logo img{
    height: 60px;
}