:root {
  --brand-900: #0b2545;
  --brand-800: #123a63;
  --brand-700: #1a5490;
  --brand-600: #2e7dd1;
  --brand-500: #4a9be8;
  --brand-400: #6bb3f0;
  --brand-300: #8ccaf7;
  --brand-100: #e3f0fb;
  --accent: #f0a64a;
  --accent-strong: #e08a1e;
  --success: #2f9e6e;
  --text-strong: #10233a;
  --text: #2b3f57;
  --text-soft: #5a7089;
  --bg: #f4f8fc;
  --bg-alt: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(26, 84, 144, 0.14);
  --shadow-sm: 0 2px 8px rgba(16, 35, 58, 0.06);
  --shadow-md: 0 10px 28px rgba(16, 35, 58, 0.1);
  --shadow-lg: 0 22px 54px rgba(16, 35, 58, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-100: #16283d;
    --text-strong: #eaf2fb;
    --text: #c6d5e6;
    --text-soft: #93a9c1;
    --bg: #0a1522;
    --bg-alt: #0e1b2b;
    --card: rgba(20, 38, 60, 0.62);
    --card-solid: #102033;
    --border: rgba(140, 202, 247, 0.16);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.62);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(74, 155, 232, 0.16), transparent 62%),
    radial-gradient(900px 460px at 92% 4%, rgba(240, 166, 74, 0.12), transparent 60%),
    radial-gradient(1000px 620px at 50% 108%, rgba(46, 125, 209, 0.12), transparent 66%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.32rem, 1.05rem + 1.2vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

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

h3 {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--brand-700);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--brand-300);
  }
}

p {
  margin: 0 0 1em;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(74, 155, 232, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--text-strong);
}

::selection {
  background: rgba(74, 155, 232, 0.28);
  color: var(--text-strong);
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  header {
    background: rgba(10, 21, 34, 0.72);
  }
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header > div > a[aria-label] {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

header > div > a[aria-label]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

header > div > a[aria-label]:hover::after {
  transform: scaleX(1);
}

@media (prefers-color-scheme: dark) {
  header > div > a[aria-label] {
    color: var(--brand-300);
  }
}

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

header nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 500;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  background: rgba(74, 155, 232, 0.14);
  color: var(--brand-700);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  header nav a:hover,
  header nav a:focus-visible {
    color: var(--brand-300);
  }
}

/* ============ Main layout ============ */
main {
  display: block;
}

main > section,
main > nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

main > section {
  padding-top: clamp(38px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 64px);
}

main > section + section {
  border-top: 1px dashed var(--border);
}

/* ============ Hero ============ */
#hero {
  position: relative;
  max-width: none;
  padding: clamp(44px, 7vw, 88px) 20px clamp(40px, 6vw, 72px);
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0b2545 0%, #1a5490 42%, #2e7dd1 72%, #4a9be8 100%);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(38% 46% at 18% 22%, rgba(255, 255, 255, 0.3), transparent 70%),
    radial-gradient(34% 42% at 78% 12%, rgba(240, 166, 74, 0.38), transparent 72%),
    radial-gradient(46% 52% at 62% 92%, rgba(140, 202, 247, 0.34), transparent 74%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}

#hero > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(4, 18, 34, 0.45);
  max-width: 22em;
  animation: fadeUp 0.8s var(--ease) both;
}

#hero > p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 0.94rem + 0.28vw, 1.1rem);
  max-width: 62em;
  line-height: 1.85;
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

#hero figure {
  margin: clamp(26px, 4vw, 42px) auto 0;
  max-width: var(--maxw);
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 26px 70px rgba(4, 18, 34, 0.42);
  animation: fadeUp 0.9s 0.18s var(--ease) both;
}

#hero figure svg {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 10px 30px rgba(4, 18, 34, 0.28);
}

#hero figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.04em;
}

/* ============ Breadcrumb ============ */
main > nav[aria-label="面包屑导航"] {
  padding-top: 18px;
  padding-bottom: 0;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-soft);
  opacity: 0.7;
}

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

/* ============ Cards / generic blocks ============ */
#about,
#products,
#services,
#scenarios,
#solutions,
#applications,
#cases,
#news,
#articles,
#article-detail,
#faq,
#howto,
#contact,
#trust,
#sitemap,
#links {
  position: relative;
}

#about > p,
#products > p,
#services > p,
#applications > p,
#contact > p {
  max-width: 70em;
}

/* About */
#about dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

#about dt {
  font-weight: 700;
  color: var(--brand-700);
  white-space: nowrap;
}

#about dd {
  margin: 0;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  #about dt {
    color: var(--brand-300);
  }
}

/* Products list */
#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
  counter-reset: prod;
}

#products ul li {
  position: relative;
  margin: 0;
  padding: 20px 20px 20px 58px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

#products ul li::before {
  counter-increment: prod;
  content: counter(prod, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(46, 125, 209, 0.35);
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 155, 232, 0.4);
}

/* Scenarios / Solutions / Services cards */
#scenarios h3,
#solutions h3,
#services h3,
#applications h3,
#cases h3 {
  margin-top: 28px;
}

#scenarios h3 + p,
#solutions h3 + p,
#services h3 + p,
#cases h3 + p {
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-500);
  border-radius: 4px var(--radius) var(--radius) 4px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#scenarios h3 + p:hover,
#solutions h3 + p:hover,
#services h3 + p:hover,
#cases h3 + p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* Cases blockquote */
#cases blockquote {
  margin: 26px 0 0;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(74, 155, 232, 0.12), rgba(240, 166, 74, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  position: relative;
  padding-left: 26px;
  font-style: italic;
  color: var(--text);
}

#cases blockquote p::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--brand-500);
  font-style: normal;
  font-family: Georgia, "Times New Roman", serif;
}

#cases blockquote p:last-child {
  margin-bottom: 0;
}

/* News */
#news article {
  margin-top: 18px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

#news article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 155, 232, 0.42);
}

#news article h3 {
  margin-bottom: 6px;
}

#news article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--brand-600);
  background: rgba(74, 155, 232, 0.12);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

#news article p:last-child {
  margin-bottom: 0;
}

/* Articles grid */
#articles {
  display: block;
}

#articles > article {
  display: inline-block;
  vertical-align: top;
  width: calc(50% - 11px);
  margin: 0 18px 22px 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

#articles > article:nth-of-type(even) {
  margin-right: 0;
}

#articles > article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240, 166, 74, 0.5);
}

#articles > article h3 {
  margin-bottom: 8px;
}

#articles > article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

#articles > article p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

#articles > article p:last-child {
  margin-bottom: 0;
}

#articles > article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(46, 125, 209, 0.3);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
}

#articles > article p:last-child a::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#articles > article p:last-child a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 125, 209, 0.42);
  filter: brightness(1.06);
}

#articles > article p:last-child a:hover::after {
  transform: translateX(4px);
}

/* Article detail */
#article-detail > article {
  margin-top: 20px;
  padding: 26px 28px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.32s var(--ease), transform 0.32s var(--ease);
}

#article-detail > article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

#article-detail > article h3 {
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

#article-detail > article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

#article-detail > article p {
  text-align: justify;
  text-justify: inter-ideograph;
}

/* FAQ */
#faq details {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(74, 155, 232, 0.42);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 17px 56px 17px 22px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1rem;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--brand-600);
  border-bottom: 2.5px solid var(--brand-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.32s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq summary:hover {
  background: rgba(74, 155, 232, 0.1);
  color: var(--brand-700);
}

@media (prefers-color-scheme: dark) {
  #faq summary:hover {
    color: var(--brand-300);
  }
}

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-soft);
  animation: fadeUp 0.4s var(--ease) both;
}

/* HowTo */
#howto h3 {
  margin-top: 26px;
}

#howto ul,
#howto ol {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px 20px 42px;
}

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

#howto ol li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 12px;
  min-height: 30px;
}

#howto ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(46, 125, 209, 0.32);
}

#howto ol li:last-child {
  margin-bottom: 0;
}

/* Contact */
#contact dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
}

#contact dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 2px;
}

#contact dd {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--text-strong);
  font-weight: 600;
  word-break: break-word;
}

#contact dl > dt,
#contact dl > dd {
  grid-column: auto;
}

#contact dl {
  counter-reset: contact;
}

#contact dl > dt {
  grid-column: 1;
  align-self: end;
  padding: 14px 18px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#contact dl > dd {
  grid-column: 1;
  padding: 0 18px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin: 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact dl > dd:hover {
  border-color: rgba(74, 155, 232, 0.42);
  box-shadow: var(--shadow-sm);
}

/* Trust */
#trust h3 {
  margin-top: 24px;
}

#trust h3 + p {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  font-size: 0.96rem;
  color: var(--text-soft);
}

/* Sitemap & Links */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  border-color: transparent;
}

#links {
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: clamp(36px, 5vw, 56px) 20px calc(36px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 60% at 12% 0%, rgba(140, 202, 247, 0.22), transparent 70%),
    radial-gradient(42% 54% at 88% 100%, rgba(240, 166, 74, 0.18), transparent 72%);
  pointer-events: none;
}

footer > * {
  position: relative;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

footer p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
}

footer nav a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

footer nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============ Animations ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@supports (animation-timeline: view()) {
  main > section > h2,
  main > section > h3,
  main > section > p,
  main > section > article,
  main > section > details,
  main > section > dl,
  main > section > ul,
  main > section > ol,
  main > section > blockquote,
  main > section > figure {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  #articles > article {
    width: 100%;
    margin-right: 0;
  }
}

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

  header > div {
    padding: 10px 16px;
    gap: 8px;
  }

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
    width: max-content;
  }

  header nav a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 7px 11px;
  }

  main > section,
  main > nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  #hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  #hero figure {
    padding: 10px;
    border-radius: var(--radius);
  }

  #about dl {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px;
  }

  #about dt {
    margin-top: 10px;
  }

  #about dt:first-child {
    margin-top: 0;
  }

  #contact dl {
    grid-template-columns: 1fr;
  }

  #contact dl > dt {
    padding-top: 12px;
  }

  #article-detail > article {
    padding: 20px 18px;
  }

  #faq summary {
    padding: 15px 48px 15px 16px;
    font-size: 0.96rem;
  }

  #faq summary::after {
    right: 18px;
  }

  #faq details p {
    padding: 0 16px 18px;
  }

  #howto ul,
  #howto ol {
    padding: 16px 16px 16px 34px;
  }

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

  #news article,
  #articles > article {
    padding: 18px;
  }

  #cases blockquote {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #hero {
    padding-top: 36px;
  }

  #hero figure {
    padding: 8px;
  }

  #hero figcaption {
    font-size: 0.84rem;
  }

  #products ul {
    grid-template-columns: 1fr;
  }

  #products ul li {
    padding: 16px 16px 16px 52px;
  }

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

  footer nav a {
    padding: 6px 13px;
    font-size: 0.86rem;
  }

  main > nav[aria-label="面包屑导航"] ol {
    font-size: 0.82rem;
    padding: 8px 13px;
  }
}

@media (hover: none) {
  #products ul li:hover,
  #news article:hover,
  #articles > article:hover,
  #article-detail > article:hover,
  #scenarios h3 + p:hover,
  #solutions h3 + p:hover,
  #services h3 + p:hover,
  #cases h3 + p:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  #hero figure,
  #sitemap,
  #links {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  a {
    color: #000000;
    text-decoration: underline;
  }
}