:root {
  --bg: #f4f6fb;
  --bg-soft: #e9eef7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(26, 43, 76, 0.1);
  --text: #1a2b4c;
  --text-soft: #4a5b78;
  --text-mute: #7b8aa5;
  --primary: #1a2b4c;
  --primary-2: #3d5a80;
  --accent: #f2c14e;
  --accent-2: #ee6c4d;
  --link: #2f6fb2;
  --shadow-sm: 0 2px 8px rgba(26, 43, 76, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 43, 76, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 43, 76, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 68px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d1420;
  --bg-soft: #111a29;
  --surface: #16202f;
  --surface-glass: rgba(22, 32, 47, 0.72);
  --surface-glass-strong: rgba(22, 32, 47, 0.92);
  --border: rgba(152, 193, 217, 0.14);
  --text: #e8eef7;
  --text-soft: #b3c1d4;
  --text-mute: #8296ad;
  --primary: #98c1d9;
  --primary-2: #3d5a80;
  --accent: #f2c14e;
  --accent-2: #ee6c4d;
  --link: #8fc3e8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(242, 193, 78, 0.14), transparent 60%),
    radial-gradient(1000px 520px at -10% 10%, rgba(61, 90, 128, 0.16), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
}

h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

h4 {
  font-size: 1.02rem;
  color: var(--text-soft);
}

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

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

li {
  margin-bottom: 0.35em;
}

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

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--accent);
  color: #1a2b4c;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
}

.logo:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(26, 43, 76, 0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.logo:hover svg {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 10px 22px rgba(26, 43, 76, 0.36);
}

.logo-text {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#main-nav {
  flex: 1 1 320px;
  min-width: 0;
}

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--primary);
  background: rgba(242, 193, 78, 0.22);
  transform: translateY(-2px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-search:focus-within {
  border-color: rgba(242, 193, 78, 0.7);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.18);
}

#search-input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 6px 0;
  width: 190px;
  min-width: 0;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-mute);
}

#site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1a2b4c;
  background: linear-gradient(135deg, var(--accent), #f7d77c);
  padding: 7px 16px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 193, 78, 0.45);
  filter: brightness(1.04);
}

#theme-toggle,
#menu-toggle {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--primary);
  border-color: rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

#menu-toggle {
  display: none;
}

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

main > section,
main > nav {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 193, 78, 0.35);
}

#banner {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a2b4c 0%, #3d5a80 52%, #98c1d9 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 88% 12%, rgba(242, 193, 78, 0.28), transparent 65%),
    radial-gradient(500px 260px at 8% 92%, rgba(238, 108, 77, 0.24), transparent 68%);
  pointer-events: none;
}

.banner-slides {
  position: relative;
  min-height: 360px;
}

.banner-slide {
  position: relative;
  display: none;
  animation: bannerFade 0.7s var(--ease) both;
}

.banner-slide.active {
  display: block;
}

.banner-slide > svg {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  opacity: 0.96;
}

.banner-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 4vw, 44px);
  background: linear-gradient(to top, rgba(13, 20, 32, 0.88) 8%, rgba(13, 20, 32, 0.55) 55%, rgba(13, 20, 32, 0) 100%);
  color: #f4f8ff;
  z-index: 2;
}

.banner-caption h1,
.banner-caption h2 {
  color: #ffffff;
  max-width: 780px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.banner-caption p {
  color: rgba(232, 238, 247, 0.9);
  max-width: 720px;
  margin-bottom: 1.1em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  color: #1a2b4c;
  background: linear-gradient(135deg, var(--accent), #f7d77c 60%, #ffe9a8);
  box-shadow: 0 10px 26px rgba(242, 193, 78, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #1a2b4c;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(242, 193, 78, 0.55);
  filter: brightness(1.05);
}

.banner-controls {
  position: absolute;
  right: clamp(14px, 3vw, 30px);
  top: clamp(14px, 3vw, 26px);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-controls button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #f4f8ff;
  background: rgba(13, 20, 32, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.banner-controls button:hover {
  background: rgba(242, 193, 78, 0.85);
  color: #1a2b4c;
  border-color: transparent;
  transform: translateY(-2px);
}

@keyframes bannerFade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#breadcrumb {
  padding: 14px 22px;
  border-radius: var(--radius);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

#breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

#breadcrumb li {
  margin: 0;
  color: var(--text-mute);
}

#breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-mute);
  opacity: 0.6;
}

#breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

#breadcrumb a:hover {
  color: var(--accent-2);
}

#breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

#intro,
#brand,
#products,
#solutions,
#scenes,
#cases,
#news,
#articles,
#howto,
#knowledge,
#faq,
#contact,
#sitemap,
#links {
  animation: riseIn 0.7s var(--ease) both;
}

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

main > section h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 1.1em;
}

main > section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

main > section h3 {
  margin-top: 1.4em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  color: var(--text);
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#scenes h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type {
  margin-top: 0.4em;
}

#articles article,
#news article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before,
#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

#articles article:hover,
#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 193, 78, 0.5);
}

#articles article h3,
#news article h3 {
  margin-top: 0;
  border-left: 0;
  padding-left: 0;
  font-size: 1.1rem;
}

#articles article h3 a,
#articles article a {
  font-weight: 700;
}

#articles article > a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
}

#articles article > a:hover {
  color: var(--link);
}

#faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

#faq details:hover {
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(242, 193, 78, 0.7);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  position: relative;
  font-weight: 700;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2b4c;
  background: linear-gradient(135deg, var(--accent), #f7d77c);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--accent-2);
}

#faq details p {
  padding: 0 0 16px;
  margin: 0;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  animation: riseIn 0.45s var(--ease) both;
}

#contact address {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0 0 0.5em;
}

#contact address p:last-child {
  margin-bottom: 0;
}

#contact a {
  font-weight: 700;
}

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

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

#sitemap a,
#links a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--primary);
  border-color: rgba(242, 193, 78, 0.6);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#links > p {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-mute);
}

#site-footer {
  position: relative;
  margin-top: 10px;
  padding: 46px 20px 30px;
  color: #dce6f2;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(242, 193, 78, 0.16), transparent 60%),
    linear-gradient(160deg, #1a2b4c 0%, #22344f 55%, #16202f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#site-footer > section {
  max-width: var(--maxw);
  margin: 0 auto 26px;
  padding: 0 4px;
}

#site-footer h2 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.7em;
  padding-bottom: 10px;
  position: relative;
}

#site-footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

#site-footer h3 {
  color: #f2c14e;
  font-size: 0.98rem;
  margin-top: 1em;
  border: 0;
  padding: 0;
}

#site-footer p,
#site-footer li {
  color: rgba(220, 230, 242, 0.78);
  font-size: 0.92rem;
}

#site-footer a {
  color: #f2c14e;
  font-weight: 600;
}

#site-footer a:hover {
  color: #ffe9a8;
}

#site-footer section[aria-labelledby="footer-meta"] p {
  margin: 0 0 0.4em;
  font-size: 0.86rem;
}

#site-footer section[aria-labelledby="footer-meta"] a {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.16);
  border: 1px solid rgba(242, 193, 78, 0.45);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#site-footer section[aria-labelledby="footer-meta"] a:hover {
  background: rgba(242, 193, 78, 0.3);
  transform: translateY(-2px);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  color: #1a2b4c;
  background: linear-gradient(135deg, var(--accent), #f7d77c);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 12px 30px rgba(242, 193, 78, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(242, 193, 78, 0.6);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  #main-nav {
    flex-basis: 100%;
    order: 3;
  }

  #main-nav ul {
    gap: 2px;
  }

  #main-nav a {
    font-size: 0.86rem;
    padding: 6px 9px;
  }

  .header-tools {
    margin-left: auto;
  }

  #search-input {
    width: 150px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 62px;
    --radius-lg: 20px;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 10px;
    row-gap: 8px;
  }

  .logo-text {
    font-size: 0.94rem;
    white-space: normal;
    line-height: 1.3;
  }

  #menu-toggle {
    display: inline-block;
  }

  #main-nav {
    display: none;
    flex-basis: 100%;
    order: 4;
    background: var(--surface-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  #main-nav.is-open {
    display: block;
    animation: riseIn 0.35s var(--ease) both;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }

  #site-search {
    order: 5;
    flex-basis: 100%;
    margin-top: 2px;
  }

  #search-input {
    width: 100%;
    flex: 1;
  }

  main {
    padding: 18px 14px 32px;
  }

  main > section,
  main > nav {
    padding: 22px 18px;
    margin-bottom: 18px;
  }

  .banner-slides {
    min-height: 0;
  }

  .banner-slide > svg {
    max-height: 240px;
    min-height: 200px;
  }

  .banner-caption {
    position: relative;
    inset: auto;
    background: linear-gradient(to top, rgba(13, 20, 32, 0.94) 10%, rgba(13, 20, 32, 0.72) 100%);
    padding: 20px 18px 24px;
  }

  .banner-controls {
    top: 12px;
    right: 12px;
  }

  .banner-controls button {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

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

  #articles article::before,
  #news article::before {
    top: 14px;
    bottom: 14px;
  }

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

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

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

  .header-inner {
    padding: 8px 12px;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 0.86rem;
  }

  #theme-toggle,
  #menu-toggle {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  main {
    padding: 14px 10px 26px;
  }

  main > section,
  main > nav {
    padding: 18px 14px;
    border-radius: 16px;
  }

  main > section h2 {
    font-size: 1.16rem;
  }

  main > section h3 {
    padding-left: 10px;
    border-left-width: 3px;
  }

  .banner-caption h1,
  .banner-caption h2 {
    font-size: 1.18rem;
  }

  .banner-caption p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

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

  #faq summary {
    padding: 14px 32px 14px 0;
    font-size: 0.95rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

  #site-footer {
    padding: 34px 14px 24px;
  }
}

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

@media print {
  #site-header,
  #banner,
  #breadcrumb,
  #back-to-top,
  #site-footer,
  .banner-controls,
  .header-tools {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main > section,
  main > nav,
  #articles article,
  #news article,
  #faq details {
    box-shadow: none !important;
    border: 1px solid #cccccc;
    background: #ffffff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}