
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
}

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

@keyframes particles {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

/* 背景几何图形 */
.background-shape {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 0, 255, 0.1);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: rotate 20s linear infinite;
}

.background-shape:nth-child(2) {
    width: 100px;
    height: 100px;
    background-color: rgba(0, 255, 255, 0.1);
    top: 60%;
    left: 80%;
    animation: rotate 15s linear infinite;
}

.background-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 0, 0.1);
    top: 40%;
    left: 50%;
    animation: rotate 25s linear infinite;
}

/* 主要内容样式 */
.container {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* 标题样式 */
h1, h2, h3, h4 {
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

h2 {
    font-size: 2.5em;
    margin-top: 40px;
}

h3 {
    font-size: 2em;
    margin-top: 30px;
}

/* 段落样式 */
p {
    line-height: 1.6;
    margin: 20px 0;
}

/* 列表样式 */
ul {
    list-style: none;
    padding: 0;
}

ul li::before {
    content: "• ";
    color: #1cb5e0;
    font-weight: bold;
}

/* 按钮样式 */
.button {
    background-color: rgba(28, 181, 224, 0.1);
    border: 2px solid #1cb5e0;
    color: #ffffff;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 20px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.button:hover {
    background-color: rgba(28, 181, 224, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px #1cb5e0;
}

/* 示例展示区 */
.sample-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border: 2px solid #1cb5e0;
    border-radius: 10px;
    margin: 40px 0;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #1cb5e0;
    font-family: 'Roboto Mono', monospace;
}

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

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

@media (max-width: 1200px) {
    .background-shape {
        display: none;
    }
}

@media (max-width: 1024px) {
    h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    .button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5em;
    }
    p, ul, pre {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    .button {
        padding: 6px 15px;
        font-size: 0.8em;
    }
}

