:root {
  --color-primary: #c8532a;
  --color-primary-dark: #a03f1e;
  --color-primary-light: #e8754a;
  --color-accent: #f0a04b;
  --color-accent-soft: #ffd9a8;
  --color-bg: #fdf8f3;
  --color-bg-alt: #f7ede2;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.65);
  --color-text: #2d2119;
  --color-text-soft: #6b5a4d;
  --color-text-muted: #9a8878;
  --color-border: rgba(200, 83, 42, 0.14);
  --color-shadow: rgba(120, 60, 30, 0.12);
  --color-shadow-strong: rgba(120, 60, 30, 0.22);
  --gradient-hero: linear-gradient(135deg, #c8532a 0%, #e8754a 40%, #f0a04b 75%, #ffd9a8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(200, 83, 42, 0.08), rgba(240, 160, 75, 0.12));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 8px 24px var(--color-shadow);
  --shadow-lg: 0 16px 48px var(--color-shadow-strong);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #f08a5d;
    --color-primary-dark: #d96f42;
    --color-primary-light: #ffa877;
    --color-accent: #f8b878;
    --color-accent-soft: #6b4a2e;
    --color-bg: #171210;
    --color-bg-alt: #1f1915;
    --color-surface: #241d18;
    --color-surface-glass: rgba(36, 29, 24, 0.62);
    --color-text: #f4ece5;
    --color-text-soft: #c9b8a8;
    --color-text-muted: #8f7d6d;
    --color-border: rgba(240, 138, 93, 0.18);
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-shadow-strong: rgba(0, 0, 0, 0.6);
    --gradient-hero: linear-gradient(135deg, #7a2e15 0%, #a03f1e 35%, #c8532a 65%, #e8754a 100%);
    --gradient-soft: linear-gradient(135deg, rgba(240, 138, 93, 0.1), rgba(248, 184, 120, 0.08));
  }
}

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

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

body {
  margin: 0;
  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(circle at 12% 8%, rgba(240, 160, 75, 0.1), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(200, 83, 42, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(240, 160, 75, 0.06), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  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,
a:focus-visible {
  color: var(--color-primary-dark);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-soft);
}

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  position: relative;
  padding-bottom: 0.5em;
}

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

h3 {
  font-size: clamp(1.12rem, 2vw, 1.4rem);
}

h4 {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--color-primary-dark);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

#site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#site-header nav > a {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-text);
  padding: 6px 0;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

#site-header nav > a:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

#site-header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

#site-header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

#site-header nav ul li a:hover,
#site-header nav ul li a:focus-visible {
  color: var(--color-primary-dark);
  background: var(--gradient-soft);
  transform: translateY(-1px);
}

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

section {
  margin: 40px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

section > h2 {
  margin-bottom: 1em;
}

section > h3 {
  margin-top: 1.4em;
}

section p {
  max-width: 72ch;
}

#hero {
  position: relative;
  margin: 32px 0 40px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 14% 82%, rgba(255, 255, 255, 0.18), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 60%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  z-index: -1;
  animation: heroFloat 14s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-16px, 22px) rotate(12deg); }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(90, 30, 0, 0.28);
  max-width: 20ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  max-width: 68ch;
  margin-bottom: 0;
  text-shadow: 0 1px 10px rgba(90, 30, 0, 0.18);
}

nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto 8px;
  padding: 0 4px;
}

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

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

nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  color: var(--color-text-muted);
  opacity: 0.7;
}

nav[aria-label="面包屑导航"] ol li a {
  color: var(--color-text-soft);
  padding: 2px 0;
}

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

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

#brand,
#concept,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

#brand:hover,
#concept:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 83, 42, 0.24);
}

#brand h3,
#concept h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#howto h3 {
  margin-top: 1.5em;
}

#brand h3:first-of-type,
#concept h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#howto h3:first-of-type {
  margin-top: 0;
}

#products h3,
#solutions h3,
#cases h3 {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  border: 1px solid var(--color-border);
}

#products h4,
#solutions h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.2em;
}

#products h4::before,
#solutions h4::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 3px rgba(200, 83, 42, 0.12);
}

#news h3 {
  font-size: 1.08rem;
  color: var(--color-text);
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
  border-radius: 2px;
}

#news h3 + p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4em;
}

#news h3 + p + p {
  margin-bottom: 1.4em;
}

#articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

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

#articles article {
  position: relative;
  padding: 20px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  background: var(--color-surface);
}

#articles article h3 {
  margin: 0 0 0.4em;
  font-size: 1.08rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

#articles article h3 + p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5em;
}

#articles article p {
  font-size: 0.94rem;
  margin-bottom: 0.6em;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 0;
}

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

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

#faq h3 {
  position: relative;
  padding: 14px 18px 14px 46px;
  margin: 0 0 8px;
  font-size: 1.02rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: default;
  transition: background var(--transition-base), color var(--transition-fast), box-shadow var(--transition-base);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-hero);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(200, 83, 42, 0.3);
}

#faq h3:hover {
  background: var(--gradient-soft);
  box-shadow: var(--shadow-sm);
}

#faq h3 + p {
  padding: 0 18px 14px 46px;
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--color-text-soft);
  border-bottom: 1px dashed var(--color-border);
}

#faq h3 + p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

#howto {
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-bg-alt) 100%);
}

#howto h4 {
  position: relative;
  padding: 12px 16px 12px 44px;
  margin: 12px 0 8px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#howto h4:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 4px rgba(200, 83, 42, 0.12);
}

#howto h4 + p {
  padding-left: 44px;
  margin-bottom: 16px;
  font-size: 0.94rem;
}

#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.5em;
  font-size: 0.96rem;
}

#contact h3 {
  margin-top: 1.4em;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-hero);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#legal h3 {
  margin-top: 1.4em;
  font-size: 1.05rem;
}

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

footer {
  position: relative;
  margin-top: 60px;
  padding: 40px 20px 48px;
  text-align: center;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
}

footer p {
  max-width: var(--max-width);
  margin: 0 auto 8px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  opacity: 0.85;
}

@supports (animation-timeline: view()) {
  #brand,
  #concept,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(36px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 860px) {
  #site-header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 10px;
  }

  #site-header nav ul {
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  #site-header nav ul li a {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.86rem;
  }

  main {
    padding: 0 16px 40px;
  }

  #hero {
    margin: 20px 0 28px;
    border-radius: var(--radius-lg);
  }

  #hero::after {
    width: 220px;
    height: 220px;
    top: -30%;
    right: -20%;
  }

  #hero h1 {
    max-width: none;
  }

  section {
    margin: 28px 0;
  }

  #brand,
  #concept,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    border-radius: var(--radius-md);
  }

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

  #faq h3 {
    font-size: 0.96rem;
    padding: 12px 14px 12px 42px;
  }

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

  #faq h3 + p {
    padding: 0 14px 12px 42px;
    font-size: 0.9rem;
  }

  #howto h4 {
    padding: 10px 14px 10px 40px;
  }

  #howto h4::before {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  #howto h4 + p {
    padding-left: 40px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 14px;
    font-size: 0.84rem;
  }
}

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

  #hero {
    padding: 28px 20px;
  }

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

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

  #products h3,
  #solutions h3,
  #cases h3 {
    font-size: 0.98rem;
    padding: 3px 12px;
  }

  footer {
    padding: 32px 16px 40px;
  }
}

@media (hover: none) {
  #articles article:hover,
  #howto h4:hover,
  #sitemap ul li a:hover,
  #links ul li a:hover {
    transform: none;
  }
}