:root {
  --xx-primary: #5b2bd9;
  --xx-primary-light: #8f7bff;
  --xx-accent: #ffd76e;
  --xx-accent-2: #ff7ac6;
  --xx-bg: #f6f4ff;
  --xx-bg-soft: #ffffff;
  --xx-surface: rgba(255, 255, 255, 0.72);
  --xx-surface-solid: #ffffff;
  --xx-text: #1f1733;
  --xx-text-soft: #5a5375;
  --xx-text-muted: #857fa0;
  --xx-border: rgba(91, 43, 217, 0.14);
  --xx-shadow: 0 10px 30px rgba(45, 20, 110, 0.12);
  --xx-shadow-lg: 0 24px 60px rgba(45, 20, 110, 0.2);
  --xx-radius: 18px;
  --xx-radius-sm: 12px;
  --xx-radius-lg: 28px;
  --xx-grad-banner: linear-gradient(135deg, #2a1a52 0%, #5b2bd9 45%, #8f7bff 75%, #ff7ac6 100%);
  --xx-grad-btn: linear-gradient(135deg, #5b2bd9 0%, #8f7bff 100%);
  --xx-grad-accent: linear-gradient(135deg, #ffd76e 0%, #ff7ac6 100%);
  --xx-blur: blur(16px);
  --xx-transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --xx-max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --xx-bg: #0f0a1e;
    --xx-bg-soft: #16102b;
    --xx-surface: rgba(30, 22, 56, 0.66);
    --xx-surface-solid: #1b1433;
    --xx-text: #f0ecff;
    --xx-text-soft: #c3bce0;
    --xx-text-muted: #928bb5;
    --xx-border: rgba(143, 123, 255, 0.22);
    --xx-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --xx-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --xx-grad-banner: linear-gradient(135deg, #120b26 0%, #3a1f8a 45%, #5b2bd9 75%, #b44a92 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--xx-text);
  background: var(--xx-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(143, 123, 255, 0.18), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 122, 198, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 215, 110, 0.1), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--xx-primary-light);
  text-decoration: none;
  transition: color var(--xx-transition), opacity var(--xx-transition);
}

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

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

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

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  background: linear-gradient(120deg, var(--xx-primary) 0%, var(--xx-primary-light) 55%, var(--xx-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--xx-grad-btn);
  box-shadow: 0 0 14px rgba(143, 123, 255, 0.6);
}

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

h4 {
  font-size: 1.02rem;
  color: var(--xx-primary-light);
}

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

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

li {
  margin-bottom: 0.4em;
}

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

/* ============ Header ============ */
header {
  position: relative;
  z-index: 50;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 10px clamp(16px, 4vw, 48px);
  font-size: 0.8rem;
  color: #e9e3ff;
  background: linear-gradient(90deg, #2a1a52, #5b2bd9 55%, #8f7bff);
  letter-spacing: 0.02em;
}

.topbar span {
  position: relative;
  padding-left: 18px;
}

.topbar span::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--xx-accent);
  font-size: 0.75em;
  top: 0.15em;
}

nav[aria-label="主导航"] {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--xx-surface);
  -webkit-backdrop-filter: var(--xx-blur);
  backdrop-filter: var(--xx-blur);
  border-bottom: 1px solid var(--xx-border);
  box-shadow: var(--xx-shadow);
}

nav[aria-label="主导航"] > a {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--xx-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

nav[aria-label="主导航"] > a::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #fff;
  background: var(--xx-grad-btn);
  box-shadow: 0 4px 14px rgba(91, 43, 217, 0.45);
}

nav[aria-label="主导航"] > a:hover {
  color: var(--xx-primary-light);
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

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

nav[aria-label="主导航"] ul a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--xx-text-soft);
  transition: background var(--xx-transition), color var(--xx-transition), transform var(--xx-transition);
}

nav[aria-label="主导航"] ul a:hover {
  color: #fff;
  background: var(--xx-grad-btn);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91, 43, 217, 0.35);
}

nav[aria-label="主导航"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 1 320px;
}

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

nav[aria-label="主导航"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 16px;
  font-size: 0.88rem;
  color: var(--xx-text);
  background: var(--xx-bg-soft);
  border: 1px solid var(--xx-border);
  border-radius: 999px;
  transition: border-color var(--xx-transition), box-shadow var(--xx-transition);
}

nav[aria-label="主导航"] input[type="search"]::placeholder {
  color: var(--xx-text-muted);
}

nav[aria-label="主导航"] input[type="search"]:focus {
  border-color: var(--xx-primary-light);
  box-shadow: 0 0 0 4px rgba(143, 123, 255, 0.2);
  outline: none;
}

nav[aria-label="主导航"] button[type="submit"] {
  flex: 0 0 auto;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--xx-grad-btn);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--xx-transition), box-shadow var(--xx-transition), filter var(--xx-transition);
}

nav[aria-label="主导航"] button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(91, 43, 217, 0.4);
  filter: brightness(1.08);
}

/* ============ Breadcrumb ============ */
nav[aria-label="面包屑"] {
  padding: 12px clamp(16px, 4vw, 48px);
  background: transparent;
}

nav[aria-label="面包屑"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--xx-max);
  font-size: 0.82rem;
  color: var(--xx-text-muted);
}

nav[aria-label="面包屑"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

nav[aria-label="面包屑"] li + li::before {
  content: "›";
  margin: 0 6px;
  color: var(--xx-text-muted);
  opacity: 0.6;
}

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

nav[aria-label="面包屑"] a:hover {
  color: var(--xx-primary-light);
}

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

/* ============ Main layout ============ */
main {
  display: block;
  max-width: var(--xx-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 40px;
}

main > section {
  margin: 0 0 26px;
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--xx-surface);
  -webkit-backdrop-filter: var(--xx-blur);
  backdrop-filter: var(--xx-blur);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-lg);
  box-shadow: var(--xx-shadow);
  animation: xx-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transition: box-shadow var(--xx-transition), transform var(--xx-transition), border-color var(--xx-transition);
}

main > section:hover {
  border-color: rgba(143, 123, 255, 0.4);
  box-shadow: var(--xx-shadow-lg);
}

main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.12s; }
main > section:nth-of-type(4) { animation-delay: 0.18s; }
main > section:nth-of-type(5) { animation-delay: 0.24s; }
main > section:nth-of-type(6) { animation-delay: 0.3s; }
main > section:nth-of-type(7) { animation-delay: 0.36s; }
main > section:nth-of-type(8) { animation-delay: 0.42s; }
main > section:nth-of-type(9) { animation-delay: 0.48s; }

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: clamp(28px, 5vw, 60px);
  color: #fff;
  background: var(--xx-grad-banner);
  border: none;
  border-radius: var(--xx-radius-lg);
  box-shadow: 0 26px 70px rgba(60, 24, 140, 0.42);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 110, 0.4), transparent 65%);
  pointer-events: none;
  animation: xx-float 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 198, 0.35), transparent 65%);
  pointer-events: none;
  animation: xx-float 11s ease-in-out infinite reverse;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  max-width: 62em;
}

#hero figure {
  margin: 24px 0 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--xx-radius);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

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

#hero figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* ============ Cards inside sections ============ */
#brand,
#products,
#solutions,
#cases,
#news,
#howto,
#faq,
#notes,
#contact,
#sitemap,
#links {
  position: relative;
}

#brand h3,
#products h3,
#solutions h3,
#cases h3,
#howto h3,
#howto h4,
#notes h3,
#contact h3 {
  margin-top: 1.4em;
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#howto h3:first-of-type,
#notes h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0;
}

/* ============ News articles ============ */
#news article {
  position: relative;
  margin: 0 0 18px;
  padding: 20px 22px 20px 26px;
  background: var(--xx-bg-soft);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius);
  box-shadow: 0 6px 18px rgba(45, 20, 110, 0.06);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition), border-color var(--xx-transition);
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--xx-grad-accent);
  opacity: 0.85;
}

#news article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(143, 123, 255, 0.08));
  opacity: 0;
  transition: opacity var(--xx-transition);
  pointer-events: none;
}

#news article:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 123, 255, 0.5);
  box-shadow: var(--xx-shadow-lg);
}

#news article:hover::after {
  opacity: 1;
}

#news article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  transition: color var(--xx-transition);
}

#news article:hover h3 {
  color: var(--xx-primary-light);
}

#news article p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

#news article p:first-of-type {
  display: inline-block;
  padding: 2px 12px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  color: var(--xx-primary-light);
  background: rgba(143, 123, 255, 0.14);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

#news article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--xx-primary-light);
  transition: gap var(--xx-transition), color var(--xx-transition);
}

#news article a::after {
  content: "→";
  transition: transform var(--xx-transition);
}

#news article a:hover {
  color: var(--xx-accent-2);
  gap: 10px;
}

#news article a:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  padding: 0;
  background: var(--xx-bg-soft);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-sm);
  overflow: hidden;
  transition: box-shadow var(--xx-transition), border-color var(--xx-transition), transform var(--xx-transition);
}

#faq details:hover {
  border-color: rgba(143, 123, 255, 0.45);
  box-shadow: 0 10px 26px rgba(45, 20, 110, 0.1);
}

#faq details[open] {
  border-color: rgba(143, 123, 255, 0.55);
  box-shadow: 0 12px 30px rgba(45, 20, 110, 0.14);
}

#faq summary {
  position: relative;
  padding: 15px 48px 15px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--xx-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--xx-transition), background var(--xx-transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--xx-grad-btn);
  border-radius: 50%;
  transition: transform var(--xx-transition), background var(--xx-transition);
}

#faq details[open] summary {
  color: var(--xx-primary-light);
  background: rgba(143, 123, 255, 0.08);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--xx-grad-accent);
  color: #2a1a52;
}

#faq details p {
  margin: 0;
  padding: 4px 20px 18px;
  font-size: 0.92rem;
  animation: xx-fade-in 0.4s ease both;
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--xx-text-soft);
  background: var(--xx-bg-soft);
  border: 1px solid var(--xx-border);
  border-radius: 999px;
  transition: color var(--xx-transition), background var(--xx-transition), transform var(--xx-transition), box-shadow var(--xx-transition), border-color var(--xx-transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--xx-grad-btn);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(91, 43, 217, 0.35);
}

/* ============ Contact highlight ============ */
#contact p {
  padding: 14px 18px;
  background: linear-gradient(120deg, rgba(143, 123, 255, 0.12), rgba(255, 122, 198, 0.1));
  border-left: 4px solid var(--xx-primary-light);
  border-radius: 0 var(--xx-radius-sm) var(--xx-radius-sm) 0;
}

/* ============ Footer ============ */
footer {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 48px) 32px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(160deg, #1b1035 0%, #2a1a52 55%, #3a1f8a 100%);
  border-top: 1px solid rgba(143, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: -60% 60% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 110, 0.16), transparent 65%);
  pointer-events: none;
}

footer > section {
  position: relative;
  max-width: var(--xx-max);
  margin: 0 auto 22px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--xx-radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform var(--xx-transition), background var(--xx-transition), border-color var(--xx-transition);
}

footer > section:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(143, 123, 255, 0.4);
}

footer h2 {
  font-size: 1rem;
  color: #fff;
  padding-left: 14px;
  margin-bottom: 10px;
}

footer h2::before {
  width: 4px;
  background: var(--xx-grad-accent);
  box-shadow: 0 0 12px rgba(255, 215, 110, 0.7);
}

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

footer > p:last-of-type {
  position: relative;
  max-width: var(--xx-max);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

footer a {
  color: var(--xx-accent);
}

footer a:hover {
  color: #fff;
}

/* ============ Animations ============ */
@keyframes xx-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes xx-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes xx-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.06);
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  nav[aria-label="主导航"] {
    gap: 10px 16px;
  }

  nav[aria-label="主导航"] form[role="search"] {
    flex-basis: 100%;
    order: 3;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .topbar {
    flex-direction: column;
    gap: 4px;
    font-size: 0.74rem;
    padding: 8px 16px;
  }

  nav[aria-label="主导航"] {
    padding: 12px 16px;
    gap: 10px;
  }

  nav[aria-label="主导航"] > a {
    font-size: 1.02rem;
  }

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

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

  nav[aria-label="主导航"] ul a {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.84rem;
    background: rgba(143, 123, 255, 0.08);
  }

  nav[aria-label="主导航"] form[role="search"] {
    flex-basis: 100%;
    order: 3;
  }

  nav[aria-label="面包屑"] {
    padding: 10px 16px;
  }

  main {
    padding: 0 14px 28px;
  }

  main > section {
    padding: 20px 18px;
    border-radius: var(--xx-radius);
    margin-bottom: 18px;
  }

  #hero {
    padding: 26px 20px;
    border-radius: var(--xx-radius);
  }

  #hero figure {
    padding: 10px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #news article {
    padding: 16px 16px 16px 20px;
  }

  #faq summary {
    padding: 13px 44px 13px 16px;
    font-size: 0.9rem;
  }

  #faq details p {
    padding: 2px 16px 16px;
  }

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

  footer {
    padding: 24px 14px 24px;
  }

  footer > section {
    padding: 16px 18px;
    margin-bottom: 16px;
  }
}

@media (max-width: 420px) {
  nav[aria-label="主导航"] button[type="submit"] {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  nav[aria-label="主导航"] input[type="search"] {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  #news article h3 {
    font-size: 1rem;
  }
}

/* ============ Print ============ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  nav,
  form,
  footer > section {
    display: none;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    animation: none;
    background: #fff;
  }

  #hero {
    background: #eee;
    color: #000;
    box-shadow: none;
  }

  #hero h1,
  #hero p,
  #hero figcaption {
    color: #000;
    -webkit-text-fill-color: #000;
    text-shadow: none;
  }
}