:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --text: #1a1a2e;
  --text-soft: #4a4a5e;
  --primary: #e94560;
  --primary-dark: #c73650;
  --accent: #0f3460;
  --border: #e3e5ec;
  --shadow: 0 6px 24px rgba(26, 26, 46, .08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --glass-bg: rgba(255, 255, 255, .65);
  --glass-border: rgba(255, 255, 255, .5);
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #0f3460 55%, #e94560 140%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #c73650 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, .08), rgba(15, 52, 96, .08));
}

html[data-theme="dark"] {
  --bg: #12121f;
  --bg-alt: #1a1a2e;
  --text: #eef0f6;
  --text-soft: #b4b8c8;
  --primary: #ff5c78;
  --primary-dark: #e94560;
  --accent: #5b8def;
  --border: #2a2a40;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
  --glass-bg: rgba(26, 26, 46, .62);
  --glass-border: rgba(255, 255, 255, .1);
  --grad-hero: linear-gradient(135deg, #0d0d1a 0%, #12121f 50%, #2a1020 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 120, .1), rgba(91, 141, 239, .1));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  font-weight: 800;
  color: var(--text);
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 8px;
}

p {
  margin-bottom: 14px;
  color: var(--text-soft);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  color: #fff;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
}

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

.logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform .3s ease;
}

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

.logo span b {
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-alt);
  color: var(--primary);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(.95);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 40px;
  transition: width .3s ease, opacity .3s ease, padding .3s ease, border-color .2s ease;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--text-soft);
  opacity: .7;
}

.search-box.open input {
  width: 180px;
  opacity: 1;
  padding: 0 12px;
  margin-right: 4px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.hamburger {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-soft);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--border);
}

.breadcrumb li:last-child::after {
  content: "";
}

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: 72px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, .3), transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 141, 239, .35), transparent 70%);
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite alternate;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-30px, 30px) scale(1.12);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: -.5px;
}

.hero h1 em {
  font-style: normal;
  color: #ff8fa3;
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(233, 69, 96, .35);
  border-radius: 4px;
  z-index: -1;
}

.hero p.lead {
  font-size: 17px;
  color: #c9cde0;
  margin-bottom: 26px;
  max-width: 560px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(233, 69, 96, .35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(233, 69, 96, .45);
}

.btn-primary:active {
  transform: translateY(0) scale(.98);
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #ff8fa3;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-stats .stat span {
  font-size: 13px;
  color: #a8adc4;
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  background: #0d0d1a;
  border: 1px solid rgba(255, 255, 255, .08);
}

.slides {
  position: relative;
  aspect-ratio: 4 / 3;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: -10px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.slide-content h3 {
  font-size: 19px;
  margin-bottom: 6px;
  color: #fff;
}

.slide-content p {
  font-size: 13px;
  color: #c9cde0;
  margin-bottom: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}

.carousel-dots button:hover {
  background: rgba(255, 255, 255, .7);
}

.carousel-dots button.active {
  background: #fff;
  width: 22px;
}

/* ============ Sections ============ */
section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-head .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(233, 69, 96, .1);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .5px;
}

.section-head h2 {
  font-size: 30px;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.section-head p {
  font-size: 16px;
}

/* ============ Anchor Nav ============ */
.anchor-nav {
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 800;
}

.anchor-nav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.anchor-nav a {
  display: block;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--text-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.anchor-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============ Grids ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* ============ Cards ============ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, .4);
}

.card:hover::before {
  opacity: 1;
}

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

.card .ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(233, 69, 96, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform .3s ease, background .3s ease;
}

.card:hover .ico {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(233, 69, 96, .18);
}

.card .ico svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.card p {
  font-size: 15px;
  margin-bottom: 0;
}

.card h3 + p {
  margin-bottom: 0;
}

.card h4 {
  color: var(--text);
}

/* ============ Article List ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, .35);
}

.article-thumb {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  position: relative;
  overflow: hidden;
}

.article-thumb svg {
  width: 100%;
  height: 100%;
  transition: transform .5s ease;
}

.article-card:hover .article-thumb svg {
  transform: scale(1.06);
}

.article-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-meta .cat {
  color: var(--primary);
  font-weight: 700;
}

.article-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  transition: color .2s ease;
}

.article-card:hover h3 {
  color: var(--primary);
}

.article-card p {
  font-size: 14.5px;
  margin-bottom: 14px;
  flex: 1;
}

.read-more {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s ease;
}

.read-more:hover {
  gap: 8px;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item:hover {
  border-color: rgba(233, 69, 96, .35);
}

.faq-item.open {
  border-color: rgba(233, 69, 96, .5);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: color .2s ease;
}

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

.faq-q .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform .3s ease;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.faq-q .plus::before {
  width: 14px;
  height: 2px;
  top: 10px;
  left: 4px;
}

.faq-q .plus::after {
  width: 2px;
  height: 14px;
  top: 4px;
  left: 10px;
}

.faq-item.open .plus {
  transform: rotate(90deg);
}

.faq-item.open .plus::after {
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4, 0, .2, 1);
}

.faq-a-inner {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.85;
}

/* ============ HowTo Steps ============ */
.steps {
  counter-reset: step;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding: 0 0 28px 66px;
  border-left: 2px dashed var(--border);
  margin-left: 24px;
}

.step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -24px;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 69, 96, .35);
  transition: transform .3s ease;
}

.step:hover::before {
  transform: scale(1.08);
}

.step h4 {
  margin-top: 6px;
  font-size: 17px;
}

.step p {
  font-size: 15px;
  margin-bottom: 0;
}

/* ============ Case & Quote ============ */
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, .35);
}

.case-card .case-tag {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 700;
}

.case-card h4 {
  margin: 0;
  font-size: 17px;
}

.case-card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

.quote {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 15px;
  color: var(--text-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}

.quote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.quote footer {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
}

.quote footer span {
  color: var(--text-soft);
  font-weight: 400;
}

/* ============ News ============ */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-list li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: padding-left .25s ease;
}

.news-list li:hover {
  padding-left: 6px;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list time {
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  width: 100px;
}

.news-list a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
}

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

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-info dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 16px;
  margin-top: 18px;
}

.contact-info dt {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

.contact-info dd {
  color: var(--text-soft);
  font-size: 15px;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-soft);
  opacity: .65;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, .12);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

/* ============ Footer ============ */
.site-footer {
  background: #0f1020;
  color: #a8adc4;
  padding: 56px 0 0;
  font-size: 14.5px;
}

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #a8adc4;
  transition: color .2s ease, padding-left .2s ease;
}

.site-footer a:hover {
  color: #ff8fa3;
  padding-left: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: #a8adc4;
}

.footer-bottom {
  border-top: 1px solid #23243a;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7d8299;
}

.footer-bottom a {
  color: #7d8299;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, box-shadow .3s ease;
  z-index: 900;
  box-shadow: 0 6px 18px rgba(233, 69, 96, .4);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(233, 69, 96, .5);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ Inline style helpers (from HTML) ============ */
#sitemap ul[style],
#sitemap .reveal ul {
  columns: 2;
  column-gap: 24px;
}

#sitemap ul li {
  margin-bottom: 8px;
  break-inside: avoid;
}

#sitemap ul a {
  color: var(--text-soft);
  font-size: 15px;
}

#sitemap ul a:hover {
  color: var(--primary);
}

#products .grid-2,
#cases .grid-2 {
  margin-top: 36px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-grid {
    gap: 36px;
  }

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p.lead {
    max-width: 100%;
  }

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

  .article-list {
    grid-template-columns: 1fr;
  }

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

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

  .section-head h2 {
    font-size: 26px;
  }

  .carousel {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

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

  html {
    scroll-padding-top: 76px;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: none;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 12px;
    font-size: 15.5px;
  }

  .hamburger {
    display: flex;
  }

  .search-box.open input {
    width: 130px;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero p.lead {
    font-size: 15.5px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stats .stat b {
    font-size: 24px;
  }

  .hero-stats .stat span {
    font-size: 12px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .section-head p {
    font-size: 15px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .news-list li {
    flex-direction: column;
    gap: 4px;
  }

  .news-list time {
    width: auto;
  }

  section {
    padding: 48px 0;
  }

  .anchor-nav {
    top: var(--header-h);
  }

  .anchor-nav a {
    padding: 11px 12px;
    font-size: 13.5px;
  }

  .step {
    padding-left: 56px;
    margin-left: 20px;
  }

  .step::before {
    width: 40px;
    height: 40px;
    left: -21px;
    font-size: 16px;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-a-inner {
    padding: 0 18px 18px;
    font-size: 14.5px;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-info dl {
    grid-template-columns: 76px 1fr;
    gap: 10px 12px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  #sitemap ul[style],
  #sitemap .reveal ul {
    columns: 1;
  }

  .card {
    padding: 22px;
  }

  .article-body {
    padding: 18px 18px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 24px;
  }

  .logo span {
    font-size: 18px;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .search-box.open input {
    width: 100px;
  }

  .hero-cta .btn {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
  }

  .section-head h2 {
    font-size: 21px;
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============ Print ============ */
@media print {
  .site-header,
  .anchor-nav,
  .back-top,
  .hero::before,
  .hero::after,
  .breadcrumb,
  .contact-form {
    display: none !important;
  }

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

  .hero {
    background: #fff;
    color: #000;
    padding: 20px 0;
  }

  .hero h1,
  .hero p.lead,
  .hero-stats .stat b {
    color: #000;
  }

  .card,
  .article-card,
  .faq-item {
    border-color: #ccc;
    box-shadow: none;
    break-inside: avoid;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Focus visible ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============ Selection ============ */
::selection {
  background: rgba(233, 69, 96, .25);
  color: var(--text);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: rgba(233, 69, 96, .35);
  border-radius: 6px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 69, 96, .6);
}