:root {
  --brand: #ff6b35;
  --brand-dark: #e2551f;
  --brand-light: #ff8f66;
  --brand-soft: #fff3ee;
  --accent: #6b5bff;
  --accent-soft: #eeecff;
  --bg: #f7f8fc;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #1d2130;
  --text-soft: #4a5068;
  --text-muted: #7b8199;
  --border: rgba(29, 33, 48, 0.09);
  --border-strong: rgba(29, 33, 48, 0.16);
  --shadow-sm: 0 2px 8px rgba(29, 33, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 33, 48, 0.09);
  --shadow-lg: 0 24px 60px rgba(29, 33, 48, 0.14);
  --shadow-brand: 0 12px 32px rgba(255, 107, 53, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue",
    Arial, sans-serif;
  --grad-brand: linear-gradient(135deg, #ff6b35 0%, #ff8f66 42%, #ffb347 100%);
  --grad-hero: linear-gradient(135deg, #ff6b35 0%, #ff7a4d 30%, #ff9a5c 58%, #6b5bff 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 243, 238, 0.85));
  --grad-accent: linear-gradient(135deg, #6b5bff 0%, #9d7bff 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff7d4d;
    --brand-dark: #ff6b35;
    --brand-light: #ffa27a;
    --brand-soft: rgba(255, 125, 77, 0.14);
    --accent: #8f83ff;
    --accent-soft: rgba(143, 131, 255, 0.16);
    --bg: #0e1017;
    --bg-elevated: #171a24;
    --bg-glass: rgba(23, 26, 36, 0.66);
    --bg-glass-strong: rgba(23, 26, 36, 0.88);
    --text: #eef0f7;
    --text-soft: #c2c7d8;
    --text-muted: #8b91a8;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 12px 32px rgba(255, 125, 77, 0.24);
    --grad-card: linear-gradient(160deg, rgba(30, 34, 46, 0.96), rgba(23, 26, 36, 0.88));
    --grad-hero: linear-gradient(135deg, #ff6b35 0%, #d94f7a 40%, #6b5bff 100%);
    color-scheme: dark;
  }
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% -6%, rgba(255, 107, 53, 0.14), transparent 42%),
    radial-gradient(circle at 96% 4%, rgba(107, 91, 255, 0.12), transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(255, 179, 71, 0.1), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

li {
  margin-bottom: 0.5em;
}

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

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

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

h2 {
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.1rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.1rem, 0.98rem + 0.55vw, 1.35rem);
}

blockquote {
  margin: 0;
  padding: 1.1em 1.3em;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-style: normal;
}

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

time {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.18em 0.75em;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

address {
  font-style: normal;
}

/* ============ Header ============ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, var(--shadow-sm);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

header > div > a {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  padding-left: 0.1em;
}

header > div > a::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}

header > div > a:hover::after {
  opacity: 1;
}

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

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

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

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

nav[aria-label="主导航"] a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: -1;
}

nav[aria-label="主导航"] a:hover {
  color: #fff;
  transform: translateY(-1px);
}

nav[aria-label="主导航"] a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Search form */

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  flex-shrink: 0;
}

form[role="search"]:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.14), var(--shadow-md);
}

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

form[role="search"] input[type="search"] {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  width: 190px;
  min-width: 0;
  padding: 6px 0;
  outline: none;
}

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

form[role="search"] button[type="submit"] {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
  white-space: nowrap;
}

form[role="search"] button[type="submit"]:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.36);
  filter: brightness(1.05);
}

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

/* ============ Breadcrumb ============ */

nav[aria-label="面包屑导航"] {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 0;
}

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

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

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

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

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

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

/* ============ Main layout ============ */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

main > section {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: riseIn 0.7s var(--ease-out) both;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

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

/* Staggered entrance */

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(n + 9) { animation-delay: 0.34s; }

/* Scroll-driven animation enhancement */

@supports (animation-timeline: view()) {
  main > section {
    animation: riseIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
    animation-delay: 0s;
  }
}

/* ============ Hero ============ */

#hero {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  border: 0;
  color: #fff;
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: riseIn 0.7s var(--ease-out) both, heroShift 16s ease-in-out infinite;
  box-shadow: 0 30px 70px rgba(255, 107, 53, 0.32);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.35), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.18), transparent 46%),
    radial-gradient(circle at 60% 120%, rgba(107, 91, 255, 0.4), transparent 55%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite;
}

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

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.08); }
}

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

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.16);
  max-width: 20ch;
}

#hero h1::after {
  display: none;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  max-width: 78ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

#hero figure {
  margin: 28px 0 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.3);
}

#hero figure img {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  padding: 12px 18px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
}

#hero > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#hero > ul li {
  margin: 0;
}

#hero > ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

#hero > ul a::after {
  content: "→";
  font-size: 1em;
  transition: transform 0.3s var(--ease);
}

#hero > ul a:hover {
  color: var(--brand-dark);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

#hero > ul a:hover::after {
  transform: translateX(4px);
}

/* ============ Content cards inside sections ============ */

#products ul,
#solutions ul,
#howto ul,
#howto ol,
#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
}

#products ul li,
#sitemap ul li,
#links ul li {
  position: relative;
  padding: 12px 16px 12px 42px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#products ul li::before,
#sitemap ul li::before,
#links ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.14);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateX(6px);
  border-color: var(--brand-light);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

#products ul li:hover::before,
#sitemap ul li:hover::before,
#links ul li:hover::before {
  transform: translateY(-50%) scale(1.25);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.2);
}

#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

#sitemap ul li {
  margin-bottom: 0;
}

#sitemap ul li a,
#links ul li a {
  color: var(--text);
  font-weight: 600;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--brand);
}

/* Solutions & HowTo lists */

#solutions ul,
#howto ul,
#howto ol {
  display: grid;
  gap: 10px;
}

#solutions ul li,
#howto ul li,
#howto ol li {
  margin-bottom: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#solutions ul li:hover,
#howto ul li:hover,
#howto ol li:hover {
  transform: translateX(5px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

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

#howto ol li {
  counter-increment: howto-step;
  position: relative;
  padding-left: 56px;
}

#howto ol li::before {
  content: counter(howto-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
}

/* ============ Cases / Quotes ============ */

#cases blockquote {
  margin: 14px 0;
  position: relative;
  padding: 20px 24px 20px 60px;
  border-left: 0;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.55;
  font-family: Georgia, "Times New Roman", serif;
}

#cases blockquote:hover {
  transform: translateY(-4px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}

/* ============ News & Articles ============ */

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

#news > h2,
#articles > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

#news article,
#articles article {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
}

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

#news article h3,
#articles article h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4em;
  transition: color 0.3s var(--ease);
}

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

#news article p,
#articles article p {
  font-size: 0.94rem;
  margin-bottom: 0.9em;
}

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

#articles article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

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

#articles article p a:hover {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

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

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

#faq {
  display: grid;
  gap: 12px;
}

#faq > h2 {
  margin-bottom: 12px;
}

#faq details {
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--brand);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  border-radius: var(--radius-md);
  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%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--brand-dark);
}

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

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

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

/* ============ Contact ============ */

#contact address {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateX(4px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

#contact address a {
  font-weight: 700;
  color: var(--brand);
}

#contact address a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#contact h3 {
  margin-top: 1.4em;
}

/* ============ Links ============ */

#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

#links ul li {
  margin-bottom: 0;
}

#links ul li a[rel~="nofollow"]::after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.78em;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  display: inline-block;
}

#links ul li a[rel~="nofollow"]:hover::after {
  transform: translate(2px, -2px);
  color: var(--brand);
}

/* ============ Legal ============ */

#legal h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#legal h3::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

/* ============ Footer ============ */

footer {
  position: relative;
  margin-top: 20px;
  padding: 48px 24px 56px;
  text-align: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(29, 33, 48, 0.05);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand),
    var(--accent),
    transparent
  );
  opacity: 0.6;
}

footer p {
  max-width: var(--container);
  margin: 0 auto 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

footer p:first-child {
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.92rem;
}

footer p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 18px;
}

footer a {
  color: var(--text-soft);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

footer a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

/* ============ Responsive ============ */

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

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

  main > section {
    padding: 32px;
  }

  #hero {
    padding: 44px 32px;
  }
}

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

  header > div {
    padding: 12px 18px;
    min-height: auto;
    gap: 12px;
  }

  header > div > a {
    font-size: 1.25rem;
  }

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

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

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    gap: 4px;
  }

  nav[aria-label="主导航"] a {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 7px 12px;
  }

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

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

  nav[aria-label="面包屑导航"],
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  main {
    gap: 28px;
    padding-bottom: 56px;
  }

  main > section {
    padding: 26px 22px;
    border-radius: var(--radius-lg);
  }

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

  #news,
  #articles {
    grid-template-columns: 1fr;
  }

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

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

  header > div {
    flex-wrap: wrap;
  }

  form[role="search"] {
    flex-basis: 100%;
    order: 4;
    padding: 4px 4px 4px 14px;
  }

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

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

  #hero h1 {
    max-width: none;
  }

  #hero p {
    font-size: 0.94rem;
  }

  #hero > ul {
    flex-direction: column;
    align-items: stretch;
  }

  #hero > ul a {
    justify-content: center;
    padding: 12px 18px;
  }

  #hero figure {
    margin: 22px 0 20px;
    border-radius: var(--radius-md);
  }

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

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

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

  #cases blockquote {
    padding: 18px 18px 18px 50px;
  }

  #faq summary {
    padding: 16px 48px 16px 18px;
    font-size: 0.94rem;
  }

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

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

  footer {
    padding: 36px 18px 44px;
  }

  footer p:last-child {
    gap: 4px 6px;
  }
}

@media (max-width: 380px) {
  #hero {
    padding: 30px 16px;
  }

  main > section {
    padding: 20px 15px;
  }

  h2::after {
    width: 44px;
  }
}

/* ============ Motion & accessibility ============ */

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

  main > section {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(29, 33, 48, 0.28);
    --border-strong: rgba(29, 33, 48, 0.4);
    --text-soft: #2c3142;
    --text-muted: #4a5068;
  }
}

@media print {
  header,
  nav[aria-label="面包屑导航"],
  footer,
  #hero > ul,
  form[role="search"] {
    display: none;
  }

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

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

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