:root {
  --banana-primary: #f5a623;
  --banana-primary-dark: #e08e0b;
  --banana-secondary: #7b61ff;
  --banana-accent: #22c55e;
  --banana-bg: #fdfaf3;
  --banana-bg-alt: #fffdf8;
  --banana-text: #2b2620;
  --banana-text-soft: #6b6357;
  --banana-card: rgba(255, 255, 255, 0.72);
  --banana-card-solid: #ffffff;
  --banana-border: rgba(245, 166, 35, 0.22);
  --banana-shadow: 0 8px 30px rgba(120, 90, 20, 0.1);
  --banana-shadow-hover: 0 16px 44px rgba(120, 90, 20, 0.18);
  --banana-radius: 20px;
  --banana-radius-sm: 12px;
  --banana-header-h: 72px;
  --banana-glass: rgba(255, 255, 255, 0.55);
  --banana-glass-strong: rgba(255, 255, 255, 0.78);
  --banana-hero-gradient: linear-gradient(135deg, #f5a623 0%, #ff8a3d 40%, #7b61ff 100%);
  --banana-focus: 0 0 0 3px rgba(245, 166, 35, 0.45);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --banana-bg: #17140f;
    --banana-bg-alt: #1e1a14;
    --banana-text: #f3ede2;
    --banana-text-soft: #b3a998;
    --banana-card: rgba(38, 33, 25, 0.66);
    --banana-card-solid: #262119;
    --banana-border: rgba(245, 166, 35, 0.28);
    --banana-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --banana-shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.6);
    --banana-glass: rgba(30, 26, 20, 0.55);
    --banana-glass-strong: rgba(30, 26, 20, 0.82);
    --banana-hero-gradient: linear-gradient(135deg, #b97a12 0%, #a35a24 45%, #4b3aa8 100%);
    --banana-focus: 0 0 0 3px rgba(245, 166, 35, 0.55);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--banana-header-h) + 16px);
  -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", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--banana-text);
  background-color: var(--banana-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 166, 35, 0.14), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(123, 97, 255, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--banana-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--banana-focus);
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  background: linear-gradient(120deg, var(--banana-primary-dark), var(--banana-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--banana-primary-dark);
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--banana-primary), var(--banana-secondary));
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: var(--banana-text);
}

h4 {
  font-size: 1.02rem;
  color: var(--banana-primary-dark);
}

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

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

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--banana-primary);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--banana-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--banana-border);
  box-shadow: 0 4px 24px rgba(120, 90, 20, 0.06);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--banana-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

header nav > a {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--banana-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

header nav > a::before {
  content: "🍌";
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(245, 166, 35, 0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

header nav > a:hover {
  color: var(--banana-primary-dark);
  text-decoration: none;
}

header nav > a:hover::before {
  transform: rotate(-18deg) scale(1.15);
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--banana-text-soft);
  text-decoration: none;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(123, 97, 255, 0.14));
  color: var(--banana-primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  margin: 40px 0;
  padding: 32px clamp(18px, 4vw, 44px);
  background: var(--banana-card);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius);
  box-shadow: var(--banana-shadow);
  animation: banana-fade-up 0.7s cubic-bezier(0.22, 0.9, 0.35, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
  }
}

@keyframes banana-fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#home {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    var(--banana-hero-gradient);
  border: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#home::before,
#home::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.5;
}

#home::before {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
}

#home::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
}

#home h1 {
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

#home p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  max-width: 60em;
}

#home > div[aria-label="Banner轮播"] {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

#home figure {
  margin: 0;
  border-radius: var(--banana-radius-sm);
  overflow: hidden;
  background: var(--banana-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.35, 1), box-shadow 0.4s ease;
}

#home figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

#home figure img {
  width: 100%;
  aspect-ratio: 10 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.35, 1);
}

#home figure:hover img {
  transform: scale(1.05);
}

#home figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--banana-text);
  text-align: center;
  background: var(--banana-glass-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#about h3,
#products h3,
#solutions h3,
#scenarios h3,
#cases h3,
#news h3,
#howto h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--banana-primary);
  border-radius: 2px;
}

#about h3:first-of-type,
#products h3:first-of-type {
  margin-top: 0.4em;
}

#products h4 {
  margin-top: 1em;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.14);
}

#products h3,
#solutions h3,
#scenarios h3,
#cases h3 {
  transition: color 0.25s ease, transform 0.25s ease;
}

#products h3:hover,
#solutions h3:hover,
#scenarios h3:hover,
#cases h3:hover {
  color: var(--banana-primary-dark);
  transform: translateX(4px);
}

#articles {
  display: grid;
  gap: 18px;
}

#articles h2 {
  grid-column: 1 / -1;
}

#articles article {
  padding: 22px 24px;
  background: var(--banana-card-solid);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius-sm);
  box-shadow: 0 4px 18px rgba(120, 90, 20, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.35, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--banana-primary), var(--banana-secondary));
  opacity: 0;
  transition: opacity 0.35s ease;
}

#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--banana-shadow-hover);
  border-color: rgba(245, 166, 35, 0.5);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.1rem;
}

#articles article h3::before {
  content: "📖 ";
  font-size: 0.95em;
}

#articles article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--banana-text-soft);
  opacity: 0.85;
  margin-bottom: 0.6em;
}

#articles article p:nth-of-type(2) {
  margin-bottom: 0.8em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(123, 97, 255, 0.14));
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

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

#articles article a:hover {
  background: linear-gradient(135deg, var(--banana-primary), var(--banana-secondary));
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}

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

#news h3 {
  border-left-color: var(--banana-secondary);
}

#news h3 + p {
  font-size: 0.82rem;
  color: var(--banana-text-soft);
  opacity: 0.8;
  margin-bottom: 0.5em;
}

#news p {
  padding-left: 14px;
  border-left: 2px dashed var(--banana-border);
}

#cases h3 {
  border-left-color: var(--banana-accent);
}

#cases p {
  position: relative;
}

#cases h3 + p + p + p + p {
  margin-top: 1.4em;
}

#cases h2 + h3 ~ p:has(+ p) {
  color: var(--banana-text-soft);
}

#cases p:not(:first-of-type) {
  line-height: 1.8;
}

#cases p:nth-last-of-type(-n+4) {
  padding: 14px 18px;
  background: var(--banana-card-solid);
  border-radius: var(--banana-radius-sm);
  border: 1px solid var(--banana-border);
  font-style: italic;
  font-size: 0.94rem;
  box-shadow: 0 3px 14px rgba(120, 90, 20, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cases p:nth-last-of-type(-n+4):hover {
  transform: translateX(5px);
  box-shadow: 0 8px 22px rgba(120, 90, 20, 0.12);
}

#faq details {
  margin-bottom: 12px;
  background: var(--banana-card-solid);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#faq details:hover {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 6px 22px rgba(120, 90, 20, 0.1);
}

#faq details[open] {
  border-color: var(--banana-primary);
  box-shadow: 0 8px 26px rgba(245, 166, 35, 0.16);
  transform: translateY(-2px);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--banana-text);
  position: relative;
  transition: background 0.3s ease, color 0.3s 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;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--banana-primary-dark);
  background: rgba(245, 166, 35, 0.16);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--banana-primary), var(--banana-secondary));
  color: #fff;
}

#faq summary:hover {
  background: rgba(245, 166, 35, 0.08);
  color: var(--banana-primary-dark);
}

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

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

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

#howto ol li {
  counter-increment: banana-step;
  position: relative;
  padding: 12px 16px 12px 58px;
  margin-bottom: 10px;
  background: var(--banana-card-solid);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#howto ol li::before {
  content: counter(banana-step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--banana-primary), var(--banana-secondary));
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 6px 20px rgba(120, 90, 20, 0.1);
}

#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

#contact ul li {
  padding: 10px 16px;
  background: var(--banana-card-solid);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius-sm);
  font-size: 0.94rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact ul li:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 18px rgba(120, 90, 20, 0.1);
}

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

#sitemap ul li {
  margin: 0;
}

#sitemap ul li a {
  display: block;
  padding: 10px 16px;
  background: var(--banana-card-solid);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

#sitemap ul li a:hover {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.18), rgba(123, 97, 255, 0.14));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(120, 90, 20, 0.12);
  text-decoration: none;
}

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

#links ul li {
  margin: 0;
}

#links ul li a {
  display: block;
  padding: 14px 18px;
  background: var(--banana-card-solid);
  border: 1px solid var(--banana-border);
  border-radius: var(--banana-radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

#links ul li a::after {
  content: "↗";
  position: absolute;
  right: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#links ul li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.22);
  color: var(--banana-primary-dark);
  text-decoration: none;
}

#links ul li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

#privacy,
#disclaimer {
  border-left: 5px solid var(--banana-primary);
}

#privacy p,
#disclaimer p {
  text-align: justify;
}

footer {
  margin-top: 40px;
  padding: 40px 20px 32px;
  background: var(--banana-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--banana-border);
  text-align: center;
}

footer > p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--banana-text-soft);
}

footer > p:first-child {
  font-weight: 700;
  color: var(--banana-text);
  font-size: 0.95rem;
}

footer nav ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
}

footer nav ul li {
  margin: 0;
}

footer nav ul li a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--banana-text-soft);
  text-decoration: none;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

footer nav ul li a:hover {
  background: rgba(245, 166, 35, 0.14);
  color: var(--banana-primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  header nav {
    padding: 10px 16px;
  }

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

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

  header nav ul li a {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 7px 11px;
  }

  main {
    padding: 0 14px 44px;
  }

  section {
    margin: 26px 0;
    padding: 24px 18px;
    border-radius: 16px;
  }

  #home {
    padding: 28px 20px;
  }

  #home > div[aria-label="Banner轮播"] {
    grid-template-columns: 1fr;
  }

  #articles {
    gap: 14px;
  }

  #articles article {
    padding: 18px;
  }

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

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

  #howto ol li {
    padding: 12px 14px 12px 52px;
  }
}

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

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  section {
    padding: 20px 14px;
  }

  header nav > a {
    font-size: 1.08rem;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.92rem;
  }

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

  #cases p:nth-last-of-type(-n+4) {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  footer {
    padding: 30px 14px 26px;
  }
}

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

@media print {
  header,
  footer,
  #home > div[aria-label="Banner轮播"] {
    display: none;
  }

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

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

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