/* ================= 骨架布局与侧栏顶栏 (App Layout, Sidebar & Topbar) ================= */
  .app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
  }

  /* ---------- 左侧边栏 (Sidebar) ---------- */
  .sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 14px;
    z-index: 120;
    transition: width .22s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
    padding: 20px 10px;
  }

  .sidebar.collapsed .brand-sub,
  .sidebar.collapsed .nav-label,
  .sidebar.collapsed .nav-badge,
  .sidebar.collapsed .worker-info,
  .sidebar.collapsed .worker-more-btn,
  .sidebar.collapsed .worker-progress-wrap,
  .sidebar.collapsed #checkinText {
    display: none !important;
  }

  .sidebar.collapsed .brand-title {
    font-size: 14px;
    text-align: center;
  }
  .sidebar.collapsed .brand-wrap {
    align-items: center;
    width: 100%;
  }
  .sidebar.collapsed .sidebar-header {
    justify-content: center;
  }
  .sidebar.collapsed .sidebar-collapse-btn {
    display: none;
  }
  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
  }
  .sidebar.collapsed .worker-top {
    justify-content: center;
  }
  .sidebar.collapsed .btn-checkin {
    justify-content: center;
    padding: 10px 0;
  }

  /* 侧栏顶部品牌区 */
  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 18px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .brand-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
  }
  .brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
  }
  .brand-sub span {
    color: var(--accent);
    font-weight: 600;
  }
  .sidebar-collapse-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
  }
  .sidebar-collapse-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
  }

  /* 侧栏导航菜单 */
  .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    flex: 1;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s ease;
    position: relative;
    user-select: none;
    cursor: pointer;
  }
  .nav-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
  }
  .nav-item.active {
    background: var(--bg-surface-active);
    color: var(--accent);
    font-weight: 600;
  }
  .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
  }
  .nav-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-badge {
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(244, 63, 94, 0.16);
    color: #f43f5e;
  }

  /* 音乐音浪微动效 */
  .music-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 12px;
  }
  .music-wave span {
    width: 2px;
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    animation: waveBar .8s ease-in-out infinite alternate;
  }
  .music-wave span:nth-child(2) { animation-delay: .2s; }
  .music-wave span:nth-child(3) { animation-delay: .4s; }
  @keyframes waveBar {
    from { height: 20%; }
    to { height: 100%; }
  }

  /* 侧栏底部工位卡片与打卡按钮 */
  .sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
  }
  .worker-card {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
  }
  .worker-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .worker-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  }
  .worker-info {
    flex: 1;
    min-width: 0;
  }
  .worker-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .worker-level {
    font-size: 10.5px;
    color: var(--text-muted);
  }
  .worker-more-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
  }
  .worker-progress-wrap {
    margin-top: 10px;
  }
  .worker-progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  .worker-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, var(--accent));
    border-radius: 2px;
    transition: width .3s ease;
  }
  .worker-progress-text {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
  }

  /* 今日已打卡按钮 */
  .btn-checkin {
    width: 100%;
    height: 38px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    color: #042f2e;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
    transition: all .18s ease;
  }
  .btn-checkin:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(45, 212, 191, 0.5);
  }
  .btn-checkin.checked {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border);
    color: var(--accent);
    box-shadow: none;
  }

  /* ================= 右侧主区域 (Main Wrapper) ================= */
  .main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  /* ---------- 顶栏 (Topbar) ---------- */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 95;
    height: 64px;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    transition: background-color .25s ease;
  }
  body.light .topbar {
    background: rgba(245, 245, 247, 0.88);
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 520px;
  }
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
  }

  .search-pill {
    width: 100%;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    transition: all .18s ease;
  }
  .search-pill:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-surface-hover);
  }
  .search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .search-pill input {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
  }
  .search-pill input::placeholder {
    color: var(--text-muted);
  }
  .search-clear-btn {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topbar-weather {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .18s ease;
  }
  .topbar-weather:hover {
    border-color: var(--accent);
    color: var(--text-primary);
  }

  .topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all .18s ease;
  }
  .topbar-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
  }
  .notice-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-games-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-hover);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
  }
  .btn-games-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
  }

  /* ---------- 主内容页面容器 (Page Content) ---------- */
  .page-content {
    flex: 1;
    padding: 26px 32px 60px;
    max-width: 1720px;
    width: 100%;
    margin: 0 auto;
  }

  /* ================= 视图 1：主页全网热点聚合 ================= */
