/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4);
    color: #fff;
    display: flex;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin-left: 60px; /* 与侧边栏宽度一致 */
    padding: 20px;
}

/* 时间显示区域 */
.time-container {
    text-align: center;
    margin-bottom: 30px;
}

.time {
    font-size: 5rem;
    font-weight: 200;
    margin-bottom: 10px;
}

.date-info {
    font-size: 1.2rem;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 搜索框 */
.search-box {
    width: 900px;
    max-width: 90%;
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box .icon{
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* 搜索引擎选择器样式 */
.search-engine-selector {
    position: relative;
    cursor: pointer;
}

.selected-engine {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    height: 50px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.engine-options {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    width: 100%;
    display: none;
}

.engine-options.show {
    display: block;
}

.engine-option {
    padding: 10px;
    display: flex;
    align-items: center;
}

.engine-option:hover {
    background-color: #f5f5f5;
    background: rgba(0, 0, 0, 0.1);
}

#search-form {
    flex: 1;
    display: flex;
}

#search-input {
    flex: 1;
    height: 50px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 15px;
    color: #fff;
    font-size: 16px;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-form button {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

/* 分类导航菜单 */
.category-menu {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
}

.category-button {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.category-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.category-button.active {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}


/* 导航项目区域 */
.navigation-container {
    width: 80%;
    /* max-width: 1080px; */
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: calc(100vh - 300px);
    overflow-y: auto; /* 添加垂直滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏WebKit浏览器的滚动条 */
.navigation-container::-webkit-scrollbar {
    display: none;
}


.nav-category-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.nav-category-title i {
    margin-right: 10px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.site-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.site-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.site-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.site-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-info {
    flex: 1;
    overflow: hidden;
}

.site-title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-description {
    font-size: 12px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 自适应样式 */
@media (max-width: 768px) {
    .sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .site-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .site-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .navigation-container {
        width: 90%;
        max-height: calc(100vh - 250px);
    }
}