*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --primary: #1677FF;
      --primary-hover: #4096FF;
      --primary-light: rgba(22,119,255,.08);
      --text-primary: rgba(0,0,0,.85);
      --text-secondary: rgba(0,0,0,.65);
      --text-muted: rgba(0,0,0,.45);
      --border: #EBEEF5;
      --line: #F0F0F0;
      --page-bg: #f8fafb;
      --danger: #F5222D;
      --success: #52C41A;
      --warning: #FAAD14;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
      background: var(--page-bg);
      color: var(--text-primary);
      font-size: 14px;
      min-height: 100vh;
    }

    .app-topbar {
      height: 56px;
      background: #fff;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px 0 16px;
    }
    .brand {
      font-size: 20px;
      font-weight: 400;
      line-height: 1;
      color: #111;
    }
    .top-actions {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      color: var(--text-primary);
      font-size: 14px;
    }
    .top-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--text-primary);
      text-decoration: none;
      font-weight: 600;
    }
    .top-link img { width: 14px; height: 14px; }
    .avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: linear-gradient(135deg,#f5d6b4,#d3a77f);
      border: 1px solid #eee;
    }

    .layout {
      display: flex;
      min-height: calc(100vh - 56px);
    }
    .sidebar {
      width: 230px;
      background: #fff;
      border-right: 1px solid var(--border);
      padding: 14px 0;
    }
    .nav-group { margin-bottom: 10px; }
    .nav-item {
      height: 42px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 16px 0 24px;
      color: #252626;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      position: relative;
      cursor: pointer;
    }
    .nav-item:hover { color: rgba(50,107,251,0.8); }
    .nav-item img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      flex-shrink: 0;
    }
    .nav-item.active { color: #326bfb; }
    .nav-arrow {
      margin-left: auto;
      color: #8C8C8C;
      font-size: 14px;
      font-weight: 400;
    }
    .nav-item.active .nav-arrow { color: #326bfb; }
    .sub-nav {
      display: flex;
      flex-direction: column;
    }
    .sub-item {
      display: flex;
      align-items: center;
      padding: 14px 18px 14px 58px;
      color: #252626;
      text-decoration: none;
      font-size: 14px;
      font-weight: 400;
    }
    .sub-item:hover { color: rgba(50,107,251,0.8); }
    .sub-item.active {
      color: #326bfb;
      background: rgba(50,107,251,0.08);
      font-weight: 500;
    }

    .content {
      flex: 1;
      padding: 16px;
      overflow: auto;
    }
    .page {
      width: 100%;
      min-width: 1220px;
    }
    .card {
      background: #fff;
      border-radius: 6px;
      border: 1px solid var(--border);
      margin-bottom: 14px;
    }
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px;
    }
    .title {
      font-size: 20px;
      font-weight: 700;
      line-height: 1.2;
    }
    .btn-primary {
      height: 32px;
      border: 1px solid var(--primary);
      background: var(--primary);
      color: #fff;
      border-radius: 4px;
      padding: 0 18px;
      cursor: pointer;
      font-size: 14px;
      transition: all .15s;
      font-family: inherit;
    }
    .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
    .btn {
      height: 34px;
      border-radius: 4px;
      padding: 0 16px;
      cursor: pointer;
      font-size: 14px;
      border: 1px solid #D9D9D9;
      background: #fff;
      color: var(--text-primary);
      transition: all .15s;
      font-family: inherit;
    }
    .btn:hover { border-color: var(--primary); color: var(--primary); }
    .btn-danger {
      border-color: rgba(245,34,45,.22);
      color: var(--danger);
    }
    .btn-danger:hover {
      border-color: var(--danger);
      color: var(--danger);
      background: rgba(245,34,45,.04);
    }

    .filters {
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .f-label {
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 700;
      margin-right: 2px;
    }
    .input, .select {
      height: 34px;
      border: 1px solid #D9D9D9;
      border-radius: 4px;
      padding: 0 11px;
      font-size: 14px;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      width: 220px;
      font-family: inherit;
      background: #fff;
      color: var(--text-primary);
    }
    .select {
      width: 190px;
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, #8C8C8C 50%), linear-gradient(135deg, #8C8C8C 50%, transparent 50%);
      background-position: calc(100% - 18px) 14px, calc(100% - 12px) 14px;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 34px;
    }
    .input::placeholder { color: #BFBFBF; }
    .input:hover, .select:hover { border-color: #40A9FF; }
    .input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(22,119,255,.1); }
    .check {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-left: 2px;
      color: var(--text-primary);
      cursor: pointer;
      user-select: none;
    }
    .check input { width: 15px; height: 15px; accent-color: var(--primary); }

    .table-wrap { overflow: auto; }
    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      min-width: 1420px;
    }
    thead th {
      text-align: left;
      font-size: 13px;
      color: var(--text-primary);
      background: #FAFAFA;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      font-weight: 600;
      white-space: nowrap;
    }
    tbody td {
      padding: 14px;
      border-bottom: 1px solid var(--line);
      vertical-align: top;
      color: var(--text-primary);
      white-space: nowrap;
    }
    tbody tr:hover td { background: #FCFDFF; }

    .id-col {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .star {
      color: #D9D9D9;
      font-size: 15px;
      cursor: pointer;
      transition: transform .15s;
      user-select: none;
    }
    .star:hover { transform: scale(1.15); }
    .star.active { color: #FAAD14; }

    .package-name {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-width: 260px;
      white-space: normal;
      word-break: break-word;
      line-height: 1.55;
    }
    .owner-cell {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .owner-logo {
      width: 16px;
      height: 16px;
      object-fit: contain;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .status-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 60px;
      height: 28px;
      padding: 0 12px;
      border-radius: 6px;
      border: 1px solid rgba(22,119,255,.28);
      color: var(--primary);
      background: rgba(22,119,255,.06);
      font-size: 13px;
      font-weight: 500;
    }
    .status-tag.data { color: #409EFF; border-color: rgba(64,158,255,.32); background: rgba(64,158,255,.08); }
    .status-tag.approval { color: #409EFF; border-color: rgba(64,158,255,.32); background: rgba(64,158,255,.08); }
    .task-link {
      color: #6A9BFF;
      text-decoration: none;
      white-space: normal;
      line-height: 1.55;
      display: inline-block;
      max-width: 240px;
      word-break: break-word;
    }
    .task-link:hover { color: var(--primary); }
    .action-link {
      color: var(--primary);
      text-decoration: none;
      margin-right: 12px;
      cursor: pointer;
    }
    .action-link.download { color: #FF4D4F; }
    .action-link.delete { color: #FF7875; }

    .empty {
      padding: 56px 20px;
      text-align: center;
      color: var(--text-muted);
      display: none;
    }
    .empty.show { display: block; }

    .pagination {
      padding: 14px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-secondary);
      font-size: 13px;
    }
    .pagination-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .page-btn {
      min-width: 28px;
      height: 28px;
      border: 1px solid #D9D9D9;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      background: #fff;
      color: var(--text-secondary);
      padding: 0 8px;
      user-select: none;
    }
    .page-btn.active {
      border-color: var(--primary);
      color: var(--primary);
      background: rgba(22,119,255,.06);
    }
    .page-btn.disabled {
      color: #D9D9D9;
      cursor: not-allowed;
    }

    .modal-mask {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.45);
      display: none;
      z-index: 100;
    }
    .modal-mask.show { display: block; }
    .modal {
      position: fixed;
      inset: 50% auto auto 50%;
      transform: translate(-50%, -50%) scale(.98);
      width: 420px;
      max-width: calc(100vw - 32px);
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 8px 48px rgba(0,0,0,.22);
      z-index: 101;
      display: none;
      flex-direction: column;
    }
    .modal.show {
      display: flex;
      transform: translate(-50%, -50%) scale(1);
    }
    .modal-header {
      padding: 16px 24px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .modal-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
    .icon-btn {
      width: 28px;
      height: 28px;
      border: none;
      background: none;
      cursor: pointer;
      border-radius: 4px;
      color: var(--text-muted);
      font-size: 18px;
      font-family: inherit;
    }
    .icon-btn:hover { background: rgba(0,0,0,.05); color: var(--text-secondary); }
    .confirm-body {
      padding: 26px 24px 12px;
      color: var(--text-primary);
      line-height: 1.7;
    }
    .confirm-name {
      color: var(--danger);
      font-weight: 600;
      word-break: break-all;
    }
    .modal-footer {
      padding: 12px 24px 18px;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .toast {
      position: fixed;
      top: 72px;
      left: 50%;
      transform: translateX(-50%) translateY(-10px);
      background: rgba(0,0,0,.8);
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 13px;
      opacity: 0;
      pointer-events: none;
      transition: all .2s ease;
      z-index: 120;
    }
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 1280px) {
      .sidebar { width: 200px; }
      .content { padding: 12px; }
      .page { min-width: 1040px; }
    }
