/* ===== 热砂传播 · Material Design 视觉风格 ===== */
:root {
  /* Material 调色板 */
  --md-primary: #1976d2;
  --md-primary-dark: #1565c0;
  --md-primary-light: #42a5f5;
  --md-on-primary: #ffffff;
  --md-bg: #eef2fa;
  --md-surface: #ffffff;
  --md-zone: #dae4f7;
  --md-ink: #202124;
  --md-muted: #5f6368;

  /* Material 层级阴影 (elevation) —— 作为视觉浮起语言 */
  --elev-1: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
  --elev-2: 0 1px 2px rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15);
  --elev-3: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
  --elev-4: 0 2px 3px rgba(60, 64, 67, .3), 0 6px 10px 4px rgba(60, 64, 67, .15);
  --elev-8: 0 4px 5px rgba(60, 64, 67, .3), 0 8px 12px 6px rgba(60, 64, 67, .15);

  --radius-card: 16px;
  --radius-btn: 24px;
  --md-ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--md-primary-dark);
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--md-ink);
  background-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.rs-page {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ===== Hero ===== */
.rs-hero {
  position: relative;
  padding-top: calc(96px + constant(safe-area-inset-top, 0px));
  padding-top: calc(96px + env(safe-area-inset-top, 0px));
  padding-right: 20px;
  padding-bottom: 130px;
  padding-left: 20px;
  text-align: center;
  color: var(--md-on-primary);
  background:
    linear-gradient(180deg, var(--md-primary-dark) 0%, var(--md-primary) 58%, var(--md-primary-light) 100%);
  background-color: var(--md-primary-dark);
  overflow: hidden;
}

/* Logo 徽标 */
.rs-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--md-surface);
  border-radius: 24px;
  box-shadow: var(--elev-3);
}

.rs-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-title {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
}

/* ===== logover 专用（图片 logo） ===== */
.rs-title--logo {
  line-height: 0;
  margin: 0 auto 16px;
}

.rs-title--logo img {
  display: block;
  width: clamp(168px, 25vw, 224px);
  height: auto;
  margin: 0 auto;
}

.rs-subtitle {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(18px, 2.76vw, 23px);
  font-weight: 400;
  opacity: .92;
}

.rs-subtitle b {
  font-weight: 700;
}

.rs-sub2 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 4px auto 0;
  font-size: clamp(15.7px, 2.19vw, 18px);
  font-weight: 700;
  text-align: center;
  opacity: .9;
}

/* ===== 联系按钮 ===== */
.rs-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 53px auto 80px;
  padding: 11px 30px;
  font-size: 16px;
  font-weight: 700;
  color: var(--md-primary-dark);
  background: var(--md-surface);
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--elev-2);
  cursor: pointer;
  transition: transform .2s var(--md-ease), background-color .2s ease,
    box-shadow .2s ease;
}

.rs-cta:hover {
  background: #e8f0fe;
  color: var(--md-primary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--elev-8);
}

.rs-cta:active {
  transform: translateY(-1px) scale(1.0);
  box-shadow: var(--elev-3);
}


.rs-note {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 36px auto 0;
  font-size: 14px;
  opacity: .85;
}

/* ===== 服务过的客户 ===== */
.rs-clients {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 64px;
  text-align: center;
  background: var(--md-zone);
}

.rs-clients-wave {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 90px;
  pointer-events: none;
}

.rs-clients-title {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 22px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--md-ink);
}

.rs-clients-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.rs-clients-grid img {
  height: 26px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transition: transform .25s var(--md-ease);
}

.rs-clients-grid img:hover {
  transform: translateY(-3px);
}

.rs-clients-grid img:nth-child(8) {
  transform: translateY(5px);
}
.rs-clients-grid img:nth-child(12) {
  transform: translateY(-5px);
}

.rs-clients-grid img:nth-child(8):hover {
  transform: translateY(2px);
}
.rs-clients-grid img:nth-child(12):hover {
  transform: translateY(-8px);
}

/* ===== Wave divider ===== */
.rs-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 90px;
}

/* ===== QR section ===== */
.rs-qr {
  padding: 56px 20px 40px;
  text-align: center;
  background: var(--md-bg);
}

.rs-h2 {
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--md-ink);
}

.rs-lead {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 16px;
  color: var(--md-muted);
}

/* ===== 二维码卡片 ===== */
.rs-qr-card {
  display: inline-block;
  padding: 18px;
  background: transparent;
  border-radius: var(--radius-card);
  box-shadow: none;
  cursor: pointer;
  transition: transform .3s var(--md-ease), box-shadow .3s ease,
    background-color .3s ease;
}

.rs-qr-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--elev-8);
  background: var(--md-surface);
}

.rs-qr-card:active {
  transform: translateY(-2px) scale(1.0);
  box-shadow: var(--elev-4);
}

.rs-qr-card img {
  display: block;
  width: 177px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== Footer ===== */
.rs-footer {
  position: relative;
  flex: 1 1 auto;
  padding: 66px 20px calc(34px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 10.4px;
  color: rgba(255, 255, 255, .74);
  background: var(--md-primary-dark);
}

.rs-footer-wave {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 56px;
  pointer-events: none;
}

.rs-footer-wave path {
  fill: var(--md-zone);
}

.rs-footer a {
  color: rgba(255, 255, 255, .9);
}

.rs-footer a:hover {
  text-decoration: underline;
}

/* ===== 手机端 ===== */
@media (max-width: 720px) {
  .rs-footer {
    flex: 0 0 auto;
    padding: 40px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .rs-footer-wave {
    height: 34px;
  }

  .rs-clients {
    padding: 76px 16px 36px;
  }
}

/* ===== Entrance animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .rs-hero .rs-badge,
  .rs-hero .rs-title,
  .rs-hero .rs-subtitle,
  .rs-hero .rs-sub2,
  .rs-hero .rs-note,
  .rs-hero .rs-cta {
    animation: rsUp .7s ease both;
  }

  .rs-hero .rs-badge { animation-delay: 0s; }
  .rs-hero .rs-title { animation-delay: .06s; }
  .rs-hero .rs-subtitle { animation-delay: .12s; }
  .rs-hero .rs-sub2 { animation-delay: .16s; }
  .rs-hero .rs-note { animation-delay: .20s; }
  .rs-hero .rs-cta { animation-delay: .26s; }

  .rs-qr-card { animation: rsUp .7s ease .1s both; }
}

@keyframes rsUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 语言切换（汉 / EN） ===== */
.lang-toggle {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .5px;
  color: #fff;
  border-radius: 999px;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle .ls-opt { opacity: .6; cursor: pointer; transition: opacity .2s ease; }
.lang-toggle .ls-opt.active { opacity: 1; font-weight: 700; }
.lang-toggle .ls-sep { opacity: .35; }

/* 默认中文：隐藏英文；英文模式：隐藏中文 */
.en { display: none; }
html.lang-en .zh { display: none; }
html.lang-en .en { display: inline; }
