:root {
  --brand: #c8102e;
  --brand-dark: #9e0c24;
  --brand-light: #f7b3bd;
  --brand-soft: #fdf3f4;
  --accent: #ff6b81;
  --accent-2: #ffb199;
  --ink: #1f2329;
  --ink-soft: #4a5058;
  --ink-muted: #6b7280;
  --bg: #fdf8f8;
  --bg-alt: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(200, 16, 46, 0.14);
  --border-soft: rgba(31, 35, 41, 0.08);
  --shadow: 0 8px 28px rgba(200, 16, 46, 0.08);
  --shadow-hover: 0 16px 42px rgba(200, 16, 46, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff4d68;
    --brand-dark: #d61f3c;
    --brand-light: #ff8fa0;
    --brand-soft: #2a1418;
    --accent: #ff7d92;
    --accent-2: #ffb199;
    --ink: #f2f3f5;
    --ink-soft: #c9cdd4;
    --ink-muted: #9aa0a8;
    --bg: #121316;
    --bg-alt: #1a1c21;
    --card: rgba(30, 33, 40, 0.72);
    --card-solid: #1e2128;
    --border: rgba(255, 77, 104, 0.22);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(200, 16, 46, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 107, 129, 0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  letter-spacing: 0.02em;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--brand-dark);
}

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

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

ul, ol {
  padding-left: 1.4em;
  color: var(--ink-soft);
}

li {
  margin: 0.35em 0;
}

time {
  color: var(--ink-muted);
  font-size: 0.86rem;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.3em;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--ink-soft);
}

blockquote p {
  margin: 0.3em 0;
}

address {
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(120deg, rgba(200, 16, 46, 0.92), rgba(158, 12, 36, 0.88) 55%, rgba(255, 107, 129, 0.85));
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.topbar span {
  font-weight: 600;
  opacity: 0.96;
}

.topbar time {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

header nav a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.28s var(--ease);
  will-change: transform;
}

header nav a:hover,
header nav a:focus-visible {
  background: #fff;
  color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

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

section {
  position: relative;
  margin: 0 0 30px;
  padding: 30px 30px 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 42%);
  opacity: 0.6;
}

@media (prefers-color-scheme: dark) {
  section::after {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 42%);
  }
}

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

section > * {
  position: relative;
  z-index: 1;
}

#home {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  margin-bottom: 34px;
}

#home::after {
  display: none;
}

#home:hover {
  transform: none;
  box-shadow: none;
}

#home > h1,
#home > p {
  position: relative;
  z-index: 2;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 88% 8%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 46%, #6d0a1a 100%);
  box-shadow: 0 18px 48px rgba(200, 16, 46, 0.32);
  z-index: 0;
}

#home > h1 {
  color: #fff;
  padding: 42px 36px 0;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

#home > p {
  color: rgba(255, 255, 255, 0.9);
  padding: 0 36px;
  margin: 0.9em 0 0;
  font-size: 0.98rem;
}

#home > p:first-of-type {
  padding-top: 6px;
}

#home > p:last-of-type {
  padding-bottom: 34px;
}

#home > p a {
  color: #fff;
  text-decoration: underline;
}

#home figure {
  margin: 0;
  padding: 0 24px 24px;
  position: relative;
  z-index: 1;
}

#home figure svg {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #fff;
}

#home figcaption {
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 12px;
  letter-spacing: 0.04em;
}

#products h4 {
  display: inline-block;
  margin: 1.1em 0 0.4em;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--border);
}

#products h4 + p {
  margin-top: 0.2em;
}

#cases blockquote {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

#cases blockquote p {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
}

#cases blockquote p:last-child {
  border-bottom: none;
}

#news ul {
  list-style: none;
  padding-left: 0;
}

#news li {
  position: relative;
  padding: 10px 14px 10px 40px;
  margin: 8px 0;
  border-radius: var(--radius-sm);
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
}

#news li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

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

#articles article {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

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

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.5;
}

#articles article h3 a {
  color: inherit;
}

#articles article p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

#articles article p:first-of-type {
  margin-bottom: 10px;
}

#articles article a {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.24);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  text-decoration: none;
}

#articles article a:hover,
#articles article a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.34);
  filter: brightness(1.06);
  text-decoration: none;
  color: #fff;
}

#faq h3 {
  margin: 1.5em 0 0.4em;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  cursor: default;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq h3:hover {
  background: var(--brand-soft);
  border-color: var(--border);
  transform: translateX(3px);
}

#faq h3 + p {
  padding: 0 4px 4px 18px;
  margin-top: 0.5em;
}

#howto h4 {
  position: relative;
  padding-left: 30px;
  margin-top: 1.3em;
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

#howto h4::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

#contact address {
  display: grid;
  gap: 10px;
  padding: 22px;
  margin: 1.2em 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.06), rgba(255, 107, 129, 0.10));
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#contact address p {
  margin: 0;
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
}

#contact address p::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

#sitemap ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul li a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  text-decoration: none;
}

#sitemap ul li a:hover,
#sitemap ul li a:focus-visible {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.26);
  text-decoration: none;
}

#sitemap h3 {
  margin-top: 1.6em;
}

#legal h3 {
  margin-top: 1.4em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-soft);
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 36px 24px 44px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(255, 107, 129, 0.28), transparent 60%),
    linear-gradient(135deg, #1f2329, #2b1016 60%, #3d0b16);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  max-width: var(--maxw);
  margin: 0 auto 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

footer p:first-child {
  font-weight: 600;
  color: #fff;
}

footer a {
  color: var(--brand-light);
}

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

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

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

section {
  animation: fadeUp 0.7s var(--ease) both;
}

section:nth-of-type(1) { animation-delay: 0.02s; }
section:nth-of-type(2) { animation-delay: 0.06s; }
section:nth-of-type(3) { animation-delay: 0.10s; }
section:nth-of-type(4) { animation-delay: 0.14s; }
section:nth-of-type(5) { animation-delay: 0.18s; }
section:nth-of-type(6) { animation-delay: 0.22s; }
section:nth-of-type(7) { animation-delay: 0.26s; }
section:nth-of-type(8) { animation-delay: 0.30s; }
section:nth-of-type(9) { animation-delay: 0.34s; }
section:nth-of-type(10) { animation-delay: 0.38s; }
section:nth-of-type(11) { animation-delay: 0.42s; }
section:nth-of-type(12) { animation-delay: 0.46s; }

#articles article {
  animation: fadeUp 0.6s var(--ease) both;
}

#articles article:nth-of-type(1) { animation-delay: 0.05s; }
#articles article:nth-of-type(2) { animation-delay: 0.10s; }
#articles article:nth-of-type(3) { animation-delay: 0.15s; }
#articles article:nth-of-type(4) { animation-delay: 0.20s; }
#articles article:nth-of-type(5) { animation-delay: 0.25s; }
#articles article:nth-of-type(6) { animation-delay: 0.30s; }
#articles article:nth-of-type(7) { animation-delay: 0.35s; }
#articles article:nth-of-type(8) { animation-delay: 0.40s; }
#articles article:nth-of-type(9) { animation-delay: 0.45s; }
#articles article:nth-of-type(10) { animation-delay: 0.50s; }

#home figure svg {
  animation: floatSoft 7s ease-in-out infinite;
}

header nav a {
  animation: fadeIn 0.6s var(--ease) both;
}

header nav a:nth-child(1) { animation-delay: 0.04s; }
header nav a:nth-child(2) { animation-delay: 0.08s; }
header nav a:nth-child(3) { animation-delay: 0.12s; }
header nav a:nth-child(4) { animation-delay: 0.16s; }
header nav a:nth-child(5) { animation-delay: 0.20s; }
header nav a:nth-child(6) { animation-delay: 0.24s; }
header nav a:nth-child(7) { animation-delay: 0.28s; }
header nav a:nth-child(8) { animation-delay: 0.32s; }
header nav a:nth-child(9) { animation-delay: 0.36s; }

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

@media (max-width: 900px) {
  main {
    padding: 24px 16px 44px;
  }
  section {
    padding: 24px 20px 26px;
    border-radius: var(--radius);
  }
  #home > h1 {
    padding: 32px 22px 0;
  }
  #home > p {
    padding: 0 22px;
    font-size: 0.94rem;
  }
  #home figure {
    padding: 0 14px 18px;
  }
  #articles {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }
  .topbar {
    padding: 7px 16px;
    font-size: 0.76rem;
  }
  .topbar span {
    width: 100%;
  }
  header nav {
    padding: 0 12px 10px;
    gap: 5px;
  }
  header nav a {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  main {
    padding: 18px 12px 36px;
  }
  section {
    padding: 20px 16px 22px;
    margin-bottom: 20px;
    border-radius: var(--radius);
  }
  h2 {
    padding-left: 13px;
  }
  h2::before {
    width: 4px;
  }
  #home > h1 {
    padding: 26px 16px 0;
    font-size: 1.42rem;
  }
  #home > p {
    padding: 0 16px;
    font-size: 0.9rem;
  }
  #home > p:last-of-type {
    padding-bottom: 24px;
  }
  #home figure {
    padding: 0 10px 14px;
  }
  #home figcaption {
    font-size: 0.76rem;
  }
  #articles {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #articles article {
    padding: 18px 16px 16px;
  }
  #contact address {
    padding: 16px;
  }
  #sitemap ul {
    gap: 8px;
  }
  #sitemap ul li a {
    padding: 6px 13px;
    font-size: 0.84rem;
  }
  footer {
    padding: 28px 16px 34px;
  }
  footer p {
    font-size: 0.8rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --maxw: 1240px;
  }
}

::selection {
  background: rgba(200, 16, 46, 0.22);
  color: var(--ink);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--brand));
  background-clip: padding-box;
}