
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    background: radial-gradient(circle, rgb(0, 51, 102), transparent);
    color: #ffffff;
    overflow-x: hidden;
    padding: 20px;
}
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #00FFCC;
    margin-bottom: 20px;
}
p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #e0e0e0;
}
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}
code {
    font-family: 'Courier New', Courier, monospace;
    color: #00FFCC;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.header {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(45deg, #003366, #330099, #00FFCC);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}
.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2em;
    transition: color 0.3s, transform 0.3s;
}
.navbar a:hover {
    color: #00FFCC;
    transform: scale(1.1);
}
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin: 20px 0;
}
.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2em;
    max-width: 800px;
}
.sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
    margin: 50px 0;
}
.section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3);
}
.section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
.section h2 {
    font-size: 2em;
    margin-bottom: 15px;
}
.section p {
    font-size: 1em;
}
.code-example {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 30px;
}
.code-example code {
    color: #d4d4d4;
    font-size: 0.9em;
}
.article {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    margin: 50px 0;
}
.article h2 {
    color: #FF5733;
    margin-bottom: 20px;
}
.article pre {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.footer {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(45deg, #330099, #00FFCC, #003366);
    background-size: 300% 300%;
    animation: footerAnimation 10s ease infinite;
    border-radius: 15px;
}
@keyframes footerAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.responsive-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1em;
    }
}
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .sections {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 50px 10px;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .navbar a {
        font-size: 1em;
    }
}
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 0.9em;
    }
}
.button {
    background: #00FFCC;
    color: #000000;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-size: 1em;
}
.button:hover {
    background: #00CC99;
    transform: scale(1.05);
}
.nofollow-link {
    color: #FF5733;
    text-decoration: none;
    transition: color 0.3s;
}
.nofollow-link:hover {
    color: #00FFCC;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

