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

/* 设置全局字体和背景渐变 */
body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 悬浮导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

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

.navbar ul li a:hover {
    color: #1cb5e0;
}

/* 主内容区域样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.container h2,
.container h3,
.container h4 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 15px;
}

.container h2 {
    font-size: 2.5rem;
}

.container h3 {
    font-size: 2rem;
    margin-top: 30px;
}

.container h4 {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* 段落样式 */
.container p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* 代码块样式 */
.container pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.container pre code {
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

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

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

/* 图片样式 */
.container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.container img:hover {
    transform: scale(1.05);
}

/* 提示语句样式 */
.reference-note {
    font-size: 1.2rem;
    color: #ffcc00;
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes particleFlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1000px); }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('https://images.gptkong.com/demo/sample12.png') repeat;
    opacity: 0.2;
    animation: particleFlow 60s linear infinite;
    z-index: 1;
}

/* 响应式设计 */

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

/* 大尺寸手机 */
@media (min-width: 321px) and (max-width: 480px) {
    .container {
        margin: 90px 20px 30px 20px;
    }
}

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

/* 中等屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        margin: 120px 40px 50px 40px;
    }
}

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

/* 大尺寸桌面显示器 */
@media (min-width: 1201px) {
    .container {
        padding: 40px;
    }
}

