
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 渐变背景 */
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

/* 容器布局 */
.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 29, 38, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #00ffcc;
    transform: scale(1.1);
}

/* 主标题样式 */
.header {
    margin-top: 80px; /* 为固定导航栏留出空间 */
    text-align: center;
    padding: 50px 20px;
    background: rgba(30, 42, 56, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00ffcc;
    animation: fadeInDown 1s ease-out forwards;
}

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

/* 文章区块样式 */
.article {
    background: rgba(25, 38, 51, 0.9);
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.article:hover {
    transform: translateY(-5px);
    background: rgba(35, 50, 68, 0.95);
}

/* 标题样式 */
.article h2 {
    font-size: 1.8em;
    color: #00bcd4;
    margin-bottom: 15px;
    position: relative;
}

.article h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #00ffcc;
    position: absolute;
    left: 0;
    bottom: -5px;
    border-radius: 2px;
}

.article h3 {
    font-size: 1.5em;
    color: #ff9800;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article p {
    font-size: 1em;
    color: #cfd8dc;
    margin-bottom: 15px;
    text-align: justify;
}

/* 代码块样式 */
pre {
    background: #1e2a38;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 图片样式 */
.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.image-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}

/* 脚注样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(20, 29, 38, 0.9);
    color: #a0a0a0;
    position: relative;
}

.footer a {
    color: #00ffcc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff9800;
}

/* 微交互动画 */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background: rgba(20, 29, 38, 0.95);
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        transition: left 0.3s ease;
    }

    .navbar ul.active {
        left: 0;
    }

    .navbar li {
        margin: 15px 0;
        text-align: center;
    }

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

    .article {
        padding: 20px;
    }

    .image-container img {
        width: 100px;
        height: 100px;
    }
}

/* 点缀元素 */
.decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.05;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* 提示信息样式 */
.prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 255, 204, 0.8);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 1s ease-out forwards;
}

/* 链接样式 */
a[rel="nofollow"] {
    color: #ff9800;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a[rel="nofollow"]:hover {
    color: #00ffcc;
}

