:root {
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-lighter: #fdba74;
  --primary-bg: #fff7ed;
  --accent: #3b82f6;
  --accent-light: #93c5fd;
  --accent-lighter: #bfdbfe;
  --accent-bg: #eff6ff;
  --green: #10b981;
  --green-light: #6ee7b7;
  --green-bg: #ecfdf5;
  --text: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.5);
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --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", Arial, sans-serif;
  --header-height: 64px;
}

[data-theme="dark"] {
  --primary: #fb923c;
  --primary-light: #fdba74;
  --primary-lighter: #fed7aa;
  --primary-bg: #1c1410;
  --accent: #60a5fa;
  --accent-light: #93c5fd;
  --accent-lighter: #1e3a5f;
  --accent-bg: #0f172a;
  --green: #34d399;
  --green-light: #6ee7b7;
  --green-bg: #0a1f1a;
  --text: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --bg: #0f0f13;
  --bg-card: #1a1a24;
  --bg-glass: rgba(26, 26, 36, 0.78);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --border: #2a2a3a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(251, 146, 60, 0.12);
}

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

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin-bottom: 1em; }

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

#site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.brand:hover {
  transform: scale(1.03);
  color: var(--text);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.3);
}

.brand-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

#main-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--primary);
  background: var(--primary-bg);
}

#menu-toggle,
#theme-toggle {
  display: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

#theme-toggle {
  display: block;
}

#menu-toggle:hover,
#theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

#menu-toggle:active,
#theme-toggle:active {
  transform: translateY(0);
}

#main-nav.open {
  display: flex;
}

main {
  flex: 1;
  width: 100%;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}

section + section {
  padding-top: 0;
}

#hero {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-bg), var(--accent-bg));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

#hero-title {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
  color: #fff;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  animation: fadeInUp 0.8s 0.2s ease both;
  aspect-ratio: 400 / 260;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide svg {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
}

.banner-slide p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  margin: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

#intro,
#about-company,
#products,
#advantages,
#solutions,
#scenes,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links {
  animation: fadeInUp 0.7s ease both;
}

section h2 {
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

section 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(--primary-light));
  transition: width var(--transition-slow);
}

section:hover h2::after {
  width: 100px;
}

section h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

section p {
  color: var(--text-secondary);
  font-size: 1rem;
}

section ul,
section ol {
  list-style: none;
  padding-left: 0;
}

section ul li,
section ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

section ol {
  counter-reset: item;
}

section ol li {
  counter-increment: item;
}

section ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#articles article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: all 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(--primary-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.2);
}

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

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

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

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

#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

#articles article a[href^="#article"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

#articles article a[href^="#article"]:hover {
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 14px;
  transition: all var(--transition);
  position: relative;
}

.faq-item:hover {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-item h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-item p {
  margin-bottom: 0;
  padding-left: 32px;
  font-size: 0.95rem;
}

#howto ol {
  counter-reset: howto;
  margin-bottom: 24px;
}

#howto ol li {
  counter-increment: howto;
  padding: 14px 20px 14px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--transition);
}

#howto ol li:hover {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

#contact ul li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all var(--transition);
  padding-left: 24px;
}

#contact ul li::before {
  display: none;
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.2);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

#site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
  margin-top: 40px;
}

#site-footer section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 24px;
}

#site-footer section + section {
  padding-top: 0;
}

#site-footer h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

#site-footer h2::after {
  width: 32px;
  height: 3px;
}

#site-footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 800px;
}

.footer-meta {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

#back-to-top:active {
  transform: translateY(-2px) scale(1.02);
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-banner {
    max-width: 560px;
    margin: 0 auto;
  }

  #main-nav ul {
    gap: 2px;
  }

  #main-nav a {
    padding: 5px 9px;
    font-size: 0.8rem;
  }
}

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

  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }

  .brand-text {
    display: none;
  }

  #menu-toggle {
    display: block;
    margin-left: auto;
  }

  #theme-toggle {
    display: block;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    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);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
  }

  #main-nav.open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #main-nav a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
  }

  section {
    padding: 40px 16px;
  }

  section + section {
    padding-top: 0;
  }

  #hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .hero-banner {
    aspect-ratio: 4 / 3;
  }

  #articles article {
    padding: 20px;
  }

  .faq-item {
    padding: 18px 20px;
  }

  .faq-item p {
    padding-left: 0;
  }

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

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  #site-footer {
    padding: 32px 16px 20px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }

  .hero-eyebrow {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  section p {
    font-size: 0.92rem;
  }

  #howto ol li {
    padding: 12px 16px 12px 48px;
  }

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

@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 {
  #site-header,
  #back-to-top,
  #menu-toggle,
  #theme-toggle {
    display: none;
  }

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

  .btn-primary,
  .btn-secondary {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
}