:root {
  --bg: #fff7f7;
  --surface: #ffffff;
  --text: #24191a;
  --muted: #756365;
  --line: #eadadb;
  --red: #e31f2f;
  --red-dark: #b61120;
  --pink: #c98e91;
  --gold: #ffc946;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--red-dark);
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
  min-width: 0;
}

.nav a {
  white-space: nowrap;
}

.site-link {
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(227, 31, 47, 0.18);
  font-weight: 800;
  white-space: nowrap;
}

.site-link:hover {
  color: #fff;
  background: var(--red-dark);
}

.nav a:hover {
  color: var(--red);
}

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

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: 48px 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7.4vw, 76px);
  line-height: 1.05;
  color: var(--red-dark);
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(227, 31, 47, 0.24);
}

.secondary-button {
  color: var(--red-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.version {
  font-size: 15px !important;
  color: #9a7d80 !important;
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-logo::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 70, 0.34), rgba(227, 31, 47, 0));
  filter: blur(10px);
}

.hero-logo img {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(99, 32, 39, 0.18);
}

.notice {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 56px;
  padding: 18px 20px;
  color: var(--red-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.notice strong {
  flex: 0 0 auto;
}

.notice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.features {
  padding: 16px 0 72px;
}

.features h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--red-dark);
}

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

.feature-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--red-dark);
}

.feature-grid p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 72px) 34px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--red-dark);
}

.beian-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #756365;
  font-size: 14px;
  line-height: 1.8;
}

.beian-links a:hover {
  color: var(--red);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    padding-right: 126px;
  }

  .brand {
    min-width: 0;
  }

  .site-link {
    position: absolute;
    top: 22px;
    right: 18px;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 32px;
    font-size: 15px;
  }

  .site-link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 42px 0 34px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-logo {
    order: -1;
  }

  .hero-logo img {
    width: min(74vw, 300px);
  }

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

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