:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.4);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.72);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  }
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
}

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

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem 1.25rem 3rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-style: italic;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.35;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

header {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem)
    clamp(2rem, 5vw, 4rem);
  background: linear-gradient(
    135deg,
    #4f46e5 0%,
    #6366f1 25%,
    #06b6d4 60%,
    #0891b2 100%
  );
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(6, 182, 212, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(245, 158, 11, 0.12) 0%,
      transparent 60%
    );
  z-index: -1;
}

header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 0;
}

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

header h1 {
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease both;
  position: relative;
  z-index: 1;
}

header > p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  animation: fadeInUp 0.8s 0.15s ease both;
  position: relative;
  z-index: 1;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s 0.3s ease both;
  position: relative;
  z-index: 1;
}

header nav a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
  position: relative;
  z-index: 1;
}

main > section {
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: sectionReveal 0.7s ease forwards;
}

main > section:nth-child(1) {
  animation-delay: 0.05s;
}
main > section:nth-child(2) {
  animation-delay: 0.1s;
}
main > section:nth-child(3) {
  animation-delay: 0.15s;
}
main > section:nth-child(4) {
  animation-delay: 0.2s;
}
main > section:nth-child(5) {
  animation-delay: 0.25s;
}
main > section:nth-child(6) {
  animation-delay: 0.3s;
}
main > section:nth-child(7) {
  animation-delay: 0.35s;
}
main > section:nth-child(8) {
  animation-delay: 0.4s;
}
main > section:nth-child(9) {
  animation-delay: 0.45s;
}
main > section:nth-child(10) {
  animation-delay: 0.5s;
}
main > section:nth-child(11) {
  animation-delay: 0.55s;
}
main > section:nth-child(12) {
  animation-delay: 0.6s;
}
main > section:nth-child(13) {
  animation-delay: 0.65s;
}
main > section:nth-child(14) {
  animation-delay: 0.7s;
}
main > section:nth-child(15) {
  animation-delay: 0.75s;
}
main > section:nth-child(16) {
  animation-delay: 0.8s;
}
main > section:nth-child(17) {
  animation-delay: 0.85s;
}
main > section:nth-child(18) {
  animation-delay: 0.9s;
}
main > section:nth-child(19) {
  animation-delay: 0.95s;
}
main > section:nth-child(20) {
  animation-delay: 1s;
}
main > section:nth-child(21) {
  animation-delay: 1.05s;
}
main > section:nth-child(22) {
  animation-delay: 1.1s;
}

@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

main > section:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), var(--shadow-lg);
}

#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
}

#products h3,
#solutions h3,
#cases h3 {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(6, 182, 212, 0.12)
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 1.05rem;
  transition: all var(--transition);
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(6, 182, 212, 0.2)
  );
  transform: translateX(4px);
}

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

#advantages li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all var(--transition);
}

#advantages li::before {
  content: "\2713";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--success), #34d399);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

#advantages li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--success);
}

#news article,
#articles article {
  position: relative;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

#articles article a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

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

#faq h3 {
  position: relative;
  padding: 1rem 1.25rem 1rem 3rem;
  margin-bottom: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

#faq h3 + p {
  padding: 1rem 1.25rem 1rem 3rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.95rem;
  transition: all var(--transition);
}

#faq h3:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary-light);
}

#faq h3:hover + p {
  border-color: var(--primary-light);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

#contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  transition: all var(--transition);
}

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

#contact p:hover {
  padding-left: 0.5rem;
  color: var(--primary);
}

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

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

#sitemap a,
#links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#copyright p,
#privacy p,
#disclaimer p,
#author p {
  font-size: 0.92rem;
}

#copyright {
  text-align: center;
}

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

footer {
  position: relative;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.06),
    rgba(6, 182, 212, 0.06)
  );
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
  color: var(--text-muted);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

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

  header {
    padding: 2.5rem 1rem 2rem;
  }

  header::after {
    height: 50px;
  }

  header nav {
    gap: 0.4rem;
  }

  header nav a {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  main {
    padding: 0 0.75rem 2rem;
  }

  main > section {
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

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

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

  #faq h3 {
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-size: 0.92rem;
  }

  #faq h3::before {
    left: 0.75rem;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  #faq h3 + p {
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-size: 0.88rem;
  }

  #howto ol li {
    padding: 0.75rem 0.85rem 0.75rem 3rem;
    font-size: 0.9rem;
  }

  #howto ol li::before {
    left: 0.7rem;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  #news article,
  #articles article {
    padding: 1rem 1.15rem;
  }

  blockquote {
    padding: 1rem 1.15rem 1rem 2.5rem;
    font-size: 0.9rem;
  }

  blockquote::before {
    font-size: 2.2rem;
    left: 0.6rem;
  }
}

@media (max-width: 480px) {
  header nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

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

  main > section {
    padding: 1rem 0.85rem;
  }
}

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

  main > section {
    opacity: 1;
    transform: none;
  }
}

@media print {
  header {
    background: none;
    color: #000;
  }

  header h1,
  header > p,
  header nav a {
    color: #000;
  }

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

  footer {
    border-top: 1px solid #ccc;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

::selection {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text);
}

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