* {
  box-sizing: border-box;
}

:root {
  --bg: #eef2f7;
  --card: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --primary: #4f46e5;
  --primary-2: #06b6d4;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 70, 229, 0.25), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.22), transparent 26%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #ecfeff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.24);
  font-size: 13px;
  font-weight: 800;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.page {
  padding: 58px 0 64px;
}

.hero {
  margin-bottom: 34px;
  padding: 18px 0;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero h1::after {
  content: ".";
  color: var(--primary);
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
  border-color: rgba(79, 70, 229, 0.22);
}

.card.wide {
  grid-column: 1 / -1;
}

.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
textarea:focus {
  border-color: rgba(79, 70, 229, 0.65);
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

button {
  margin-top: 13px;
  border: 0;
  border-radius: 15px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

button:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

pre {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  color: #dbeafe;
  overflow: auto;
  min-height: 58px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 36px;
  text-align: center;
  background: rgba(248, 250, 252, 0.42);
  backdrop-filter: blur(12px);
}

@media (max-width: 780px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 68px;
  }

  .page {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .card {
    border-radius: 20px;
    padding: 20px;
  }
}