
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    transition: background 0.5s ease;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* 导航菜单 */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00d2ff;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #00d2ff;
}

/* 主体内容 */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ff6ec4;
}

section p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #cccccc;
}

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

section code {
    color: #00ffea;
    font-family: 'Fira Code', monospace;
}

/* 示例数据展示 */
.example-data {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.example-data h3 {
    color: #00ffea;
    margin-bottom: 15px;
}

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

.example-data li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.example-data li::before {
    content: '•';
    color: #ff6ec4;
    position: absolute;
    left: 0;
}

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

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

table th {
    background: #302b63;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6ec4;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 15px #ff6ec4;
}

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

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

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    section h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    nav a {
        margin: 5px 0;
    }

    section p, section code {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }

    section h2 {
        font-size: 1.2em;
    }
}

/* 动画效果 */
@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background-size: 400% 400%;
    animation: backgroundShift 15s ease infinite;
}

/* 代码块高亮 */
pre code {
    display: block;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 5px;
    color: #c5c5c5;
    overflow-x: auto;
}

pre code::selection {
    background: #555;
}

