/*
* css样式文件：置顶菜单栏menu-top、底部菜单栏menu-foot、主内容区域content
* 作者：hongjs
* 时间：2021-08-10
* 菜单menu，左侧位置left，右侧位置right，菜单间隔menu-item
* card-container 卡片式显示，card 卡片样式，card-hover 鼠标移到卡片上时样式
*/
:root{
    --hbb_font_size: 16px;
    --hbb_width: 100vw; /* 屏幕宽度 */
    --hbb_height: auto; /* 屏幕高度 */
    --hbb_background_color: #e6d6d6; /* 背景颜色 */
    --hbb_height_top: 55px; /* 布局，置顶菜单高度 */
    --hbb_height_foot: 50px; /* 布局，底部菜单高度 */
    --hbb_left: 50px; /* 布局，菜单左侧位置 */
    --hbb_right: 50px; /* 布局，菜单右侧位置 */
    --hbb_menu_item: 10px; /* 布局，菜单间隔 */
}
* {
    padding: 0;
    box-sizing: border-box;
    /* 让内边距和边框的宽度和高度都包含在内 */
}

body {
    /* width: 100vw;
    height: 100vh; */
    width: 100%;
    height: auto;
    margin: 0;
    background-color: var(--hbb_background_color);
    font-family: Arial, sans-serif;
}
/* 当屏幕宽度小于600px时应用的样式 */
@media screen and (max-width: 599px) {
    :root {
        --hbb_left: 10px;
        --hbb_right: 10px;
    }
    .card {
        font-size: var(--hbb_font_size);
    }
    .card a {
        font-size: var(--hbb_font_size);
    }
}
@media (min-width: 600px) and (max-width: 1199px) {
    /* :root {
    } */
    .card {
        font-size: var(--hbb_font_size);
    }
    .card a {
        font-size: var(--hbb_font_size);
    }
}
@media (min-width: 1200px) {
    /* :root {
    } */
    .card {
        font-size: var(--hbb_font_size);
    }
    .card a {
        font-size: var(--hbb_font_size);
    }
}
/* 主内容区域 */
.content {
    margin-top: var(--hbb_height_top);
    margin-bottom: var(--hbb_height_foot);
    width: 100%;
    position: relative;
    display: flex;
    /* 使子元素水平排列 */
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 16px;
    /* 卡片之间的间距 */
    justify-content: center;
    /*水平居中*/
}
/*  底部导航栏 */
.menu-foot {
    position: fixed;
    justify-content: center;
    bottom: 0;
    padding: 2px;
    width: 100%;
    height: var(--hbb_height_foot);
    background: linear-gradient(to bottom, #ffffff, #c9a088);
    z-index: 3;
}
/*  顶部导航栏 */
.menu-top {
    position: fixed;
    justify-content: center;
    top: 0;
    /* margin-top: 0px; */
    padding-top: 5px;
    width: 100%;
    height: var(--hbb_height_top);
    z-index: 3;
    background: linear-gradient(to bottom, #ffffff, #c9a088);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.left{
    float: left;
    margin-left:var(--hbb_left);
}
.right {
    float: right;
    margin-right: var(--hbb_right);
}
/* 菜单样式 */
.menu{
    justify-content: center;
    display: flex;
    color: blue;
}
.menu-item{
    display: inline-block;
    margin-right: 1px; /* 为链接之间添加间距 */
}
.menu a {
    display: block;
    color: blue;
    padding: 10px 10px;
    text-decoration: none;
}
.menu a:hover {
    background-color: #00BFFF;
    border-radius: 3px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.menu a.active {
    background-color: #4CAF50;
    color: white;
}

.card {
    background: linear-gradient(to bottom, #ffffff, #c7d2e4);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 96%;
    margin: 10px;
    transition: transform 0.2s;
    font-size: var(--hbb_font_size);
}
.card:hover h3 a{
    color: red;
}

.card a {
    color: #333;
    text-decoration: none;
    font-size: var(--hbb_font_size);
}

.card a:hover {
    color: #007BFF;
}
