:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --text: #1f2430;
  --text-soft: #5a6270;
  --text-mute: #8b93a1;
  --brand: #e94560;
  --brand-2: #533483;
  --brand-3: #0f3460;
  --accent: #ffb703;
  --line: rgba(31, 36, 48, 0.1);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(20, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 24, 40, 0.1);
  --shadow-lg: 0 20px 50px rgba(20, 24, 40, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020;
    --bg-alt: #131830;
    --text: #eef1f8;
    --text-soft: #b6bdcd;
    --text-mute: #7f8798;
    --brand: #ff5c78;
    --brand-2: #7b5bd6;
    --brand-3: #1b2a52;
    --accent: #ffc94d;
    --line: rgba(255, 255, 255, 0.1);
    --card: rgba(24, 30, 52, 0.7);
    --card-solid: #161c33;
    --glass: rgba(24, 30, 52, 0.55);
    --glass-line: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
}

*,
*::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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, 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(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(83, 52, 131, 0.14), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(15, 52, 96, 0.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.4rem); }

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

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

li { margin-bottom: 0.4em; }

/* ============ HEADER ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  min-height: var(--header-h);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] .brand {
  flex: 0 0 auto;
  min-width: 0;
}

header[role="banner"] .brand a {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header[role="banner"] .brand a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.1);
}

header[role="banner"] .brand p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-mute);
  white-space: nowrap;
}

header[role="banner"] nav {
  flex: 1 1 auto;
  min-width: 0;
}

header[role="banner"] nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

header[role="banner"] nav li {
  margin: 0;
}

header[role="banner"] nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

header[role="banner"] nav a:hover,
header[role="banner"] nav a:focus-visible {
  background: rgba(233, 69, 96, 0.12);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

header[role="banner"] form[role="search"] {
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

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

header[role="banner"] form[role="search"] input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

header[role="banner"] form[role="search"] input::placeholder {
  color: var(--text-mute);
}

header[role="banner"] form[role="search"] input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
}

header[role="banner"] form[role="search"] button {
  flex: 0 0 auto;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

header[role="banner"] form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
  filter: brightness(1.05);
}

header[role="banner"] form[role="search"] button:active {
  transform: translateY(0);
}

/* ============ BREADCRUMB ============ */
nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

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

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

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

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

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

/* ============ MAIN LAYOUT ============ */
main[role="main"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 80px;
}

main > section {
  margin-top: 32px;
  padding: clamp(20px, 3.5vw, 40px);
  background: var(--card);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.25);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

/* ============ HERO ============ */
#hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.92), rgba(83, 52, 131, 0.9) 55%, rgba(15, 52, 96, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(255, 183, 3, 0.35), transparent 50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 183, 3, 0.22), transparent 45%);
  animation: heroFloat 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroFloat {
  from { transform: translate3d(-2%, -2%, 0) rotate(0deg); }
  to { transform: translate3d(2%, 2%, 0) rotate(3deg); }
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  margin-top: 0;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

#hero figure {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.18);
}

/* ============ SECTION HEADINGS ============ */
main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-top: 0;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

main > section h3 {
  margin-top: 1.6em;
  color: var(--text);
}

main > section h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

/* ============ LISTS / CARDS ============ */
#products ul,
#solutions ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

#products ul li,
#solutions ul li {
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 44px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#products ul li::before,
#solutions ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

#products ul li:hover,
#solutions ul li:hover {
  transform: translateX(4px);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-md);
}

/* ============ CASES / BLOCKQUOTE ============ */
#cases blockquote {
  position: relative;
  margin: 16px 0;
  padding: 18px 20px 18px 52px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.5;
  font-family: Georgia, serif;
}

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

#cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
}

/* ============ NEWS / ARTICLES ============ */
#news article,
#articles article {
  position: relative;
  margin: 18px 0;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
}

#news article h3::after,
#articles article h3::after {
  display: none;
}

#news article time,
#articles article time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--brand);
  background: rgba(233, 69, 96, 0.1);
  border-radius: 999px;
  letter-spacing: 0.4px;
}

#articles article a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease);
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 12px 0;
  padding: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand);
  background: rgba(233, 69, 96, 0.1);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
  background: rgba(233, 69, 96, 0.18);
}

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

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  animation: fadeUp 0.4s var(--ease);
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 60px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ============ CONTACT ============ */
#contact address {
  font-style: normal;
}

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

#contact address li {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  word-break: break-word;
}

#contact address li:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 69, 96, 0.3);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--brand);
  border-color: rgba(233, 69, 96, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

/* ============ LEGAL ============ */
#legal {
  font-size: 0.95rem;
}

#legal p:last-child {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ============ FOOTER ============ */
footer[role="contentinfo"] {
  margin-top: 40px;
  padding: 32px clamp(16px, 4vw, 40px) 40px;
  text-align: center;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--glass-line);
}

footer[role="contentinfo"] p {
  margin: 6px 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}

footer[role="contentinfo"] a {
  color: var(--text-soft);
  margin: 0 4px;
}

footer[role="contentinfo"] a:hover {
  color: var(--brand);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  header[role="banner"] {
    gap: 12px;
  }
  header[role="banner"] nav {
    order: 3;
    flex: 1 1 100%;
  }
  header[role="banner"] form[role="search"] {
    order: 2;
    flex: 1 1 220px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  header[role="banner"] {
    padding: 10px 16px;
  }
  header[role="banner"] .brand a {
    font-size: 1.2rem;
  }
  header[role="banner"] .brand p {
    font-size: 0.72rem;
    white-space: normal;
  }
  header[role="banner"] nav ul {
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  header[role="banner"] nav a {
    font-size: 0.82rem;
    padding: 5px 10px;
    white-space: nowrap;
  }
  header[role="banner"] form[role="search"] {
    flex: 1 1 100%;
  }
  header[role="banner"] form[role="search"] button {
    padding: 9px 14px;
  }
  main > section {
    border-radius: var(--radius);
    padding: 20px 16px;
    margin-top: 22px;
  }
  #hero {
    padding: 26px 18px;
  }
  #contact address ul {
    grid-template-columns: 1fr;
  }
  footer[role="contentinfo"] {
    padding-bottom: 32px;
  }
}

@media (max-width: 380px) {
  header[role="banner"] .brand p {
    display: none;
  }
}

/* ============ ACCESSIBILITY ============ */
@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 {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[aria-label="面包屑导航"] {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    animation: none;
    background: #fff;
  }
}