:root {
  --bg: #f4f5f9;
  --bg-elevated: #ffffff;
  --bg-soft: #eef0f7;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.88);
  --border: rgba(26, 26, 46, 0.1);
  --border-strong: rgba(26, 26, 46, 0.18);
  --text: #1a1a2e;
  --text-secondary: #4a4a63;
  --text-muted: #7a7a94;
  --accent: #e94560;
  --accent-2: #533483;
  --accent-3: #0f3460;
  --accent-soft: rgba(233, 69, 96, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 42%, #0f3460 72%, #533483 100%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #533483 100%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d18;
    --bg-elevated: #16162a;
    --bg-soft: #1c1c33;
    --surface-glass: rgba(22, 22, 42, 0.68);
    --surface-glass-strong: rgba(22, 22, 42, 0.86);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #eef0f7;
    --text-secondary: #b8bcd0;
    --text-muted: #8a8ea8;
    --accent-soft: rgba(233, 69, 96, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px 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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(233, 69, 96, 0.08), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(83, 52, 131, 0.1), transparent 46%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

a:hover {
  color: var(--accent-2);
}

@media (prefers-color-scheme: dark) {
  a:hover {
    color: #ff7a90;
  }
}

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

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.75rem);
  margin: 0 0 1rem;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 1.75rem 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--text-secondary);
}

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

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

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

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

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

.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;
}

/* ============ 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(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.28);
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.logo-text {
  white-space: nowrap;
}

.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: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.site-search input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text);
  width: 180px;
  min-width: 0;
  font-family: inherit;
  outline: none;
}

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.4);
}

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

/* ============ Main layout ============ */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
}

section {
  margin: 0 0 24px;
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

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

section + section {
  animation-delay: 0.05s;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  section {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 20px 0 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: none;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text-secondary);
  padding: 2px 4px;
  border-radius: 6px;
}

.breadcrumb a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: fadeUp 0.7s var(--ease) both, heroShift 16s ease-in-out infinite alternate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  color: #f4f5f9;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.4), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

@keyframes heroShift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.1rem;
}

.hero-lead {
  color: rgba(244, 245, 249, 0.86);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  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: #ffffff;
  color: #1a1a2e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  color: #1a1a2e;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(-1px) scale(0.99);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease);
}

.hero-visual:hover svg {
  transform: translateY(-6px) rotate(-1deg);
}

/* ============ Intro / Timeline ============ */
.timeline {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0 0 0 1.5rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  opacity: 0.5;
}

.timeline li {
  position: relative;
  padding: 0.5rem 0 0.5rem 0.75rem;
  margin: 0;
  transition: transform 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.timeline li:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

/* ============ Concept lists ============ */
#concept ul li {
  padding-left: 0.25rem;
}

#concept ul li strong {
  color: var(--accent);
}

/* ============ Products / Solutions cards ============ */
#products h3,
#solutions h3,
#applications h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#products h3::before,
#solutions h3::before,
#applications h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

#products ul:last-of-type {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}

#products ul:last-of-type li {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#products ul:last-of-type li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  background: var(--bg-elevated);
}

/* ============ Cases ============ */
#cases blockquote {
  position: relative;
  margin: 0.9rem 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem;
  right: 1rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
}

/* ============ News ============ */
#news article {
  padding: 1.1rem 1.25rem;
  margin: 0 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

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

#news article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

#news article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

/* ============ Articles ============ */
#articles > article {
  position: relative;
  padding: 1.25rem 1.4rem;
  margin: 0 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

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

#articles > article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  transition: color 0.3s var(--ease);
}

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

#articles .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

#articles > article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

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

#articles > article > a:hover {
  background: var(--grad-accent);
  color: #ffffff;
  transform: translateX(2px);
}

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: howto;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 56px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

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

#howto ul {
  padding-left: 1.2rem;
}

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 10px;
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

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

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

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

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

#faq details p {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ Notes ============ */
#notes h3 {
  color: var(--accent-2);
}

@media (prefers-color-scheme: dark) {
  #notes h3 {
    color: #b8a3e8;
  }
}

/* ============ Team ============ */
.team-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.team-list li {
  margin: 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.team-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.team-list li strong {
  display: inline-block;
  color: var(--accent);
  margin-right: 4px;
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  word-break: break-word;
}

.contact-list li:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============ Sitemap & Links ============ */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 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 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--grad-accent);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

/* ============ Footer ============ */
#footer {
  margin-top: 40px;
  padding: 0 20px 40px;
  background: linear-gradient(180deg, transparent, rgba(83, 52, 131, 0.06));
}

#footer > section {
  max-width: var(--max-w);
  margin: 0 auto 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#footer > section h2 {
  font-size: 1.15rem;
}

#footer > section p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.back-to-top:hover {
  background: var(--grad-accent);
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(233, 69, 96, 0.4);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .site-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-search input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: auto;
  }

  body {
    font-size: 15px;
  }

  main {
    padding: 0 14px 32px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  nav[aria-label="主导航"] {
    order: 4;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
  }

  .nav-list a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 7px 11px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  section {
    border-radius: var(--radius-md);
    padding: 18px 16px;
  }

  .hero {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    padding: 11px 18px;
    font-size: 0.9rem;
  }

  h2 {
    padding-left: 0.85rem;
  }

  h2::before {
    width: 4px;
  }

  #products ul:last-of-type,
  .team-list {
    grid-template-columns: 1fr;
  }

  #articles > article {
    padding: 1rem 1.1rem;
  }

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

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  #footer {
    padding: 0 14px 32px;
  }

  .footer-bottom {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .logo svg {
    width: 34px;
    height: 34px;
  }

  .site-search button {
    padding: 8px 14px;
  }

  .sitemap-list a,
  .friend-links a {
    padding: 7px 13px;
    font-size: 0.82rem;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  .back-to-top,
  .site-search,
  .hero-visual {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  section {
    box-shadow: none;
    border: 1px solid #cccccc;
    break-inside: avoid;
    page-break-inside: avoid;
    animation: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}