/* 设置偏灰色的白色为主色调，可互动部分为淡蓝色 */

html, body {
    background: conic-gradient(from 0deg at center,  rgb(112, 194, 190),  rgb(215, 130, 189));
    font-family: 'Arial', sans-serif;
    display: grid;
    grid-template-rows: 80px auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.header {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgba(245, 245, 245, 0);
    height: 50px;
}

.title {
    grid-row: 1;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(174, 183, 211);
}

.category-content-container {
    grid-area: main;  /* 指定grid区域 */
    display: grid;
    gap: 20px;  /* 内容区间距 */
    padding: 0 20px 20px;
    overflow: auto;
    grid-row: 2;
    border-radius: 5px;
}

/* 修改分类内容区为grid布局 */
.category-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.615); /* 半透明白色背景 */
    border-radius: 5px;
    margin: 0;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-right: 20px;
    margin-top: 20px;
    min-height: 400px;
    margin-bottom: 20px;
}

.title img {
    max-width: 100%;
    height: auto;
}

/* 顶部导航分类样式 */
.category-nav {
    display: flex;
    gap: 20px;
    border-radius: 5px;
    padding: 10px;
}

.category-nav button {
    background-color: #95a5ff; /* 淡灰色背景 */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #414141;
    transition: all 0.3s;
    border-radius: 5px;
}

.category-nav button:hover {
    background-color: rgb(126, 141, 214); /* 悬浮时变为淡蓝色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加轻微阴影 */
    color: #000000;
    transform: translateY(-2px); /* 悬浮轻微上移 */
}

.category-nav button.active {
    background-color: rgba(126, 125, 192, 0.418); /* 选中时变为淡蓝色 */
    color: rgb(0, 0, 0);
}

.h1 {
    color: #74b1e3; /* 淡蓝色标题 */
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


/* 主容器样式 */
.main-container {
    display: grid;
    grid-template-columns: 200px auto;
    grid-row: 2;
    gap: 20px;
    padding: 0;
    background: linear-gradient(30deg, #5f8da9, rgb(143, 149, 228)); /* 过渡背景色 */
}

/* 左侧导航栏样式 */
.side-nav {
    border-radius: 0px 5px 5px 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgb(126, 142, 233); /* 过渡背景色 */
}

.side-nav button {
    background: linear-gradient(135deg, rgb(125, 184, 255), rgb(206, 177, 255));
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    border-radius: 5px;
    border: 1px solid rgb(120, 212, 255); /* 浅灰色边框 */
}

.side-nav button:hover {
    background: linear-gradient(135deg, rgb(255, 181, 121), rgb(107, 235, 255));
    transform: translateX(2px);
    transition: all 0.3s;  
}

.side-nav button.active {
    background: linear-gradient(135deg, rgb(255, 121, 121), rgb(107, 255, 156));
    color: rgb(0, 0, 0);
}

/* 板块容器样式 */
.sections-container {
    display: grid;
    gap: 20px;
    border-radius: 5px;
}

.section {
    display: none;
    grid-template-rows: 30px auto;
    gap: 20px;
}

.footer {
    text-align: center;
    padding: 20px;
    min-height: 60px;
}

.footer a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    color: #000;
}