:root {
  --primary: #c8102e;
  --primary-dark: #9e0b23;
  --primary-light: #ff4d6d;
  --accent: #ffb703;
  --gradient-banner: linear-gradient(135deg, #c8102e 0%, #7a0a1c 55%, #2b0a12 100%);
  --gradient-btn: linear-gradient(135deg, #ff4d6d 0%, #c8102e 100%);
  --bg: #f7f4f2;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #23181b;
  --text-soft: #5a4a4e;
  --text-muted: #8a767b;
  --border: rgba(200, 16, 46, 0.14);
  --shadow-sm: 0 2px 10px rgba(43, 10, 18, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 10, 18, 0.10);
  --shadow-lg: 0 20px 50px rgba(43, 10, 18, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --glass-blur: 14px;
  --maxw: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff4d6d;
    --primary-dark: #c8102e;
    --primary-light: #ff8fa3;
    --accent: #ffc94d;
    --gradient-banner: linear-gradient(135deg, #7a0a1c 0%, #3a0610 55%, #12030a 100%);
    --gradient-btn: linear-gradient(135deg, #ff4d6d 0%, #a30d26 100%);
    --bg: #120d10;
    --bg-alt: #1a1216;
    --surface: rgba(38, 26, 31, 0.66);
    --surface-solid: #221820;
    --text: #f6eef0;
    --text-soft: #d6c4c9;
    --text-muted: #a58e94;
    --border: rgba(255, 77, 109, 0.22);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(200, 16, 46, 0.10), transparent 42%),
    radial-gradient(circle at 88% 24%, rgba(255, 183, 3, 0.10), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(200, 16, 46, 0.06), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--gradient-btn);
  box-shadow: 0 0 12px rgba(200, 16, 46, 0.45);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text);
}

h4 {
  font-size: 1.02rem;
  color: var(--primary);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--primary);
}

figure {
  margin: 1.6em 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: center;
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-bar > a {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  white-space: nowrap;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.brand-bar > a:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-bar > p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

nav[role="navigation"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 10px;
}

nav[role="navigation"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  -webkit-overflow-scrolling: touch;
}

nav[role="navigation"] ul::-webkit-scrollbar {
  height: 4px;
}

nav[role="navigation"] ul::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

nav[role="navigation"] li {
  margin: 0;
  flex: 0 0 auto;
}

nav[role="navigation"] a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

nav[role="navigation"] a:hover,
nav[role="navigation"] a:focus-visible {
  color: #fff;
  background: var(--gradient-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

main > section {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.7s var(--ease) both;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-btn);
  opacity: 0.75;
  pointer-events: none;
}

main > section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.28);
}

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

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.10s; }
main > section:nth-child(4) { animation-delay: 0.15s; }
main > section:nth-child(5) { animation-delay: 0.20s; }

#intro {
  background: var(--gradient-banner);
  border: none;
  color: #fff;
  text-align: left;
  padding: clamp(28px, 5vw, 56px);
}

#intro::after {
  display: none;
}

#intro::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.35), transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}

#intro h1 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#intro p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 68ch;
}

#intro figure {
  margin-top: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#intro figcaption {
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.85);
}

#intro svg {
  display: block;
}

#about h3,
#history h3,
#culture h3,
#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#knowledge h3,
#howto h3 {
  margin-top: 1.4em;
  padding-bottom: 0.3em;
  border-bottom: 1px dashed var(--border);
}

#culture ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

#culture li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#culture li::before {
  content: "★";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.05rem;
}

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

#products h3 {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.06), rgba(255, 183, 3, 0.06));
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border-bottom: none;
  border-left: 4px solid var(--primary);
}

#advantages p {
  padding-left: 18px;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

#advantages p:hover {
  border-left-color: var(--primary);
  padding-left: 24px;
}

#reviews blockquote {
  margin: 0 0 16px;
  padding: 18px 20px 18px 52px;
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#reviews blockquote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 2px;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.35;
  font-family: Georgia, serif;
}

#reviews blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-soft);
}

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

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

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

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.3);
}

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

#news h3,
#articles h3 {
  margin-bottom: 0.35em;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.42);
  filter: brightness(1.06);
}

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

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

#faq details[open] {
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

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

#faq summary:hover {
  background: rgba(200, 16, 46, 0.06);
  color: var(--primary);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.95rem;
  animation: fadeDown 0.35s var(--ease);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

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

#howto ul li {
  padding-left: 2px;
}

#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 1.2em;
}

#contact address p {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.35);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
}

#legal h3 {
  margin-top: 1.3em;
}

footer[role="contentinfo"] {
  margin-top: 20px;
  padding: 36px 20px 44px;
  background: var(--gradient-banner);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 183, 3, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 77, 109, 0.18), transparent 50%);
  pointer-events: none;
}

footer[role="contentinfo"] p {
  margin: 0.3em 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

footer[role="contentinfo"] a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

footer[role="contentinfo"] a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 768px) {
  :root {
    --radius-lg: 20px;
    --radius-md: 14px;
  }

  body {
    font-size: 15px;
  }

  .brand-bar {
    padding: 10px 16px 6px;
    gap: 8px;
  }

  .brand-bar > a {
    font-size: 1.2rem;
  }

  .brand-bar > p {
    font-size: 0.74rem;
    width: 100%;
  }

  nav[role="navigation"] {
    padding: 0 16px 8px;
  }

  nav[role="navigation"] a {
    padding: 5px 12px;
    font-size: 0.82rem;
  }

  main {
    padding: 18px 14px 30px;
    gap: 22px;
  }

  main > section {
    padding: 20px 16px;
  }

  #intro {
    padding: 24px 18px;
  }

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

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

@media (max-width: 480px) {
  h2 {
    padding-left: 13px;
  }

  h2::before {
    width: 4px;
  }

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

  #howto ol li {
    padding: 12px 12px 12px 50px;
  }

  #faq summary {
    padding: 14px 42px 14px 16px;
    font-size: 0.94rem;
  }
}

@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 print {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[role="navigation"] {
    display: none;
  }

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

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