
/* 页面基础样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #33145a, #000e33);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 标题区域 */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #3e2723, #1c1c1c);
    position: relative;
}
header h1 {
    font-family: 'Bodoni', serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: -webkit-linear-gradient(gold, silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
header p {
    font-size: 1.2rem;
    color: #f5f5f5;
    margin-top: 10px;
}

/* 主体内容布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.1));
    z-index: 1;
}
.section > * {
    position: relative;
    z-index: 2;
}

/* 图片与装饰性元素 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
}
.icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

/* 文章排版 */
article h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: gold;
}
article h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: silver;
}
article p, article ul, article table {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #f5f5f5;
}
article pre {
    background: #1c1c1c;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
article code {
    color: #00ff00;
    font-family: 'Courier New', monospace;
}
article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
article th, article td {
    border: 1px solid #333;
    padding: 8px;
    text-align: left;
}
article th {
    background: #333;
    color: #fff;
}

/* 动画效果 */
@keyframes starDust {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starDust 5s infinite;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
    article pre {
        font-size: 0.9rem;
    }
}

