:root {
  --color-primary: #f97316;
  --color-primary-light: #fb923c;
  --color-primary-dark: #ea580c;
  --color-secondary: #fbbf24;
  --color-accent: #f472b6;
  --color-bg: #fffbf5;
  --color-bg-alt: #fff7ed;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.72);
  --color-surface-glass-border: rgba(255, 255, 255, 0.5);
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-muted: #a8a29e;
  --color-border: #f5e6d3;
  --color-shadow: rgba(249, 115, 22, 0.08);
  --color-shadow-lg: rgba(249, 115, 22, 0.14);
  --gradient-banner: linear-gradient(135deg, #fff7ed 0%, #ffedd5 30%, #fed7aa 60%, #fdba74 100%);
  --gradient-primary: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
  --gradient-warm: linear-gradient(135deg, #fef3c7, #fed7aa, #fecaca);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1410;
    --color-bg-alt: #211a14;
    --color-surface: #2a221b;
    --color-surface-glass: rgba(42, 34, 27, 0.78);
    --color-surface-glass-border: rgba(255, 255, 255, 0.08);
    --color-text: #faf5ef;
    --color-text-secondary: #d6cdc4;
    --color-text-muted: #8a7f74;
    --color-border: #3d3229;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-lg: rgba(0, 0, 0, 0.45);
    --gradient-banner: linear-gradient(135deg, #2a1f14 0%, #3d2a18 30%, #4a3018 60%, #5c3a1a 100%);
  }
}

*,
*::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.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(249, 115, 22, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(251, 191, 36, 0.05), transparent);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

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

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

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-bottom: 0.5em;
}

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

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

header[role="banner"] {
  position: relative;
  padding: clamp(48px, 10vw, 96px) clamp(20px, 5vw, 48px);
  text-align: center;
  background: var(--gradient-banner);
  overflow: hidden;
  isolation: isolate;
}

header[role="banner"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

header[role="banner"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
  z-index: 1;
}

header[role="banner"] h1 {
  max-width: 900px;
  margin: 0 auto 0.6em;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease both;
}

header[role="banner"] p {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--color-text-secondary);
  animation: fadeInUp 0.8s ease 0.15s both;
}

nav[aria-label="主导航"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--color-surface-glass-border);
  box-shadow: 0 1px 0 rgba(249, 115, 22, 0.06), 0 4px 24px var(--color-shadow);
  animation: fadeInDown 0.6s ease both;
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px clamp(12px, 3vw, 24px);
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  position: relative;
  white-space: nowrap;
}

nav[aria-label="主导航"] a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-warm);
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--transition-smooth);
  z-index: -1;
}

nav[aria-label="主导航"] a:hover {
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

nav[aria-label="主导航"] a:hover::before {
  opacity: 1;
  transform: scale(1);
}

nav[aria-label="主导航"] a:active {
  transform: translateY(0) scale(0.97);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

main > section {
  padding: clamp(40px, 7vw, 72px) 0;
  animation: fadeInUp 0.7s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

main > section + section {
  border-top: 1px solid var(--color-border);
}

section > p:first-of-type {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

section h3 {
  margin-top: 1.6em;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

section h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#copyright {
  position: relative;
}

#news ul,
#sitemap ul,
#links ul {
  display: grid;
  gap: 12px;
  margin-top: 1.2em;
}

#news li,
#sitemap li,
#links li {
  position: relative;
  padding: 14px 20px 14px 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  box-shadow: 0 1px 3px var(--color-shadow);
}

#news li::before,
#sitemap li::before,
#links li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translateY(-50%);
  transition: transform var(--transition-bounce);
}

#news li:hover,
#sitemap li:hover,
#links li:hover {
  transform: translateX(6px);
  border-color: var(--color-primary-light);
  box-shadow: 0 6px 20px var(--color-shadow-lg);
}

#news li:hover::before,
#sitemap li:hover::before,
#links li:hover::before {
  transform: translateY(-50%) scale(1.5);
}

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

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

#links a {
  font-weight: 500;
}

article {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-smooth);
}

article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--color-shadow-lg);
  border-color: rgba(249, 115, 22, 0.25);
}

article:hover::before {
  transform: scaleY(1);
}

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

article h3::before {
  display: none;
}

article > p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
}

article > p:nth-of-type(2) {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.8em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  transition: all var(--transition-smooth);
}

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

article a:hover {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

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

#faq h3 {
  margin-top: 1.8em;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
}

#faq h3::before {
  display: none;
}

#faq h3::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform var(--transition-smooth);
}

#faq h3:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

#faq h3 + p {
  padding: 16px 20px;
  margin-bottom: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.93rem;
  transition: all var(--transition-smooth);
}

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

#howto p {
  padding-left: 0;
}

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

#howto p br + br {
  display: block;
  content: "";
  margin-top: 0.5em;
}

#contact p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.95rem;
}

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

#contact p a {
  font-weight: 500;
}

#privacy p,
#disclaimer p,
#copyright p {
  padding: clamp(16px, 3vw, 24px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.93rem;
  line-height: 1.85;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: all var(--transition-smooth);
}

#privacy p:hover,
#disclaimer p:hover,
#copyright p:hover {
  box-shadow: 0 8px 24px var(--color-shadow-lg);
  border-color: rgba(249, 115, 22, 0.2);
}

footer[role="contentinfo"] {
  margin-top: 40px;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 48px);
  text-align: center;
  background: linear-gradient(135deg, #1c1917, #292018, #1c1917);
  color: #d6cdc4;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

footer[role="contentinfo"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(249, 115, 22, 0.08), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(251, 191, 36, 0.06), transparent 40%);
  pointer-events: none;
}

footer[role="contentinfo"] p {
  position: relative;
  z-index: 1;
  color: #a8a29e;
  font-size: 0.88rem;
  margin-bottom: 0.6em;
}

footer[role="contentinfo"] p:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: #faf5ef;
  margin-bottom: 1em;
}

footer[role="contentinfo"] p:first-child::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.6em auto 0;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

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

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

::selection {
  background: rgba(249, 115, 22, 0.25);
  color: var(--color-text);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

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

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 12px;
    gap: 2px;
  }

  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] a {
    padding: 7px 13px;
    font-size: 0.82rem;
  }

  main > section {
    padding: 32px 0;
  }

  h2::after {
    width: 40px;
    height: 3px;
  }

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

  article {
    padding: 18px;
    border-radius: var(--radius-md);
  }

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

  #faq h3::after {
    right: 16px;
  }

  #faq h3 + p {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  #contact p {
    font-size: 0.88rem;
    flex-wrap: wrap;
  }

  footer[role="contentinfo"] {
    padding: 36px 20px;
  }
}

@media (max-width: 480px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  header[role="banner"] {
    padding: 40px 18px;
  }

  main {
    padding: 0 14px;
  }

  #news li,
  #sitemap li,
  #links li {
    padding: 12px 16px 12px 38px;
    font-size: 0.88rem;
  }

  #news li::before,
  #sitemap li::before,
  #links li::before {
    left: 15px;
    width: 6px;
    height: 6px;
  }
}

@media (min-width: 1024px) {
  #articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  #articles article {
    margin-bottom: 0;
  }

  #articles article:nth-child(odd) {
    animation-delay: 0.05s;
  }

  #articles article:nth-child(even) {
    animation-delay: 0.1s;
  }
}

@media (min-width: 1400px) {
  :root {
    --max-width: 1280px;
  }
}

@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 {
  nav[aria-label="主导航"],
  footer[role="contentinfo"] {
    display: none;
  }

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

  main > section {
    page-break-inside: avoid;
  }
}