
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #6A0DAD, #B7E9F7);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #FF3CAC;
    margin-top: 2rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

a {
    color: #00FFA3;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF3CAC;
    text-decoration: underline;
}

/* 头部设计 */
header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0A1F44, #6A0DAD, #B7E9F7);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 60, 172, 0.3), transparent);
    animation: aurora-flow 15s infinite linear;
    transform-origin: center;
}

@keyframes aurora-flow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header h1 {
    font-size: 3rem;
    z-index: 10;
}

/* 主体内容区域 */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section:nth-child(even) {
    background: rgba(0, 255, 163, 0.1);
}

section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

.grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

/* 按钮样式与动画 */
.button {
    background-color: #00FFA3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

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

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 自适应设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 1rem;
    }

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

/* 提示信息 */
footer {
    text-align: center;
    padding: 1rem;
    background: #0A1F44;
    color: #B7E9F7;
    font-size: 0.9rem;
}

