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

/* 根变量定义 - 赛博朋克配色方案 */
:root {
    --primary-color: #00ffff;        /* 青色霓虹 */
    --secondary-color: #ff0080;      /* 粉色霓虹 */
    --accent-color: #ffff00;         /* 黄色高亮 */
    --bg-dark: #0a0a0a;             /* 深黑背景 */
    --bg-darker: #050505;           /* 更深背景 */
    --text-light: #ffffff;          /* 白色文字 */
    --text-gray: #cccccc;           /* 灰色文字 */
    --border-glow: #00ffff;         /* 边框发光色 */
    --gradient-primary: linear-gradient(135deg, #00ffff, #ff0080);
    --gradient-secondary: linear-gradient(135deg, #ff0080, #ffff00);
}

/* 基础样式 */
body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景动画层 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 网格线动画 */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

/* 浮动粒子效果 */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--primary-color),
        100px 200px 0 var(--secondary-color),
        200px 100px 0 var(--accent-color),
        300px 300px 0 var(--primary-color),
        400px 150px 0 var(--secondary-color);
    animation: float 15s linear infinite;
}

.floating-particles::after {
    animation-delay: -7.5s;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.logo-accent {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(1px);
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 主页区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

/* 故障效果 */
.glitch {
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    transform: translateX(-3%);
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -2px);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: center;
}

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

/* 按钮样式 */
.btn {
    padding: 12px 50px;
    border: none;
    border-radius: 5px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* 全息图效果 */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: rotate 10s linear infinite;
}

.hologram::before,
.hologram::after {
    content: '';
    position: absolute;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
}

.hologram::before {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 8s linear infinite reverse;
}

.hologram::after {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--accent-color);
    animation: rotate 6s linear infinite;
}

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

/* 区域标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.title-line {
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: 2px;
}

/* 项目区域 */
.projects {
    padding: 5rem 0;
    background: var(--bg-darker);
}

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

/* 项目卡片 */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.card-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

.btn-details {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.btn-details:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--secondary-color);
}

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

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

.about-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

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

/* 技术圆环 */
.tech-circle {
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: pulse 3s ease-in-out infinite;
}

.tech-circle::before,
.tech-circle::after {
    content: '';
    position: absolute;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tech-circle::before {
    width: 150px;
    height: 150px;
    animation: pulse 2s ease-in-out infinite reverse;
}

.tech-circle::after {
    width: 100px;
    height: 100px;
    border-color: var(--accent-color);
    animation: pulse 4s ease-in-out infinite;
}

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

/* 联系方式区域 */
.contact {
    padding: 5rem 0;
    background: var(--bg-darker);
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

/* 联系表单 */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-glow);
}

.contact-form h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

/* 页脚 */
.footer {
    padding: 2rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glow);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 主页区域移动端适配 */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hologram {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }
    
    /* 项目网格移动端适配 */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 关于我们移动端适配 */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tech-circle {
        width: 150px;
        height: 150px;
    }
    
    /* 联系方式移动端适配 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 容器移动端适配 */
    .container {
        padding: 0 1rem;
    }
    
    /* 标题移动端适配 */
    .title-text {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .title-text {
        font-size: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 测评按钮容器样式 */
.test-button-container {
    margin-top: 2rem;
    text-align: center;
}