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

/* 页面背景与整体布局 */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #f0f0f0;
    overflow-x: hidden;
    position: relative;
}

/* 渐变覆盖层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* 容器样式 */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: radial-gradient(circle, rgba(255,87,34,0.7), transparent);
    border-radius: 15px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

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

/* 文章部分样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8.5px);
    -webkit-backdrop-filter: blur(8.5px);
}

article h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

article p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #dcdcdc;
}

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

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

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

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

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

.grid-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

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

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

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

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgb(255,87,34), transparent);
    }
    50% {
        background: radial-gradient(circle, rgb(34, 255, 87), transparent);
    }
    100% {
        background: radial-gradient(circle, rgb(255,87,34), transparent);
    }
}

.header-background {
    animation: aurora-move 15s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }

    article h2 {
        font-size: 24px;
    }

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