:root {
  --primary: #ff6b35;
  --primary-dark: #e85d2c;
  --primary-light: #ff8c5a;
  --secondary: #1a1a2e;
  --accent: #ffd700;
  --accent-glow: rgba(255, 215, 0, 0.3);
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.5);
  --text: #2d2d3a;
  --text-light: #6b6b80;
  --text-lighter: #9999aa;
  --border: #e8e8f0;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  --shadow-glow: 0 4px 20px rgba(255, 107, 53, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --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: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.78);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-light: #a0a0b8;
    --text-lighter: #6b6b80;
    --border: #2a2a42;
    --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 4px 20px rgba(255, 107, 53, 0.35);
  }
}

*,
*::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-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

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

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

header nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

header nav > a:first-child:hover {
  opacity: 0.85;
  color: transparent;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

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

header nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  transform: translateY(-1px);
}

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

section {
  margin-bottom: 64px;
  animation: fadeInUp 0.7s ease-out both;
}

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

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }

#hero {
  position: relative;
  margin: 32px 0 48px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

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

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

#hero p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
  max-width: 800px;
}

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

nav[aria-label="面包屑导航"] {
  margin-bottom: 40px;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--text-lighter);
  font-size: 0.75rem;
}

nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-light);
  font-weight: 500;
}

nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--primary);
}

nav[aria-label="面包屑导航"] ol li:last-child {
  color: var(--text);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: -0.3px;
}

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

h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: -0.2px;
}

h3:first-of-type {
  margin-top: 0;
}

p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.85;
}

#brand,
#products,
#advantages,
#solutions,
#applications,
#cases,
#testimonials,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#about,
#sitemap,
#links {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  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,
#advantages:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#testimonials:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover,
#about:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.15);
}

#advantages h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(255, 215, 0, 0.06));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin: 16px 0 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

#advantages h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#advantages h3 + p {
  padding-left: 24px;
  margin-bottom: 20px;
}

#testimonials blockquote {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(255, 215, 0, 0.04));
  border-radius: var(--radius-md);
  padding: 28px 28px 28px 56px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

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

#testimonials blockquote p {
  color: var(--text);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.9;
}

#articles article {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  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;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

#articles article:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.2);
}

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

#articles article h3 a {
  color: var(--text);
  transition: color var(--transition);
}

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

#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 10px;
  padding: 2px 10px;
  background: rgba(255, 107, 53, 0.08);
  border-radius: 20px;
  font-weight: 500;
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

#articles article > a:last-child:hover {
  gap: 12px;
  color: var(--primary-dark);
}

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

#faq details {
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: var(--shadow-sm);
}

#faq details summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

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

#faq details summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.08);
  transition: transform var(--transition), background var(--transition);
}

#faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  background: rgba(255, 107, 53, 0.15);
}

#faq details summary:hover {
  background: rgba(255, 107, 53, 0.04);
  color: var(--primary);
}

#faq details p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-light);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  margin-bottom: 10px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-glow);
}

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

#howto ol li strong {
  color: var(--text);
}

#knowledge h3 {
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

#contact h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

#contact p {
  padding-left: 4px;
}

#about h3 {
  color: var(--text);
  border-bottom: 2px dashed var(--border);
  padding-bottom: 8px;
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  transition: all var(--transition);
}

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

#links ul li a {
  color: var(--text-light);
}

footer {
  margin-top: 48px;
  padding: 48px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.8;
}

footer p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  header nav {
    height: 60px;
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 0;
  }

  header nav > a:first-child {
    font-size: 1.15rem;
  }

  header nav ul {
    gap: 2px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  main {
    padding: 0 16px;
  }

  section {
    margin-bottom: 40px;
  }

  #hero {
    padding: 44px 24px;
    margin: 20px 0 32px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  #hero p {
    font-size: 0.9rem;
  }

  #brand,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #about,
  #sitemap,
  #links {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 1.05rem;
  }

  p {
    font-size: 0.9rem;
  }

  #testimonials blockquote {
    padding: 22px 20px 22px 48px;
  }

  #testimonials blockquote::before {
    font-size: 2.8rem;
    top: 8px;
    left: 12px;
  }

  #articles article {
    padding: 18px 20px;
  }

  #faq details summary {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  #faq details p {
    padding: 0 18px 16px;
    font-size: 0.85rem;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
    font-size: 0.88rem;
  }

  #howto ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

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

  #sitemap ul li a,
  #links ul li a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  footer {
    padding: 36px 16px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  footer p {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  header nav {
    height: 56px;
    padding: 0 12px;
  }

  header nav > a:first-child {
    font-size: 1rem;
  }

  header nav ul li a {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  main {
    padding: 0 12px;
  }

  #hero {
    padding: 32px 18px;
    border-radius: var(--radius-md);
  }

  #hero h1 {
    font-size: 1.3rem;
  }

  #brand,
  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #about,
  #sitemap,
  #links {
    padding: 20px 14px;
  }

  h2 {
    font-size: 1.15rem;
  }

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

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

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

@supports (backdrop-filter: blur(20px)) {
  header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

@supports not (backdrop-filter: blur(20px)) {
  header {
    background: var(--bg-card);
  }
}

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

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

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