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

/* 设置全局字体和背景 */
body {
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(circle, rgb(10, 116, 218), rgb(78, 0, 153));
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ff6f00;
}

/* 主要内容容器 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(255,87,34,0.8), rgba(0,0,0,0.8));
    border-radius: 15px;
    margin-bottom: 50px;
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-family: 'Roboto Bold', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff5722, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 18px;
    color: #f0f0f0;
}

/* 栅格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.grid-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff6f00;
}

.grid-item p {
    font-size: 16px;
    color: #e0e0e0;
}

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

.line-animation {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #0a74da, #ff6f00);
    animation: move 3s infinite;
    margin: 20px 0;
}

@keyframes move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 文章样式 */
article {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

article h2 {
    font-family: 'Roboto Bold', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    color: #ff6f00;
}

article h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ff6f00;
}

article h4 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ff6f00;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

article ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

article ul li {
    margin-bottom: 10px;
}

article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #ff6f00;
}

/* 按钮样式 */
.button {
    background-color: #0a74da;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
}

.button:hover {
    background-color: #ff6f00;
    transform: scale(1.1);
}

/* 提示信息样式 */
.notice {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: #ff6f00;
}

/* 代码块预览样式 */
.code-preview {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    overflow-x: auto;
    margin-bottom: 30px;
}

.code-preview code {
    display: block;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* 自适应布局 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 42px;
    }
}

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

    .navbar {
        padding: 15px 30px;
    }

    .navbar a {
        margin-left: 15px;
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 80px 20px;
    }

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

    article h2 {
        font-size: 28px;
    }

    article h3 {
        font-size: 22px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

    header h1 {
        font-size: 36px;
    }

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

    .notice {
        font-size: 16px;
    }
}

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

    article h2 {
        font-size: 24px;
    }

    .grid-item h3 {
        font-size: 20px;
    }

    article h3 {
        font-size: 20px;
    }

    .button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

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

    article h2 {
        font-size: 20px;
    }

    .grid-item h3 {
        font-size: 18px;
    }

    article h3 {
        font-size: 18px;
    }

    .button {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: #ff6f00;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 交互效果 */
.interactive:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* 鼠标粒子效果 */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 999;
}

