
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A2463, #8A2BE2);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(10, 36, 99, 0.9);
    z-index: 1000;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #39FF14;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%);
    animation: aurora-move 15s linear infinite;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #39FF14;
}

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

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.grid-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.grid-item h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.grid-item p {
    color: #dddddd;
}

.call-to-action {
    display: inline-block;
    background-color: #39FF14;
    color: #000000;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.call-to-action:hover {
    background-color: #33cc00;
    transform: scale(1.05);
}

article {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

article h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #39FF14;
}

article h3, article h4 {
    color: #ffffff;
    margin-top: 20px;
}

article p {
    margin-bottom: 15px;
    color: #cccccc;
}

article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
}

footer {
    background: rgba(10, 36, 99, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%); }
    50% { background: radial-gradient(circle, rgba(138,43,226,1) 0%, transparent 70%); }
    100% { background: radial-gradient(circle, rgba(255,87,34,1) 0%, transparent 70%); }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    header {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header .logo {
        font-size: 1.2rem;
    }
    nav ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .call-to-action {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 代码块样式 */
.code-block {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

.code-block code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    display: block;
}

