/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.25s ease;
}

/* 覆盖 Animate.css 的 overflow 设置 */
.navbar.animate__animated {
    overflow: visible !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 4px;
    background: #333;
    transition: 0.25s;
    display: block;
    border-radius: 3px;
}

/* 汉堡菜单激活状态 */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 首页横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px 0; /* 添加顶部内边距避免导航栏遮挡 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-1px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-animation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-animation i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default; /* 改为不可点击 */
    will-change: transform, color, filter;
    pointer-events: none; /* 禁用鼠标事件 */
}

/* 移除原有的动画延迟设置，让animate.css控制 */

/* 移除悬停效果，保持持续浮动 */

/* 移除所有交互效果，保持持续浮动动画 */

/* 服务部分 */
.services {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.service-card ul {
    list-style: none;
    flex-grow: 1;
}

.service-card li {
    color: #64748b;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 0.85rem;
}

/* 关于我们 */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #64748b;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-photo {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 添加阴影效果 */
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
    max-width: 100%;
}

/* 初始状态：隐藏并向下偏移，为滚动移入开屏效果做准备 */
.team-photo.initial-state {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滚动移入开屏效果 */
.team-photo.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.35);
    animation: float 6s ease-in-out infinite;
}

/* 团队照片移入动画 */
@keyframes teamPhotoEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9) rotate(-5deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* 团队照片悬停效果 */
.team-photo:hover,
.team-photo.hover-effect {
    transform: translateY(-12px) scale(1.06);
    box-shadow: 0 40px 80px rgba(37, 99, 235, 0.5);
    animation-play-state: paused;
}

.team-photo i {
    font-size: 6rem;
    color: white;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 团队照片图标悬停效果 */
.team-photo:hover i {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    color: #f0f9ff;
}

/* 添加光晕效果 */
.team-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    overflow: hidden;
}

.team-photo:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 案例展示 */
.portfolio {
    padding: 5rem 0;
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

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

.portfolio-image {
    height: 200px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image i {
    font-size: 4rem;
    color: white;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tag {
    background: #e0e7ff;
    color: #2563eb;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 1px 8px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.case-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.case-link:hover {
    color: #1d4ed8;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.case-link:hover::before {
    left: 100%;
}

.case-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.case-link:hover i {
    transform: translateX(2px);
}

/* 可点击的portfolio卡片样式 */
.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.portfolio-link:hover {
    text-decoration: none;
    color: inherit;
}

.portfolio-link:hover .portfolio-image i {
    transform: scale(1.1);
}

.portfolio-link:hover .case-link {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 联系我们 */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.25s ease;
}

.contact-item:hover {
    background: #e0e7ff;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* 自定义动画 - 保留一些特殊的动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

/* 为 Animate.css 添加一些自定义样式 */
.animate__animated {
    animation-duration: 0.6s;
}

.animate__fadeInUp {
    animation-duration: 0.7s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.animate__pulse {
    animation-duration: 0.25s;
}

/* 数字动画特殊样式 */
.stat-item h3.animate__animated {
    animation-duration: 0.6s;
}

/* 防止 Animate.css 与悬停效果冲突 */
.btn:hover {
    animation: none !important;
}

/* 确保动画不会与悬停效果冲突 */
.animate__animated:hover {
    animation-fill-mode: both;
}

/* 防止动画重复触发 */
.animate__animated {
    animation-iteration-count: 1;
}

/* 确保 fadeInUp 动画只执行一次 */
.animate__fadeInUp {
    animation-iteration-count: 1 !important;
    animation-fill-mode: forwards;
}

/* 服务卡片悬停效果 */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* 确保服务卡片的初始状态稳定 */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 确保 tech-animation 图标的 Animate.css 动画正常工作 */
.tech-animation i.animate__animated {
    animation-fill-mode: forwards !important;
}

.tech-animation i.animate__fadeInUp {
    animation-duration: 0.8s !important;
    animation-timing-function: ease-out !important;
}



/* 为导航链接添加动画 */
.nav-link:hover {
    animation: none !important;
}

/* 为英雄区域按钮添加特殊动画 */
.hero-buttons .btn {
    transition: all 0.25s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-1px);
    animation: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    /* 移动端首屏优化 */
    .hero {
        min-height: 100vh;
        padding: 100px 0 40px 0; /* 增加顶部内边距 */
        display: flex;
        align-items: center;
    }

    .hero-container {
        grid-template-columns: 1fr; /* 改为单列布局 */
        gap: 3rem;
        text-align: center;
        padding: 0;
    }

    .hero-title {
        font-size: 2.5rem; /* 增大字体 */
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .tech-animation {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .tech-animation i {
        font-size: 3rem;
    }

    .hamburger {
        display: flex !important;
        width: 35px;
        height: 35px;
        justify-content: center;
        align-items: center;
        padding: 5px;
        background: transparent;
        border: none;
        outline: none;
        gap: 3.5px;
    }
    
    .hamburger .bar {
        width: 25px;
        height: 4px;
        background: #333;
        transition: 0.25s;
        display: block;
        border-radius: 3px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 5rem 0 1.5rem 0;
        gap: 1.5rem;
        display: flex !important;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-item {
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu .nav-item:nth-child(5) { transition-delay: 0.5s; }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        display: block;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        color: #2563eb;
        transform: translateX(5px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.2rem;
        gap: 0.8rem;
    }

    .contact-item i {
        font-size: 1.3rem;
        width: 35px;
    }

    .team-photo {
        width: 200px;
        height: 200px;
    }

    .team-photo i {
        font-size: 3rem;
    }

    .team-photo:hover {
        transform: scale(1.05);
    }

    .team-photo.animate-in {
        animation: teamPhotoEntranceMobile 0.8s ease-out forwards;
    }

    @keyframes teamPhotoEntranceMobile {
        0% {
            opacity: 0;
            transform: translateX(50px) scale(0.8);
        }
        100% {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.5rem;
        min-height: auto;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .tech-animation {
        gap: 1.5rem;
    }
    
    .tech-animation i {
        font-size: 3.5rem;
    }
    
    .btn {
        padding: 1.1rem 1.8rem;
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-menu {
        top: 0;
        padding: 3.5rem 0 1rem 0;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* 小屏幕首屏进一步优化 */
    .hero {
        padding: 90px 0 30px 0;
        min-height: 100vh;
    }
    
    .hero-container {
        padding: 0 10px;
        gap: 2.5rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        padding: 0 5px;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .tech-animation {
        gap: 1rem;
        max-width: 250px;
    }

    .tech-animation i {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* 关于我们部分在小屏幕上的优化 */
    .about-content {
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* 联系我们部分在小屏幕上的优化 */
    .contact-content {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .contact-item i {
        font-size: 1.2rem;
        width: 30px;
    }

    .contact-item h3 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }
    
    /* 移动端额外优化 */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* 移动端服务卡片优化 */
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .service-card li {
        font-size: 0.85rem;
    }
    
    /* 移动端作品集优化 */
    .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
    }
    
    /* 移动端页脚优化 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        max-width: 240px;
    }
    
    .tech-animation {
        max-width: 200px;
        gap: 0.8rem;
    }
    
    .tech-animation i {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-content {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .wechat-contact-card {
        padding: 1.2rem;
    }
    
    .qr-code-section img {
        width: 140px;
        height: 140px;
    }
}

/* 微信联系卡片样式 */
.wechat-contact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.qr-code-section {
    margin-bottom: 2rem;
}

.qr-code-section img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.qr-code-section img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qr-tip {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}



.contact-note {
    background: #ecfdf5;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #d1fae5;
    margin-top: 1rem;
}

.contact-note p {
    margin: 0;
    color: #065f46;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-note i {
    color: #10b981;
    font-size: 1rem;
}

/* 响应式设计 - 微信联系卡片 */
@media (max-width: 768px) {
    .wechat-contact-card {
        padding: 1.5rem;
    }
    
    .qr-code-section img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .wechat-contact-card {
        padding: 1.5rem;
    }
    
    .qr-code-section img {
        width: 160px;
        height: 160px;
    }
}

/* 数字动画相关样式 */
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
} 

/* 服务图标悬停效果 */
.service-card:hover .service-icon i {
    color: #2563eb;
    transform: scale(1.08);
}

.service-icon i {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 案例展示悬停效果 */
.portfolio-item:hover .portfolio-image i {
    color: #2563eb;
    transform: scale(1.08);
}

.portfolio-image i {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
}

/* 联系信息悬停效果 */
.contact-item:hover {
    transform: translateX(3px);
    background: rgba(37, 99, 235, 0.05);
}

.contact-item:hover i {
    color: #2563eb;
}

.contact-item i {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 微信联系卡片悬停效果 */
.wechat-contact-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.qr-code-section img {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-code-section img:hover {
    transform: scale(1.03);
}

/* 页脚链接悬停效果 */
.footer-section a:hover {
    color: #2563eb;
}

/* 减少动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate__animated {
        animation: none !important;
    }
    
    /* 保持基本的悬停效果 */
    .contact-item:hover,
    .btn:hover {
        transition-duration: 0.1s !important;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .portfolio-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .contact-item:hover {
        transform: translateX(2px);
        background: rgba(37, 99, 235, 0.05);
    }
    
    .case-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.6rem;
        border-radius: 18px;
    }
    
    .portfolio-link:hover .case-link {
        transform: translateY(-1px);
    }
    
    /* 移动端触摸优化 */
    .btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .service-card,
    .portfolio-item,
    .contact-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 移动端按钮点击效果 */
    .btn:active {
        transform: translateY(1px);
        transition: transform 0.1s ease;
    }
    
    .service-card:active,
    .portfolio-item:active {
        transform: translateY(-1px);
        transition: transform 0.1s ease;
    }
    
    /* 移动端导航优化 */
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .nav-link:active {
        opacity: 0.7;
        transition: opacity 0.1s ease;
    }
} 