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

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;500&display=swap');

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(0, 23, 255, 0.1), rgba(255, 87, 34, 0.1));
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 标题样式 */
header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #0074D9, #FF851B);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00C6FF, #0072FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #FF851B;
    transform: scale(1.1);
}

/* 主内容区 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 模块卡片 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    flex: 1 1 calc(33.333% - 2rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00C6FF;
}

.card p {
    font-size: 1rem;
    color: #ffffff;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table, th, td {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

th, td {
    padding: 0.75rem;
    text-align: left;
}

th {
    background: rgba(0, 116, 217, 0.2);
    font-family: 'Poppins', sans-serif;
}

td {
    background: rgba(255, 255, 255, 0.05);
}

/* 示例展示 */
.example-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.example-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FF851B;
}

.example-section article {
    max-height: 600px;
    overflow-y: auto;
}

.example-section pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
}

.example-section code {
    font-family: 'Roboto', monospace;
    color: #00FFAB;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

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

.gradient-background {
    background: radial-gradient(circle, rgb(0, 23, 255), transparent);
    animation: aurora-move 15s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .card {
        flex: 1 1 calc(33.333% - 2rem);
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 1 1 calc(50% - 2rem);
    }
}

@media (max-width: 1024px) {
    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        flex: 1 1 100%;
    }
}

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

    .card h3 {
        font-size: 1.25rem;
    }

    .card p, table, th, td {
        font-size: 0.9rem;
    }
}

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

    .navbar a {
        font-size: 0.9rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p, table, th, td {
        font-size: 0.8rem;
    }
}

/* 提示信息 */
.footer-note {
    text-align: center;
    font-size: 1rem;
    color: #cccccc;
    margin-top: 2rem;
}

