
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #00008B, #4B0082, #FF1493);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: #FFFFFF;
    line-height: 1.6;
}

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

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

header {
    grid-column: 1 / -1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    opacity: 0.3;
    animation: rotate-earth 20s linear infinite;
}

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

h1 {
    font-size: 2.5em;
    color: #FF1493;
    text-shadow: 0 0 10px #4B0082, 0 0 20px #4B0082, 0 0 30px #4B0082;
    margin-bottom: 10px;
}

h2, h3, h4 {
    color: #FFFFFF;
    text-shadow: 0 0 5px #4B0082, 0 0 10px #4B0082;
}

a {
    color: #FF1493;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #4B0082;
    transform: scale(1.05);
}

.article-section {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px #4B0082;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    margin: 15px 0;
}

code {
    color: #00FFEA;
    font-family: 'Courier New', Courier, monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #4B0082;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4B0082;
    color: #FFFFFF;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

button {
    background-color: #4B0082;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: #FF1493;
    transform: scale(1.1);
    box-shadow: 0 0 10px #FF1493;
}

footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 -2px 10px #4B0082;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.1);
}

@media (max-width: 1440px) {
    .container {
        padding: 30px;
    }

    h1 {
        font-size: 2em;
    }

    pre {
        font-size: 0.85em;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.8em;
    }

    pre {
        font-size: 0.8em;
    }
}

@media (max-width: 1024px) {
    header::before {
        background: url('https://images.gptkong.com/demo/sample2.png') center center / cover no-repeat;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.6em;
    }

    pre {
        font-size: 0.75em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.4em;
    }

    pre {
        font-size: 0.7em;
    }

    .image-gallery img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    pre {
        font-size: 0.65em;
    }

    .image-gallery img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 8px;
    }

    h1 {
        font-size: 1em;
    }

    pre {
        font-size: 0.6em;
    }

    .image-gallery img {
        width: 60px;
        height: 60px;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.button-animate {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

.parallax {
    background-image: url('https://images.gptkong.com/demo/sample3.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cube {
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.cube div {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #4B0082;
    opacity: 0.8;
    transition: transform 1s;
}

.cube div:hover {
    transform: rotateY(360deg);
}

.face1 { transform: translateZ(50px); }
.face2 { transform: rotateY(90deg) translateZ(50px); }
.face3 { transform: rotateY(-90deg) translateZ(50px); }
.face4 { transform: rotateX(90deg) translateZ(50px); }
.face5 { transform: rotateX(-90deg) translateZ(50px); }
.face6 { transform: rotateY(180deg) translateZ(50px); }

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(75, 0, 130, 0.9);
    transform: translateX(-250px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.navigation.open {
    transform: translateX(0);
}

.navigation ul {
    list-style: none;
    padding: 20px;
}

.navigation li {
    margin: 20px 0;
}

.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #FF1493;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1001;
}

.search-box {
    margin: 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.search-box .suggestions {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(75, 0, 130, 0.9);
    border-radius: 5px;
    display: none;
}

.search-box input:focus + .suggestions {
    display: block;
}

.suggestions li {
    padding: 10px;
    border-bottom: 1px solid #FF1493;
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li:hover {
    background: rgba(255, 20, 147, 0.5);
}

@media (max-width: 768px) {
    .navigation {
        width: 200px;
        transform: translateX(-200px);
    }

    .navigation.open {
        transform: translateX(0);
    }

    .nav-toggle {
        left: 10px;
        top: 10px;
    }
}

