
/* 整体样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #002f5d, #6fa8dc, #e6b0aa);
    background-size: 400% 400%;
    animation: gradient-animation 10s ease infinite;
    color: #ffffff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

main {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    padding: 40px 20px;
    max-width: 800px;
    text-align: center;
}

/* 文章部分 */
article h2 {
    font-size: 4rem;
    letter-spacing: 2px;
    animation: fadeInText 2s ease-in-out;
}

article p {
    line-height: 1.6;
}

article pre code {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.8em;
}

article pre code::before,
article pre code::after {
    content: '';
    display: table;
}

article pre code::after {
    clear: both;
}

article pre code span {
    display: block;
    float: left;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-color: #002f5d;
    border-radius: 50%;
}

article pre code span:nth-child(even) {
    background-color: #6fa8dc;
}

article pre code span:nth-child(odd) {
    background-color: #e6b0aa;
}

article pre code span:last-child {
    background-color: transparent;
}

article pre code span:hover {
    cursor: pointer;
    background-color: #ffffff;
    color: #002f5d;
}

article pre code:hover {
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

article pre code:focus-within {
    outline: none;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

/* 视差滚动效果 */
.parallax-container {
    position: relative;
    overflow: hidden;
    height: 100vh;
    perspective: 1px;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.layer-1 {
    transform: translateZ(-1px) scale(2);
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
}

.layer-2 {
    transform: translateZ(-0.5px) scale(1.5);
    background-image: url('https://images.gptkong.com/demo/sample2.png');
    background-size: cover;
}

/* 过渡效果 */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in.active {
    opacity: 1;
}

/* 粒子特效 */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleAnimation 2s infinite;
}

@keyframes particleAnimation {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

.particle:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 提示信息 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    font-size: 0.8em;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

/* 3D旋转模型 */
.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube div {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cube .front { transform: translateZ(100px); }
.cube .back { transform: translateZ(-100px); }
.cube .left { transform: rotateY(-90deg) translateZ(100px); }
.cube .right { transform: rotateY(90deg) translateZ(100px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* 内容展示 */
.content-section {
    margin-top: 60px;
    text-align: center;
}

.content-section h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content-section img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.content-section p {
    line-height: 1.6;
}

