:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e6edf5;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --success: #16a34a;
  --danger: #ef4444;
  --soft: #eaf7ee;
  --thead: #dff5e6;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-2: 14px;
  --trans: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.base-info {
  width: 100%;
  height: 475px;
  background: url(../image/me/info-bg.png) 100% no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}

.base-info .package-info {
  width: 322px;
  height: 350px;
  background: url(../image/me/colored-ball.png) 100% no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 28px;
  font-family: Poppins-Bold;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.base-info .current-package {
  width: 757px;
  height: 370px;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 40px;
  color: rgba(207, 156, 73, 1);
  font-weight: 700;
  font-size: 21.5px;
  display: flex;
  flex-direction: column;
  padding: 24px 12px;
  box-shadow: 8px 0 20px rgba(255, 182, 193, 0.3),
    12px 0 30px rgba(186, 85, 211, 0.2);
}

.base-info .current-package > p {
  overflow-wrap: break-word;
  color: rgba(207, 156, 73, 1);
  font-family: Poppins-Bold;
  text-align: left;
  white-space: nowrap;
  margin: 24px 0 0 24px;
}
.base-info .current-package > div {
  display: flex;
  justify-content: space-between;
}
.base-info .current-package .current-package-content {
  display: flex;
  align-items: center;
  margin-left: 36px;
  gap: 12px;
}
.base-info .current-package .current-package-content img {
  --size: 56px;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
}

.base-info .current-package .try-it-now {
  width: 282px;
  height: 250px;
  background: url(../image/me/colored-ball2.png) 100% no-repeat;
  background-size: 100% 100%;
  right: 0;
  position: relative;
}
.base-info .current-package .try-it-now > span {
  position: absolute;
  top: 50%;
  right: 4px;
  color: #fff;
  transform: translate(-50%, -50%);
}

.wrap {
  max-width: 1200px;
  margin: 34px auto;
  padding: 0 18px;
}

.shell {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(230, 237, 245, 0.7);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.topbar {
  padding: 18px 18px 6px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #22c55e);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}
.logo:before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.55),
    transparent 52%
  );
  transform: rotate(10deg);
}

.brand h1 {
  font-size: 16px;
  margin: 0;
  line-height: 1.15;
}
.brand p {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  border: 1px solid rgba(230, 237, 245, 0.9);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}
.pill b {
  color: var(--text);
  font-weight: 600;
}

/* Tabs */
.tabs {
  padding: 0 18px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1px solid rgba(230, 237, 245, 0.9);
}

.tab {
  position: relative;
  padding: 14px 2px 12px;
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.8);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: var(--trans);
  outline: none;
}
.tab:hover {
  color: var(--primary);
}
.tab[aria-selected="true"] {
  color: var(--primary);
}
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #22c55e);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Toolbar */
.toolbar {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  transition: var(--trans);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.3);
}
.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.95),
    rgba(34, 197, 94, 0.95)
  );
  border-color: transparent;
  color: #fff;
}

.btn .icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.08);
}
.btn.primary .icon {
  background: rgba(255, 255, 255, 0.18);
}

.search {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}
.search input {
  width: 100%;
  padding: 11px 12px 11px 40px;
  border-radius: 12px;
  border: 1px solid rgba(230, 237, 245, 0.95);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: var(--trans);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
}
.search input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.12);
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
}

/* Switch */
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
  white-space: nowrap;
}
.switch b {
  color: var(--text);
}

.toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: var(--trans);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.12);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
  transition: var(--trans);
}
.toggle[data-on="true"] {
  background: rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.35);
}
.toggle[data-on="true"]::after {
  left: 23px;
}

/* Table (尽量复用) */
.card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(230, 237, 245, 0.85);
  border-radius: var(--radius);
  margin: 0 18px 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table thead th {
  background: var(--thead);
  color: #0b2a1a;
  font-weight: 800;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(22, 163, 74, 0.08);
  text-align: center;
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(230, 237, 245, 0.95);
  text-align: center;
  color: rgba(15, 23, 42, 0.9);
  vertical-align: middle;
}

.table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.035);
}

.table .left {
  text-align: left;
}
.table .mono {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(15, 23, 42, 0.75);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(230, 237, 245, 0.8);
  background: rgba(255, 255, 255, 0.75);
}

.badge.success {
  color: var(--success);
  background: rgba(22, 163, 74, 0.09);
  border-color: rgba(22, 163, 74, 0.15);
}
.badge.warn {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
}
.badge.danger {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.18);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.link {
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
  transition: var(--trans);
}
.link:hover {
  background: rgba(37, 99, 235, 0.08);
}
.link.danger {
  color: var(--danger);
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(248, 250, 252, 0.65);
}
.pager .left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pager .right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(230, 237, 245, 0.95);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
}
.page-btn[aria-current="page"] {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--primary);
}
.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.jump {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jump input {
  width: 56px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(230, 237, 245, 0.95);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  text-align: center;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.8);
}

/* View switching animation */
.view {
  display: none;
  animation: fadeUp 0.28s ease both;
}
.view.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .tabs {
    gap: 12px;
    overflow: auto;
  }
  .search {
    min-width: 200px;
  }
  .table thead th,
  .table tbody td {
    padding: 12px 10px;
  }
}
@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .meta {
    justify-content: flex-start;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-left {
    justify-content: space-between;
  }
  .search {
    max-width: none;
  }
  .pager {
    flex-direction: column;
    align-items: flex-start;
  }
  .pager .right {
    justify-content: flex-start;
  }
}
