
    * { margin:0; padding:0; box-sizing:border-box; }
    body { font-family: 'Segoe UI', 'PingFang SC', sans-serif; background: #f0f4ff; min-height: 100vh; padding: 20px; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 6px; padding: 8px 22px; border-radius: 40px;
      font-weight: 600; font-family: inherit; font-size: 15px;
      line-height: 1; border: 2px solid transparent;
      cursor: pointer; text-decoration: none; white-space: nowrap;
      transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.08s, box-shadow 0.2s;
    }
    .btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn-primary {
      background: linear-gradient(135deg, #2a6df4, #1a4db5);
      color: #fff; box-shadow: 0 4px 14px rgba(42,109,244,0.25);
    }
    .btn-primary:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(42,109,244,0.35);
    }
    .btn-outline { background: transparent; color: #2a6df4; border-color: #2a6df4; position: relative; }
    .btn-outline:hover:not(:disabled) { background: #2a6df4; color: #fff; }

    .navbar {
      max-width: 1200px; margin: 0 auto 28px;
      background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
      border-radius: 40px; padding: 12px 24px;
      display: flex; align-items: center; justify-content: space-between;
      box-shadow: 0 4px 20px rgba(0,0,0,0.04);
      border: 1px solid rgba(255,255,255,0.4);
      position: relative; gap: 12px;
    }
    .logo {
      display: flex; align-items: center; gap: 10px;
      font-size: 24px; font-weight: 700; color: #0b1e3a;
      text-decoration: none; flex-shrink: 0;
    }
    .logo .icon {
      background: linear-gradient(135deg, #2a6df4, #1a4db5); color: #fff;
      width: 42px; height: 42px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; font-weight: 800; line-height: 1;
    }
    .nav-actions {
      display: flex; gap: 14px; align-items: center;
      flex-wrap: wrap; flex: 1; justify-content: flex-end;
    }

    /* ===== 消息按钮 + 角标：角标挂到 wrapper 上，不被按钮 overflow:hidden 切割 ===== */
    .msg-btn-wrap {
      position: relative;
      display: inline-flex;
      flex-shrink: 0;
      /* 给角标留出溢出空间 */
      overflow: visible;
    }
    .msg-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      background: #ef4444;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(239,68,68,0.5);
      border: 2px solid #fff;
      z-index: 2;
      pointer-events: none;
      animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .msg-badge.hidden { display: none; }
    @keyframes badgePop {
      from { transform: scale(0); }
      to { transform: scale(1); }
    }

    .user-menu-wrapper { position: relative; flex-shrink: 0; }
    .user-badge {
      display: flex; align-items: center; gap: 8px;
      background: #ebf0ff; padding: 8px 16px; border-radius: 40px;
      font-size: 14px; color: #2a3b5e; font-weight: 600;
      cursor: pointer; transition: background 0.2s; user-select: none;
    }
    .user-badge:hover { background: #dbe4ff; }
    .user-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
    .user-badge .caret { font-size: 10px; color: #6b7a8f; transition: transform 0.2s; }
    .user-badge.open .caret { transform: rotate(180deg); }

    .user-dropdown {
      position: absolute; top: calc(100% + 8px); right: 0;
      background: #fff; border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      min-width: 180px; padding: 8px 0; z-index: 1000;
      display: none; animation: dropdownIn 0.18s ease;
      border: 1px solid #e2e8f0;
    }
    .user-dropdown.show { display: block; }
    @keyframes dropdownIn {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .user-dropdown-item {
      padding: 10px 20px; font-size: 14px; color: #2a3b5e;
      cursor: pointer; display: flex; align-items: center; gap: 10px;
      transition: background 0.15s;
    }
    .user-dropdown-item:hover { background: #f0f4ff; color: #2a6df4; }
    .user-dropdown-item.danger { color: #ef4444; }
    .user-dropdown-item.danger:hover { background: #fef2f2; color: #dc2626; }
    .user-dropdown-divider { height: 1px; background: #e2e8f0; margin: 6px 0; }

    .container { max-width: 1200px; margin: 0 auto; }
    .page-header { text-align: center; margin-bottom: 20px; }
    .page-header h1 { font-size: 32px; font-weight: 700; color: #0b1e3a; }

    .search-bar {
      display: flex; gap: 12px; align-items: center;
      margin-bottom: 20px; flex-wrap: wrap; justify-content: center;
    }
    .search-bar input {
      flex: 1; min-width: 200px; max-width: 600px;
      padding: 14px 22px; border: 2px solid #e2e8f0; border-radius: 40px;
      font-size: 16px; background: #ffffffcc; backdrop-filter: blur(4px);
      transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
    }
    .search-bar input:focus {
      outline: none; border-color: #2a6df4;
      box-shadow: 0 0 0 4px rgba(42,109,244,0.1);
    }
    .search-bar .refresh-btn {
      background: #fff; color: #2a6df4; border: 2px solid #2a6df4;
      padding: 10px 20px; border-radius: 40px; font-weight: 600;
      cursor: pointer; font-size: 16px;
      display: inline-flex; align-items: center; gap: 6px;
      white-space: nowrap; transition: all 0.2s; font-family: inherit;
    }
    .search-bar .refresh-btn:hover { background: #2a6df4; color: #fff; }

    .tab-content { display: none; }
    .tab-content.active { display: block; }

    .app-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
    }
    .app-card {
      background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
      border-radius: 28px; padding: 24px 22px;
      border: 1px solid rgba(255,255,255,0.5);
      box-shadow: 0 8px 24px rgba(0,0,0,0.04);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer; text-decoration: none; color: inherit;
      display: flex; flex-direction: column; gap: 8px;
    }
    .app-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
    .app-card:active { transform: translateY(-2px) scale(0.99); }
    .app-title { font-size: 20px; font-weight: 700; color: #0b1e3a; line-height: 1.3; }
    .app-student { font-size: 15px; color: #4a5568; }
    .app-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
    .tag {
      background: #edf2f7; padding: 4px 14px; border-radius: 40px;
      font-size: 13px; font-weight: 500; color: #2d3748;
    }
    .tag.time { background: #e2e8f0; }
    .tag.rejected { background: #fee2e2; color: #991b1b; }
    .empty-state {
      grid-column: 1/-1; text-align: center;
      padding: 60px 20px; color: #718096; font-size: 18px;
    }

    .login-prompt {
      grid-column: 1/-1; text-align: center; padding: 60px 20px;
    }
    .login-prompt .icon {
      display: flex; justify-content: center; align-items: center;
      margin-bottom: 16px;
    }
    .login-prompt .icon svg { width: 64px; height: 64px; stroke: #a0aec0; stroke-width: 1.6; fill: none; }
    .login-prompt h3 { font-size: 22px; color: #0b1e3a; margin-bottom: 10px; font-weight: 700; }
    .login-prompt p { color: #718096; font-size: 15px; margin-bottom: 24px; }
    .login-prompt .login-btn {
      display: inline-block; padding: 12px 36px;
      background: linear-gradient(135deg, #2a6df4, #1a4db5);
      color: #fff; border-radius: 40px; text-decoration: none;
      font-weight: 600; font-size: 16px; transition: 0.2s;
      box-shadow: 0 4px 14px rgba(42,109,244,0.25);
    }
    .login-prompt .login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(42,109,244,0.35);
    }

    .message-toast-container {
      position: fixed; bottom: 24px; right: 24px; z-index: 10000;
      display: flex; flex-direction: column; gap: 12px;
      max-width: 360px; pointer-events: none;
    }
    .message-toast {
      background: #fff; border-radius: 16px;
      padding: 16px 20px 16px 22px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.18);
      border-left: 5px solid #2a6df4;
      animation: toastSlideIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
      cursor: pointer; pointer-events: auto;
      transition: transform 0.2s, box-shadow 0.2s;
      position: relative; overflow: hidden;
    }
    .message-toast:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,0.22); }
    .message-toast.approved { border-left-color: #10b981; }
    .message-toast.needs_fix { border-left-color: #f59e0b; }
    .message-toast.rejected { border-left-color: #ef4444; }
    .message-toast.system { border-left-color: #6b7280; }
    .message-toast .toast-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
    .message-toast .toast-title {
      font-size: 15px; font-weight: 700; color: #0b1e3a;
      flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .message-toast .toast-time { font-size: 12px; color: #a0aec0; white-space: nowrap; }
    .message-toast .toast-content {
      font-size: 13px; color: #4a5568; line-height: 1.5;
      display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden;
    }
    @keyframes toastSlideIn {
      from { opacity: 0; transform: translateX(100px); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes toastSlideOut {
      from { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 0; }
      to { opacity: 0; transform: translateX(100px); max-height: 0; margin-bottom: -12px; }
    }
    .message-toast.closing { animation: toastSlideOut 0.35s ease forwards; }

    .skeleton-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
    }
    .skeleton-grid .skeleton-card { height: 130px; border-radius: 24px; }

    @media (max-width: 768px) {
      body { padding: 12px; }
      .navbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 24px; }
      .logo { font-size: 20px; justify-content: center; }
      .nav-actions { justify-content: center; }
      .btn { font-size: 14px; padding: 6px 16px; }
      .page-header h1 { font-size: 24px; }
      .search-bar { flex-direction: row; flex-wrap: wrap; gap: 8px; }
      .search-bar input { font-size: 14px; padding: 12px 18px; min-width: 150px; flex: 1; }
      .search-bar .refresh-btn { font-size: 14px; padding: 8px 16px; }
      .app-grid, .skeleton-grid { grid-template-columns: 1fr; gap: 16px; }
      .app-card { padding: 18px 16px; border-radius: 20px; }
      .app-title { font-size: 18px; }
      .app-student { font-size: 14px; }
      .tag { font-size: 12px; padding: 3px 10px; }
      .container { padding: 0 4px; }
      .user-dropdown { right: auto; left: 50%; transform: translateX(-50%); }
      @keyframes dropdownIn {
        from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
      }
      .user-dropdown.show { animation: dropdownIn 0.18s ease; }
      .message-toast-container { bottom: 16px; right: 12px; left: 12px; max-width: none; }
    }
  