* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb;
  color: #1f2a44;
}

.app-shell {
  min-height: 100vh;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #eef4ff 0%, #f7f9ff 40%, #eef2ff 100%);
  overflow: hidden;
}

.splash-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(99, 102, 241, 0.12), transparent 55%);
  animation: splashPulse 6s ease-in-out infinite;
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.splash-logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-rings span {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.35);
  animation: ringPulse 2.6s ease-out infinite;
}

.splash-rings span:nth-child(2) {
  animation-delay: 0.8s;
  border-color: rgba(99, 102, 241, 0.25);
}

.splash-rings span:nth-child(3) {
  animation-delay: 1.6s;
  border-color: rgba(16, 185, 129, 0.22);
}

.splash-logo {
  width: 120px;
  height: 120px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  animation: floatLogo 3s ease-in-out infinite;
}

.splash-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1f2a44;
}

.splash-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.splash-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.splash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.splash-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes splashPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .splash-logo-wrap {
    width: 160px;
    height: 160px;
  }

  .splash-rings span {
    width: 120px;
    height: 120px;
  }

  .splash-logo {
    width: 100px;
    height: 100px;
  }

  .splash-title {
    font-size: 22px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.app-header h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

.app-header p {
  margin: 0;
  color: #6b7280;
}

nav {
  display: flex;
  gap: 12px;
}

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8ecf8;
  font-size: 14px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-title {
  font-size: 20px;
  font-weight: 600;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

.label-text,
.info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #111827;
}

.label-text .hint {
  margin-left: 4px;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: #111827;
}

.icon svg {
  width: 16px;
  height: 16px;
}

.form input,
.form textarea {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.form textarea {
  resize: vertical;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.primary {
  background: #3b82f6;
  color: white;
}

.ghost {
  background: #eef2ff;
  color: #4338ca;
}

.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.error {
  color: #dc2626;
  margin-top: 8px;
}

.success {
  color: #16a34a;
  margin-top: 8px;
}

.hint {
  color: #6b7280;
  font-size: 12px;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-header img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-grid div {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-grid span {
  color: #6b7280;
  font-size: 12px;
}

.profile-grid .info-label {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.profile-grid .info-label span {
  color: #374151;
}

.markdown-body {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 20px;
}

.list .table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.8fr 0.6fr 0.6fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f9fafb;
}

.table-row.header {
  background: transparent;
  font-weight: 600;
  color: #6b7280;
}

.table-row span {
  font-size: 13px;
  word-break: break-all;
}

.table-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-cell .icon {
  color: #111827;
}

.row-actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 900px) {
  .app {
    padding: 16px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-row.header {
    display: none;
  }
}
