
/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: #0A2463;
    line-height: 1.6;
}

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

/* 布局容器 */
.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0A2463, #00BFFF);
    color: white;
    padding: 20px;
    text-align: center;
    font-family: 'Google Sans', sans-serif;
    font-weight: bold;
    font-size: 2em;
    border-radius: 10px;
}

/* 主内容区 */
.main-content {
    grid-column: 2 / 11;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 侧边栏 */
.sidebar {
    grid-column: 11 / -1;
    background: #FFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

/* 按钮样式 */
button, a.button-link {
    background-color: #FF6F61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover, a.button-link:hover {
    background-color: #FF8C74;
    transform: scale(1.05);
}

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

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #00BFFF;
    color: white;
}

/* 代码块样式 */
pre {
    background: #0A2463;
    color: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto', monospace;
}

code {
    font-size: 0.9em;
}

/* 示例展示区 */
.example-display {
    border: 2px dashed #FF6F61;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.example-display h2 {
    color: #FF6F61;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 15px;
    }
}

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

@media (max-width: 1024px) {
    .main-content {
        grid-column: 1 / -1;
    }
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .header {
        font-size: 1.5em;
    }
}

@media (max-width: 320px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header {
        font-size: 1.2em;
    }
}

