/* 主体样式 */
body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #e7dcf0 0%, #5083ad 90%);
    color: #333;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid #4f46e5;
    /* 设置透明背景和毛玻璃效果 */
    background-color: rgba(201, 199, 199, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari 和旧版浏览器兼容 */
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    /* 悬停时使用更深的边框颜色 */
    border-color: #9e9e9e;
    /* 悬停时增加背景透明度 */
    background-color: rgba(255, 255, 255, 0.164);
}

.active-category {
    background-color: #6366f1;
    color: rgb(232, 245, 252);
    box-shadow: 0 0 10px rgba(238, 238, 241, 0.5);
    transition: all 0.3s ease;
}

.active-category:hover {
    background-color: #74b3fc;
    box-shadow: 0 0 15px rgba(157, 194, 243, 0.7);
}

.category-container {
    height: calc(100vh - 200px);
    overflow-y: auto;
    background-color: #ececec;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 按钮组之间的间距 */
.group-separator {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    /* 移动端布局调整 */
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0 1rem; /* 添加一些水平内边距 */
    }
    
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 999;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .category-container {
        height: 100%;
        max-height: none;
        border-radius: 0;
        background-color: #f8f8fa;
    }
    
    /* 优化移动端按钮样式 */
    #mobileMenuButton {
        background-color: #b30000; /* 使用暗红色主题 */
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    #mobileMenuButton:hover {
        background-color: #990000;
    }
}

.category-container::-webkit-scrollbar {
    width: 8px;
}

.category-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-container::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 10px;
}

.category-container::-webkit-scrollbar-thumb:hover {
    background: #a5b4fc;
}

header h1 {
    background: -webkit-linear-gradient(#8a8a8aec, #181818);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

button {
    transition: all 0.3s ease;
}

.centered-text {
    text-align: center;
    margin-top: 1em; /* 距离上部分隔符一行空白 */
    margin-bottom: 1em; /* 距离下部分隔符一行空白 */
}

.nav-button {
    margin-top: 1.5em; /* 增大上边距 */
    margin-bottom: 1.5em; /* 增大下边距 */
}

.navbar {
    width: 66%; /* 缩小为原来的三分之二 */
    /* 或者使用 flex 属性 */
    /* flex: 0 0 66%; */
}