:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #141428;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.72);
  --bg-glass: rgba(22, 33, 62, 0.55);
  --bg-glass-strong: rgba(15, 52, 96, 0.65);
  --text-primary: #eef1f8;
  --text-secondary: #b4bdd0;
  --text-muted: #7d879c;
  --accent: #e94560;
  --accent-soft: #ff6b81;
  --accent-deep: #c23152;
  --cyan: #3fc1c9;
  --violet: #7b6cf6;
  --border-soft: rgba(148, 163, 184, 0.16);
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(233, 69, 96, 0.25), 0 12px 40px rgba(233, 69, 96, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 42%, #0f3460 78%, #2a1a3e 100%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #7b6cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.14) 0%, rgba(63, 193, 201, 0.12) 100%);
  --gradient-line: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.55), transparent);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, serif;
  --max-width: 1180px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f4f6fb;
    --bg-secondary: #eaeef7;
    --bg-tertiary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-glass: rgba(255, 255, 255, 0.62);
    --bg-glass-strong: rgba(255, 255, 255, 0.82);
    --text-primary: #16182a;
    --text-secondary: #414a63;
    --text-muted: #6b7488;
    --accent: #d63250;
    --accent-soft: #e94560;
    --accent-deep: #a82340;
    --cyan: #1f8f97;
    --violet: #5a4ad1;
    --border-soft: rgba(22, 24, 42, 0.1);
    --border-glass: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 2px 10px rgba(22, 24, 42, 0.08);
    --shadow-md: 0 10px 30px rgba(22, 24, 42, 0.1);
    --shadow-lg: 0 24px 60px rgba(22, 24, 42, 0.14);
    --shadow-glow: 0 0 0 1px rgba(214, 50, 80, 0.18), 0 12px 40px rgba(214, 50, 80, 0.14);
    --gradient-hero: linear-gradient(135deg, #fdf3f5 0%, #eef1fb 40%, #e6f3f6 75%, #f3ecff 100%);
    --gradient-accent: linear-gradient(135deg, #d63250 0%, #5a4ad1 100%);
    --gradient-soft: linear-gradient(135deg, rgba(214, 50, 80, 0.1) 0%, rgba(31, 143, 151, 0.09) 100%);
    --gradient-line: linear-gradient(90deg, transparent, rgba(214, 50, 80, 0.45), transparent);
  }
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-primary);
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(233, 69, 96, 0.12), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(123, 108, 246, 0.13), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(63, 193, 201, 0.08), transparent 65%),
    var(--bg-primary);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background: rgba(233, 69, 96, 0.4);
  color: #fff;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  position: relative;
  padding-bottom: 0.55em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-accent);
}

h3 {
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  color: var(--text-primary);
}

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

ul, ol {
  padding-left: 1.35em;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5em;
}

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

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--gradient-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-style: normal;
}

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

/* ============ Header ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  min-height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: headerDrop 0.7s var(--ease-out) both;
}

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

.brand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-bar > a {
  display: inline-flex;
  border-radius: 14px;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
  flex-shrink: 0;
}

.brand-bar > a:hover {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-glow);
}

.brand-bar svg {
  display: block;
  border-radius: 14px;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.brand-slogan {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.12);
  transform: translateY(-1px);
}

header nav a:hover::after {
  width: 60%;
}

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

main > nav[aria-label="面包屑导航"] {
  margin: 20px 0 8px;
}

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

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

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

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--accent-soft);
  background: rgba(233, 69, 96, 0.1);
}

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

/* ============ Sections ============ */
section {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-md);
  animation: sectionRise 0.8s var(--ease-out) both;
  animation-timeline: view();
  animation-range: entry 0% entry 32%;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

@keyframes sectionRise {
  from { opacity: 0; transform: translateY(36px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@supports not (animation-timeline: view()) {
  section {
    animation: sectionFade 0.9s var(--ease-out) both;
  }
  @keyframes sectionFade {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

section:hover {
  border-color: rgba(233, 69, 96, 0.28);
  box-shadow: var(--shadow-lg);
}

section > h2:first-child {
  margin-top: 0;
}

/* ============ Hero ============ */
#hero {
  margin-top: 14px;
  padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 48px);
  background: var(--gradient-hero);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.32), transparent 68%);
  filter: blur(30px);
  z-index: -1;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(63, 193, 201, 0.26), transparent 68%);
  filter: blur(34px);
  z-index: -1;
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-36px, 30px, 0) scale(1.12); }
}

#hero h1 {
  max-width: 22ch;
  background: linear-gradient(120deg, var(--text-primary) 30%, var(--accent-soft) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

#hero > p {
  max-width: 72ch;
  font-size: clamp(0.95rem, 1.5vw, 1.04rem);
  color: var(--text-secondary);
}

#hero > p:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 26px;
  font-size: 0.95rem;
}

#hero > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.32);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, filter 0.3s ease;
}

#hero > p:last-child a:nth-child(2) {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

#hero > p:last-child a:nth-child(3) {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(233, 69, 96, 0.45);
  box-shadow: none;
}

#hero > p:last-child a:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(233, 69, 96, 0.4);
}

#hero > p:last-child a:nth-child(2):hover {
  box-shadow: var(--shadow-md);
}

/* ============ Carousel ============ */
.banner-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  margin: 30px 0 8px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 69, 96, 0.5) transparent;
  -webkit-overflow-scrolling: touch;
}

.banner-carousel::-webkit-scrollbar {
  height: 6px;
}

.banner-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.banner-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 999px;
}

.banner-carousel figure {
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
}

.banner-carousel figure:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.banner-carousel figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.banner-carousel figcaption {
  padding: 12px 16px 14px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-glass);
}

/* ============ Cards: products / solutions / scenarios ============ */
#products,
#solutions,
#scenarios,
#cases,
#news,
#articles,
#howto,
#knowledge,
#faq,
#contact {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#products h3,
#solutions h3,
#scenarios h3,
#knowledge h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin: 18px 0 10px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

#products h3::before,
#solutions h3::before,
#scenarios h3::before,
#knowledge h3::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.7);
}

#products h3:hover,
#solutions h3:hover,
#scenarios h3:hover,
#knowledge h3:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-sm);
}

#products > p,
#solutions > p,
#scenarios > p {
  padding: 0 2px;
}

/* ============ Cases ============ */
#cases blockquote {
  position: relative;
  padding-left: 2.4em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.35em;
  top: 0.05em;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
}

#cases blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#cases h3 {
  margin-top: 26px;
}

/* ============ News ============ */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

#news li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}

#news li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

#news li:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.32);
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-strong);
}

#news li:hover::before {
  transform: scaleY(1);
}

#news h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

#news p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

#news p:first-of-type {
  font-size: 0.78rem;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ============ Articles ============ */
#articles article {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}

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

#articles h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  transition: color 0.3s ease;
}

#articles article:hover h3 {
  color: var(--accent-soft);
}

#articles p {
  font-size: 0.92rem;
}

#articles p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

#articles a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233, 69, 96, 0.35);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

#articles a::after {
  content: "\2192";
  transition: transform 0.3s var(--ease-out);
}

#articles a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.32);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s 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%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
  transition: transform 0.4s var(--ease-spring);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.32);
  box-shadow: var(--shadow-sm);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.12);
}

#howto h3 {
  margin-top: 24px;
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-sm);
  background: var(--bg-glass-strong);
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.28);
}

#faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  transition: color 0.25s ease, background 0.25s ease;
}

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

#faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-soft);
  border-bottom: 2px solid var(--accent-soft);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out);
  margin-top: -4px;
}

#faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

#faq summary:hover {
  color: var(--accent-soft);
  background: rgba(233, 69, 96, 0.06);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  animation: faqIn 0.4s var(--ease-out) both;
}

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

/* ============ Contact ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#contact li {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

#contact li:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 193, 201, 0.4);
}

#contact li:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.32);
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  position: relative;
  margin-top: 40px;
  padding: clamp(30px, 5vw, 56px) clamp(16px, 4vw, 40px) 28px;
  background: linear-gradient(180deg, transparent, rgba(15, 52, 96, 0.28) 40%, rgba(13, 13, 26, 0.6));
  border-top: 1px solid var(--border-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-line);
}

footer[role="contentinfo"] > section {
  max-width: var(--max-width);
  margin: 0 auto 26px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

footer[role="contentinfo"] h2 {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.45em;
  margin-bottom: 14px;
}

footer[role="contentinfo"] h2::after {
  width: 42px;
  height: 2px;
}

footer[role="contentinfo"] h3 {
  font-size: 0.92rem;
  color: var(--accent-soft);
  margin: 16px 0 6px;
  letter-spacing: 0.02em;
}

footer[role="contentinfo"] p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 78ch;
}

footer[role="contentinfo"] > p:last-child {
  max-width: var(--max-width);
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  header[role="banner"] {
    gap: 12px;
  }

  header nav ul {
    justify-content: flex-start;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .banner-carousel {
    grid-auto-columns: minmax(240px, 78%);
  }
}

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

  header[role="banner"] {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    gap: 8px;
  }

  .brand-slogan {
    font-size: 0.7rem;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 2px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

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

  main {
    padding: 0 14px 24px;
  }

  section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
  }

  #hero {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    max-width: none;
  }

  #hero > p:last-child {
    gap: 10px;
  }

  #hero > p:last-child a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .banner-carousel {
    grid-auto-columns: 86%;
    gap: 12px;
    margin: 22px 0 6px;
  }

  #products h3,
  #solutions h3,
  #scenarios h3,
  #knowledge h3 {
    padding: 12px 14px;
    font-size: 1rem;
  }

  #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: 13px 16px;
    font-size: 0.9rem;
  }

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

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

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

  footer[role="contentinfo"] p {
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.24rem;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  #hero > p:last-child a {
    flex: 1 1 100%;
  }

  .banner-carousel {
    grid-auto-columns: 92%;
  }
}

/* ============ Motion & contrast preferences ============ */
@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;
  }

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

@media (prefers-contrast: more) {
  :root {
    --border-soft: rgba(255, 255, 255, 0.35);
    --text-secondary: #d7dcea;
  }

  header[role="banner"],
  section {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

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

  header[role="banner"],
  #sitemap,
  #links,
  footer[role="contentinfo"] {
    display: none;
  }

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }

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