:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e6e9ef;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --red: #d92d20;
  --blue: #175cd3;
  --green: #078669;
  --amber: #b54708;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 58%, #ffffff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(217, 45, 32, 0.28);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #344054;
  font-size: 0.92rem;
}

.nav-links a {
  padding: 0.55rem 0.72rem;
  border-radius: 8px;
}

.nav-links a:last-child {
  color: #fff;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}

.hero > *,
.hero-visual,
.detail-layout > *,
.feature-strip > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: #475467;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.hero-visual {
  position: relative;
  padding: 1rem;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1.2rem 1.4rem auto auto;
  width: 42%;
  height: 0.45rem;
  background: var(--green);
  border-radius: 6px;
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.15rem 0.9rem;
  color: var(--muted);
}

.visual-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 99px;
  background: #d0d5dd;
}

.visual-top span:first-child {
  background: var(--red);
}

.visual-top span:nth-child(2) {
  background: var(--amber);
}

.visual-top span:nth-child(3) {
  background: var(--green);
}

.visual-top strong {
  margin-left: auto;
  font-size: 0.86rem;
}

.visual-search {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #f9fafb;
  font-weight: 800;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.visual-item {
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visual-item.hot {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.visual-item.accent {
  border-color: rgba(23, 92, 211, 0.35);
  background: #eff6ff;
}

.visual-item b,
.visual-item span {
  display: block;
}

.visual-item b {
  font-size: 1.15rem;
}

.visual-item span {
  margin-top: 0.6rem;
  color: inherit;
  opacity: 0.72;
}

.visual-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.visual-feed span {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-band div {
  padding: 1.15rem clamp(1rem, 4vw, 4.5rem);
  border-right: 1px solid var(--line);
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(2.4rem, 6vw, 5rem) clamp(1rem, 5vw, 5.5rem);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.feature-strip h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.08;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-card {
  display: block;
  min-height: 15rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.category-card:hover {
  border-color: #c7d7fe;
  transform: translateY(-2px);
}

.category-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

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

.category-card em {
  display: block;
  margin-top: 1.2rem;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.icon {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--blue);
}

.icon.work,
.icon.transfer {
  background: var(--red);
}

.icon.home,
.icon.forum {
  background: var(--green);
}

.icon.market,
.icon.renovate {
  background: var(--amber);
}

.feature-strip {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.72fr) auto;
  gap: 1.4rem;
  align-items: center;
  margin: 0 clamp(1rem, 5vw, 5.5rem) clamp(2.5rem, 6vw, 5rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.feature-strip .eyebrow {
  color: #fda29b;
}

.feature-strip p {
  margin: 0;
  color: #d0d5dd;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 5.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer strong {
  color: var(--ink);
}

.detail-hero {
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 5.5rem);
  background: var(--ink);
  color: #fff;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

.detail-hero p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #d0d5dd;
  font-size: 1.08rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5.5rem);
}

.detail-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
}

.detail-panel p {
  color: #475467;
}

.side-panel {
  padding: 1rem;
  align-self: start;
}

.side-panel a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-weight: 800;
}

.side-panel a:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .hero,
  .detail-layout,
  .feature-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: auto;
    padding: 2.4rem 1.5rem 2.2rem;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(2.75rem, 14vw, 3.45rem);
  }

  .hero-text {
    max-width: 22em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    gap: 0.7rem;
    margin-top: 1.6rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 342px;
    padding: 0.8rem;
  }

  .hero-visual::before {
    right: 0.9rem;
    width: 32%;
  }

  .detail-hero,
  .detail-layout {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .detail-hero p,
  .detail-panel p {
    max-width: 22em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .detail-panel,
  .side-panel {
    width: 100%;
    max-width: 342px;
  }

  .visual-grid,
  .trust-band,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band div:last-child {
    border-bottom: 0;
  }

  .category-card {
    min-height: 11rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
