:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #6a7584;
  --paper: #f5f2ea;
  --panel: rgba(255, 255, 255, 0.76);
  --line: rgba(23, 33, 43, 0.14);
  --cyan: #23a6a6;
  --green: #7a9f35;
  --yellow: #d69c2f;
  --red: #c95747;
  --shadow: 0 22px 70px rgba(30, 42, 52, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(135deg, rgba(35, 166, 166, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(214, 156, 47, 0.2), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(201, 87, 71, 0.18), transparent 36%),
    var(--paper);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ink), #38636a);
  box-shadow: 0 12px 26px rgba(23, 33, 43, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #33414e;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 160ms ease, background 160ms ease;
}

.quick-nav a:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 34px;
  align-items: end;
  min-height: 430px;
  padding: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)),
    url("data:image/svg+xml,%3Csvg width='900' height='520' viewBox='0 0 900 520' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2317212b' stroke-opacity='.12'%3E%3Cpath d='M-30 430C120 330 182 448 320 344s214-68 350-200 236-76 300-120'/%3E%3Cpath d='M-20 292c92-34 164-24 218 30 84 84 177 74 278-30 96-99 191-137 286-114 60 15 104 42 132 82'/%3E%3Cpath d='M38 82h198v118H38zM595 297h218v116H595zM348 128h142v84H348z'/%3E%3Ccircle cx='714' cy='116' r='42'/%3E%3Ccircle cx='202' cy='378' r='36'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 0;
  color: #41505f;
  font-size: 18px;
  line-height: 1.8;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.mini-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #33414e;
  background: rgba(255, 255, 255, 0.72);
}

.mini-weather-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.mini-weather-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.mini-weather-temp {
  font-size: 20px;
  line-height: 1;
}

.mini-weather-city {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.search-tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #4b5968;
  background: transparent;
  cursor: pointer;
}

.search-tab.active {
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
  background: #fff;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 15px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: rgba(35, 166, 166, 0.8);
  box-shadow: 0 0 0 4px rgba(35, 166, 166, 0.14);
}

.search-box button {
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: var(--ink);
  cursor: pointer;
}

.section-band {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(30, 42, 52, 0.08);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

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

.link-card {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: space-between;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card::after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
  content: "";
}

.link-card:hover,
.stack-list a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(30, 42, 52, 0.14);
}

.link-card strong {
  margin-top: 18px;
  font-size: 20px;
}

.link-card small {
  color: var(--muted);
  line-height: 1.6;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 42, 52, 0.12);
}

.card-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-green {
  --accent: var(--green);
}

.accent-yellow {
  --accent: var(--yellow);
}

.accent-red {
  --accent: var(--red);
}

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

.compact {
  min-width: 0;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stack-list span {
  font-weight: 800;
}

.stack-list small {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 38px;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 22px, 1160px);
    padding-top: 12px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-nav {
    justify-content: flex-start;
  }

  .hero,
  .section-band {
    padding: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .search-panel {
    padding: 12px;
  }

  .search-tabs,
  .search-box,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .search-box button {
    width: 100%;
  }
}
