
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto Mono', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #000046 0%, #1cb5e0 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* 页面提示 */
.notice {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* 标题与布局 */
h1, h2, h3, h4, h5, h6 {
    color: #ff6f61;
    margin-top: 30px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
header {
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #000046, #8a2be2);
}
header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 10px #ff6f61;
}

/* 文章区域 */
.article-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.article-container pre {
    background: #000;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #ff6f61;
    font-size: 14px;
}
.article-container code {
    font-family: 'Courier New', Courier, monospace;
    color: #8a2be2;
}

/* 图片网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}
.grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.grid img:hover {
    transform: scale(1.1);
}

/* 按钮与交互 */
.button {
    background: linear-gradient(135deg, #ff6f61, #8a2be2);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 10px;
}
.button:hover {
    transform: scale(1.1);
    animation: shake 0.3s ease-in-out;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .article-container pre {
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

