:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --text: #1a1a2e;
  --text-soft: #4b4f63;
  --text-mute: #7a7f96;
  --brand: #6c5ce7;
  --brand-2: #e94e77;
  --brand-3: #f5a623;
  --brand-4: #3fb6a8;
  --line: rgba(26, 26, 46, 0.1);
  --line-strong: rgba(26, 26, 46, 0.16);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 22px 60px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #3a2a6b 38%, #6c5ce7 68%, #e94e77 100%);
  --grad-brand: linear-gradient(135deg, #6c5ce7 0%, #e94e77 100%);
  --grad-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(233, 78, 119, 0.12));
  --grad-warm: linear-gradient(135deg, #f5a623 0%, #e94e77 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --bg-soft: #16182e;
    --bg-elev: #1c1f3a;
    --text: #f2f3fa;
    --text-soft: #c3c7dd;
    --text-mute: #8f95b5;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(28, 31, 58, 0.55);
    --glass-strong: rgba(28, 31, 58, 0.82);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #0b0c1a 0%, #241a4d 40%, #4b3fb0 70%, #b0305a 100%);
    --grad-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(233, 78, 119, 0.18));
  }
}

*,
*::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;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(233, 78, 119, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(245, 166, 35, 0.1), transparent 50%);
  pointer-events: none;
}

body > a[href="#main-content"] {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 600;
}

body > a[href="#main-content"]:focus {
  left: 0;
}

img,
svg {
  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 {
  color: var(--brand-2);
}

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

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  line-height: 1.22;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--text);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

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

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2em 0;
}

::selection {
  background: rgba(108, 92, 231, 0.28);
}

/* ============ HEADER ============ */

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header[role="banner"] > div > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  flex-shrink: 0;
  padding: 6px 0;
}

header[role="banner"] > div > a:first-child svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header[role="banner"] > div > a:first-child:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(233, 78, 119, 0.4);
}

header[role="banner"] > div > a:first-child strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

nav[aria-label="主导航"] li {
  margin: 0;
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}

nav[aria-label="主导航"] a:hover {
  color: var(--text);
  background: var(--grad-soft);
  transform: translateY(-1px);
}

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

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

form[role="search"] input[type="search"] {
  width: 200px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: width 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

form[role="search"] input[type="search"]:focus {
  width: 240px;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.16);
  outline: none;
}

form[role="search"] button {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.32);
}

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

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

/* ============ MAIN LAYOUT ============ */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 80px;
}

main > section {
  margin-top: 56px;
  padding: 34px clamp(18px, 3vw, 40px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
}

main > section > *:last-child {
  margin-bottom: 0;
}

/* 滚动进入动画 */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main > section {
  animation: riseIn 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 24%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: fadeIn 0.6s var(--ease) both;
  }
}

@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;
  }
}

/* 面包屑 */
nav[aria-label="面包屑导航"] {
  margin-top: 24px;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

nav[aria-label="面包屑导航"] li {
  margin: 0;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--line-strong);
}

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

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

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

/* ============ HERO ============ */

#hero {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 52px);
  border: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(245, 166, 35, 0.28), transparent 45%),
    radial-gradient(circle at 6% 100%, rgba(63, 182, 168, 0.25), transparent 42%),
    var(--grad-hero);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: riseIn 0.8s var(--ease) both, heroShift 18s ease-in-out infinite alternate;
  color: #f4f5fb;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

@keyframes heroShift {
  0% { background-position: 0% 0%, 100% 100%, 0 0; }
  100% { background-position: 100% 100%, 0% 0%, 0 0; }
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.7;
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  max-width: 20em;
}

#hero p {
  color: rgba(244, 245, 251, 0.86);
  max-width: 62em;
}

#hero p:last-of-type {
  font-size: 0.85rem;
  color: rgba(244, 245, 251, 0.66);
  margin-bottom: 0;
}

#hero a {
  color: #ffd9a8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 217, 168, 0.4);
  text-underline-offset: 4px;
}

#hero a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

#hero > p > a {
  display: inline-block;
  margin: 2px 0;
}

#hero figure {
  margin: 26px 0 22px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

#hero figure svg {
  border-radius: var(--radius-sm);
  width: 100%;
}

#hero figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(244, 245, 251, 0.72);
}

/* ============ 内容区块细节 ============ */

#intro h3,
#about h3,
#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#cases h3,
#news h3,
#knowledge h3,
#team h3,
#howto h3 {
  margin-top: 1.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px dashed var(--line);
}

#intro h3:first-of-type,
#about h3:first-of-type {
  margin-top: 1.2em;
}

#products ul,
#services ul,
#scenarios ul,
#solutions ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#products ul li,
#services ul li,
#scenarios ul li,
#solutions ul li {
  padding: 14px 18px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  margin: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li:hover,
#services ul li:hover,
#scenarios ul li:hover,
#solutions ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: var(--shadow-md);
}

/* ============ 文章卡片 ============ */

#articles > p {
  max-width: 70em;
}

#articles article {
  position: relative;
  margin: 18px 0;
  padding: 22px 24px 22px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  opacity: 0.85;
  transition: width 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-md);
}

#articles article:hover::before {
  width: 7px;
}

#articles article h3 {
  margin: 0 0 8px;
  border: 0;
  padding: 0;
  font-size: 1.12rem;
}

#articles article p {
  margin: 0 0 0.6em;
  font-size: 0.94rem;
}

#articles article p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

#articles article a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateX(2px);
}

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

/* ============ HOWTO ============ */

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-md);
}

/* ============ FAQ ============ */

#faq details {
  margin: 12px 0;
  padding: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: var(--shadow-md);
}

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

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

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

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

#faq summary:hover {
  color: var(--brand);
  background: var(--grad-soft);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeIn 0.35s var(--ease) both;
}

/* ============ 团队 / 联系 ============ */

#team p,
#contact p {
  font-size: 0.96rem;
}

#contact p {
  padding: 10px 16px;
  margin: 0 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(108, 92, 231, 0.4);
  background: var(--grad-soft);
}

#contact p:last-child {
  border-left: 4px solid var(--brand-3);
  font-size: 0.9rem;
}

/* ============ 站点地图 / 友链 ============ */

#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(108, 92, 231, 0.4);
  background: var(--grad-soft);
}

#links {
  margin-bottom: 0;
}

/* ============ FOOTER ============ */

footer[role="contentinfo"] {
  background: var(--grad-hero);
  color: rgba(244, 245, 251, 0.82);
  padding: 56px 20px 32px;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(245, 166, 35, 0.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(63, 182, 168, 0.18), transparent 40%);
  pointer-events: none;
}

footer[role="contentinfo"] > section,
footer[role="contentinfo"] > p {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

footer[role="contentinfo"] > section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

footer[role="contentinfo"] > section:last-of-type {
  border-bottom: 0;
}

footer[role="contentinfo"] h2 {
  color: #ffffff;
  font-size: 1.05rem;
  padding-left: 14px;
  margin-bottom: 0.7em;
}

footer[role="contentinfo"] h2::before {
  background: var(--grad-warm);
}

footer[role="contentinfo"] p {
  color: rgba(244, 245, 251, 0.74);
  font-size: 0.9rem;
  margin: 0 0 0.6em;
}

footer[role="contentinfo"] a {
  color: #ffd9a8;
  text-decoration: underline;
  text-decoration-color: rgba(255, 217, 168, 0.35);
  text-underline-offset: 3px;
}

footer[role="contentinfo"] a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

footer[role="contentinfo"] > p {
  text-align: center;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer[role="contentinfo"] > p a {
  display: inline-block;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

footer[role="contentinfo"] > p a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* ============ 响应式 ============ */

@media (max-width: 1080px) {
  header[role="banner"] > div {
    gap: 12px;
  }

  nav[aria-label="主导航"] a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }

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

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

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

  header[role="banner"] > div {
    padding: 10px 16px;
    min-height: auto;
  }

  nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    width: max-content;
    padding: 2px 0;
  }

  form[role="search"] {
    margin-left: auto;
  }

  main {
    padding: 0 16px 56px;
  }

  main > section {
    margin-top: 36px;
    padding: 26px 20px;
    border-radius: var(--radius);
  }

  #hero {
    padding: 30px 22px;
    border-radius: var(--radius);
  }

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

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

  header[role="banner"] > div > a:first-child strong {
    font-size: 0.98rem;
  }

  header[role="banner"] > div > a:first-child svg {
    width: 34px;
    height: 34px;
  }

  form[role="search"] {
    flex: 1 1 100%;
    order: 2;
  }

  form[role="search"] input[type="search"],
  form[role="search"] input[type="search"]:focus {
    width: 100%;
    flex: 1 1 auto;
  }

  form[role="search"] button {
    padding: 9px 14px;
    flex-shrink: 0;
  }

  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.24rem;
    padding-left: 13px;
  }

  h2::before {
    width: 4px;
  }

  main > section {
    padding: 22px 16px;
    margin-top: 28px;
  }

  #hero {
    padding: 26px 18px;
  }

  #hero figure {
    padding: 8px;
    margin: 20px 0 18px;
  }

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

  #products ul,
  #services ul,
  #scenarios ul,
  #solutions ul {
    grid-template-columns: 1fr;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  #sitemap a,
  #links a {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  #howto ol li {
    padding: 14px 14px 14px 56px;
  }

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.93rem;
  }

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

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

  footer[role="contentinfo"] {
    padding: 40px 16px 26px;
  }

  footer[role="contentinfo"] > section {
    padding: 18px 0;
  }

  #articles article h3 {
    font-size: 1.02rem;
  }
}

@media (max-width: 380px) {
  main {
    padding: 0 12px 48px;
  }

  main > section {
    padding: 18px 13px;
  }

  #hero {
    padding: 22px 14px;
  }

  nav[aria-label="主导航"] a {
    font-size: 0.8rem;
    padding: 7px 8px;
  }
}

/* 打印样式 */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero figure,
  body::before {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    animation: none;
  }

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

  #faq details {
    page-break-inside: avoid;
  }

  #faq details:not([open]) p {
    display: block;
  }
}