.ip-body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.04), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-container {
  text-align: center;
  width: min(700px, calc(100vw - 28px));
  padding: 28px 18px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ip-top-action {
  margin-bottom: 12px;
}

.ip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ip-title {
  color: #0f172a;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.08;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ip-subtitle {
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 auto 36px;
  max-width: 520px;
}

.ip-key-panel {
  margin: 0 auto 14px;
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.ip-key-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ip-key-label {
  color: #64748b;
  font-size: 11px;
  margin-bottom: 3px;
}

.ip-key-code {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.ip-key-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ip-key-status.is-active {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.ip-key-status.is-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.ip-key-status.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.ip-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.ip-key-item {
  padding: 7px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ip-key-item-label {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 3px;
}

.ip-key-item-value {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.3;
}

.ip-key-note {
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.ip-recent-schools {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ip-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.ip-recent-title {
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
}

.ip-recent-tip {
  color: #94a3b8;
  font-size: 10px;
}

.ip-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ip-recent-actions {
  margin-top: 7px;
  display: flex;
  justify-content: flex-start;
}

.ip-school-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  text-decoration: none;
}

.ip-school-chip-id {
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
  max-width: 156px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-school-chip-time {
  color: #64748b;
  font-size: 10px;
}

.ip-link-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.ip-link-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.ip-btn {
  display: inline-block;
  padding: 11px 24px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.ip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.ip-btn:active {
  transform: translateY(-1px);
}

.ip-features {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ip-feature {
  padding: 10px 11px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 12px;
  text-align: left;
}

.ip-feature-title {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ip-feature-text {
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .ip-container {
    width: min(100vw - 18px, 100%);
    padding: 18px 12px 14px;
    border-radius: 18px;
  }

  .ip-top-action {
    margin-bottom: 10px;
  }

  .ip-key-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-key-grid {
    grid-template-columns: 1fr;
  }

  .ip-features {
    grid-template-columns: 1fr;
  }
}
