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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 在全局样式下添加动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 添加滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

/* 导航栏样式优化 */
.navbar {
    padding: 1rem 5%;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.2rem;
    background: linear-gradient(
        45deg,
        #3498db,
        #2ecc71,
        #3498db
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    to {
        background-position: 200% center;
    }
}

.logo h1::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 5%;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

/* 主页英雄区样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    overflow: hidden;
    padding: 0 5%;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    font-weight: 700;
}

.typing-text {
    display: block;
    position: relative;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.main-image {
    width: 100%;
    height: auto;
    animation: floating 3s ease-in-out infinite;
}

.tech-stack {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: techFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.tech-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes particlesFade {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes techFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
}

/* 服务部分样式 */
.services {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

/* 添加背景效果 */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

/* 优化标题样式 */
.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
}

/* 优化服务卡片网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* 优化服务卡样式 */
.service-card {
    background: rgba(32, 32, 32, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0) translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
}

.service-card:hover {
    transform: perspective(1000px) rotateX(10deg) translateY(-20px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
}

/* 改进卡片悬停效果 */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #3498db;
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2);
}

/* 优化图标样式 */
.service-card i {
    font-size: 2.8rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover i {
    transform: scale(1.1);
}

/* 添加图标装饰 */
.service-card i::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    z-index: -1;
    left: -10px;
    top: -10px;
    transition: all 0.3s ease;
}

.service-card:hover i::after {
    transform: scale(1.5);
    opacity: 0.5;
}

/* 优化标题和描述文本 */
.service-card h3 {
    font-size: 1.8rem;
    color: var(--text-light) !important;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover h3 {
    transform: translateY(-5px);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover p {
    transform: translateY(-5px);
}

/* 优化特性列表样式 */
.service-features {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.service-features li i {
    font-size: 1.2rem;
    color: #3498db;
    background: none;
    margin: 0;
}

.service-features li:hover {
    color: #ffffff;
    transform: translateX(10px);
}

/* 添加卡片装饰效果 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(52, 152, 219, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

/* 添加动画关键帧 */
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    .services {
        padding: 4rem 1.5rem;
    }

    .services h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* 添加暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #fff;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-links a {
        color: #fff;
    }
    
    .service-card {
        background: rgba(26, 26, 26, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 添加进度条样式 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #3498db;
    z-index: 1001;
    transition: width 0.3s ease;
}

/* 完善于部分样式 */
.about {
    padding: 5rem 5%;
    background: #f8f9fa;
}

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

.about-text {
    font-size: 1.1rem;
    color: #2c3e50;
}

.achievements {
    list-style: none;
    margin-top: 2rem;
}

.achievements li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.achievements i {
    color: #3498db;
    margin-right: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* 完善联系样式 */
.contact {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 1rem;
}

/* 完善页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

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

/* 添加移动端菜单动画 */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加深色主题变量 */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --text-light: #f8f9fa;
    --text-dark: #2c3e50;
    --bg-dark: #121212;
    --bg-darker: #1a1a1a;
    --bg-card: #1e1e1e;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* 修改深色模式样式 */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg-dark);
        color: var(--text-light);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .logo h1 {
        color: var(--text-light);
    }
    
    .nav-links a {
        color: var(--text-light);
    }
    
    .hero {
        background: var(--gradient-dark);
    }
    
    .service-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        box-shadow: 0 5px 15px var(--shadow-color);
    }
    
    .about {
        background: #2c3e50;
    }
    
    .about-text {
        color: var(--text-light);
    }
    
    .contact {
        background: var(--gradient-dark);
    }
    
    .contact-form input,
    .contact-form textarea {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: var(--text-light);
    }
    
    .contact-info {
        background: var(--bg-card);
    }
    
    .footer {
        background: #1a1a1a;
        border-top: 1px solid var(--border-color);
    }
}

/* 添加霓虹灯效果 */
.neon-text {
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
}

/* 添加玻璃态效果 */
.glass-effect {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* 添加回退方案 */
@supports not (backdrop-filter: blur(10px)) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* 优化动画效果 */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* 添加悬浮效果 */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 下拉菜单样式优化 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    min-width: 280px;
    padding: 0.8rem 0;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropdown-menu li a {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dropdown-menu li a span {
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-menu li a small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-menu li a i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.dropdown-menu li a:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--primary-color);
}

/* 修改导航链接样式 */
.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-links a i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links a:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* 修改菜单触发器样式 */
.menu-trigger {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-trigger i {
    font-size: 1.2rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.menu-trigger:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.menu-trigger.active i {
    transform: rotate(180deg);
}

/* 添加动画效果 */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    animation: menuFadeIn 0.3s ease forwards;
    opacity: 0;
}

.dropdown-menu li:nth-child(1) { animation-delay: 0.1s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.2s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.3s; }
.dropdown-menu li:nth-child(4) { animation-delay: 0.4s; }
.dropdown-menu li:nth-child(5) { animation-delay: 0.5s; }

/* 搜索框样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: white;
    font-size: 1.5rem;
    outline: none;
}

.close-search {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 色模式适配 */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: var(--bg-dark);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-menu a {
        color: var(--text-light);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-buttons button {
        color: var(--text-light);
    }
} 

/* 添加发光效果 */
.service-card:hover i {
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary-color),
                     0 0 10px var(--primary-color),
                     0 0 15px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color);
    }
}

/* 修改汉堡菜单深色主题样式 */
.burger div {
    background-color: #ffffff;
}

/* 修改移动端导航深色主题样式 */
@media screen and (max-width: 768px) {
    .nav-links {
        background: rgba(18, 18, 18, 0.95);
    }
    
    .nav-links.nav-active {
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
}

/* 添加服务卡片悬停时的背景渐变效果 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(52, 152, 219, 0.1),
        rgba(52, 152, 219, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

/* 修改导航菜单样式 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 5%;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 修改菜单触发器样式 */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.menu-trigger:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.menu-trigger i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.menu-trigger.active i {
    transform: rotate(180deg);
}

/* 修改导航项样式 */
.nav-links li {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.nav-links.show li {
    opacity: 1;
    transform: translateX(0);
}

.nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-links li:nth-child(2) { transition-delay: 0.2s; }
.nav-links li:nth-child(3) { transition-delay: 0.3s; }
.nav-links li:nth-child(4) { transition-delay: 0.4s; }

/* 修改下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: rgba(13, 13, 13, 0.98);
    border-radius: 12px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(10px);
}

/* 导航栏基样式优化 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航菜单容器 */
.nav-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* 优下拉菜单基础样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

/* 修��航项容器定位 */
.nav-links li {
    position: relative;
}

/* 优化下拉菜单显示位置 */
.dropdown {
    position: relative;
}

/* 最后一个下拉单特殊处理 */
.nav-links li:last-child .dropdown-menu {
    right: 0;
    left: auto;
}

/* 修改导航链接容器样式 */
.nav-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    padding-right: 2rem;
}

/* 优化菜单项布局 */
.dropdown-menu li a {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
        "icon title"
        "icon description";
    gap: 0.3rem 1rem;
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

/* 添加菜单展开动画 */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 修改菜单触发区域 */
.nav-links > li > a {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

/* 添加响应式处理 */
@media screen and (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .nav-links {
        padding: 1rem;
    }

    .nav-links li {
        width: 100%;
    }
}

/* 优化导航栏布局和动画 */
.navbar {
    padding: 1rem 5%;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 改进Logo动画效果 */
.logo h1 {
    font-size: 2.2rem;
    background: linear-gradient(
        45deg,
        #3498db,
        #2ecc71,
        #3498db
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    to {
        background-position: 200% center;
    }
}

/* 优下拉菜单交互 */
.dropdown-menu {
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* 优化关于部分布局 */
.about {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* 添加背景动画效果 */
.about::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(52, 152, 219, 0.1) 0%,
        transparent 50%
    );
    animation: rotate 20s linear infinite;
}

/* 优化联系表单布局 */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 改进输入框样式 */
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

/* 添加更细致的断点控制 */
@media screen and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
}

/* 添加服务卡片链接样式 */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service-card-link:hover {
    transform: translateY(-10px);
}

/* 修改服务卡片样式以适应链接包装 */
.service-card {
    height: 100%;
    cursor: pointer;
}

/* 确保链接内的文本颜色正确 */
.service-card-link .service-card h3,
.service-card-link .service-card p {
    color: var(--text-light);
}

/* 添加链接悬停效果 */
.service-card-link:hover .service-card {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2);
}

/* 响应式设计优化 */
:root {
    --container-width: 1200px;
    --container-padding: 2rem;
    --grid-gap: 2rem;
}

@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
        --grid-gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --container-padding: 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

.solutions {
    padding: 4rem 2rem;
    background: var(--bg-gradient);
}

.solutions h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.solution-card:hover {
    transform: translateY(-5px);
}

.challenge h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution ul {
    list-style: none;
    padding-left: 1.5rem;
}

.solution ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.solution ul li:before {
    content: "→";
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
}

/* 优化标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-light) !important;
}

.title-decoration {
    height: 2px;
    width: 50px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
}

.title-decoration::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.title-decoration:first-child::before {
    right: -4px;
}

.title-decoration:last-child::before {
    left: -4px;
}

/* 优化按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* 优化卡片动画效果 */
.service-card,
.solution-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.solution-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
}

/* 添加卡片内容动画 */
.service-card i,
.solution-card i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover i,
.solution-card:hover i {
    transform: scale(1.1) translateZ(20px);
    color: var(--primary-color);
}

/* 优化文字动画 */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-text:nth-child(2) {
    animation-delay: 0.2s;
}

/* 添加滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 优化响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        gap: 1rem;
    }

    .title-decoration {
        width: 30px;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
    }
}

/* 优化英雄区域容器 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    overflow: hidden;
}

/* 改进图片容器样式 */
.image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.main-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(52, 152, 219, 0.2));
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

/* 技栈图标动画优化 */
.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform-style: preserve-3d;
    animation: techFloat 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.tech-icon i {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.3));
}

/* 背景形状动画 */
.background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    filter: blur(20px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: morphShape 15s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: morphShape 12s linear infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morphShape 10s linear infinite;
}

/* 代码动画效果 */
.code-animation {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #ecf0f1;
    opacity: 0.6;
    animation: codeTyping 3s steps(40) infinite;
}

/* 动画关键帧 */
@keyframes morphShape {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes techFloat {
    0%, 100% {
        transform: translateZ(20px) translateY(0);
    }
    50% {
        transform: translateZ(50px) translateY(-20px);
    }
}

@keyframes codeTyping {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* 添加3D悬浮效果 */
.hero-image {
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
}

/* 优化响应式布局 */
@media (max-width: 992px) {
    .hero-image {
        margin-top: 2rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
    }
    
    .tech-icon i {
        font-size: 1.5rem;
    }
    
    .code-animation {
        display: none;
    }
}

/* 添加交互动画 */
.image-container:hover .tech-icon {
    animation-play-state: paused;
}

.tech-icon:hover {
    transform: scale(1.2) translateZ(60px);
    transition: transform 0.3s ease;
}

/* 添加加载动画 */
.hero-content {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 联系部分样式优化 */
.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: 753px; /* 设置与iframe高度相同 */
}

.google-form {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.contact-info {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        height: 600px; /* 移动端调整高度 */
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: 0 1rem;
    }

    .contact-form-wrapper {
        height: 500px; /* 小屏幕调整高度 */
    }

    .info-item {
        padding: 0.8rem;
    }
}

/* 关于我图片样式 */
.about-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

/* 添加悬停效果 */
.profile-image:hover {
    transform: translateY(-10px);
}

/* 装饰元素样式 */
.profile-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.decoration-line {
    position: absolute;
    width: 150px;
    height: 150px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    bottom: -20px;
    left: -20px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* 添加加载动画 */
.profile-image.lazy {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.profile-image.lazy.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-image {
        max-width: 300px;
        margin-top: 2rem;
    }
    
    .decoration-circle {
        width: 150px;
        height: 150px;
    }
    
    .decoration-line {
        width: 100px;
        height: 100px;
    }
}

/* 添加响应式基础变量 */
:root {
    --header-height: 70px;
    --container-width-xl: 1200px;
    --container-width-lg: 960px;
    --container-width-md: 720px;
    --container-width-sm: 540px;
    --container-padding: 2rem;
    --section-padding: 5rem 0;
}

/* 响应式容器 */
.container {
    width: 100%;
    max-width: var(--container-width-xl);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 优化导航栏响应式设计 */
@media (max-width: 992px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .menu-trigger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.show {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 1rem 0;
    }
}

/* 优化英雄区域响应式设计 */
@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* 优化服务卡片响应式布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* 优化解决方案卡片响应式布局 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 优化关于部分响应式布局 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .achievements {
        justify-content: center;
    }
}

/* 优化联系部分响应式布局 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        height: 400px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}

/* 优化页脚响应式布局 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* 添加移动端触摸优化 */
@media (hover: none) {
    .service-card:hover,
    .solution-card:hover {
        transform: none;
    }

    .tech-icon:hover {
        transform: none;
    }

    .nav-links a:hover {
        background: none;
    }
}

/* 优化字体大小响应式 */
@media (max-width: 1200px) {
    html {
        font-size: 95%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 90%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
    }
}

/* 优化间距响应式 */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
        --container-padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 1rem;
    }
}

/* 添加平板设备优化 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0;
    }

    .hero-image {
        max-width: 60%;
    }
}

/* 添加打印样式优化 */
@media print {
    .hero-image,
    .decoration-circle,
    .decoration-particles,
    .tech-stack,
    .social-links {
        display: none;
    }

    .hero-text,
    .about-text,
    .contact-info {
        width: 100%;
        text-align: left;
    }
}

/* 优化图片响应式加载 */
.lazy-image {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 添加响应式背景图片 */
@media (max-width: 768px) {
    .hero::before {
        background-size: 200% 200%;
    }
}

/* 优化动画性能 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* About Me 区域样式优化 */
.about {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    animation: pulseBackground 8s ease-in-out infinite;
}

/* 文本内容样式 */
.text-content {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible .text-content {
    transform: translateY(0);
    opacity: 1;
}

.highlight-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* 技能网格样式 */
.skills-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category i {
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.5s ease forwards;
}

.skill-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 技术标签样式优化 */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tech-badge:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tech-badge:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

/* 动画关键帧 */
@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseBackground {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-badges {
        justify-content: center;
    }
}

/* About Me 区域文本样式修复 */
.about-text {
    color: var(--text-light);
    opacity: 1; /* 确保文本可见 */
}

.text-content {
    opacity: 1; /* 修复初始不可见的问题 */
    transform: none; /* 移除可能导致内容隐藏的变换 */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-text {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

.skills-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-list li {
    color: #ffffff;
    opacity: 1;
    transform: none;
    margin-bottom: 0.8rem;
}

.approach-text {
    color: #ffffff;
    margin: 2rem 0;
    line-height: 1.8;
}

/* 修复动画相关的问题 */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

/* 确保背景色正确设置 */
.about {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #ffffff;
}

/* 修复技术标签的显示 */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-badge {
    background: rgba(52, 152, 219, 0.1);
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* 添加CSS变量 */
:root {
    --text-light: #ffffff;
    --primary-color: #3498db;
    --bg-dark: #1a1a1a;
    --bg-darker: #2c3e50;
}

/* 添加字体变量 */
:root {
    /* 颜色变量 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --primary-color: #3498db;
    --accent-color: #2ecc71;
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    
    /* 字体变量 */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* 字体大小 */
    --text-xl: 3.5rem;
    --text-lg: 2.5rem;
    --text-md: 1.8rem;
    --text-sm: 1.2rem;
    --text-xs: 0.9rem;
}

/* 全局字体设置 */
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Logo 样式优化 */
.logo h1 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 导航链接样式 */
.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 英雄区域文本样式 */
.hero-text h1 {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.typing-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.hero-text p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 1.5rem 0;
}

/* 按钮文本样式 */
.cta-button, .secondary-button {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 服务卡片文本样式 */
.service-card h3 {
    font-size: var(--text-md);
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.service-features li {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* About Me 文本样式 */
.highlight-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.skills-title {
    font-size: var(--text-md);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.skill-category h4 {
    font-size: var(--text-sm);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-list li {
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

.approach-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.8;
}

/* 技术标签样式 */
.tech-badge {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

/* 联系信息样式 */
.info-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* 页脚样式 */
.footer h3 {
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* 响应式字体大小调整 */
@media (max-width: 1200px) {
    :root {
        --text-xl: 3rem;
        --text-lg: 2.2rem;
        --text-md: 1.6rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-xl: 2.5rem;
        --text-lg: 2rem;
        --text-md: 1.4rem;
        --text-sm: 1.1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --text-xl: 2rem;
        --text-lg: 1.8rem;
        --text-md: 1.3rem;
    }
}

/* 添加文字阴影效果 */
.section-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 优化代码字体 */
.code-animation pre {
    font-family: var(--font-code);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* 基础响应式设置 */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* 响应式排版 */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* 导航栏响应式 */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-trigger {
        display: block;
    }
}

/* Hero区域响应式 */
@media screen and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }
}

/* 解决方案网格响应式 */
@media screen and (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* 关于部分响应式 */
@media screen and (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 2rem;
    }
}

/* 联系表单响应式 */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .google-form {
        height: 500px;
    }
}