
/* 页面基础样式 */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    text-align: center;
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    font-size: 30px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 段落与文字样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

strong {
    color: #7f00ff;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

code {
    color: #00f2ff;
}

/* 容器与布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 按钮样式 */
button {
    background: linear-gradient(45deg, #00f2ff, #7f00ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.8);
}

/* 动画效果 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00f2ff, #7f00ff);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate 5s infinite linear;
    margin: 0 auto 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }
}

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