:root {
  --bg: #0d1b2a;
  --bg-soft: #13263a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8eef5;
  --text-soft: #a9b8c9;
  --accent: #e63946;
  --accent-2: #457b9d;
  --accent-3: #f1faee;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.5);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(69, 123, 157, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(230, 57, 70, 0.22), transparent 55%),
    linear-gradient(180deg, #0d1b2a 0%, #0a1520 60%, #08111a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-3);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 1em;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--accent-3);
}

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

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

li {
  margin-bottom: 0.4em;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(13, 27, 42, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header nav > a {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

header nav ul li {
  margin: 0;
}

header nav ul a {
  position: relative;
  display: inline-block;
  padding: 4px 2px;
  font-size: 0.94rem;
  color: var(--text-soft);
}

header nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s var(--ease);
}

header nav ul a:hover,
header nav ul a:focus-visible {
  color: var(--accent-3);
}

header nav ul a:hover::after,
header nav ul a:focus-visible::after {
  width: 100%;
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Breadcrumb */
main > nav[aria-label="面包屑"] {
  padding: 18px 0 6px;
}

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

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

main > nav[aria-label="面包屑"] li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.28);
}

main > nav[aria-label="面包屑"] a {
  color: var(--text-soft);
}

main > nav[aria-label="面包屑"] a:hover {
  color: var(--accent);
}

/* ============ Sections ============ */
section {
  margin: 28px 0;
  padding: clamp(20px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s var(--ease) both;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

section:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-hover);
}

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

/* Staggered reveal */
section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }
section:nth-of-type(9) { animation-delay: 0.45s; }
section:nth-of-type(10) { animation-delay: 0.5s; }
section:nth-of-type(11) { animation-delay: 0.55s; }
section:nth-of-type(12) { animation-delay: 0.6s; }
section:nth-of-type(13) { animation-delay: 0.65s; }
section:nth-of-type(14) { animation-delay: 0.7s; }
section:nth-of-type(15) { animation-delay: 0.75s; }

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(230, 57, 70, 0.35), transparent 65%),
    radial-gradient(700px 340px at 85% 10%, rgba(69, 123, 157, 0.4), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.35), rgba(69, 123, 157, 0.35), transparent);
  filter: blur(40px);
  animation: heroGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  from { transform: translateX(-12%); opacity: 0.6; }
  to { transform: translateX(12%); opacity: 1; }
}

#hero h1 {
  background: linear-gradient(90deg, #f1faee 10%, #a8dadc 50%, #f1faee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7em;
}

#hero p {
  max-width: 780px;
  margin: 0 auto 1.6em;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  text-align: left;
}

#hero > div {
  display: flex;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

#hero > div:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

#hero svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ============ Brand / Products / Solutions ============ */
#brand h3,
#products h3,
#solutions h3,
#cases h3,
#knowledge h3,
#howto h3,
#legal h3 {
  margin-top: 1.4em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#legal h3:first-of-type {
  margin-top: 0.4em;
}

#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 1.2em;
}

#products ul li {
  position: relative;
  padding: 16px 18px 16px 46px;
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  color: #0d1b2a;
  background: linear-gradient(135deg, var(--accent-3), #a8dadc);
}

#products ul li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(230, 57, 70, 0.5);
}

/* ============ Cases / Blockquote ============ */
blockquote {
  margin: 14px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.14), rgba(255, 255, 255, 0.03));
  color: var(--text);
  font-style: italic;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

blockquote:hover {
  transform: translateX(6px);
  border-color: var(--accent-2);
}

/* ============ News ============ */
#news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

#news h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

#news article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#news article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#news article:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 218, 220, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

#news article:hover::after {
  transform: scaleX(1);
}

#news article h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  border: none;
  padding: 0;
}

#news article p {
  margin: 0;
  font-size: 0.88rem;
}

#news article p:first-of-type {
  color: rgba(168, 218, 220, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

#news article a {
  align-self: flex-start;
  margin-top: 10px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--accent-3);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.85), rgba(69, 123, 157, 0.85));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

#news article a:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
  color: #fff;
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(230, 57, 70, 0.5);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#faq details:hover {
  border-color: rgba(168, 218, 220, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

#faq details[open] {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#faq summary {
  position: relative;
  padding: 15px 48px 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: 50%;
  color: var(--accent-3);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

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

#faq details p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.93rem;
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ Contact ============ */
#contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 0 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(168, 218, 220, 0.4);
}

#contact p:last-of-type {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: transparent;
  border: none;
  padding-left: 0;
}

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

#sitemap ul li {
  margin: 0;
}

#sitemap ul a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

#sitemap ul a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.85), rgba(69, 123, 157, 0.85));
  border-color: transparent;
}

#sitemap > p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 40px;
  padding: 32px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.4), rgba(8, 17, 26, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

footer p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

footer p:first-child {
  color: var(--text);
  font-weight: 600;
}

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  header nav {
    justify-content: center;
    text-align: center;
  }

  header nav ul {
    justify-content: center;
    gap: 4px 14px;
  }

  header nav ul a {
    font-size: 0.88rem;
  }

  section {
    border-radius: var(--radius);
  }
}

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

  main {
    padding: 0 14px 48px;
  }

  header nav {
    padding: 12px 14px;
  }

  header nav ul {
    gap: 2px 10px;
  }

  header nav ul a {
    font-size: 0.82rem;
    padding: 3px 1px;
  }

  section {
    margin: 18px 0;
    padding: 20px 16px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #hero p {
    text-align: left;
    font-size: 0.93rem;
  }

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

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

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

  #faq details p {
    padding: 0 14px 14px;
  }

  #contact p {
    font-size: 0.86rem;
    word-break: break-word;
  }

  #sitemap ul a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}

/* ============ Light mode support ============ */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fb;
    --bg-soft: #e9eff6;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.85);
    --border: rgba(13, 27, 42, 0.1);
    --text: #0d1b2a;
    --text-soft: #4a5b6d;
    --accent: #d62839;
    --accent-2: #2f6690;
    --accent-3: #0d1b2a;
    --shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
    --shadow-hover: 0 18px 44px rgba(13, 27, 42, 0.16);
  }

  body {
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(69, 123, 157, 0.18), transparent 60%),
      radial-gradient(900px 500px at 100% 0%, rgba(230, 57, 70, 0.12), transparent 55%),
      linear-gradient(180deg, #f4f7fb 0%, #eef3f9 60%, #e7eef6 100%);
  }

  header {
    background: rgba(255, 255, 255, 0.72);
  }

  header nav > a {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  header nav ul a {
    color: var(--text-soft);
  }

  header nav ul a:hover {
    color: var(--accent);
  }

  #hero {
    background:
      radial-gradient(700px 320px at 20% 0%, rgba(230, 57, 70, 0.16), transparent 65%),
      radial-gradient(700px 340px at 85% 10%, rgba(69, 123, 157, 0.2), transparent 65%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border-color: rgba(13, 27, 42, 0.08);
  }

  #hero h1 {
    background: linear-gradient(90deg, #0d1b2a 10%, #2f6690 50%, #0d1b2a 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  h3 {
    color: var(--text);
  }

  #products ul li {
    color: var(--text);
  }

  #products ul li:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(214, 40, 57, 0.4);
  }

  blockquote {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.08), rgba(255, 255, 255, 0.4));
    color: var(--text);
  }

  #news article {
    background: var(--surface-strong);
  }

  #news article:hover {
    border-color: rgba(47, 102, 144, 0.35);
  }

  #news article a {
    color: #fff;
  }

  #howto ol li {
    color: var(--text);
  }

  #faq summary {
    color: var(--text);
  }

  #faq summary::after {
    color: var(--text);
    background: rgba(13, 27, 42, 0.08);
  }

  #faq details:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(47, 102, 144, 0.3);
  }

  #contact p {
    color: var(--text);
  }

  #sitemap ul a {
    color: var(--text);
  }

  #sitemap ul a:hover {
    color: #fff;
  }

  footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(231, 238, 246, 0.95));
  }
}

/* ============ Reduced motion ============ */
@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;
  }
}

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

  header,
  footer,
  #hero > div {
    display: none;
  }

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