
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Roboto Mono', sans-serif;
    background: linear-gradient(135deg, #00008B, #4B0082);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全屏布局与主容器 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* 标题样式 */
h1 {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 15px rgba(173, 216, 230, 0.8), 0 0 30px rgba(173, 216, 230, 0.5);
    margin-bottom: 20px;
}

h2, h3 {
    font-size: 2rem;
    margin: 20px 0;
    text-align: center;
    color: #ADD8E6;
}

/* 段落与文本样式 */
p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 10px 0;
    text-align: justify;
}

code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #32CD32;
}

pre {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* 链接样式 */
a {
    color: #32CD32;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #FFD700;
}

/* 按钮样式 */
button {
    background: linear-gradient(135deg, #32CD32, #FFD700);
    border: none;
    color: #00008B;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.1);
}

/* 布局网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(173, 216, 230, 0.5);
    text-align: center;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease-in-out;
}

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

    h2, h3 {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    p, code {
        font-size: 0.9rem;
    }
}

