/* Bloret PassPort - Apple App Store Style Sidebar */
:root {
    --sidebar-bg: #f5f5f7;
    --sidebar-width: 260px;
    --accent-blue: #0071e3;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #d2d2d7;
    --hover-bg: rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    /* 移除背景颜色，使 .bg-container 可见 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
}

/* 侧边栏主体 */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 0 0 0;
    box-sizing: border-box;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 24px 18px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

/* 搜索框 */
.search-wrap {
    padding: 0 20px 24px;
}

.search-box-apple {
    background: #e8e8ed;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box-apple input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
}

/* 导航链接 */
.nav-group {
    padding: 0 12px;
}

.nav-link-apple {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
}

.nav-link-apple:hover {
    background: var(--hover-bg);
}

.nav-link-apple.active {
    background: #e8e8ed;
    color: var(--accent-blue);
}

.nav-icon {
    width: 24px;
    font-size: 18px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    color: var(--accent-blue);
}

.sidebar-title {
    padding: 24px 24px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 侧边栏底部 */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px; /* 圆角矩形 */
    object-fit: cover;
    background: #eee;
}

/* 页面整体背景支持 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.9); /* 模糊背景效果 */
    transform: scale(1.1);
}

.mini-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-action {
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
}

.mini-action:hover {
    color: var(--accent-blue);
}

/* 气泡菜单样式 */
.apple-popover {
    position: absolute;
    bottom: 75px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 6px;
    z-index: 2000;
    animation: popoverFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popoverFade {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.popover-item:hover {
    background: var(--accent-blue);
    color: white;
}

/* 主内容区域 */
.main-content-apple {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 44px 60px;
    box-sizing: border-box;
    max-width: 1200px;
}

.page-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* 卡片重构 */
.user-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    transition: transform 0.2s;
}

.user-info-card:hover {
    transform: translateY(-2px);
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 响应式 */
@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .sidebar .brand-text, .sidebar .search-wrap, .sidebar .sidebar-title, .sidebar .mini-username, .sidebar .mini-action, .nav-link-apple span:not(.nav-icon) {
        display: none;
    }
    .main-content-apple { margin-left: 80px; padding: 30px; }
    .nav-link-apple { justify-content: center; }
    .nav-icon { margin-right: 0; }
}

.user-avatar {
    width: 128px;
    height: 128px;
    border-radius: 24px; /* 圆角矩形 */
    object-fit: cover;
    display: block;
}

.avatar-wrapper {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 24px; /* 圆角矩形 */
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}