/* 容器 */
.container {
    max-width: 100%; /* 移动设备上容器最大宽度设为100% */
    margin: 0 auto;
    padding: 15px; /* 缩小边距适应小屏幕 */
}

@media (min-width: 768px) {
    .container {
        max-width: 1000px; /* 大屏幕设备上保持原样 */
        padding: 20px;
    }
}

/* 页面标题 */
.page-title {
    font-size: 2em; /* 移动设备上字体稍微缩小 */
    margin-bottom: 20px; /* 缩小标题与内容之间的间距 */
    text-align: center;
    color: #333;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5em; /* 大屏幕设备上保持原样 */
        margin-bottom: 30px;
    }
}

/* 术语卡片容器 */
.term-cards {
    display: flex;
    flex-direction: column; /* 移动设备上卡片垂直排列 */
    gap: 15px; /* 缩小间距适应小屏幕 */
    justify-content: center;
    align-items: center; /* 卡片居中 */
}

@media (min-width: 768px) {
    .term-cards {
        flex-direction: row; /* 大屏幕设备上保持水平排列 */
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* 术语卡片 */
.term-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* 移动设备上卡片占满可用宽度 */
    max-width: 300px; /* 设置最大宽度确保在小屏幕上卡片不过大 */
    padding: 15px; /* 缩小边距适应小屏幕 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .term-card {
        width: 30%; /* 大屏幕设备上卡片宽度为30% */
        padding: 20px;
    }
}

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

/* 术语卡片链接 */
.term-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 术语卡片标题 */
.term-card-title {
    font-size: 1.3em; /* 移动设备上字体稍微缩小 */
    margin-bottom: 8px; /* 缩小标题与内容之间的间距 */
    color: #007ACC;
}

@media (min-width: 768px) {
    .term-card-title {
        font-size: 1.5em; /* 大屏幕设备上保持原样 */
        margin-bottom: 10px;
    }
}

/* 术语卡片数量 */
.term-card-count {
    font-size: 0.9em; /* 移动设备上字体稍微缩小 */
    color: #666;
}

@media (min-width: 768px) {
    .term-card-count {
        font-size: 1em; /* 大屏幕设备上保持原样 */
    }
}
