:root {
  --brand-primary: #1f3a5f;
  --brand-secondary: #f2b705;
  --brand-accent: #ff6b4a;
  --brand-deep: #12263f;
  --text-main: #1a2332;
  --text-sub: #4a5a72;
  --text-muted: #7a8ba3;
  --bg-base: #f5f7fb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border-soft: rgba(31, 58, 95, 0.1);
  --shadow-sm: 0 2px 8px rgba(18, 38, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 38, 63, 0.1);
  --shadow-lg: 0 16px 48px rgba(18, 38, 63, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gradient-hero: linear-gradient(135deg, #1f3a5f 0%, #2d5a8f 45%, #f2b705 130%);
  --gradient-brand: linear-gradient(120deg, #1f3a5f, #2d5a8f 60%, #f2b705);
  --gradient-accent: linear-gradient(135deg, #ff6b4a, #f2b705);
  --transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-main: #e8edf5;
    --text-sub: #b4c0d3;
    --text-muted: #7d8ba3;
    --bg-base: #0b1420;
    --bg-card: #14202f;
    --bg-glass: rgba(20, 32, 47, 0.72);
    --border-soft: rgba(242, 183, 5, 0.14);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --gradient-hero: linear-gradient(135deg, #0b1420 0%, #1f3a5f 55%, #8a6a10 130%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(242, 183, 5, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(45, 90, 143, 0.1), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

@media (prefers-color-scheme: dark) {
  a {
    color: var(--brand-secondary);
  }
  a:hover {
    color: var(--brand-accent);
  }
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--gradient-accent);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--brand-secondary);
  }
}

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

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.35em;
  color: var(--text-sub);
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

header > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

header > div > a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
  flex-shrink: 0;
}

header > div > a:hover {
  color: var(--text-main);
  opacity: 0.88;
}

header > div > a svg {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

header > div > a:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

header nav {
  flex: 1 1 auto;
}

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

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

header nav ul li a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateY(-2px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

header form[role="search"] input {
  width: 200px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  outline: none;
  transition: box-shadow var(--transition), border-color var(--transition), width var(--transition);
}

header form[role="search"] input:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.22);
  width: 240px;
}

header form[role="search"] button {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 74, 0.4);
}

/* ============ Main layout ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

main > nav[aria-label="面包屑导航"] {
  padding: 18px 0 6px;
  font-size: 0.85rem;
}

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

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

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

/* ============ Sections ============ */
main section {
  margin-bottom: 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: fade-up 0.7s both;
}

main section:hover {
  box-shadow: var(--shadow-md);
}

main section:nth-of-type(2) { animation-delay: 0.05s; }
main section:nth-of-type(3) { animation-delay: 0.1s; }
main section:nth-of-type(4) { animation-delay: 0.15s; }
main section:nth-of-type(5) { animation-delay: 0.2s; }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  background: var(--gradient-hero);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 183, 5, 0.35), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(255, 107, 74, 0.28), transparent 50%);
  pointer-events: none;
}

#hero h1 {
  position: relative;
  z-index: 1;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  margin-bottom: 0.5em;
}

#hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

#hero > div {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

#hero > div:hover {
  transform: scale(1.012) translateY(-4px);
}

#hero > div svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ Brand ============ */
#brand h3 {
  margin-top: 1.4em;
}

#brand h3:first-of-type {
  margin-top: 0;
}

/* ============ Products ============ */
#products h3 {
  margin-top: 1.4em;
}

#products h3:first-of-type {
  margin-top: 0;
}

#products h4 {
  display: inline-block;
  margin: 1.2em 0 0.4em;
  padding: 4px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: linear-gradient(120deg, rgba(242, 183, 5, 0.22), rgba(255, 107, 74, 0.14));
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

@media (prefers-color-scheme: dark) {
  #products h4 {
    color: var(--brand-secondary);
  }
}

/* ============ Solutions ============ */
#solutions h3 {
  margin-top: 1.4em;
}

#solutions h3:first-of-type {
  margin-top: 0;
}

/* ============ Industry ============ */
#industry h3 {
  margin-top: 1.4em;
}

#industry h3:first-of-type {
  margin-top: 0;
}

#industry h4 {
  margin-top: 1.2em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-secondary);
}

/* ============ Cases ============ */
#cases h3 {
  margin-top: 1.4em;
}

#cases h3:first-of-type {
  margin-top: 0;
}

#cases p:last-of-type,
#cases p:nth-last-of-type(2),
#cases p:nth-last-of-type(3) {
  padding: 12px 16px;
  background: var(--bg-base);
  border-left: 4px solid var(--brand-secondary);
  border-radius: var(--radius-sm);
  font-style: italic;
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases p:last-of-type:hover,
#cases p:nth-last-of-type(2):hover,
#cases p:nth-last-of-type(3):hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ============ News ============ */
#news h3 {
  margin-top: 1.4em;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-soft);
}

#news h3:first-of-type {
  margin-top: 0;
}

/* ============ Articles ============ */
#articles article {
  position: relative;
  margin-bottom: 18px;
  padding: 20px 22px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-secondary);
}

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

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-accent);
}

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

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

/* ============ HowTo ============ */
#howto h3 {
  margin-top: 1.4em;
}

#howto h3:first-of-type {
  margin-top: 0;
}

#howto h4 {
  position: relative;
  margin: 1.2em 0 0.4em;
  padding-left: 28px;
  color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  #howto h4 {
    color: var(--brand-secondary);
  }
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.15);
}

/* ============ Knowledge ============ */
#knowledge h3 {
  margin-top: 1.4em;
}

#knowledge h3:first-of-type {
  margin-top: 0;
}

#knowledge p {
  padding: 12px 16px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  padding: 4px 20px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

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

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

#faq summary {
  position: relative;
  padding: 14px 32px 14px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  transition: transform var(--transition);
}

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

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

#faq details p {
  margin: 0 0 16px;
  padding-top: 4px;
  font-size: 0.94rem;
  animation: fade-up 0.4s both;
}

/* ============ Contact ============ */
#contact h3 {
  margin-top: 1.4em;
}

#contact h3:first-of-type {
  margin-top: 0;
}

#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  font-size: 0.94rem;
  transition: transform var(--transition), border-color var(--transition);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: var(--brand-secondary);
}

/* ============ About meta ============ */
#about-meta {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#about-meta p {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 14px;
  font-size: 0.86rem;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition);
}

#about-meta p:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ Footer ============ */
footer {
  position: relative;
  padding: 48px 24px 32px;
  background: linear-gradient(160deg, #12263f, #1f3a5f 70%, #2d5a8f);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

footer > nav,
footer > section,
footer > p {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

footer > nav {
  margin-bottom: 28px;
}

footer > nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer > nav ul li {
  margin: 0;
}

footer > nav ul li a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

footer > nav ul li a:hover {
  color: var(--brand-secondary);
  transform: translateY(-2px);
}

footer > section {
  margin-bottom: 24px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition);
}

footer > section:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(242, 183, 5, 0.35);
}

footer > section h2 {
  padding-left: 0;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.6em;
}

footer > section h2::before {
  display: none;
}

footer > section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

footer > section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer > section ul li {
  margin: 0;
}

footer > section ul li a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

footer > section ul li a:hover {
  color: var(--brand-secondary);
}

footer > p:last-of-type {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header > div {
    gap: 16px;
  }
  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
  header form[role="search"] input {
    width: 160px;
  }
  header form[role="search"] input:focus {
    width: 190px;
  }
  main section {
    padding: 26px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  header > div {
    padding: 12px 16px;
    gap: 12px;
  }
  header > div > a {
    font-size: 1.02rem;
  }
  header nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  header nav::-webkit-scrollbar {
    display: none;
  }
  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
  }
  header nav ul li a {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.86rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
  }
  header form[role="search"] {
    margin-left: auto;
    flex: 0 1 auto;
  }
  header form[role="search"] input {
    width: 130px;
    font-size: 0.82rem;
    padding: 7px 12px;
  }
  header form[role="search"] input:focus {
    width: 150px;
  }
  header form[role="search"] button {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  main {
    padding: 0 16px 48px;
  }
  main section {
    padding: 22px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }
  #hero {
    padding: 36px 20px;
  }
  #hero p {
    font-size: 0.94rem;
  }
  h2 {
    padding-left: 13px;
  }
  h2::before {
    width: 4px;
  }
  #articles article {
    padding: 16px;
  }
  #faq details {
    padding: 2px 16px;
  }
  footer {
    padding: 36px 16px 24px;
  }
  footer > section {
    padding: 16px 18px;
  }
}

@media (max-width: 480px) {
  header > div > a span {
    display: inline;
    font-size: 0.95rem;
  }
  header form[role="search"] input {
    width: 100px;
  }
  header form[role="search"] input:focus {
    width: 118px;
  }
  main section {
    padding: 20px 15px;
  }
  #hero {
    padding: 30px 16px;
  }
  #about-meta p {
    font-size: 0.8rem;
    padding: 5px 11px;
  }
  footer > nav ul {
    gap: 6px 14px;
  }
}

/* ============ Print ============ */
@media print {
  header,
  footer,
  #hero > div,
  header form[role="search"] {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  main section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  a {
    color: #000;
  }
}