/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

/* --- CSS 变量定义 --- */
:root {
    --primary-color: #00f7ff; /* 明亮的青色 */
    --secondary-color: #7d2ae8; /* 紫色 */
    --dark-bg: #0d0f1a; /* 深蓝背景 */
    --light-bg: #1a1c2d;
    --text-color: #cdd6f4;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
    background: rgba(13, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 5px var(--primary-color);
}

header ul {
    list-style: none;
    display: flex;
}

header ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

header ul li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* 响应式字体 */
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    font-weight: bold;
    font-family: var(--font-primary);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--primary-color);
}

/* --- 通用 Section 样式 --- */
section {
    padding: 6rem 0;
}

section h2 {
    font-family: var(--font-primary);
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 4rem;
    color: #fff;
    text-shadow: 0 0 5px var(--secondary-color);
}

/* --- About Us Section --- */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 100%;
    filter: grayscale(30%) sepia(20%);
}

.values {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.values h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Service Cards --- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--light-bg);
    padding: 2rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    text-shadow: 0 0 10px var(--primary-color);
}

.card h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* --- Technology Section --- */
#technology {
    /* Styles moved to the wrapper below */
}

.technology-content-wrapper {
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

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

.tech-item:not(:last-child) {
    margin-bottom: 4rem; /* Reduced from 6rem */
}

.tech-item:nth-child(even) .tech-image {
    order: 2;
}

.tech-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.tech-text h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.contact-info h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info .social-title {
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
}

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

#contact form {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 1rem;
    background: var(--light-bg);
    border: 1px solid rgba(0, 247, 255, 0.2);
    color: var(--text-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
}

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

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 247, 255, 0.1);
    margin-top: 4rem;
}

/* --- 滚动显示动画 --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .about-content, .tech-item {
        grid-template-columns: 1fr;
    }
    .tech-item .tech-image {
        order: -1;
    }
    .tech-item:nth-child(even) .tech-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    header ul {
        flex-direction: column;
        text-align: center;
        margin-top: 1rem;
    }

    header ul li {
        padding: 0.5rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
} 