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

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

/* 设置body背景为渐变极光效果 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

nav a:hover {
    color: #00ffe9;
    transition: color 0.3s ease;
}

/* 标题样式 */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00ffe9, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-top: 40px;
}

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

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

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #e0e0e0;
}

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

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #00ffe9;
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(0, 255, 234, 0.2);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* 网格容器样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-item {
    background: rgba(0, 255, 234, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 234, 0.2);
}

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

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

    h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 30px 15px;
    }
}

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

    nav a {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

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

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.5em;
    }

    nav a {
        margin: 5px 0;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }

    .container {
        padding: 20px 10px;
    }
}

/* 动画效果 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

/* 按钮样式 */
button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    transform: translateY(-3px);
}

/* 链接样式 */
a {
    color: #00ffe9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(0, 255, 234, 0.1);
    padding: 15px;
    border-left: 5px solid #00ffe9;
    margin: 30px 0;
    border-radius: 5px;
    font-style: italic;
}

