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

/* 全局字体设置 */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    color: #f4a261;
    line-height: 1.6;
    padding: 20px;
}

/* 渐变背景与动画效果 */
.header {
    background: radial-gradient(circle, rgb(0, 123, 255), transparent);
    padding: 50px 20px;
    text-align: center;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 标题样式 */
.header h1 {
    font-size: 3em;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2em;
    color: #ffffff;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.navbar a {
    color: #00ffea;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ff007f;
    text-shadow: 0 0 10px #ff007f;
}

/* 主内容区 */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.section h2 {
    color: #00ffea;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff007f;
    display: inline-block;
    padding-bottom: 5px;
}

.section p {
    margin-bottom: 15px;
    color: #f4a261;
}

.section pre {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #00ffea;
    font-family: 'Courier New', Courier, monospace;
}

.section code {
    color: #ff007f;
    background: #1e1e1e;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 示例展示 */
.sample-display {
    border: 2px dashed #ff00ff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.sample-display::before {
    content: '示例展示';
    position: absolute;
    top: -15px;
    left: 20px;
    background: #1e1e1e;
    padding: 5px 10px;
    color: #ff00ff;
    border-radius: 5px;
    font-weight: bold;
}

.sample-display article {
    color: #ffffff;
}

.sample-display h2 {
    color: #f4a261;
    margin-bottom: 10px;
}

.sample-display h3 {
    color: #00ffea;
    margin-top: 20px;
}

.sample-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.sample-display table, .sample-display th, .sample-display td {
    border: 1px solid #ff00ff;
}

.sample-display th, .sample-display td {
    padding: 10px;
    text-align: left;
}

.sample-display th {
    background: #333333;
    color: #ff00ff;
}

.sample-display img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
}

/* 提示信息 */
.footer {
    text-align: center;
    margin-top: 40px;
    color: #00ffea;
    font-size: 1em;
    animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (min-width: 320px) and (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 1em;
    }

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

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        grid-template-columns: 3fr 2fr;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .container {
        grid-template-columns: 4fr 3fr;
    }
}

@media (min-width: 1441px) {
    .container {
        grid-template-columns: 5fr 4fr;
    }
}

