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

/* 全局字体和背景 */
body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #C0C0C0;
    background: linear-gradient(135deg, #0A1F3B, #7A49FF);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 31, 59, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .logo {
    font-size: 1.5em;
    color: #C0C0C0;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #C0C0C0;
    font-size: 1em;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #7A49FF;
}

/* 主容器 */
.container {
    max-width: 1200px;
    width: 100%;
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 标题样式 */
.container h1, .container h2, .container h3, .container h4 {
    color: #7A49FF;
    margin-bottom: 20px;
    font-weight: bold;
}

.container h1 {
    font-size: 2.5em;
    text-align: center;
}

.container h2 {
    font-size: 2em;
}

.container h3 {
    font-size: 1.75em;
}

.container h4 {
    font-size: 1.5em;
}

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

/* 列表样式 */
.container ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.container ul li {
    margin-bottom: 10px;
}

/* 代码块样式 */
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: #7A49FF;
}

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

table, th, td {
    border: 1px solid #7A49FF;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: #0A1F3B;
    color: #C0C0C0;
}

td {
    background: rgba(10, 31, 59, 0.8);
    color: #C0C0C0;
}

/* 示例展示样式 */
.example-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.example-display h2 {
    text-align: center;
    margin-bottom: 20px;
}

.example-display article {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.example-display img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 图像布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #7A49FF;
}

/* 固定提示 */
.footer-note {
    text-align: center;
    font-size: 0.9em;
    color: #C0C0C0;
    margin-top: 40px;
}

/* 动态背景效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: radial-gradient(circle, rgb(10, 31, 59), transparent),
                linear-gradient(135deg, #0A1F3B, #7A49FF);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
}

/* 响应式设计 */

/* 小尺寸手机 (320px) */
@media (max-width: 320px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        margin-left: 0;
        margin-top: 10px;
    }

    .container {
        padding: 10px;
    }

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

/* 大尺寸手机 (480px) */
@media (min-width: 321px) and (max-width: 480px) {
    .navbar ul li a {
        font-size: 0.9em;
    }

    .container h1 {
        font-size: 2em;
    }
}

/* 竖屏平板 (768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 中等屏幕 (1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 桌面显示器 (1200px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 大尺寸桌面显示器 (1440px及以上) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .image-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 动画效果 */
.module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #7A49FF;
}

/* 可滚动内容样式 */
.scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 自适应代码块 */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

a:hover {
    color: #C0C0C0;
}

/* 物理引擎模拟效果 */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(122, 73, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 1s linear infinite;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 按钮样式 */
.button {
    background: #7A49FF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover {
    background: #C0C0C0;
    color: #0A1F3B;
}

/* 表单样式 (尽管无可编辑字段，仅为设计一致性) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #7A49FF;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #C0C0C0;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #C0C0C0;
}

/* 卡片式设计 */
.card {
    background: rgba(10, 31, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 100%;
    height: auto;
}

.card-content {
    padding: 20px;
    color: #C0C0C0;
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card-description {
    font-size: 1em;
    line-height: 1.5;
}

/* 提示信息 */
.note {
    font-size: 1em;
    color: #C0C0C0;
    margin-top: 20px;
}

/* 鼠标悬停特效 */
.hover-effect:hover {
    box-shadow: 0 0 15px #7A49FF;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* 链接无follow */
a[rel="nofollow"] {
    /* No additional styles */
}

