
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Roboto+Mono&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 渐变背景与动态效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 关键帧动画 */
@keyframes aurora-move {
    0% { transform: translateX(0); }
    50% { transform: translateX(100px); }
    100% { transform: translateX(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px #00bfff; }
    50% { box-shadow: 0 0 20px #00bfff; }
    100% { box-shadow: 0 0 10px #00bfff; }
}

/* 头部样式 */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 48px;
    color: #00bfff;
    margin: 0;
}

/* 导航链接样式 */
nav a {
    color: #ff69b4;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s ease;
    rel: nofollow;
}

nav a:hover {
    color: #ff9800;
}

/* 主内容区域 */
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

/* 文章样式 */
article h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 36px;
    color: #00bfff;
    margin-bottom: 20px;
}

article h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    color: #ff69b4;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

article code {
    font-family: 'Roboto Mono', monospace;
    color: #ff9800;
}

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

table th, table td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #ff69b4;
    color: #000;
}

table tr:nth-child(even) {
    background-color: rgba(255, 105, 180, 0.2);
}

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

/* 按钮样式 */
.cta-button {
    background-color: #ff9800;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    animation: glow 2s infinite;
}

.cta-button:hover {
    background-color: #ff5722;
    box-shadow: 0 0 10px #ff5722;
}

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    color: #ff9800;
    margin-bottom: 30px;
}

/* 示例展示部分 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.example-display h2 {
    color: #ff69b4;
    font-size: 28px;
    margin-bottom: 20px;
}

.example-display ul {
    list-style: none;
    padding: 0;
}

.example-display li {
    margin-bottom: 15px;
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

.example-display li::before {
    content: '•';
    color: #00bfff;
    position: absolute;
    left: 0;
    top: 0;
}

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

@media (max-width: 1200px) {
    .main-content {
        padding: 30px 15px;
    }
}

@media (max-width: 1024px) {
    nav a {
        margin: 0 10px;
        font-size: 16px;
    }
    article h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }
    article h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    nav a {
        display: block;
        margin: 10px 0;
    }
    article h1 {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .cta-button {
        width: 100%;
        font-size: 14px;
    }
}

