
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    margin: 20px 0;
}

p {
    line-height: 1.6;
    margin: 15px 0;
}

a {
    color: #ff6ec7;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff9ce0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

header {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    z-index: 1000;
}

header h1 {
    text-align: center;
    font-size: 2rem;
    color: #ff6ec7;
}

section {
    padding: 100px 0;
    position: relative;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.content-layer {
    position: relative;
    z-index: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

footer {
    background: #0f3460;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

code {
    background: #1e1e2f;
    padding: 5px 10px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Roboto Mono', monospace;
    color: #00ffea;
}

pre {
    background: #1e1e2f;
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
}

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

table, th, td {
    border: 1px solid #ffffff;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: #16213e;
}

@keyframes float {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(20px, -50px); opacity: 0.5; }
    100% { transform: translate(0, 0); opacity: 1; }
}

.particle {
    width: 10px;
    height: 10px;
    background-color: #ff69b4;
    border-radius: 50%;
    position: absolute;
    animation: float 5s infinite ease-in-out;
}

@media (max-width: 1440px) {
    header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 1.4rem;
    }
    .content-layer {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    header h1 {
        font-size: 1.2rem;
    }
    .parallax {
        height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    header h1 {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    body {
        font-size: 10px;
    }
    header h1 {
        font-size: 0.9rem;
    }
    section {
        padding: 80px 0;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.glow {
    text-shadow: 0 0 10px #ff6ec7, 0 0 20px #ff6ec7, 0 0 30px #ff6ec7, 0 0 40px #ff6ec7;
}

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

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

button {
    background: #ff6ec7;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #ff9ce0;
}

.icon {
    width: 50px;
    height: 50px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

