:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #e74c3c;
  --accent: #e67e22;
  --accent-2: #f39c12;
  --bg: #faf8f6;
  --bg-alt: #f2ede9;
  --surface: #ffffff;
  --surface-2: #fdfbfa;
  --text: #2c2420;
  --text-soft: #5c514b;
  --text-muted: #8a7d76;
  --border: rgba(44, 36, 32, 0.1);
  --border-strong: rgba(44, 36, 32, 0.18);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
  --shadow: 0 8px 28px rgba(44, 36, 32, 0.1);
  --shadow-lg: 0 18px 48px rgba(44, 36, 32, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #e67e22 100%);
  --grad-soft: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(230, 126, 34, 0.08));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #e05a4b;
    --primary-dark: #c0392b;
    --primary-light: #ff7a68;
    --accent: #f39c12;
    --accent-2: #e67e22;
    --bg: #14100e;
    --bg-alt: #1c1714;
    --surface: #221c19;
    --surface-2: #2a2320;
    --text: #f2ece8;
    --text-soft: #c9bfb9;
    --text-muted: #948880;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(34, 28, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.62);
    --grad-hero: linear-gradient(135deg, #7a2318 0%, #a93226 45%, #b8651a 100%);
    --grad-soft: linear-gradient(135deg, rgba(224, 90, 75, 0.14), rgba(243, 156, 18, 0.1));
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(192, 57, 43, 0.09), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(230, 126, 34, 0.08), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  margin: 0 0 1rem;
  position: relative;
  padding-bottom: 0.7rem;
}

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

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

ul, ol {
  padding-left: 1.3rem;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45rem;
}

time {
  color: var(--text-muted);
  font-size: 0.88em;
}

blockquote {
  margin: 0 0 1.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--glass);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--text-soft);
}

blockquote footer {
  color: var(--text-muted);
  font-size: 0.9rem;
}

address {
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(44, 36, 32, 0.06);
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

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

.brand svg {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand a:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}

header nav {
  flex: 1 1 auto;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover {
  background: var(--grad-soft);
  color: var(--primary);
  transform: translateY(-2px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 300px;
}

header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form[role="search"] input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

header form[role="search"] input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

header form[role="search"] button {
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-hero);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.3);
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(192, 57, 43, 0.42);
}

header form[role="search"] button:active {
  transform: translateY(0);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.4rem 3rem;
}

main > section {
  position: relative;
  margin: 2.2rem 0;
  padding: 2rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: riseIn 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

main > section:nth-child(3n) { animation-delay: 0.06s; }
main > section:nth-child(3n + 1) { animation-delay: 0.12s; }

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

#hero {
  margin-top: 1.6rem;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem);
  background: var(--grad-hero);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 18px, 0) scale(1.08); }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
  max-width: 62ch;
}

#hero strong {
  color: #fff;
}

#hero time {
  color: rgba(255, 255, 255, 0.85);
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 1.8rem 0 1.2rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.008);
}

#hero figure svg {
  border-radius: var(--radius-sm);
}

#hero figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

nav[aria-label="页面锚点导航"] {
  margin: 1.6rem 0 0.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

nav[aria-label="页面锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav[aria-label="页面锚点导航"] a {
  display: inline-block;
  padding: 0.32rem 0.8rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.28s var(--ease);
}

nav[aria-label="页面锚点导航"] a:hover {
  color: #fff;
  background: var(--grad-hero);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.3);
}

#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#culture h3,
#knowledge h3,
#brand h3 {
  padding-left: 0.85rem;
  border-left: 4px solid var(--accent);
  border-radius: 2px;
}

#history ol {
  counter-reset: hist;
  list-style: none;
  padding-left: 0;
}

#history ol li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 3.2rem;
  margin-bottom: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#history ol li::before {
  counter-increment: hist;
  content: counter(hist);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-hero);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.32);
}

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

#cases h3,
#reviews h3 {
  color: var(--primary);
}

#news article,
#articles article {
  position: relative;
  margin: 0 0 1.2rem;
  padding: 1.3rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  bottom: 1.3rem;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

#articles article p:first-of-type {
  font-size: 0.86rem;
  color: var(--text-muted);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  transition: all 0.28s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  background: var(--grad-hero);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.32);
}

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

#faq details {
  margin-bottom: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  background: var(--grad-hero);
  border-radius: 50%;
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(135deg);
}

#faq summary:hover {
  background: var(--grad-soft);
  color: var(--primary);
}

#faq details p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  font-size: 0.95rem;
  animation: fadeIn 0.4s var(--ease);
}

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

#howto ol li {
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li:hover {
  transform: translateX(5px);
  border-color: var(--accent);
}

#howto ul li::marker {
  color: var(--accent);
}

#team p {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#team p:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

#contact address p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#contact address p:hover {
  border-color: var(--primary);
  background: var(--grad-soft);
}

#contact address strong {
  color: var(--primary);
  min-width: 5.5em;
}

#sitemap ul,
#links ul {
  columns: 2;
  column-gap: 1.6rem;
  list-style: none;
  padding-left: 0;
}

#sitemap li,
#links li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  border-bottom: 1px dashed transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  transform: translateX(3px);
}

#links a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
  color: var(--text-muted);
}

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

footer {
  margin-top: 2rem;
  padding: 2.4rem 1.4rem 2.8rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer time {
  color: var(--text-soft);
}

::selection {
  background: rgba(192, 57, 43, 0.22);
  color: var(--text);
}

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

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

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

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

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

@media (max-width: 980px) {
  header {
    gap: 0.7rem 1rem;
    padding: 0.75rem 1rem;
  }

  header form[role="search"] {
    flex: 1 1 100%;
    order: 3;
  }

  header nav {
    flex: 1 1 100%;
    order: 2;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  header nav ul {
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  header nav a {
    white-space: nowrap;
  }

  main {
    padding: 0 1rem 2.4rem;
  }

  main > section {
    padding: 1.6rem 1.25rem;
    margin: 1.6rem 0;
    border-radius: var(--radius-sm);
  }

  #hero {
    border-radius: var(--radius);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  html {
    scroll-padding-top: 120px;
  }

  header {
    padding: 0.65rem 0.85rem;
  }

  .brand a {
    font-size: 1.05rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  header nav a {
    font-size: 0.84rem;
    padding: 0.35rem 0.6rem;
  }

  header form[role="search"] input,
  header form[role="search"] button {
    font-size: 0.85rem;
  }

  main {
    padding: 0 0.8rem 2rem;
  }

  main > section {
    padding: 1.3rem 1rem;
    margin: 1.2rem 0;
  }

  #hero {
    padding: 1.8rem 1.1rem;
  }

  #hero figure {
    margin: 1.2rem 0 0.9rem;
    padding: 0.4rem;
  }

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

  #sitemap ul,
  #links ul {
    columns: 1;
  }

  #history ol li {
    padding: 0.7rem 0.8rem 0.7rem 2.8rem;
  }

  #history ol li::before {
    left: 0.7rem;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  #news article,
  #articles article {
    padding: 1.05rem 1.1rem;
  }

  #faq summary {
    padding: 0.9rem 2.8rem 0.9rem 1rem;
    font-size: 0.95rem;
  }

  #contact address p {
    flex-direction: column;
    gap: 0.15rem;
  }

  blockquote {
    padding: 1rem 1.1rem;
  }

  footer {
    padding: 2rem 1rem 2.4rem;
  }
}

@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 {
  header,
  nav[aria-label="页面锚点导航"],
  footer,
  #links,
  #sitemap {
    display: none;
  }

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

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