:root {
  --brand: #E85D2F;
  --brand-deep: #C9471F;
  --brand-soft: #FF8A5B;
  --accent: #FFD166;
  --accent-deep: #F0B429;
  --teal: #2A9D8F;
  --plum: #6D597A;
  --ink: #1F1B18;
  --ink-soft: #4A423C;
  --ink-mute: #7A6F67;
  --line: rgba(232, 93, 47, 0.16);
  --bg: #FFF9F4;
  --bg-alt: #FFF1E6;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 2px 8px rgba(60, 32, 16, 0.06);
  --shadow-md: 0 10px 30px rgba(60, 32, 16, 0.1);
  --shadow-lg: 0 24px 60px rgba(60, 32, 16, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --brand: #FF7A4D;
  --brand-deep: #E85D2F;
  --brand-soft: #FF9E7A;
  --accent: #FFD166;
  --accent-deep: #E8B94A;
  --teal: #4FC3B4;
  --plum: #A48CB8;
  --ink: #F5EDE6;
  --ink-soft: #D6C9BF;
  --ink-mute: #A6998F;
  --line: rgba(255, 138, 91, 0.22);
  --bg: #14100D;
  --bg-alt: #1C1613;
  --surface: #211A16;
  --surface-glass: rgba(33, 26, 22, 0.72);
  --surface-glass-strong: rgba(33, 26, 22, 0.92);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px 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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 209, 102, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(232, 93, 47, 0.14), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  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 {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.05rem; }

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

ul, ol { padding-left: 1.35em; margin: 0 0 1em; }
li { margin-bottom: 0.45em; color: var(--ink-soft); }

strong { color: var(--ink); font-weight: 700; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: var(--accent);
  color: #3A2200;
}

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--surface-glass-strong);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  padding: 4px;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
  text-decoration: none;
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(232, 93, 47, 0.35);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#site-header nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list li { margin: 0; }

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent-deep));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  background: rgba(232, 93, 47, 0.08);
  text-decoration: none;
}

.nav-list a:hover::after { width: 60%; }

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 93, 47, 0.14);
}

.site-search input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  width: 190px;
  border-radius: 999px;
  outline: none;
  transition: width 0.3s var(--ease);
}

.site-search input::placeholder { color: var(--ink-mute); }

.site-search input:focus { width: 230px; }

.site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  padding: 8px 18px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 93, 47, 0.4);
  filter: brightness(1.05);
}

.site-search button:active { transform: translateY(0); }

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  flex-shrink: 0;
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(-8deg);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}

#menu-toggle { display: none; }

/* ---------- Main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

main > section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 8px 14px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.breadcrumb li {
  margin: 0;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-mute);
  opacity: 0.6;
}

.breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(232, 93, 47, 0.96) 0%, rgba(201, 71, 31, 0.92) 45%, rgba(109, 89, 122, 0.9) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 209, 102, 0.5), transparent 55%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255, 209, 102, 0.35), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.25), transparent 40%);
  z-index: -1;
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { transform: scale(1) rotate(0deg); opacity: 0.9; }
  to { transform: scale(1.15) rotate(4deg); opacity: 1; }
}

.hero-text { color: #fff; }

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 18px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 26px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #3A2200;
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(255, 209, 102, 0.6);
  color: #2A1800;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.03);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-stats li {
  margin: 0;
  padding: 14px 10px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatY 6s ease-in-out infinite;
}

.hero-visual svg {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  background: #FFF4EC;
}

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

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--surface-glass-strong), var(--bg-alt));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  flex: 0 0 100%;
  padding: 40px 56px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide h2 {
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--brand), var(--plum));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide p { margin: 0; max-width: 640px; }

.carousel-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-glass-strong);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.carousel-controls button:hover {
  background: var(--brand);
  color: #fff;
  transform: scale(1.08);
}

/* ---------- Generic content cards ---------- */
#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#notes,
#contact,
#sitemap,
#links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

#intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#notes:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent), transparent);
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 93, 47, 0.14);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.timeline li:hover {
  transform: translateX(6px);
}

.timeline li:hover::before {
  background: var(--brand);
  transform: scale(1.15);
}

.timeline strong {
  color: var(--brand);
  margin-right: 4px;
}

/* ---------- News list ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.news-list time {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.news-list a {
  font-weight: 600;
  color: var(--ink);
}

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

/* ---------- Articles ---------- */
#articles > article {
  position: relative;
  padding: 26px 26px 22px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

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

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

#articles > article h3 {
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}

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

.meta {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

#articles > article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(232, 93, 47, 0.1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), gap 0.3s var(--ease);
}

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

#articles > article > a:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

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

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

#faq details[open] {
  background: var(--surface);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  list-style: none;
  transition: color 0.3s var(--ease), background 0.3s 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%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(232, 93, 47, 0.12);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--brand);
  color: #fff;
}

#faq summary:hover { color: var(--brand); }

#faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  animation: fadeSlide 0.4s var(--ease);
}

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

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 1.5em;
}

.contact-list li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-3px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ---------- Sitemap & links ---------- */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li { margin: 0; }

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(232, 93, 47, 0.35);
}

/* ---------- Footer ---------- */
#site-footer {
  margin-top: 40px;
  background: linear-gradient(160deg, #2B1D16 0%, #1A110C 100%);
  color: #E9DDD4;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 47, 0.28), transparent 65%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.footer-about h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-about p,
.footer-meta p {
  color: rgba(233, 221, 212, 0.78);
  font-size: 0.92rem;
}

.footer-meta h3 {
  color: var(--accent);
  font-size: 1rem;
  margin: 22px 0 8px;
}

.footer-meta h3:first-child { margin-top: 0; }

.footer-updated {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem !important;
  color: rgba(233, 221, 212, 0.6) !important;
}

#site-footer a { color: var(--accent); }
#site-footer a:hover { color: #fff; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(232, 93, 47, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.3s var(--ease);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 34px rgba(232, 93, 47, 0.6);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-inner { gap: 12px; }
  .site-search input { width: 150px; }
  .site-search input:focus { width: 180px; }
  .hero { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 360px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  #menu-toggle { display: inline-flex; }

  #site-header nav {
    order: 10;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease);
    opacity: 0;
  }

  #site-header.nav-open nav {
    max-height: 520px;
    opacity: 1;
    padding-bottom: 14px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid transparent;
  }

  .nav-list a::after { display: none; }

  .nav-list a:hover {
    border-color: var(--line);
    transform: translateX(4px);
  }

  .site-search {
    order: 9;
    flex: 1 1 auto;
  }

  .site-search input { width: 100%; min-width: 0; }
  .site-search input:focus { width: 100%; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .slide { padding: 32px 28px; }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #notes,
  #contact,
  #sitemap,
  #links {
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .header-inner { padding: 0 14px; min-height: 64px; }
  .brand-name { font-size: 1.05rem; }
  .brand svg { width: 34px; height: 34px; }
  main { padding: 18px 14px 48px; }
  main > section { margin-bottom: 40px; }
  .hero { padding: 28px 20px; border-radius: var(--radius-lg); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-secondary { width: 100%; }
  .hero-stats { gap: 8px; }
  .hero-stats strong { font-size: 1.25rem; }
  .hero-stats span { font-size: 0.72rem; }
  .hero-visual { display: none; }
  .news-list li { flex-direction: column; gap: 4px; }
  .slide { padding: 26px 20px; min-height: 200px; }
  .carousel-controls { right: 12px; bottom: 12px; }
  #articles > article { padding: 20px 18px; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-inner { padding: 40px 16px 32px; }
  #back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .breadcrumb ol { border-radius: var(--radius-md); }
}

@media (max-width: 380px) {
  .site-search button { padding: 8px 12px; font-size: 0.82rem; }
  .hero-stats { grid-template-columns: 1fr; }
}