/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #0a1020;
    color: #e0e6f6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 70% 20%, #3a8dff55 0%, #7f5fff33 40%, #0a1020 100%);
    animation: bgmove 10s linear infinite alternate;
}
@keyframes bgmove {
    0% { background-position: 70% 20%; }
    100% { background-position: 30% 80%; }
}

.tech-header {
    background: rgba(10,16,32,0.95);
    box-shadow: 0 2px 24px #3a8dff33;
    color: #fff;
    padding: 24px 40px 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1.5px solid #3a8dff55;
    backdrop-filter: blur(6px);
}
.logo h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 700;
    background: linear-gradient(90deg, #3a8dff 30%, #7f5fff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
nav ul li a {
    color: #e0e6f6;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
nav ul li a.active, nav ul li a:hover {
    background: linear-gradient(90deg, #3a8dff 30%, #7f5fff 70%);
    color: #fff;
    box-shadow: 0 0 8px #3a8dff88;
}

.hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #1a1f3c 60%, #3a8dff 100%);
    box-shadow: 0 4px 32px #3a8dff22;
    position: relative;
    z-index: 1;
}
.hero-content {
    text-align: center;
    padding: 60px 20px 40px 20px;
}
.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #3a8dff 30%, #7f5fff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 32px;
    color: #e0e6f6cc;
}
.cta-btn {
    display: inline-block;
    padding: 14px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #3a8dff 30%, #7f5fff 70%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 16px #3a8dff55;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 32px #7f5fff99;
}

.section-card {
    background: rgba(20, 28, 56, 0.92);
    margin: 48px auto;
    border-radius: 18px;
    box-shadow: 0 4px 32px #3a8dff22;
    padding: 48px 24px 36px 24px;
    max-width: 900px;
    position: relative;
    z-index: 1;
    border: 1.5px solid #3a8dff33;
    transition: box-shadow 0.2s;
}
.section-card:hover {
    box-shadow: 0 0 32px #7f5fff55;
}
.section-card h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #3a8dff 30%, #7f5fff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.section-card p {
    font-size: 1.15rem;
    line-height: 2;
    color: #e0e6f6cc;
    text-align: center;
    margin-bottom: 12px;
}

footer {
    background: rgba(10,16,32,0.98);
    color: #b0b8d6;
    text-align: center;
    padding: 18px 0 10px 0;
    font-size: 1rem;
    border-top: 1.5px solid #3a8dff55;
    position: relative;
    z-index: 2;
}
footer a {
    color: #3a8dff;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #7f5fff;
}

/* 分栏布局与图片样式 */
.section-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.section-flex.reverse {
    flex-direction: row-reverse;
}
.section-img {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    animation: floatY 3s ease-in-out infinite alternate;
}
.section-img img {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 16px #3a8dff66);
}
.section-info {
    flex: 1 1 320px;
    min-width: 220px;
}

@keyframes floatY {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

/* 项目介绍分栏 */
.project-section .project-flex {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.project-desc {
    flex: 2 1 320px;
    min-width: 220px;
}
.project-imgs {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 96px;
    margin-top: 12px;
}
.project-imgs img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(120deg, #232b4d 60%, #3a8dff 100%);
    box-shadow: 0 0 18px #7f5fff55;
    margin-bottom: 4px;
    transition: transform 0.2s;
}
.project-imgs img:hover {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 0 32px #3a8dff99;
}

/* hero区插画和装饰 */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.hero-visual {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatY 4s ease-in-out infinite alternate;
}
.hero-text {
    flex: 1 1 320px;
    min-width: 220px;
}
.hero-decor {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 180px;
    height: 36px;
    background: radial-gradient(circle, #3a8dff55 0%, #0a102000 80%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
}

/* 底部装饰 */
.footer-decor {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #3a8dff 0%, #7f5fff 100%);
    opacity: 0.18;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 0 16px #3a8dff55;
}

/* 卡片浮现动画 */
.section-card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.02,.32,1) forwards;
}
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.4s; }
.section-card:nth-child(4) { animation-delay: 0.6s; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media (max-width: 900px) {
    .tech-header {
        flex-direction: column;
        padding: 18px 10px 10px 10px;
    }
    nav ul {
        gap: 16px;
    }
    .section-card {
        padding: 32px 8px 24px 8px;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .section-flex, .hero-content, .project-section .project-flex {
        flex-direction: column !important;
        gap: 18px;
    }
    .section-img, .hero-visual, .project-imgs {
        margin-bottom: 8px;
    }
}
@media (max-width: 600px) {
    .hero-content {
        padding: 30px 4px 20px 4px;
    }
    .section-card {
        margin: 24px 0;
        padding: 18px 2px 12px 2px;
    }
}
