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

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1A1A1A, #0D0D0D);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #4F9DFE;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
}

h2 {
    font-size: 2em;
    margin-top: 40px;
}

h3 {
    font-size: 1.5em;
    margin-top: 30px;
}

h4 {
    font-size: 1.2em;
    margin-top: 25px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #dddddd;
}

/* 代码块样式 */
pre {
    background-color: #2E2E2E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #4F9DFE;
    font-size: 0.95em;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: #cccccc;
}

/* 链接样式 */
a {
    color: #6C5CE7;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4F9DFE;
}

/* 网格容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* 卡片样式 */
.card {
    background-color: #1A1A1A;
    border: 2px solid #6C5CE7;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(79, 157, 254, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(79, 157, 254, 0.7);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #4F9DFE;
}

.card-description {
    font-size: 0.95em;
    color: #dddddd;
    margin-bottom: 15px;
}

.card-buttons {
    display: flex;
    gap: 10px;
}

.card-buttons a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(45deg, #6C5CE7, #4F9DFE);
    color: #ffffff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.card-buttons a:hover {
    background: linear-gradient(45deg, #4F9DFE, #6C5CE7);
}

/* 示例数据展示 */
.example-data {
    margin-top: 60px;
}

.example-data h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #4F9DFE;
    margin: 10px auto;
}

.code-example {
    background-color: #2E2E2E;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 30px;
}

.code-example code {
    color: #6C5CE7;
}

/* 提示信息 */
.notice {
    background-color: #333333;
    padding: 15px;
    border-left: 5px solid #4F9DFE;
    margin: 30px 0;
    border-radius: 3px;
    font-size: 1em;
    color: #ffffff;
}

/* 自适应布局 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    .card-description {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.2em;
    }
    .card-title {
        font-size: 1em;
    }
    .card-description {
        font-size: 0.85em;
    }
}

