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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background: #0a0a0f;
    overflow-x: hidden;
}

/* AI科技感背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f0f19 0%, #1b2a4f 100%) !important;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: none !important;
    background: none !important;
    animation: none !important;
    display: none !important;
}

@keyframes float-bg {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% { 
        transform: translate(-10px, -15px) scale(1.02);
        opacity: 0.6;
    }
    66% { 
        transform: translate(15px, -10px) scale(0.98);
        opacity: 0.9;
    }
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes gradient-shift {
    0% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.4;
        transform: scale(1.1);
    }
    100% { 
        opacity: 0.6;
        transform: scale(1);
    }
}

/* 导航栏 - AI风格 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 8px 32px rgba(0, 255, 200, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -10px;
    width: 8px;
    height: 8px;
    background: #00ffc8;
    border-radius: 50%;
    animation: blink 2s infinite;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #e0e6ed;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: #00ffc8;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffc8, #0084ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 英雄区域 - AI主题 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e0e6ed;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #00ffc8;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    color: #0a0a0f;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00ffc8;
    border: 2px solid #00ffc8;
}

.btn-secondary:hover {
    background: #00ffc8;
    color: #0a0a0f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.3);
}

/* AI浮动图标 */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(0, 255, 200, 0.2);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.floating-icon:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; }
.floating-icon:nth-child(4) { top: 70%; left: 20%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 15%; left: 60%; animation-delay: 4s; }
.floating-icon:nth-child(6) { top: 80%; left: 50%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.4;
    }
}

/* 服务区域 - 科技感卡片 */
.services {
    padding: 8rem 2rem;
    background: transparent;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

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

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

.service-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 200, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ffc8, #0084ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 200, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 200, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0a0a0f;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    background: linear-gradient(45deg, #00ffc8, #0084ff, #ff006b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 0.3;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: #e0e6ed;
}

.service-card p {
    color: #a0a6ad;
    text-align: center;
    line-height: 1.8;
}

/* 关于我们区域 */
.about {
    padding: 8rem 2rem;
    background: rgba(16, 33, 62, 0.3);
    backdrop-filter: blur(10px);
}

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

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.1rem;
    color: #a0a6ad;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 200, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: rgba(0, 255, 200, 0.5);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #a0a6ad;
    font-weight: 500;
    margin-top: 0.5rem;
}

.about-visual {
    position: relative;
}

.tech-showcase {
    width: 100%;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(16, 33, 62, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 200, 0.1);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    flex: 1;
    min-height: 0;
}

.tech-item {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

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

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    border-color: rgba(0, 255, 200, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 200, 0.2);
}

.tech-item i {
    font-size: 2rem;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-item span {
    color: #e0e6ed;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.code-preview {
    background: rgba(16, 33, 62, 0.9);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 12px;
    overflow: hidden;
    flex: 1.2;
    min-height: 180px;
    max-height: 220px;
    font-family: 'Courier New', monospace;
}

.code-header {
    background: rgba(0, 255, 200, 0.1);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28ca42; }

.code-title {
    color: #e0e6ed;
    font-size: 0.85rem;
    font-weight: 600;
}

.code-content {
    padding: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.code-line {
    color: #e0e6ed;
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: typeWriter 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }

.code-keyword { color: #00ffc8; }
.code-module { color: #0084ff; }
.code-class { color: #ff6b6b; }
.code-function { color: #feca57; }
.code-string { color: #48dbfb; }

@keyframes typeWriter {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 联系我们区域 */
.contact {
    padding: 8rem 2rem;
    background: transparent;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #e0e6ed;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 200, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(0, 255, 200, 0.3);
    transform: translateX(5px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    color: #0a0a0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item div {
    color: #a0a6ad;
}

.contact-item strong {
    color: #e0e6ed;
}

.contact-cta {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 200, 0.2);
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e0e6ed;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-cta > p {
    color: #a0a6ad;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    min-width: 150px;
}

.qr-code-section {
    padding: 2rem;
    background: rgba(16, 33, 62, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 200, 0.1);
    margin-top: 2rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 200, 0.3);
    background: white;
    padding: 3px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.qr-code-image:hover {
    border-color: rgba(0, 255, 200, 0.6);
    box-shadow: 0 5px 20px rgba(0, 255, 200, 0.2);
    transform: scale(1.05);
}

.qr-code-container p {
    color: #a0a6ad;
    margin: 0;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    color: #e0e6ed;
    padding: 3rem 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 200, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 1rem;
    color: #a0a6ad;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ffc8, #0084ff);
    color: #0a0a0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 255, 200, 0.3);
}

/* 动画优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平板优化 */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .tech-showcase {
        max-height: 400px;
        padding: 0.8rem;
    }
}

/* 移动端大屏优化 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(0, 255, 200, 0.2);
    }

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

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 10px;
        text-align: center;
        background: rgba(26, 26, 46, 0.6);
        border: 1px solid rgba(0, 255, 200, 0.2);
        width: 80%;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(0, 255, 200, 0.1);
        border-color: rgba(0, 255, 200, 0.5);
    }

    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

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

    .btn {
        width: 80%;
        max-width: 250px;
        justify-content: center;
    }

    .services,
    .about,
    .contact {
        padding: 4rem 1rem;
    }

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

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

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

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

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* 技术展示移动端完全重设计 */
    .tech-showcase {
        max-height: none;
        padding: 1rem;
        gap: 1rem;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        flex: none;
    }

    .tech-item {
        padding: 0.8rem;
        min-height: 70px;
        gap: 0.4rem;
    }

    .tech-item i {
        font-size: 1.2rem;
    }

    .tech-item span {
        font-size: 0.75rem;
    }

    .code-preview {
        flex: none;
        min-height: 150px;
        max-height: 150px;
    }

    .code-header {
        padding: 0.6rem 0.8rem;
    }

    .code-title {
        font-size: 0.75rem;
    }

    .code-content {
        padding: 0.8rem;
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .code-dots span {
        width: 8px;
        height: 8px;
    }

    /* 联系方式移动端优化 */
    .contact-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-cta {
        padding: 2rem 1.5rem;
    }

    .contact-cta h3 {
        font-size: 1.4rem;
    }

    .contact-buttons {
        margin-bottom: 2rem;
    }

    .qr-code-section {
        padding: 1.5rem;
    }

    .qr-code-image {
        width: 100px;
        height: 100px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .services,
    .about,
    .contact {
        padding: 3rem 0.5rem;
    }

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

    .section-title h2 {
        font-size: 1.5rem;
    }

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

    .tech-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        min-height: 60px;
    }

    .code-preview {
        min-height: 120px;
        max-height: 120px;
    }

    .code-content {
        font-size: 0.6rem;
        padding: 0.6rem;
    }

    .stat {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-cta {
        padding: 1.5rem 1rem;
    }

    .qr-code-image {
        width: 80px;
        height: 80px;
    }

    .btn {
        width: 90%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* 性能优化 */
* {
    will-change: auto;
}

.service-card,
.btn,
.contact-item {
    will-change: transform;
}

/* 减少重绘 */
.floating-icon {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .tech-item:hover,
    .stat:hover,
    .contact-item:hover {
        transform: none;
        box-shadow: inherit;
        border-color: inherit;
    }
    
    .btn:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    .nav-menu a:hover {
        background: rgba(26, 26, 46, 0.6);
        border-color: rgba(0, 255, 200, 0.2);
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particles::before {
        background-size: 50px 50px;
    }
    
    .code-content {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-icon {
        animation: none;
    }
    
    .particles::before {
        animation: none;
    }
} 