
/* 设置全局字体和背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
}

/* 容器布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #00ffbf;
}

header p {
    font-size: 1.2em;
    color: #a0e7e5;
}

/* 导航菜单 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00bfff;
}

/* 主内容区域 */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

article h2 {
    font-size: 2em;
    color: #00ffbf;
    margin-bottom: 20px;
}

article h3 {
    font-size: 1.5em;
    color: #a0e7e5;
    margin-top: 20px;
}

article p {
    font-size: 1em;
    margin-bottom: 15px;
}

article pre {
    background: #1c1c3c;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 示例数据展示区 */
.sample-data {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
}

.sample-data h2 {
    color: #ff5f7e;
    margin-bottom: 20px;
}

.sample-data pre {
    background: #333;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-data code {
    color: #ff5f7e;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
}

/* 提示信息 */
.notice {
    text-align: center;
    font-size: 1em;
    color: #ff5f7e;
    margin: 20px 0;
}

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

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

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

@media (max-width: 768px) {
    article, .sample-data {
        padding: 15px;
    }
    nav a {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    article h2, .sample-data h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    nav a {
        font-size: 0.8em;
    }
}

/* 动画效果 */
.line-animation {
    animation: expandLine 2s infinite alternate;
}

@keyframes expandLine {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.button {
    background-color: #00ffbf;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #00bfff;
}

/* 几何图形 */
.geometry {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.geometry div {
    background: #00ffbf;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.geometry div:hover {
    transform: scale(1.1);
}

