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

body {
    background: #fefefe;
    overflow-x: hidden; /* 允许垂直滚动，禁止水平滚动 */
    font-family: 'Courier Prime', monospace;
    color: #4a9eff;
    position: relative;
    min-height: 200vh; /* 确保有足够的内容来滚动 */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* 像素化背景 */
.pixel-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(248, 250, 252, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(241, 245, 249, 0.6) 0%, transparent 50%),
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 100% 100%, 100% 100%, 4px 4px, 4px 4px, 4px 4px, 4px 4px;
    background-position: 0 0, 0 0, 0 0, 0 2px, 2px -2px, -2px 2px;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 扫描线效果 */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(74, 158, 255, 0.02) 2px,
        rgba(74, 158, 255, 0.02) 4px
    );
    pointer-events: none;
    animation: scanlineMove 20s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* 标题 */
.title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nixie One', cursive;
    font-size: 2.5rem;
    color: #4b73ea;
    text-shadow: 
        0 0 10px rgba(74, 158, 255, 0.8),
        0 0 20px rgba(74, 158, 255, 0.4),
        0 0 30px rgba(74, 158, 255, 0.2);
    z-index: 100;
    animation: titleGlow 3s ease-in-out infinite alternate;
    user-select: none;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(74, 158, 255, 0.8),
            0 0 20px rgba(74, 158, 255, 0.4),
            0 0 30px rgba(74, 158, 255, 0.2);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(74, 158, 255, 1),
            0 0 25px rgba(74, 158, 255, 0.6),
            0 0 35px rgba(74, 158, 255, 0.3);
    }
}

/* 雨滴容器 */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* 雨滴样式 */
.raindrop {
    position: absolute;
    font-family: 'Courier Prime', monospace;
    font-weight: normal;
    opacity: 0.6;
    transition: all 0.3s ease;
    white-space: pre-line;
    line-height: 1;
    text-align: center;
}

.raindrop:hover {
    opacity: 0.9;
}

/* 雨滴初始状态 */
.raindrop {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.6;
    }
}

/* 涟漪效果 */
.ripple {
    position: fixed;
    border: 2px solid #4a9eff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
    animation: rippleExpand 1s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* 鼠标交互区域 */
.interaction-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: crosshair;
}

/* 鼠标光晕效果 */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 30;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

/* 屏幕闪烁效果 */
.screen-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.03s ease;
}

/* 像素纹理 */
.pixel-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(74, 158, 255, 0.01) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(74, 158, 255, 0.01) 50%, transparent 51%);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 6;
}

/* 增强的像素风雨滴效果样式 */
/* 额外的背景纹理 */
.pixel-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(74, 158, 255, 0.02) 1px,
            rgba(74, 158, 255, 0.02) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(74, 158, 255, 0.02) 1px,
            rgba(74, 158, 255, 0.02) 2px
        );
    pointer-events: none;
    z-index: 1;
    animation: textureShift 30s linear infinite;
}

@keyframes textureShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

/* 雨滴轨迹效果 */
.raindrop-trail {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(74, 158, 255, 0.8) 0%, 
        rgba(74, 158, 255, 0.4) 50%, 
        transparent 100%);
    pointer-events: none;
    animation: trailFade 2s ease-out forwards;
}

@keyframes trailFade {
    0% { 
        opacity: 0.8;
        height: 0;
    }
    50% { 
        opacity: 0.4;
        height: 50px;
    }
    100% { 
        opacity: 0;
        height: 100px;
    }
}

/* 雨滴基本样式 */
.raindrop {
    position: absolute;
    color: #4a9eff;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(74, 158, 255, 0.8);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s ease; /* 简化过渡效果 */
    will-change: opacity; /* 只优化透明度变化 */
}

/* 雨滴消失效果 */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
}

/* 背景闪烁效果 */
.screen-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 158, 255, 0.015); /* 降低闪烁强度 */
    pointer-events: none;
    z-index: 3;
    animation: flicker 0.2s ease-in-out infinite; /* 放慢闪烁 */
    opacity: 0;
}

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

/* 正文内容区域 */
.main-content {
    position: relative;
    z-index: 200;
    margin-top: 100vh; /* 从视窗高度开始 */
    /* background: none; 取消白色和半透明背景 */
    background: none;
    backdrop-filter: none;
    border-top: 2px solid rgba(74, 158, 255, 0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 10vh;
    padding-left: 0;
    padding-right: 0;
}

.content-wrapper img {
    width: 100vw;
    max-width: none;
    display: block;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    height: auto;
}

.main-content h2 {
    font-family: 'Nixie One', cursive;
    font-size: 2.5rem;
    color: #4b73ea;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.main-content h3 {
    font-family: 'Nixie One', cursive;
    font-size: 1.8rem;
    color: #4b73ea;
    margin: 40px 0 20px 0;
    text-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #1e40af;
}

.main-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.main-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #1e40af;
}

.content-section {
    margin: 50px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.1);
}

.content-wrapper p {
    line-height: 1.3;
    margin-bottom: 10px;
}

.content-wrapper > div {
    margin-top: 128px;
    margin-bottom: 128px;
}

/* 滚动时的淡出效果 */
.rain-container {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.title {
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interaction-area {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 淡出状态 */
.rain-container.fade-out {
    opacity: 0;
}

.title.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.interaction-area.fade-out {
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
        top: 20px;
        right: 20px;
    }
    
    .mouse-glow {
        width: 150px;
        height: 150px;
    }

    .main-content h2 {
        font-size: 2rem;
    }

    .main-content h3 {
        font-size: 1.5rem;
    }

    .content-wrapper {
        padding: 40px 15px;
    }

    .content-section {
        padding: 20px;
        margin: 30px 0;
    }

    .image-text-layout {
        flex-direction: column;
        gap: 32px;
        padding: 0 24px;
        left: 24px;
        width: calc(100% - 48px);
    }

    .image-section {
        flex: none;
        width: 100%;
    }

    .image-section img {
        max-width: 80%;
    }

    .text-section {
        width: 100%;
    }

    .text-section p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
    .raindrop,
    .scanlines,
    .pixel-background,
    .pixel-texture {
        animation: none;
    }
    
    .raindrop {
        transition: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #f8fafc;
    }
    
    .pixel-background {
        background: 
            radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(241, 245, 249, 0.8) 0%, transparent 50%),
            linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
            linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
            linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    }
} 

.fixed-header {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1001;
    background: none;
    border-radius: 16px;
    /*box-shadow: 0 2px 12px rgba(74,158,255,0.08);*/
    padding: 8px 24px;
    /* 完全透明，不要blur */
    /*backdrop-filter: blur(4px);*/
}
.header-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-btn {
    font-family: 'Courier Prime', monospace;
    font-size: 1.08rem;
    color: #2563eb;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1.5px solid rgba(74,158,255,0.18);
    background: rgba(255,255,255,0.18);
    box-shadow: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    letter-spacing: 1px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* 兼容Safari */
    overflow: hidden;
    display: inline-block;
    position: relative;
    z-index: 1;
    isolation: isolate;
}
.header-btn:hover, .header-btn:focus {
    background: #4a9eff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(74,158,255,0.18);
    border-color: #2563eb;
}
.header-btn:active {
    background: #2563eb;
    color: #fff;
    border-color: #1e3a8a;
} 

.three-images-row {
    display: flex;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 64px;
}
.three-images-row img {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 64px;
}
.single-image-row img {
    max-width: 60%;
    height: auto;
    display: block;
    object-fit: contain;
}

.image-text-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 64px;
    margin-bottom: 64px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 48px;
    position: relative;
    left: 140px;
    width: calc(100% - 270px); /*非常重要*/
}

.image-section {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.image-section img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: -60px; /*非常重要*/
}

.text-section p {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #1e40af;
    font-size: 1.1rem;
}

.text-section p:last-child {
    margin-bottom: 0;
} 

.bottom-centered-text {
    margin-bottom: 200px;
}

.fullwidth-image-row {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 1;
    overflow: hidden;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
}
.fullwidth-image-row img {
    width: 100vw;
    max-width: none;
    display: block;
    height: auto;
    object-fit: cover;
    position: relative;
    left: 0 !important;
    width: 100vw !important;
} 

.header-logo {
    font-family: 'Courier Prime', monospace;
    font-size: 1.08rem;
    color: #2563eb;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1.5px solid rgba(74,158,255,0.18);
    background: none;
    box-shadow: none;
    letter-spacing: 1px;
    font-weight: 700;
    margin-right: 24px;
    display: inline-block;
    vertical-align: middle;
} 

.site-logo {
    position: fixed;
    top: 24px;
    left: 36px;
    z-index: 1100;
    font-family: 'Courier Prime', monospace;
    font-size: 1.25rem;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    display: block;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}
.site-logo--visible {
    opacity: 1;
} 

.page-divider {
    width: 100vw;
    height: 2px;
    background: rgba(74, 158, 255, 0.18);
    position: absolute;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    z-index: 30;
    margin: 0;
} 

#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}
.contact-links {
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    z-index: 50;
}
.rain-blur-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#contact .rain-container {
    position: fixed;
    z-index: 10;
}
.page-divider {
    width: 100vw;
    height: 2px;
    background: rgba(74, 158, 255, 0.18);
    position: absolute;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    z-index: 30;
    margin: 0;
} 

.contact-link {
    font-family: 'Courier Prime', monospace;
    font-size: 1.08rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 12px;
    padding: 4px 16px;
    transition: background 0.18s, color 0.18s;
    display: inline-block;
    cursor: pointer;
}
.contact-link:hover, .contact-link:focus {
    color: rgba(74, 158, 255, 1);
} 

.contact-link-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    text-align: center;
}
.contact-link-list li {
    margin-bottom: 10px;
}
.contact-link-title {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
} 