:root {
  --primary: #ff5a3c;
  --primary-dark: #e63e22;
  --primary-light: #ff8a70;
  --secondary: #6c5ce7;
  --accent: #00d9a5;
  --bg: #f7f8fc;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #1a1d29;
  --text-secondary: #4a4f63;
  --text-muted: #8a90a6;
  --border: rgba(26, 29, 41, 0.08);
  --border-strong: rgba(26, 29, 41, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 29, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 29, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 29, 41, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 90, 60, 0.24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1018;
    --bg-elevated: #181b26;
    --bg-glass: rgba(24, 27, 38, 0.62);
    --bg-glass-strong: rgba(24, 27, 38, 0.85);
    --text: #eef0f6;
    --text-secondary: #b4b9cc;
    --text-muted: #7a8098;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(255, 90, 60, 0.32);
    --primary-light: #ff9d87;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 90, 60, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(108, 92, 231, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 217, 165, 0.06), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

li {
  margin-bottom: 0.5em;
}

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

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

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.2em;
}

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

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--text);
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  margin: 0;
}

address {
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

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

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.topbar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar span:first-child {
  color: var(--primary);
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-height);
}

nav > a[aria-label] {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 6px 0;
  transition: transform var(--transition-fast);
}

nav > a[aria-label]:hover {
  transform: scale(1.04);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

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

nav ul li {
  margin: 0;
  flex-shrink: 0;
}

nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 90, 60, 0.1);
  transform: translateY(-1px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

section {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

#home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff5a3c 0%, #ff7d4d 28%, #a855f7 68%, #6c5ce7 100%);
  background-size: 180% 180%;
  animation: gradientShift 14s ease infinite, fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  border: none;
  color: #fff;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 56px);
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(0, 217, 165, 0.25), transparent 40%);
  pointer-events: none;
}

#home::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: rotate(8deg);
  pointer-events: none;
  animation: sheen 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes sheen {
  0%, 100% { transform: translateX(-30%) rotate(8deg); }
  50% { transform: translateX(30%) rotate(8deg); }
}

#home h1 {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.6em;
}

#home p {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 860px;
}

#home p + p {
  margin-top: 0.4em;
}

#about ul,
#culture ul,
#advantages ul,
#howto ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#about ul li,
#culture ul li,
#howto ul li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

#about ul li::before,
#culture ul li::before,
#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 90, 60, 0.3);
}

#about ul li:hover,
#culture ul li:hover,
#howto ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

#advantages ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

#advantages ul li {
  position: relative;
  padding: 20px 20px 20px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

#advantages ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#advantages ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#advantages ul li:hover::before {
  transform: scaleX(1);
}

#history ol {
  list-style: none;
  padding-left: 0;
  counter-reset: history;
  position: relative;
  display: grid;
  gap: 16px;
}

#history ol li {
  counter-increment: history;
  position: relative;
  padding: 16px 20px 16px 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#history ol li::before {
  content: counter(history);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.28);
}

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

#cases h3,
#reviews h3,
#news h3,
#articles h3,
#knowledge h3,
#solutions h3,
#applications h3,
#products h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

#cases h3::first-letter,
#products h3::first-letter,
#solutions h3::first-letter,
#applications h3::first-letter,
#knowledge h3::first-letter {
  color: var(--primary);
}

#reviews blockquote {
  position: relative;
  padding: 22px 24px 22px 60px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.2rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  opacity: 0.5;
}

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

#reviews blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--secondary);
}

#news article,
#articles article {
  position: relative;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

#news article h3 {
  color: var(--text);
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 10px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-pill);
}

#articles article p:first-of-type {
  background: rgba(0, 217, 165, 0.12);
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 90, 60, 0.1);
  color: var(--primary);
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

#articles article a:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateX(2px);
}

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

#faq h3 {
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: 0;
  font-size: 1rem;
  cursor: default;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
}

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

#faq h3 + p {
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin: 0 0 12px;
  font-size: 0.95rem;
}

#faq h3 + p:hover {
  background: var(--bg-elevated);
}

#howto ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(255, 90, 60, 0.12);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
}

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

#contact address,
#company address {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

#contact address p,
#company address p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.95rem;
}

#contact address p:last-child,
#company address p:last-child {
  border-bottom: none;
}

#contact address p::before,
#company address p::before {
  content: "▸";
  color: var(--primary);
  font-weight: 700;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: color var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

#legal h3,
#meta-info h2 {
  color: var(--text);
}

#meta-info {
  font-size: 0.9rem;
}

#meta-info p {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  margin: 0;
}

#meta-info p:last-child {
  border-bottom: none;
  color: var(--primary);
  font-weight: 600;
  padding-top: 12px;
}

footer {
  position: relative;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  text-align: center;
}

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

footer p {
  margin: 0 auto 10px;
  max-width: var(--max-width);
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

footer a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

footer a:hover {
  color: var(--primary);
  background: rgba(255, 90, 60, 0.1);
}

@media (max-width: 900px) {
  :root {
    --header-height: 56px;
  }

  .topbar {
    font-size: 0.72rem;
    padding: 6px 16px;
    gap: 4px 16px;
  }

  .topbar span:nth-child(2) {
    display: none;
  }

  nav {
    padding: 0 16px;
    gap: 10px;
  }

  nav > a[aria-label] {
    font-size: 1.15rem;
  }

  main {
    padding: 20px 16px 48px;
  }

  section {
    padding: 24px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

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

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

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

  .topbar span:last-child {
    display: none;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 8px;
  }

  nav > a[aria-label] {
    font-size: 1.25rem;
    align-self: flex-start;
    margin-bottom: 4px;
  }

  nav ul {
    mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  }

  nav ul li a {
    padding: 7px 11px;
    font-size: 0.84rem;
  }

  #home {
    padding: 32px 20px;
  }

  #home::after {
    display: none;
  }

  section {
    padding: 20px 16px;
  }

  #news article,
  #articles article {
    padding: 16px 16px;
  }

  #faq h3 {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  #faq h3 + p {
    padding: 14px 16px;
  }

  #reviews blockquote {
    padding: 18px 16px 18px 48px;
  }

  #reviews blockquote::before {
    left: 12px;
    font-size: 2.6rem;
  }

  #contact address,
  #company address {
    padding: 14px 16px;
  }

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

  footer {
    padding: 28px 16px 24px;
  }
}

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

@media print {
  header,
  footer,
  #home::after,
  #home::before {
    display: none;
  }

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

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

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