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

/* 全局字体与背景 */
body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #000000, #120A8F);
    color: #39FF14;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 渐变背景与动画效果 */
.background-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 50px);
    }
    100% {
        transform: translate(0, 0);
    }
}

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

.navbar-logo {
    font-size: 1.5em;
    color: #39FF14;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1em;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #39FF14;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* 主内容区域 */
.main-content {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #7CFC00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

article h3, article h4 {
    color: #39FF14;
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

article p {
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

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

article table th, article table td {
    border: 1px solid #39FF14;
    padding: 10px;
    text-align: left;
}

article table th {
    background: rgba(57, 255, 20, 0.2);
}

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

/* 图片样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 代码示例预览 */
.code-preview {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.code-preview pre {
    margin: 0;
    overflow: hidden;
}

.code-preview ::selection {
    background: #7CFC00;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar-logo {
        font-size: 1.3em;
    }
    article h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1200px) {
    .navbar-menu a {
        font-size: 0.95em;
    }
    .main-content {
        padding: 90px 15px 40px 15px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 10px 20px;
    }
    article h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    .navbar {
        justify-content: center;
    }
    .main-content {
        padding: 80px 10px 30px 10px;
    }
}

@media (max-width: 480px) {
    article h2 {
        font-size: 1.4em;
    }
    article h3, article h4 {
        font-size: 1.1em;
    }
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 320px) {
    body {
        font-size: 14px;
    }
    article h2 {
        font-size: 1.2em;
    }
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* 底部样式 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    text-align: center;
    position: relative;
}

.footer p {
    color: #FFFFFF;
    font-size: 0.9em;
}

/* 微光效果图标 */
.icon {
    width: 30px;
    height: 30px;
    fill: #39FF14;
    transition: fill 0.3s;
}

.icon:hover {
    fill: #7CFC00;
}

/* 自定义链接样式 */
a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #7CFC00;
}

