:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dbe2ea;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --shadow: 0 22px 70px rgba(18, 32, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 8%, rgba(37, 99, 235, 0.16), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(6, 182, 212, 0.18), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 58%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.nav a,
.card {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 750;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 500px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 50px 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 124px;
  width: min(760px, 100%);
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.search-box input[type="search"] {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
  font-size: 18px;
}

.search-box input::placeholder {
  color: #98a2b3;
}

.search-box button,
.actions button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 900;
  cursor: pointer;
}

.search-box button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.result {
  width: min(760px, 100%);
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  text-align: left;
}

.result strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
}

.result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.actions button {
  min-width: 112px;
  padding: 0 16px;
}

.actions button + button {
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
  background: #fff;
}

.error {
  color: #d92d20 !important;
}

.quick-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-grid article,
.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 40px rgba(18, 32, 56, 0.07);
}

.quick-grid article {
  padding: 22px;
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  font-size: 19px;
}

.quick-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.cards {
  padding: 62px 0 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 36px;
}

.section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card {
  display: block;
  padding: 24px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
}

.card span {
  color: var(--blue);
  font-weight: 900;
}

.card strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 70px;
  padding: 22px 24px;
}

.notice strong {
  font-size: 20px;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar,
  .section-head,
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .quick-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  h1 {
    font-size: 42px;
  }
}
