
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本字体和背景设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #121212);
    color: #E0E0E0;
    line-height: 1.6;
    padding: 20px;
}

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

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.75rem;
    margin-top: 30px;
}

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

/* 段落样式 */
p {
    font-size: 1rem;
    color: #B0B0B0;
    margin-bottom: 15px;
}

/* 链接样式 */
a {
    color: #00BFFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
button {
    background: linear-gradient(45deg, #FF8C00, #FFD700);
    border: none;
    padding: 10px 20px;
    color: #121212;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 0 10px #FFD700;
    transform: scale(1.05);
}

/* 卡片样式 */
.card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

li {
    margin-bottom: 10px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.navbar a {
    font-size: 1.1rem;
    color: #00BFFF;
    position: relative;
}

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

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

/* 警示信息 */
.alert {
    background: #333333;
    border-left: 5px solid #FFD700;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}

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

th, td {
    padding: 12px 15px;
    border: 1px solid #444444;
    text-align: left;
}

th {
    background: #2a2a2a;
    color: #FFD700;
}

td {
    background: #1e1e1e;
    color: #E0E0E0;
}

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

body {
    background: radial-gradient(circle, rgb(25, 25, 25), transparent);
    animation: aurora-move 15s linear infinite;
}

/* 粒子动画 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #00FFFF;
    border-radius: 50%;
    animation: particles 3s infinite;
}

@keyframes particles {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(10px, -10px); opacity: 0.5; }
    100% { transform: translate(0, 0); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

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

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

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

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

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