:root {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f8;
  --text: #1a1a2e;
  --text-2: #4a4f63;
  --text-3: #7a8095;
  --brand: #e94560;
  --brand-2: #6a5acd;
  --brand-3: #ff8a5c;
  --border: rgba(26, 26, 46, 0.09);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.09);
  --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
  color-scheme: light;
}

html[data-theme="dark"],
html.dark,
body.dark,
body.dark-mode {
  --bg: #0e0f1a;
  --bg-elev: #171a2b;
  --bg-soft: #1e2236;
  --text: #f2f4fb;
  --text-2: #c3c8da;
  --text-3: #8b91a8;
  --brand: #ff5c78;
  --brand-2: #8a7bff;
  --brand-3: #ffa06b;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(23, 26, 43, 0.6);
  --glass-brd: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not(.light) {
    --bg: #0e0f1a;
    --bg-elev: #171a2b;
    --bg-soft: #1e2236;
    --text: #f2f4fb;
    --text-2: #c3c8da;
    --text-3: #8b91a8;
    --brand: #ff5c78;
    --brand-2: #8a7bff;
    --brand-3: #ffa06b;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(23, 26, 43, 0.6);
    --glass-brd: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -8%, rgba(233, 69, 96, 0.10), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(106, 90, 205, 0.12), transparent 62%),
    radial-gradient(700px 420px at 50% 100%, rgba(255, 138, 92, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--brand-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  margin-top: 1.6em;
}

h4 {
  font-size: 1.02rem;
  color: var(--text-2);
  margin-top: 1.2em;
}

p {
  margin: 0 0 1em;
  color: var(--text-2);
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-2);
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--brand);
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  margin: 1.2em 0;
  padding: 18px 22px 18px 24px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--glass-brd);
  border-right: 1px solid var(--glass-brd);
  border-bottom: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

blockquote p::first-letter {
  color: var(--brand);
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}

section + section {
  border-top: 1px solid var(--border);
}

section > p:first-of-type {
  font-size: 1.02rem;
}

svg[role="img"] {
  border-radius: var(--radius);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

header > div {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: var(--header-h);
}

header > div > a[href="/"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

header > div > a[href="/"] svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header > div > a[href="/"]:hover svg {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.42);
}

header nav {
  flex: 1 1 auto;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 500;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--text);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

header nav a:hover::after,
header nav a:focus-visible::after {
  transform: scaleX(1);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form[role="search"] input[type="search"] {
  width: 200px;
  max-width: 40vw;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

header form[role="search"] input[type="search"]::placeholder {
  color: var(--text-3);
}

header form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.14);
  width: 240px;
}

header form[role="search"] button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(233, 69, 96, 0.42);
  filter: brightness(1.06);
}

header form[role="search"] button:active {
  transform: translateY(0) scale(0.98);
}

header > div > button[type="button"] {
  display: none;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

header > div > button[type="button"]:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

header > div > button[aria-label="切换暗黑模式"] {
  display: inline-flex;
}

main {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
}

main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 4px;
  font-size: 0.86rem;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
}

main > nav[aria-label="面包屑导航"] li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--text-3);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-2);
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand);
}

main > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main > section {
  max-width: none;
  padding: 48px 0;
}

#hero {
  padding: 40px 0 56px;
  text-align: center;
}

#hero h1 {
  max-width: 900px;
  margin: 0 auto 0.5em;
  background: linear-gradient(120deg, var(--text) 20%, var(--brand) 55%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#hero > p {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  color: var(--text-2);
}

#hero > div:nth-of-type(1) {
  position: relative;
  margin: 0 auto 36px;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-brd);
  transform: translateZ(0);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero > div:nth-of-type(1)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 15, 26, 0.35));
  pointer-events: none;
}

#hero > div:nth-of-type(1):hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 34px 80px rgba(233, 69, 96, 0.28);
}

#hero > div:nth-of-type(1) svg {
  width: 100%;
  height: auto;
  border-radius: 0;
  animation: heroFloat 9s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.03) translateY(-8px); }
}

#hero > div:nth-of-type(2) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

#hero > div:nth-of-type(2) > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 14px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#hero > div:nth-of-type(2) > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(233, 69, 96, 0.4);
}

#hero > div:nth-of-type(2) strong {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

#hero > div:nth-of-type(2) span {
  font-size: 0.84rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#about h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.4em;
}

#about h4 {
  padding-left: 14px;
  border-left: 3px solid linear-gradient(180deg, var(--brand), var(--brand-2));
  border-left-color: var(--brand);
  border-radius: 2px;
}

#about ul,
#products ul,
#solutions ul,
#howto ul,
#howto ol {
  padding: 20px 24px 20px 40px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
}

#products h3 + p,
#solutions h3 + p {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products h3 + p:hover,
#solutions h3 + p:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow);
}

#cases blockquote {
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#cases blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

#news h3 {
  position: relative;
  padding-left: 22px;
  margin-top: 1.4em;
}

#news h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.14);
}

#news h3 + p {
  margin-left: 22px;
  padding-left: 0;
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#articles article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.35);
}

#articles article:hover::before {
  transform: scaleX(1);
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  transition: color 0.3s var(--ease);
}

#articles article:hover h3 {
  color: var(--brand);
}

#articles article p {
  flex: 1 1 auto;
  font-size: 0.94rem;
  color: var(--text-2);
}

#articles article a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.08);
  border: 1px solid rgba(233, 69, 96, 0.22);
  transition: all 0.3s var(--ease);
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.32);
}

#articles article a:hover::after {
  transform: translateX(4px);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 24px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 0.7em;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.32);
}

#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.32);
  box-shadow: var(--shadow);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow);
}

#faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.1);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

#faq summary:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.04);
}

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: var(--text-2);
  animation: fadeSlide 0.4s var(--ease);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

#contact p {
  padding: 12px 18px;
  margin: 0 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(233, 69, 96, 0.35);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(233, 69, 96, 0.32);
}

footer {
  margin-top: 24px;
  padding: 44px 24px 56px;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.05));
  border-top: 1px solid var(--border);
}

footer > div {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 32px;
}

footer p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-3);
  padding: 6px 0;
}

footer p:first-child,
footer p:nth-child(2) {
  color: var(--text-2);
  font-weight: 600;
}

footer p:nth-last-child(1) {
  grid-column: 1 / -1;
  margin-top: 12px;
}

footer p:nth-last-child(1) a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
  transition: all 0.3s var(--ease);
}

footer p:nth-last-child(1) a::before {
  content: "↑";
}

footer p:nth-last-child(1) a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(233, 69, 96, 0.42);
  color: #fff;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

#hero > *,
section > h2,
section > h3,
section > p,
section > ul,
section > ol,
section > blockquote,
section > details,
section > article,
section > div {
  animation: revealUp 0.7s var(--ease) both;
}

#hero > *:nth-child(2) { animation-delay: 0.06s; }
#hero > *:nth-child(3) { animation-delay: 0.12s; }
#hero > *:nth-child(4) { animation-delay: 0.18s; }

@supports (animation-timeline: view()) {
  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links {
    animation: revealUp 0.8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  header > div {
    gap: 12px;
  }

  header form[role="search"] input[type="search"] {
    width: 160px;
  }

  header form[role="search"] input[type="search"]:focus {
    width: 200px;
  }

  #articles {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  header > div {
    padding: 10px 18px;
    flex-wrap: wrap;
  }

  header nav {
    order: 3;
    flex-basis: 100%;
    margin-top: 4px;
    display: none;
  }

  header nav ul {
    gap: 2px;
    max-height: 60vh;
    overflow-y: auto;
  }

  header nav a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  header > div > button[aria-label="切换移动菜单"] {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  header > div > button[aria-label="切换暗黑模式"] {
    order: 2;
  }

  header form[role="search"] {
    order: 4;
    flex-basis: 100%;
    margin-top: 6px;
  }

  header form[role="search"] input[type="search"] {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
  }

  header form[role="search"] input[type="search"]:focus {
    width: auto;
  }

  header > div > button[aria-label="切换移动菜单"]:focus + nav,
  header > div > button[aria-label="切换移动菜单"][aria-expanded="true"] + nav,
  header > div > button[aria-label="切换移动菜单"][aria-expanded="true"] ~ nav {
    display: block;
  }

  header nav:hover,
  header nav:focus-within {
    display: block;
  }

  main {
    padding: 0 18px 32px;
  }

  main > section {
    padding: 36px 0;
  }

  #hero {
    padding: 28px 0 40px;
  }

  #hero > div:nth-of-type(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #hero > div:nth-of-type(2) > div {
    padding: 18px 12px;
  }

  #articles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #articles article {
    padding: 22px 20px;
  }

  footer {
    padding: 32px 18px 48px;
  }

  footer > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.28rem;
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  h3 {
    font-size: 1.06rem;
  }

  header > div {
    padding: 8px 14px;
    gap: 8px;
  }

  header > div > a[href="/"] {
    font-size: 1rem;
  }

  header > div > a[href="/"] svg {
    width: 34px;
    height: 34px;
  }

  header > div > button[type="button"] {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  header form[role="search"] button {
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  main {
    padding: 0 14px 28px;
  }

  main > section {
    padding: 28px 0;
  }

  #hero > p {
    margin-bottom: 24px;
  }

  #hero > div:nth-of-type(1) {
    border-radius: var(--radius);
  }

  #hero > div:nth-of-type(2) strong {
    font-size: 1.25rem;
  }

  #hero > div:nth-of-type(2) span {
    font-size: 0.76rem;
  }

  #about ul,
  #products ul,
  #solutions ul,
  #howto ul,
  #howto ol {
    padding: 16px 16px 16px 32px;
  }

  #howto ol {
    padding-left: 16px;
  }

  #howto ol li {
    padding-left: 34px;
  }

  #products h3 + p,
  #solutions h3 + p {
    padding: 14px 16px;
  }

  #contact p {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  #faq summary {
    padding: 15px 46px 15px 16px;
    font-size: 0.92rem;
  }

  #faq summary::after {
    right: 14px;
    width: 22px;
    height: 22px;
    font-size: 1rem;
  }

  #faq details p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  footer {
    padding: 26px 14px 40px;
  }

  footer p {
    font-size: 0.8rem;
  }
}

@media (hover: none) {
  #hero > div:nth-of-type(1):hover,
  #hero > div:nth-of-type(2) > div:hover,
  #articles article:hover,
  #products h3 + p:hover,
  #solutions h3 + p:hover,
  #cases blockquote:hover,
  #contact p:hover,
  #sitemap a:hover,
  #links a:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  #hero > div:nth-of-type(1),
  main > nav[aria-label="面包屑导航"],
  #sitemap,
  #links {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    break-inside: avoid;
    padding: 16px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}