/* ============================================================
   2026 外观：圆角深色面板 + 胶囊导航
   只改观感，不动任何交互逻辑（背景图、搜索功能都保持原样）
   ============================================================ */

/* ---------- 主面板 ---------- */
.frosted-glass {
    width: min(1200px, 92vw);
    height: 86vh;
    background: rgba(13, 16, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

/* ---------- 顶部标题 ---------- */
.header {
    padding: 20px 28px;
    gap: 14px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
}

.header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-shadow: none;
}

.site-domain {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: rgba(160, 174, 192, 0.85);
}

/* 首页欢迎语：靠右，和域名同字号 */
.header-welcome {
    margin-left: auto;
    max-width: 46%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 导航：胶囊（截图里没有图标） ---------- */
.folder-nav {
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    min-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.folder-tab {
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    padding: 9px 16px;
    border-radius: 12px;
    border: none;
    color: #c7d2e0;
    font-size: 15px;
    text-shadow: none;
}

.folder-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.folder-tab.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-bottom: none;
}

.folder-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 0;
    fill: currentColor;
    opacity: 0.92;
}

/* ---------- 内容区 ---------- */
.tab-content {
    padding: 24px 28px;
}

/* ---------- 首页 ---------- */
.home-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 4px 0 10px;
}

/* ---------- 搜索框（功能不变，只换外观） ---------- */
.search-container {
    margin: 20px 0 26px;
}

/* 首页搜索框往下移一点，不要贴着导航 */
#home .home-section .search-container {
    margin-top: clamp(24px, 10vh, 110px);
    margin-bottom: 26px;
}

.search-box {
    background: rgba(6, 9, 16, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
}

/* ---------- 卡片 ---------- */
.website-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
}

.website-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.website-favicon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

/* ---------- 首页「我的网站」：剩余空间水平 + 垂直居中 ---------- */
#home .home-section {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

#home .home-sites {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 18px auto;
}

#home .home-sites .websites-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 20px;
}

#home .home-sites .website-card {
    flex: 0 0 300px;
    max-width: 300px;
}

@media (max-width: 575px) {
    #home .home-sites .website-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ---------- 移动端 ---------- */
@media (max-width: 575px) {
    .frosted-glass {
        width: 94vw;
        height: 88vh;
        border-radius: 18px;
    }

    .header {
        padding: 16px 18px;
    }

    .header h2 {
        font-size: 1.2rem;
    }

    .folder-tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .tab-content {
        padding: 16px;
    }

    .home-section h2 {
        font-size: 1.7rem;
    }
}
