:root {
  --primary: #1f6feb;
  --primary-dark: #1552b8;
  --primary-light: #4d8ef5;
  --accent: #ff6b9d;
  --accent-2: #ffb347;
  --gradient-1: linear-gradient(135deg, #1f6feb 0%, #6b4dff 50%, #ff6b9d 100%);
  --gradient-2: linear-gradient(135deg, #4d8ef5 0%, #1f6feb 100%);
  --gradient-3: linear-gradient(120deg, rgba(31, 111, 235, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #1a2233;
  --text-secondary: #4a5568;
  --text-muted: #7a869a;
  --border: rgba(31, 111, 235, 0.12);
  --border-strong: rgba(31, 111, 235, 0.22);
  --shadow-sm: 0 2px 8px rgba(26, 34, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 34, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 34, 51, 0.12);
  --shadow-glow: 0 8px 32px rgba(31, 111, 235, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --header-height: 72px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-elevated: #161b24;
    --bg-glass: rgba(22, 27, 36, 0.65);
    --bg-glass-strong: rgba(22, 27, 36, 0.85);
    --text: #e6edf3;
    --text-secondary: #b0b8c4;
    --text-muted: #8b949e;
    --border: rgba(77, 142, 245, 0.16);
    --border-strong: rgba(77, 142, 245, 0.3);
    --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(31, 111, 235, 0.3);
    --gradient-3: linear-gradient(120deg, rgba(77, 142, 245, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: var(--gradient-3);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

@media (prefers-color-scheme: dark) {
  a:hover {
    color: var(--primary-light);
  }
}

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 2.5rem 0 1.25rem;
  position: relative;
  padding-left: 1.1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: var(--radius-full);
  background: var(--gradient-2);
  box-shadow: 0 0 12px rgba(31, 111, 235, 0.4);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 1.75rem 0 0.85rem;
  color: var(--text);
}

h4 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  margin: 1.25rem 0 0.6rem;
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  h4 {
    color: var(--primary-light);
  }
}

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

p:last-child {
  margin-bottom: 0;
}

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

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

.site-header:hover {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner > a {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.header-inner > a:hover {
  transform: translateY(-2px);
}

.header-inner > a svg {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-inner > a:hover svg {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.35);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--gradient-2);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--primary);
  background: rgba(31, 111, 235, 0.08);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .nav-list a:hover {
    color: var(--primary-light);
    background: rgba(77, 142, 245, 0.12);
  }
}

.nav-list a:hover::after {
  width: 60%;
}

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

section {
  padding-top: 48px;
}

#intro {
  padding-top: 40px;
}

#intro > h1 {
  animation: fadeUp 0.7s ease both;
}

#intro > p {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
  font-size: 1.02rem;
}

#intro > p:nth-of-type(2) {
  animation-delay: 0.2s;
}

#intro > p:nth-of-type(3) {
  animation-delay: 0.3s;
}

#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links,
#legal {
  animation: fadeUp 0.6s ease both;
}

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

#intro {
  position: relative;
  margin-top: 32px;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.1) 0%, rgba(107, 77, 255, 0.08) 40%, rgba(255, 107, 157, 0.1) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

#intro::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: floatOrb 12s ease-in-out infinite;
}

#intro::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

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

@media (prefers-color-scheme: dark) {
  #intro {
    background: linear-gradient(135deg, rgba(77, 142, 245, 0.14) 0%, rgba(107, 77, 255, 0.1) 40%, rgba(255, 107, 157, 0.12) 100%);
  }
}

#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links,
#legal {
  margin-top: 24px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#brand > h2:first-child,
#products > h2:first-child,
#solutions > h2:first-child,
#cases > h2:first-child,
#news > h2:first-child,
#articles > h2:first-child,
#faq > h2:first-child,
#howto > h2:first-child,
#knowledge > h2:first-child,
#contact > h2:first-child,
#sitemap > h2:first-child,
#links > h2:first-child,
#legal > h2:first-child {
  margin-top: 0;
}

#products h4 {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(31, 111, 235, 0.1);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  #products h4 {
    background: rgba(77, 142, 245, 0.16);
    color: var(--primary-light);
  }
}

#news h3 {
  position: relative;
  padding-left: 28px;
}

#news h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-2);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.15);
}

@media (prefers-color-scheme: dark) {
  #news h3::before {
    box-shadow: 0 0 0 4px rgba(77, 142, 245, 0.2);
  }
}

#news p:first-of-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 28px;
  margin-bottom: 0.5rem;
}

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

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

#articles article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

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

#articles article h3 {
  margin-top: 0;
  font-size: 1.15rem;
  transition: color var(--transition);
}

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

@media (prefers-color-scheme: dark) {
  #articles article:hover h3 {
    color: var(--primary-light);
  }
}

#articles article p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(31, 111, 235, 0.1);
  transition: background var(--transition), color var(--transition), gap var(--transition), transform var(--transition);
}

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

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

@media (prefers-color-scheme: dark) {
  #articles article a {
    background: rgba(77, 142, 245, 0.16);
    color: var(--primary-light);
  }
  #articles article a:hover {
    background: var(--primary);
    color: #fff;
  }
}

#faq h3 {
  padding: 16px 20px;
  margin: 12px 0 0;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 1.02rem;
  cursor: default;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  padding-left: 48px;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

#faq h3:hover {
  border-color: var(--border-strong);
  background: var(--bg-glass-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#faq h3 + p {
  padding: 12px 20px 16px 48px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  border-left: 2px solid var(--border);
  margin-left: 11px;
  color: var(--text-secondary);
}

#howto h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(31, 111, 235, 0.06);
  border-left: 3px solid var(--primary);
  transition: background var(--transition), transform var(--transition);
}

@media (prefers-color-scheme: dark) {
  #howto h4 {
    background: rgba(77, 142, 245, 0.1);
  }
}

#howto h4:hover {
  background: rgba(31, 111, 235, 0.12);
  transform: translateX(4px);
}

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

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

#sitemap a,
#links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#sitemap a::before,
#links a::before {
  content: "▸";
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform var(--transition);
}

#sitemap a:hover,
#links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

#sitemap a:hover::before,
#links a:hover::before {
  color: #fff;
  transform: translateX(3px);
}

#contact p {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

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

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

@media (prefers-color-scheme: dark) {
  #legal h3 {
    color: var(--primary-light);
  }
}

#legal > p:last-of-type,
#legal h3:last-of-type ~ p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer {
  margin-top: 48px;
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
}

footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
    gap: 16px;
  }

  .nav-list a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  main {
    padding: 0 20px 48px;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 28px 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 14px 16px;
    gap: 12px;
  }

  .header-inner > a {
    width: 100%;
  }

  .header-inner > a svg {
    width: 34px;
    height: 34px;
  }

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

  nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4px;
  }

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

  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    padding: 2px 4px;
  }

  .nav-list a {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  main {
    padding: 0 16px 40px;
  }

  section {
    padding-top: 32px;
  }

  #intro {
    margin-top: 20px;
    padding: 32px 22px;
    border-radius: var(--radius-lg);
  }

  #intro::before,
  #intro::after {
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    padding-left: 0.9rem;
  }

  h2::before {
    width: 4px;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    margin-top: 16px;
  }

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

  #articles article {
    padding: 20px;
  }

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

  #faq h3::before {
    left: 14px;
    width: 20px;
    height: 20px;
  }

  #faq h3 + p {
    padding: 10px 16px 14px 44px;
    margin-left: 10px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #sitemap a,
  #links a {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  footer {
    padding: 32px 16px;
  }
}

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

  #intro {
    padding: 26px 18px;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.22rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 20px 16px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #articles article {
    padding: 18px;
  }
}

@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;
  }

  #intro::before,
  #intro::after {
    animation: none;
  }
}

@media print {
  .site-header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

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

  #intro,
  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #legal {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  h1 {
    -webkit-text-fill-color: #000;
    color: #000;
    background: none;
  }
}