:root {
  --primary: #ff5e5b;
  --primary-dark: #e84340;
  --primary-light: #ff8a87;
  --accent: #ffb347;
  --accent-2: #7c5cff;
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(20, 20, 40, 0.08);
  --text: #1c1c2e;
  --text-soft: #4a4a63;
  --text-muted: #7a7a92;
  --shadow-sm: 0 2px 8px rgba(28, 28, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(28, 28, 46, 0.1);
  --shadow-lg: 0 18px 50px rgba(28, 28, 46, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --grad-banner: linear-gradient(135deg, #ff5e5b 0%, #ff8a5b 38%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 94, 91, 0.1), rgba(124, 92, 255, 0.1));
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --header-bg: rgba(255, 255, 255, 0.72);
  --focus: #7c5cff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff6b68;
    --primary-dark: #ff8a87;
    --primary-light: #ff9d9a;
    --accent: #ffc266;
    --accent-2: #9b82ff;
    --bg: #0f1020;
    --bg-alt: #16172b;
    --surface: rgba(30, 31, 54, 0.66);
    --surface-solid: #1b1c33;
    --border: rgba(255, 255, 255, 0.1);
    --text: #ececf5;
    --text-soft: #c3c3d6;
    --text-muted: #8f8fa8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.55);
    --grad-banner: linear-gradient(135deg, #b83b3a 0%, #a04a8f 45%, #4a3aa8 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 107, 104, 0.14), rgba(155, 130, 255, 0.14));
    --grad-card: linear-gradient(160deg, rgba(38, 39, 66, 0.92), rgba(26, 27, 48, 0.7));
    --glass: rgba(26, 27, 48, 0.55);
    --glass-border: rgba(255, 255, 255, 0.14);
    --header-bg: rgba(16, 17, 34, 0.72);
    --focus: #9b82ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(255, 94, 91, 0.12), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(124, 92, 255, 0.12), transparent 55%),
    radial-gradient(900px 500px at 50% 120%, rgba(255, 179, 71, 0.1), transparent 60%);
  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(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-banner);
  box-shadow: 0 0 16px rgba(255, 94, 91, 0.5);
}

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

h4 {
  font-size: 1.05rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: headerDrop 0.6s var(--ease) both;
}

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

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px 10px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--grad-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 94, 91, 0.28));
}

.brand-slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

header nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: max-content;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  position: relative;
}

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

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--primary);
  background: var(--grad-soft);
}

header nav ul li a:hover::after {
  width: 40%;
}

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

section {
  margin: 0 0 28px;
  padding: 32px clamp(18px, 3.4vw, 40px);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: sectionRise 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

@supports not (animation-timeline: view()) {
  section {
    animation: sectionRise 0.7s var(--ease) both;
  }
}

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

section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 94, 91, 0.22);
}

#hero {
  margin-top: 28px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--grad-banner);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  border-radius: 50%;
  filter: blur(10px);
  animation: floatBlob 12s ease-in-out infinite;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  border-radius: 50%;
  filter: blur(12px);
  animation: floatBlob 16s ease-in-out infinite reverse;
  z-index: -1;
}

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

#hero h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  max-width: 22ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 68ch;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

#hero nav[aria-label="面包屑"] ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-top: 20px;
  padding: 8px 16px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

#hero nav[aria-label="面包屑"] ol li {
  color: rgba(255, 255, 255, 0.85);
}

#hero nav[aria-label="面包屑"] ol li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.55);
}

#hero nav[aria-label="面包屑"] ol li a {
  color: #fff;
  font-weight: 600;
}

#hero nav[aria-label="面包屑"] ol li a:hover {
  text-decoration: underline;
}

#about,
#concept,
#industry,
#products,
#advantages,
#solutions,
#scenarios,
#cases,
#news,
#articles,
#faq,
#howto,
#notes,
#contact,
#sitemap,
#links {
  scroll-margin-top: 100px;
}

#products h3,
#advantages h3,
#solutions h3,
#scenarios h3,
#cases h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

#products h3::before,
#advantages h3::before,
#solutions h3::before,
#scenarios h3::before,
#cases h3::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-banner);
  box-shadow: 0 0 0 4px rgba(255, 94, 91, 0.16);
}

#products h3 + p,
#advantages h3 + p,
#solutions h3 + p,
#scenarios h3 + p,
#cases h3 + p {
  padding-left: 20px;
}

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

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

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

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

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 92, 255, 0.3);
}

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

#articles article h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}

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

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-2);
  background: rgba(124, 92, 255, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

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

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 94, 91, 0.25);
  transition: all 0.3s var(--ease);
}

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

#articles article p:last-child a:hover {
  background: var(--grad-banner);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 94, 91, 0.35);
}

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

#faq h3 {
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 1rem;
  cursor: default;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq h3:hover {
  color: var(--primary);
}

#faq h3 + p {
  margin: 0 0 14px;
  padding: 16px 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
}

#howto h4 {
  position: relative;
  margin-top: 22px;
  padding-left: 34px;
  color: var(--primary);
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-banner);
  box-shadow: 0 0 0 4px rgba(255, 94, 91, 0.14);
}

#howto h4::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 1px;
}

#howto h4 + p {
  padding-left: 34px;
}

#contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  text-align: center;
  transition: all 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--grad-banner);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 94, 91, 0.3);
}

footer {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

footer section {
  margin: 0;
  padding: 24px clamp(18px, 3vw, 28px);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

footer section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

footer section h2 {
  font-size: 1.05rem;
  padding-left: 14px;
  margin-bottom: 10px;
}

footer section h2::before {
  width: 4px;
}

footer section p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

footer > p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  padding: 10px;
}

footer > p:first-of-type {
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-soft);
}

::selection {
  background: rgba(255, 94, 91, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--accent-2));
}

@media (max-width: 900px) {
  :root {
    --radius-lg: 22px;
  }

  main {
    padding: 0 14px 32px;
  }

  section {
    padding: 26px 20px;
    margin-bottom: 20px;
  }

  #articles {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  footer {
    padding: 0 14px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    font-size: 15px;
  }

  .brand-bar {
    padding: 12px 16px 8px;
    gap: 8px;
  }

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

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

  header nav {
    padding: 0 10px 10px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav ul li a {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  #hero {
    margin-top: 16px;
    padding: 30px 20px;
    border-radius: var(--radius);
  }

  #hero nav[aria-label="面包屑"] ol {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  section {
    padding: 22px 16px;
    border-radius: var(--radius);
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #articles {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  footer section {
    padding: 20px 16px;
  }
}

@media (hover: none) {
  #articles article:hover,
  #sitemap ul li a:hover,
  #links ul li a:hover,
  footer section:hover,
  #contact p:hover {
    transform: none;
  }
}

@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,
  #hero::before,
  #hero::after {
    display: none !important;
  }

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

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

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