body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0;
    padding: 64px;
    background-color: #E8E8E8;
    color: #333;
    align-content: center;
    /* 添加最小高度，防止父元素高度限制 */
    min-height: 100vh; 
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

h2 {
    color: #444;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 1.2em;
}

.copyright {
    text-align: center;
    color: #444;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.0em;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.color-card {
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.10);
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.14);
}

.color-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.color-value {
    font-size: 0.85em;
    opacity: 0.9;
}

.color-section {
    margin-bottom: 40px;
    background: #F0F0F0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dark-text {
    color: #333;
}

.light-text {
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.copy-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.show-notification {
    opacity: 1;
}

@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.image-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.image-container img {
    display: block;
    text-align: center;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip img {
    max-width: 160px;
    max-height: 180px;
    display: block;
}

.image-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -5px);
}
.image-card {
    text-align: center;
}
.image-title {
    margin-top: 5px;
    font-size: 14px;
}
.modal-title {
    color: white;
    text-align: center;
    margin-top: 10px;
}
.modal-description,
.modal-description2,
.modal-description3,
.modal-description4 {
    text-align: left; 
    margin-top: 10px;
    font-size: 14px;
    max-width: 700px; 
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8; 
}

.modal-description {
    color: #ffffff; /* 红色 */
}

.modal-description2 {
    color: #7FFF00; /* 绿色 */
}

.modal-description3 {
    color: #FC0FC0; /* 蓝色 */
}

.modal-description4 {
    color: #FFFF00; /* 黄色 */
}

/* 确保相册相关样式没有被覆盖 */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 30px; 
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    /* 修改为最大高度 */
    max-height: 1000px; 
    overflow-y: auto; 
    box-sizing: border-box;
}

.gallery img {
    width: 100%;
    height: 320px; 
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}
.image-card {
    /* 图片卡片样式 */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.image-card:hover {
    transform: scale(1.05);
}

.modal {
    /* 模态框样式 */
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    /* 模态框图片样式 */
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    /* 关闭按钮样式 */
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 添加菜单样式 */
.top-menu {
    background-color: #333;
    padding: 10px;
    text-align: center;
    border-radius: 8px; /* 添加圆角效果 */
    margin-bottom: 24px; /* 设置与其他内容的间距 */
}

.top-menu a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

/* 修改鼠标悬停高亮效果，移除下划线 */
.top-menu a:hover {
    color: #ff9900; /* 鼠标悬停时文字颜色变为橙色 */
}


.pagination {
    text-align: center;
    margin-top: 20px;
    /* 让按钮以弹性布局排列 */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination button {
    /* 增大按钮的内边距以增大按钮尺寸 */
    padding: 10px 20px; 
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /* 设置按钮之间的间距为 10px */
    margin: 0 10px; 
    /* 可以适当增大字体大小 */
    font-size: 16px; 
    /* 添加过渡效果 */
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #ff9900;
    /* 添加放大效果 */
    transform: scale(1.1); 
}

.image-card {
    /* 图片卡片样式 */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* 添加过渡效果 */
    transition: all 0.3s ease; 
}

.image-card:hover {
    transform: scale(1.05);
    /* 添加阴影效果 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}
.modal {
    /* 模态框样式 */
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    /* 模态框图片样式 */
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    /* 关闭按钮样式 */
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 添加菜单样式 */
.top-menu {
    background-color: #333;
    padding: 10px;
    text-align: center;
    border-radius: 8px; /* 添加圆角效果 */
    margin-bottom: 24px; /* 设置与其他内容的间距 */
}

.top-menu a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

/* 修改鼠标悬停高亮效果，移除下划线 */
.top-menu a:hover {
    color: #ff9900; /* 鼠标悬停时文字颜色变为橙色 */
}


.description-color-1 {
    color: #ffffff; /* 红色 */
}

.description-color-2 {
    color: #7FFF00; /* 绿色 */
}

.description-color-3 {
    color: #FC0FC0; /* 蓝色 */
}

.description-color-4 {
    color: #FFFF00; /* 黄色 */
}

.modal-title a {
    color: white; /* 设置链接颜色为白色 */
    text-decoration: none; /* 移除下划线 */
    transition: color 0.3s ease; /* 添加颜色过渡效果 */
}

.modal-title a:hover {
    color: #ff9900; /* 鼠标悬停时链接颜色变为橙色 */
}

