
/* 全局样式 */
body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: radial-gradient(circle, rgba(240, 248, 255, 1), rgba(255, 255, 255, 1));
    margin: 0;
    padding: 0;
}

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

/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #0074D9;
}

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

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

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

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

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #D14;
}

/* 链接样式 */
a {
    color: #2ECC40;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
button, .button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: var(--highlight-color);
}

/* 变量定义 */
:root {
    --primary-color: #0074D9; /* 深蓝色 */
    --accent-color: #2ECC40; /* 清新绿 */
    --highlight-color: #FF851B; /* 琥珀黄 */
    --background-color: #F0F8FF; /* 浅灰色背景 */
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 卡片样式 */
.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 卡片图标 */
.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 卡片标题 */
.card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

/* 卡片描述 */
.card-description {
    font-size: 1em;
    text-align: center;
    margin-bottom: 15px;
    color: #555;
}

/* 卡片按钮 */
.card-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.card-button:hover {
    background-color: var(--highlight-color);
}

/* 示例展示区 */
.sample-article {
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 50px;
}

/* 文章标题 */
.sample-article h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* 文章内容 */
.sample-article p {
    text-align: justify;
    line-height: 1.8;
}

/* 图像样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 页面提示 */
.page-reference {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin-top: 40px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1440px) {
    .container {
        padding: 20px;
    }
}

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

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

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.75em;
    }
    .card-title {
        font-size: 1.2em;
    }
    .card-description {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    .card-title {
        font-size: 1em;
    }
    .card-description {
        font-size: 0.8em;
    }
}

