/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox 滚动条样式 */
html {
    scrollbar-width: thin;
    scrollbar-color: #3B82F6 #f1f1f1;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动条动画效果 */
@keyframes scrollbarGlow {
    0% { box-shadow: 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
    100% { box-shadow: 0 0 0 rgba(59, 130, 246, 0.4); }
}

/* 滚动时的发光效果 */
::-webkit-scrollbar-thumb:active {
    animation: scrollbarGlow 0.5s ease-in-out;
}

/* 移动端滚动条优化 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #1E3A8A, #3B82F6);
        border-radius: 3px;
    }
    
    /* 移动端回到顶部按钮 */
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        min-width: 45px;
        min-height: 45px;
        max-width: 45px;
        max-height: 45px;
    }
}

/* 滚动条淡入淡出效果 */
::-webkit-scrollbar-thumb {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

/* 滚动条轨道美化 */
::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
    border-radius: 4px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 滚动条按钮样式（如果浏览器支持） */
::-webkit-scrollbar-button {
    display: none;
}

/* 滚动条角落样式 */
::-webkit-scrollbar-corner {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    display: block;
    text-decoration: none;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-brand a:hover .logo {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-menu li a:hover {
    color: #1E3A8A;
    background: rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E3A8A, #3B82F6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-menu li a:hover::after {
    width: 80%;
}

.nav-menu li a.active {
    color: #1E3A8A;
    background: rgba(30, 58, 138, 0.1);
}

.nav-menu li a.active::after {
    width: 80%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* 首屏英雄区样式 - 轮播 */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 50%, rgba(96, 165, 250, 0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 0 20px;
    animation: slideInUp 1s ease-out;
    width: 100%;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators span.active {
    background: #F59E0B;
    transform: scale(1.2);
}

.carousel-indicators span:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: visible;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-advantages {
    margin-bottom: 50px;
}

.advantage-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.advantage-item i {
    color: #F59E0B;
    margin-right: 10px;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 通用区域样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 服务项目区样式 */
.services-section {
    padding: 100px 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '•';
    color: #3B82F6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 核心竞争力区样式 */
.advantages-section {
    padding: 100px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
}

.advantage-icon i {
    font-size: 2.5rem;
    color: white;
    display: block;
}

.advantage-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
}

.advantage-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.advantage-highlight {
    background: #1E3A8A;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

/* 成功案例区样式 */
.cases-section {
    padding: 100px 0;
    background: #f8fafc;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-image {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: #f5f5f5;
    min-height: 200px;
}

.case-image img:hover {
    transform: scale(1.05);
}

.case-image img[src*="placeholder"] {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.case-content {
    padding: 30px;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
}

.case-tags {
    margin-bottom: 20px;
}

.tag {
    background: #E0F2FE;
    color: #1E3A8A;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

.case-challenge,
.case-solution,
.case-result {
    margin-bottom: 20px;
}

.case-challenge h4,
.case-solution h4,
.case-result h4 {
    color: #1E3A8A;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.case-challenge p,
.case-solution p,
.case-result p {
    color: #666;
    line-height: 1.6;
}

/* 团队实力区样式 */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border-radius: 15px;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.about-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-description p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

/* 联系我们区样式 */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 页脚样式 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    color: #ccc;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: #F59E0B;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #F59E0B;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* 动画效果 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 轮播移动端优化 */
@media (max-width: 768px) {
    .carousel-controls {
        display: none;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators span {
        width: 10px;
        height: 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: visible;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu-active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
        padding: 0 5px;
        white-space: nowrap;
        overflow: visible;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 5px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
        padding: 0 2px;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        padding: 0 2px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Element Plus 自定义样式 */
.el-button--primary {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.el-button {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-2px);
}

/* 回到顶部按钮样式 */
.back-to-top {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Element Plus BackTop 组件样式覆盖 */
.el-backtop {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.el-backtop:hover {
    background: transparent !important;
}

/* 确保回到顶部按钮是正圆 */
.back-to-top {
    box-sizing: border-box;
    flex-shrink: 0;
    aspect-ratio: 1;
}
