/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 添加全局过渡效果 */
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), 
                opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth; /* 添加平滑滚动作为备份 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    height: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
    z-index: -1;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-color);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 创建半透明背景层 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
}

.header.sticky {
    padding: 15px 0;
}

.header.sticky::before {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    transition: color 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header.sticky .logo h1 {
    color: var(--text-color);
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header.sticky .nav ul li a {
    color: var(--text-color);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

/* 首页轮播 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1);
    transform-origin: center bottom;
    will-change: transform;
    --scale-factor: 1;
    /* 添加平滑过渡效果，但时间较短 */
    transition: transform 4s ease;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 轮播图放大效果优化 */
.slide-bg.zoom {
    transform: scale(var(--scale-factor, 1.35));
    /* 保持相同的过渡效果 */
    transition: transform 0.3s ease-out;
}

.slide-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
    color: white;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-desc {
    font-size: 18px;
    margin-bottom: 30px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev, .next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: var(--transition);
}

.prev:hover, .next:hover {
    background-color: var(--primary-color);
}

.dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 关于我们 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-image {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 0 15px;
}

.about-text {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 0 15px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    text-align: center;
    padding: 15px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    background-color: #2980b9;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 合作客户 */
.clients {
    background-color: var(--light-color);
    position: relative;
    z-index: 2;
}

.clients-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.client-item {
    flex: 0 0 calc(16.666% - 30px);
    max-width: calc(16.666% - 30px);
    margin: 15px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: relative;
    z-index: 2;
}

.client-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 作品展示 */
.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.portfolio-filter ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-filter ul li {
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
}

.portfolio-filter ul li.active,
.portfolio-filter ul li:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    min-height: 300px; /* 确保高度稳定，避免筛选时布局跳动 */
    position: relative;
    perspective: 1000px; /* 添加3D视角增强动画效果 */
}

/* 作品筛选过渡期间的样式 */
.portfolio-grid.filtering {
    min-height: 300px;
    pointer-events: none; /* 避免用户在过渡期间点击 */
}

.portfolio-item {
    width: calc(33.333% - 30px);
    margin: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
                opacity 0.4s ease, 
                transform 0.5s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    backface-visibility: hidden; /* 防止动画期间出现锯齿 */
    will-change: transform, opacity; /* 优化动画性能 */
}

/* 作品筛选动画效果 */
@keyframes portfolioFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes portfolioFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.portfolio-item.portfolio-item-hide {
    animation-name: portfolioFadeOut;
}

.portfolio-item:not(.portfolio-item-hide):not(.hidden) {
    animation-name: portfolioFadeIn;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px; /* 统一高度 */
}

.portfolio-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 152, 219, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='rgba(0,0,0,0.5)' stroke='white' stroke-width='2'/%3E%3Ccircle cx='28' cy='28' r='12' fill='none' stroke='white' stroke-width='3'/%3E%3Cpath d='M36 36 L48 48' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M28 22 L28 34' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M22 28 L34 28' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.portfolio-img:hover::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.portfolio-img:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片填充并裁剪以适应容器 */
    object-position: center; /* 居中显示 */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.2);
}

.portfolio-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
}

.portfolio-item:hover .portfolio-info {
    bottom: 0;
    opacity: 1;
    transform: translateY(0);
}

/* 添加文字动画 */
.portfolio-info h4, 
.portfolio-info p, 
.portfolio-info a {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0s;
}

.portfolio-info p {
    transition-delay: 0.1s;
}

.portfolio-info a {
    transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-info h4,
.portfolio-item:hover .portfolio-info p,
.portfolio-item:hover .portfolio-info a {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.portfolio-info p {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.portfolio-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.portfolio-link:hover {
    color: #2980b9;
}

/* 联系我们 */
.contact {
    background-color: white;
    position: relative;
    z-index: 8;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 8;
}

.contact-info {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 0 15px;
}

.contact-form {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 0 15px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.15) rotate(10deg);
    background-color: rgba(52, 152, 219, 0.2);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.contact-icon:hover svg {
    transform: scale(1.1);
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

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

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.15) rotate(10deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

/* 优化动画效果 */
.reveal-left,
.reveal-right,
.reveal-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-item {
    transform: translateY(30px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-item.active {
    opacity: 1;
    transform: translate(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-image,
    .about-text {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .feature {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .client-item {
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
    
    .portfolio-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    
    .portfolio-img {
        height: 220px; /* 平板设备高度稍小 */
    }
    
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-social {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .slide-title {
        font-size: 36px;
    }
    
    .client-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    
    .portfolio-item {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    .portfolio-img {
        height: 200px; /* 手机设备高度更小 */
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 28px;
    }
    
    .client-item {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

/* 视差滚动效果 */
.parallax-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 9;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.parallax-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.parallax-text {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.parallax-section.active .parallax-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.parallax-section.active .parallax-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.parallax-counter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.counter-item {
    flex: 0 0 200px;
    margin: 15px;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.parallax-section.active .counter-item:nth-child(1) {
    transition-delay: 0.4s;
}

.parallax-section.active .counter-item:nth-child(2) {
    transition-delay: 0.6s;
}

.parallax-section.active .counter-item:nth-child(3) {
    transition-delay: 0.8s;
}

.parallax-section.active .counter-item:nth-child(4) {
    transition-delay: 1s;
}

.parallax-section.active .counter-item {
    opacity: 1;
    transform: translateY(0);
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.counter-text {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 浮动图标效果 */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    opacity: 0.2;
    animation: float 15s infinite linear;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.floating-icon:nth-child(4) {
    bottom: 10%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* 修复视差背景部分 */
.parallax-bg {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1; /* 设为最底层 */
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.parallax-bg .container {
    position: relative;
    z-index: 2; /* 确保内容在遮罩层之上 */
}

/* 确保滚动进度条始终在最顶层 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    width: 0;
    z-index: 2000; /* 保持最高层级 */
    transition: width 0.1s linear;
    will-change: width;
}

/* 优化视差滚动元素 */
.parallax-section,
.parallax-bg,
.slide-bg {
    transform: translateZ(0);
}

/* 优化动画元素 */
.reveal-left,
.reveal-right,
.reveal-item,
.header,
.slide,
.portfolio-item,
.counter-item {
    will-change: transform, opacity;
}

/* 滚动状态样式 */
html.scrolling,
body.scrolling {
    scroll-behavior: auto !important;
    pointer-events: none;
}

/* 添加作品隐藏样式 */
.portfolio-item.hidden {
    display: none;
    position: absolute;
    visibility: hidden;
    opacity: 0;
}

/* 添加缺失的row样式 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

/* 服务项目样式优化 */
.service-item {
    flex: 0 0 calc(25% - 30px);
    max-width: calc(25% - 30px);
    margin: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 添加响应式支持 */
@media (max-width: 992px) {
    .service-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 576px) {
    .service-item {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

/* 恢复作品展示部分样式 */
.portfolio {
    position: relative;
    background-color: white;
    z-index: 10;
}

/* 恢复视差滚动服务介绍部分样式 */
.parallax-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 9;
}

/* 视差背景容器 */
.parallax-bg .container {
    position: relative;
    z-index: 2; /* 确保内容在遮罩层之上 */
}

/* 关于我们图片展示区 */
.about-images-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.about-images-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.about-images-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -10px;
}

.about-image-item {
    flex: 0 0 calc(25% - 20px);
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

.about-image-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.about-image-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay span {
    font-size: 16px;
    font-weight: 500;
}

/* 从左向右的动画效果 */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s forwards ease-out;
    animation-play-state: paused;
}

.slide-in-left.visible {
    animation-play-state: running;
    visibility: visible;
}

/* 响应式调整 - 关于我们图片区域 */
@media (max-width: 992px) {
    .about-images {
        justify-content: center;
    }
    
    .about-image-item {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .about-image-item {
        flex: 0 0 calc(100% - 20px);
    }
}

/* 团队成员样式 */
.team {
    background-color: #f8f9fa;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.team-member {
    flex: 0 0 calc(25% - 30px);
    max-width: calc(25% - 30px);
    margin: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.member-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.3s ease;
}

.team-member:hover .member-social {
    bottom: 0;
}

.member-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.member-social a:hover {
    transform: translateY(-5px);
    background-color: #2980b9;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}

.member-position {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.member-desc {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.6;
}

/* 团队成员响应式样式 */
@media (max-width: 992px) {
    .team-member {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    
    .member-info h3 {
        font-size: 24px;
    }
    
    .member-position {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .team-member {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    .member-info {
        padding: 25px 15px;
    }
    
    .member-info h3 {
        font-size: 24px;
    }
    
    .member-position {
        font-size: 17px;
    }
}

/* 语言切换器样式 */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-btn {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.header.sticky .lang-btn {
    color: var(--dark-color);
    border-color: rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.header.sticky .lang-btn:hover,
.header.sticky .lang-btn.active {
    color: white;
    border-color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header .container {
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .lang-switcher {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .lang-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* 查看更多按钮容器 */
.view-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.view-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
}

.view-more-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 作品集详情页样式 */
.page-title {
    background-color: var(--primary-color);
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(52, 152, 219, 0.7), rgba(26, 188, 156, 0.7));
    z-index: 1;
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: white;
}

.page-title p {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
} 