
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    margin: 0;
    color: #ff6f61;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff6f61;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

.main-content {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.main-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: #ff6f61;
    margin-bottom: 20px;
    text-align: center;
}

.article {
    margin-bottom: 40px;
}

.article h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #ffffff;
    margin-top: 30px;
}

.article p {
    font-size: 18px;
    color: #dddddd;
    margin-bottom: 20px;
}

.article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

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

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.article table, .article th, .article td {
    border: 1px solid #444;
}

.article th, .article td {
    padding: 10px;
    text-align: left;
    color: #ffffff;
}

.buttons {
    text-align: center;
    margin-top: 30px;
}

.gradient-button {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 0 10px;
}

.gradient-button:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    transform: translateY(-5px);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 16px;
    color: #cccccc;
}

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

body {
    background: radial-gradient(circle, rgba(255, 87, 34, 0.8), transparent);
    animation: aurora-move 15s linear infinite;
}

/* 代码块样式 */
pre {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

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

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 42px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }
    .gradient-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
    header h1 {
        font-size: 32px;
    }
    nav a {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    header h1 {
        font-size: 24px;
    }
    nav a {
        font-size: 14px;
    }
}

