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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    scroll-behavior: smooth;
}

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

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

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

.logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f8d7da;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.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="tech" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%2300ffff" opacity="0.3"/><circle cx="10" cy="10" r="0.5" fill="%23ff00ff" opacity="0.2"/><circle cx="30" cy="30" r="0.5" fill="%2300ff00" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23tech)"/></svg>') repeat;
    animation: techPattern 20s linear infinite;
}

@keyframes techPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(40px) translateY(40px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #0f0f23;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
    border-color: #00ffff;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.about::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 200 200"><defs><pattern id="grid" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%2300ffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="200" height="200" fill="url(%23grid)"/></svg>') repeat;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3), 0 0 20px rgba(0, 255, 255, 0.2);
}

.feature h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* 服务项目样式 */
.services {
    padding: 80px 0;
    background: #0a0a0a;
    position: relative;
}

.services::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="circuit" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="none" stroke="%23ff00ff" stroke-width="0.5" opacity="0.2"/><line x1="0" y1="25" x2="50" y2="25" stroke="%2300ff00" stroke-width="0.3" opacity="0.1"/><line x1="25" y1="0" x2="25" y2="50" stroke="%2300ff00" stroke-width="0.3" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>') repeat;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff00ff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    position: relative;
    z-index: 1;
}

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

.service-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.4), 0 0 30px rgba(255, 0, 255, 0.2);
}

.service-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.service-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    position: relative;
}

.contact::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="dots" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="%2300ff00" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    position: relative;
    z-index: 1;
}

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

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

.contact-item {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-item:hover {
    border-color: #00ff00;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3), 0 0 20px rgba(0, 255, 0, 0.2);
}

.contact-item h3 {
    color: #00ff00;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.contact-form {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.contact-form h3 {
    color: #00ffff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.contact-form button {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #0f0f23;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    border-color: #00ffff;
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4), 0 0 20px rgba(255, 0, 255, 0.3);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #e0e0e0;
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
}

.footer::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="footertech" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="%2300ffff" opacity="0.2"/><circle cx="5" cy="5" r="0.5" fill="%23ff00ff" opacity="0.1"/><circle cx="25" cy="25" r="0.5" fill="%2300ff00" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footertech)"/></svg>') repeat;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.footer-info p {
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 2rem;
    }
}