:root {
  --bg: #f4f7fb;
  --bg-soft: #eaf0f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-border: rgba(18, 64, 107, 0.12);
  --text: #10233a;
  --text-soft: #4a5f78;
  --text-muted: #6b7f96;
  --primary: #12406b;
  --primary-strong: #0b1a2b;
  --accent: #f2b134;
  --accent-soft: rgba(242, 177, 52, 0.16);
  --link: #155a96;
  --shadow-sm: 0 4px 14px rgba(16, 35, 58, 0.08);
  --shadow-md: 0 12px 34px rgba(16, 35, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 35, 58, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --glass-blur: 16px;
  --header-h: 72px;
  --maxw: 1200px;
  --grad-hero: linear-gradient(135deg, #0b1a2b 0%, #12406b 42%, #1d6fa8 72%, #f2b134 140%);
  --grad-accent: linear-gradient(135deg, #f2b134 0%, #ffcf6b 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(234, 240, 248, 0.66));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.32s;
}

html[data-theme="dark"],
body.dark-mode,
body.dark {
  --bg: #08121f;
  --bg-soft: #0b1a2b;
  --surface: rgba(18, 34, 54, 0.66);
  --surface-solid: #0f2136;
  --surface-border: rgba(148, 184, 220, 0.16);
  --text: #e8f1fb;
  --text-soft: #b7c9dc;
  --text-muted: #8ba3bd;
  --primary: #3d8fd1;
  --primary-strong: #0b1a2b;
  --accent: #f2b134;
  --accent-soft: rgba(242, 177, 52, 0.18);
  --link: #7cc0f5;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-card: linear-gradient(160deg, rgba(24, 44, 70, 0.9), rgba(12, 26, 44, 0.7));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08121f;
    --bg-soft: #0b1a2b;
    --surface: rgba(18, 34, 54, 0.66);
    --surface-solid: #0f2136;
    --surface-border: rgba(148, 184, 220, 0.16);
    --text: #e8f1fb;
    --text-soft: #b7c9dc;
    --text-muted: #8ba3bd;
    --primary: #3d8fd1;
    --link: #7cc0f5;
    --grad-card: linear-gradient(160deg, rgba(24, 44, 70, 0.9), rgba(12, 26, 44, 0.7));
  }
}

*,
*::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:
    radial-gradient(1200px 600px at 8% -10%, rgba(29, 111, 168, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(242, 177, 52, 0.14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(242, 177, 52, 0.7);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.08rem; }

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

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.5em;
  color: var(--text-soft);
}

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

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--grad-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-style: normal;
}

blockquote p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

.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);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 2px 20px rgba(11, 26, 43, 0.06);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

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

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

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-md);
}

.brand-name {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  flex: 1 1 auto;
}

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-soft);
  position: relative;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width var(--speed) var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-search input[type="search"] {
  width: 190px;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), width var(--speed) var(--ease);
}

.site-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.site-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  width: 220px;
}

.site-search button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b1a2b;
  background: var(--grad-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(242, 177, 52, 0.35);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), filter var(--speed) var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(242, 177, 52, 0.45);
  filter: brightness(1.04);
}

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

.theme-toggle,
.menu-toggle {
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--primary);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* ============ Layout ============ */
main {
  display: block;
}

main > section,
main > nav.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main > section {
  margin-top: clamp(40px, 6vw, 72px);
}

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

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

main > section > h2 + p {
  font-size: 1.02rem;
  max-width: 78ch;
}

/* ============ Hero ============ */
.hero {
  max-width: none !important;
  margin-top: 0 !important;
  padding: clamp(28px, 5vw, 56px) 24px clamp(32px, 5vw, 64px) !important;
  background: var(--grad-hero);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(242, 177, 52, 0.32), transparent 62%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  animation: floaty 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(29, 111, 168, 0.45), transparent 65%);
  border-radius: 50%;
  z-index: -1;
  animation: floaty 16s ease-in-out infinite alternate-reverse;
}

@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 26px, 0) scale(1.08); }
}

.hero-slides {
  max-width: var(--maxw);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.hero-slides .slide {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.hero-slides .slide:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(242, 177, 52, 0.6);
}

.hero-slides .slide h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: #fff;
}

.hero-slides .slide p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg);
  animation: rise 0.8s var(--ease) both;
}

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

.hero-main h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  max-width: 24ch;
}

.hero-lead {
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

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

.btn-primary {
  color: #0b1a2b;
  background: var(--grad-accent);
  box-shadow: 0 10px 28px rgba(242, 177, 52, 0.42);
}

.btn-primary:hover {
  color: #0b1a2b;
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(242, 177, 52, 0.55);
}

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

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
}

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

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

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

.hero-stats .num {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin-top: 24px !important;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  list-style: none;
  border-radius: var(--radius-pill);
  background: var(--grad-card);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  width: fit-content;
  font-size: 0.88rem;
}

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
}

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

/* ============ Content cards ============ */
#intro,
#products,
#scenes,
#cases,
#news,
#knowledge,
#howto,
#faq,
#solutions,
#about,
#contact {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow-md);
}

#intro h3,
#products h3,
#scenes h3,
#cases h3,
#news h3,
#knowledge h3,
#howto h3,
#solutions h3,
#about h3 {
  margin-top: 1.8em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.35;
}

#intro h3:first-of-type,
#products h3:first-of-type {
  margin-top: 1.2em;
}

#intro h4,
#products h4 {
  margin-top: 1.4em;
  color: var(--primary);
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(18, 64, 107, 0.35));
}

.timeline li {
  position: relative;
  margin-bottom: 1em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.timeline li strong {
  color: var(--primary);
}

/* Team definition list */
.team {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0;
  margin: 1.4em 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.team dt {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-soft);
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--speed) var(--ease);
}

.team dd {
  margin: 0;
  padding: 14px 18px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--speed) var(--ease);
}

.team dt:last-of-type,
.team dd:last-of-type {
  border-bottom: none;
}

.team dt:hover,
.team dd:hover {
  background: rgba(242, 177, 52, 0.1);
}

/* ============ Posts ============ */
.post {
  margin: 0 0 18px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.post:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 177, 52, 0.55);
  box-shadow: var(--shadow-md);
}

.post h3 {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  font-size: 1.15rem;
}

.post h3 a {
  color: var(--text);
}

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

.post .meta {
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.post > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.post > a::after {
  content: "→";
  transition: transform var(--speed) var(--ease);
}

.post > a:hover {
  color: #0b1a2b;
  background: var(--grad-accent);
  transform: translateX(2px);
}

.post > a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  padding: 4px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

#faq details:hover {
  border-color: rgba(242, 177, 52, 0.5);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 177, 52, 0.6);
}

#faq summary {
  position: relative;
  padding: 14px 34px 14px 0;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--speed) var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
}

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

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

#faq details p {
  margin: 0 0 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--surface-border);
  animation: fadeIn 0.35s var(--ease);
}

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

/* ============ Contact ============ */
#contact address p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

#contact address p:hover {
  transform: translateX(4px);
  border-color: rgba(242, 177, 52, 0.5);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(36px, 5vw, 60px) 24px 28px;
  background: linear-gradient(180deg, rgba(11, 26, 43, 0.96), #0b1a2b 60%);
  color: #dbe7f3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: -60% auto auto 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 177, 52, 0.14), transparent 62%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 32px;
  position: relative;
}

#site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: #fff;
  letter-spacing: 0.04em;
}

#site-footer h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--grad-accent);
}

#site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-footer li {
  margin-bottom: 8px;
}

#site-footer a {
  color: #b9cbdd;
  font-size: 0.92rem;
  position: relative;
  transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}

#site-footer a:hover {
  color: var(--accent);
  padding-left: 6px;
}

#site-footer p {
  color: #a9bccf;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.84rem !important;
  color: #8ba3bd !important;
}

/* ============ Scroll reveal ============ */
main > section,
.hero-main,
.post,
.timeline li,
.team dt,
.team dd,
#faq details {
  animation: revealUp 0.7s var(--ease) both;
}

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

main > section:nth-of-type(2) { animation-delay: 0.04s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.12s; }
main > section:nth-of-type(5) { animation-delay: 0.16s; }

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  .site-search input[type="search"] {
    width: 150px;
  }

  .site-search input[type="search"]:focus {
    width: 170px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  #legal-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

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

  .main-nav {
    order: 10;
    flex-basis: 100%;
    display: none;
  }

  .main-nav.is-open {
    display: block;
    animation: fadeIn 0.3s var(--ease);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--surface-border);
  }

  .main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }

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

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-search {
    order: 11;
    flex-basis: 100%;
    display: none;
  }

  .site-search.is-open {
    display: flex;
    padding-bottom: 8px;
  }

  .site-search input[type="search"],
  .site-search input[type="search"]:focus {
    width: 100%;
    flex: 1;
  }

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

  .team {
    grid-template-columns: 1fr;
  }

  .team dt {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .team dd {
    padding-top: 4px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  main > section,
  main > nav.breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .hero-main {
    padding: 22px 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats li {
    padding: 12px 10px;
  }

  #intro,
  #products,
  #scenes,
  #cases,
  #news,
  #knowledge,
  #howto,
  #faq,
  #solutions,
  #about,
  #contact {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .post {
    padding: 18px 16px;
  }

  #faq details {
    padding: 2px 14px;
  }

  .breadcrumb ol {
    border-radius: var(--radius-md);
    padding: 8px 14px;
  }

  #site-footer {
    padding: 32px 16px 22px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1rem;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  .theme-toggle,
  .menu-toggle,
  .site-search,
  .hero-actions,
  .breadcrumb {
    display: none !important;
  }

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

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