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

body {
  font-family: 'Inter', sans-serif;
  background: #f7f9fc;
  color: #1a1a1a;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 主内容区撑满剩余视口，避免短页面时页脚上浮 */
main {
  flex: 1 0 auto;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #eef1f5;
}

::-webkit-scrollbar-thumb {
  background: #c4452b;
  border-radius: 12px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航 ===== */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 12px 0;
  border-bottom: 1px solid rgba(238, 241, 245, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
/* 
.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(11, 43, 61, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #0b2b3d;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1.5px solid rgba(11, 43, 61, 0.08);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="14" fill="%23f0f3f7" stroke="%23dce1e8" stroke-width="1.5"/><text x="50" y="68" font-family="Inter, sans-serif" font-size="46" font-weight="700" text-anchor="middle" fill="%230b2b3d" opacity="0.75">S</text><circle cx="78" cy="22" r="10" fill="%23c4452b" opacity="0.15"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.logo-image:hover {
  transform: rotate(-4deg) scale(1.04);
  background: rgba(11, 43, 61, 0.10);
  border-color: rgba(196, 69, 43, 0.25);
  box-shadow: 0 4px 16px rgba(196, 69, 43, 0.08);
} */


.logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1.5px solid rgba(11, 43, 61, 0.08);
  /* background: #0b0b0b; */
}

.logo-image:hover {
  transform: rotate(-4deg) scale(1.04);
  border-color: rgba(196, 69, 43, 0.25);
  box-shadow: 0 4px 16px rgba(196, 69, 43, 0.08);
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0b2b3d;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text span {
  color: #c4452b;
}

@media (max-width: 500px) {
  .logo-text {
    font-size: 1.2rem;
  }

  .logo-image {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #1e1e1e;
  transition: 0.2s;
  cursor: pointer;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c4452b;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #c4452b;
}

.nav-links a.is-active {
  color: #c4452b;
}

.nav-links a.is-active::after {
  width: 100%;
}

/* ===== 单页模块：默认隐藏，仅当前模块显示 ===== */
.section-block {
  display: none;
  background: white;
  border-radius: 32px;
  padding: 48px 40px;
  margin-bottom: 48px;
  border: 1px solid #eef1f5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin-top: 20px;
}

.section-block.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 非首页模块至少撑满一屏内容区，页脚贴近视口底部 */
.container > .section-block.is-active {
  min-height: calc(100vh - 230px);
}

/* ===== Home 首屏 Banner（全宽，非卡片） ===== */
.home-page {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.home-page.is-active {
  display: block;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f4f7fa;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 24, 36, 0.92) 0%, rgba(11, 43, 61, 0.72) 42%, rgba(11, 43, 61, 0.28) 100%),
    url('../img/home-banner.png') center / cover no-repeat;
  transform: scale(1.02);
  animation: home-media-in 1.1s ease both;
}

.home-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 36, 0.35), transparent 40%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: 72px 40px 88px;
  margin: 0 auto;
  text-align: left;
}

.home-hero__brand {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.2rem;
  color: #fff;
  animation: home-rise 0.7s ease both;
}

.home-hero__brand::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: #c4452b;
  border-radius: 2px;
}

.home-hero__title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
  color: #f7fafc;
  animation: home-rise 0.75s ease 0.08s both;
}

.home-hero__subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: rgba(244, 247, 250, 0.82);
  margin-bottom: 0.85rem;
  max-width: 42rem;
  animation: home-rise 0.75s ease 0.14s both;
}

.home-hero__tags {
  font-size: 0.86rem;
  color: rgba(244, 247, 250, 0.68);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
  animation: home-rise 0.75s ease 0.2s both;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: home-rise 0.75s ease 0.26s both;
}

.home-hero__actions .btn-primary,
.home-hero__actions .btn-secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background: transparent;
  color: #f4f7fa;
  border: 1.5px solid rgba(244, 247, 250, 0.45);
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 247, 250, 0.85);
  transform: translateY(-2px);
}

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

@keyframes home-media-in {
  from {
    opacity: 0.6;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: calc(100vh - 96px);
  }

  .home-hero__content {
    padding: 48px 24px 72px;
  }

  .home-hero__title {
    max-width: none;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

.badge {
  display: none !important;
  background: #eae7e2;
  padding: 0.2rem 1.2rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3e4b;
  display: inline-block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.4px;
  transition: background 0.3s;
}

.badge:hover {
  background: #d6cfc6;
}

.section-title {
  display: none !important;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: #4a4a4a;
  max-width: 760px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

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

.card {
  background: #f6f8fa;
  border-radius: 20px;
  padding: 22px 20px;
  border: 1px solid #e4e9ef;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  will-change: transform;
}

.card:hover {
  border-color: #bcc9d6;
  background: #f4f7fb;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card p {
  color: #3f4d5a;
  font-size: 0.95rem;
}

.img-placeholder {
  background: #e6e9ed;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f3a4b;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 130px;
  background-size: cover;
  background-position: center;
  border: 1px solid #d9dde3;
  text-align: center;
  padding: 12px;
  transition: all 0.35s ease;
  will-change: transform;
}

.img-placeholder:hover {
  transform: scale(1.02);
  border-color: #b0becd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.img-placeholder.large {
  min-height: 220px;
}

.img-bg-1 {
  background-image: linear-gradient(145deg, #c5d4e3, #dce6f0);
}

.img-bg-2 {
  background-image: linear-gradient(145deg, #bcccdc, #d3e0ec);
}

.img-bg-3 {
  background-image: linear-gradient(145deg, #c8d7e7, #dbe7f3);
}

.img-bg-4 {
  background-image: linear-gradient(145deg, #bfd0e0, #d5e2ef);
}

.img-bg-5 {
  background-image: linear-gradient(145deg, #d0dde9, #e3ecf5);
}

.img-bg-6 {
  background-image: linear-gradient(145deg, #c2d2e2, #d6e4f0);
}

.img-bg-7 {
  background-image: linear-gradient(145deg, #bccede, #d2e0ed);
}

.img-bg-8 {
  background-image: linear-gradient(145deg, #c3d4e4, #d7e5f1);
}

.btn-primary {
  background: #0b2b3d;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: #1e4057;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 43, 61, 0.2);
}

.about-highlight {
  margin-top: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.service-card {
  background: #f6f8fa;
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid #e4e9ef;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.service-card:hover {
  border-color: #bcc9d6;
  background: #f4f7fb;
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.service-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card p {
  color: #3f4d5a;
  font-size: 0.95rem;
  margin: 0;
}

.service-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.service-image-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.service-image-row .img-placeholder {
  min-height: 110px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  background: #f6f8fa;
  border-radius: 16px;
  padding: 14px 20px;
  border-left: 4px solid #c4452b;
  transition: all 0.25s ease;
  cursor: default;
}

.faq-item:hover {
  background: #f0f3f7;
  transform: translateX(4px);
  border-left-width: 6px;
}

.faq-q {
  font-weight: 600;
  font-size: 0.98rem;
  color: #0b2b3d;
}

.faq-a {
  color: #3d4f5e;
  font-size: 0.94rem;
  padding-left: 6px;
}

.faq-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-side .img-placeholder {
  min-height: 140px;
  border-radius: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #d9dfe6;
  border-radius: 40px;
  font-size: 0.95rem;
  background: white;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c4452b;
  box-shadow: 0 0 0 4px rgba(196, 69, 43, 0.08);
  transform: scale(1.005);
}

.form-group textarea {
  border-radius: 20px;
  resize: vertical;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid #e0e5eb;
  text-align: center;
  color: #4f5f6d;
  font-size: 0.9rem;
  background: #f7f9fc;
}

@media (max-width: 880px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .section-block {
    padding: 32px 20px;
  }

  .container > .section-block.is-active {
    min-height: calc(100vh - 140px);
  }

  .product-card .card-media {
    height: 200px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .faq-side .img-placeholder {
    min-height: 120px;
  }

  .service-image-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .service-image-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .navbar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.85rem;
  }
}

/* ===== 真实图片媒体块 ===== */
.mt-1 {
  margin-top: 1rem;
}

.about-lead {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.about-intro {
  align-items: center;
}

.about-highlight__title {
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #e4e9ef;
  background: #eef2f6;
  box-shadow: 0 8px 24px rgba(11, 43, 61, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.media-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 43, 61, 0.1);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-frame:hover img {
  transform: scale(1.04);
}

.media-frame figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.86rem;
  color: #4f5f6d;
  background: #fff;
  border-top: 1px solid #eef1f5;
}

.media-frame--tall {
  min-height: 280px;
}

.media-frame--tall img {
  height: 280px;
}

.media-frame--faq {
  position: sticky;
  top: 96px;
}

.media-frame--faq img {
  min-height: 360px;
  max-height: 520px;
}

/* About 图廊：左证书（近方形）+ 右评价（横图），按真实比例预留占位防塌陷 */
.about-gallery {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.25fr);
  gap: 24px;
  margin-top: 1.8rem;
  align-items: center;
}

.about-gallery__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.about-gallery__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eef2f6;
}

/* 覆盖 .media-frame img 的 cover 裁切，保留完整画面 */
.about-gallery__item .about-gallery__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.about-gallery__item:hover .about-gallery__media img {
  transform: scale(1.03);
}

/* 证书：2016×2048 ≈ 0.98，按宽度推导高度，加载前后占位一致 */
.about-gallery__item--certificates {
  max-width: 400px;
  justify-self: center;
}

.about-gallery__item--certificates .about-gallery__media {
  aspect-ratio: 2016 / 2048;
}

/* 评价：1424×800 ≈ 1.78，宽度占满、高度按比例 */
.about-gallery__item--reviews .about-gallery__media {
  aspect-ratio: 1424 / 800;
}

.product-grid {
  gap: 28px 24px;
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 产品图区：恢复可见高度，拉高页面主体 */
.product-card .card-media {
  overflow: hidden;
  height: 240px;
  background: #e8eef3;
}

.product-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.06);
}

.product-card h4,
.product-card p {
  padding-left: 18px;
  padding-right: 18px;
}

.product-card h4 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.product-card p {
  padding-bottom: 20px;
  flex: 1;
}

.product-note {
  margin-top: 2.2rem;
  background: #eef2f6;
  padding: 0.75rem 1.8rem;
  border-radius: 60px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.service-feature {
  background: #f6f8fa;
  border: 1px solid #e4e9ef;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 43, 61, 0.08);
}

.service-feature__media {
  height: 300px;
  overflow: hidden;
  background: #e8eef3;
}

.service-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-feature:hover .service-feature__media img {
  transform: scale(1.05);
}

.service-feature__body {
  padding: 18px 18px 20px;
}

.service-feature__body h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-feature__body p {
  color: #3f4d5a;
  font-size: 0.94rem;
}

.services-grid--extra {
  grid-template-columns: repeat(3, 1fr);
}

.contact-tip,
.inquiry-panel {
  margin-top: 2rem;
  background: #f6f8fa;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  border: 1px solid #e4e9ef;
}

.inquiry-panel {
  margin-top: 0;
  padding: 28px 24px;
  border-radius: 28px;
}

.inquiry-panel h4 {
  margin-bottom: 1.2rem;
}

.inquiry-panel__note,
.contact-tip p:not(.contact-tip__title) {
  font-size: 0.9rem;
  color: #4f5f6d;
}

.contact-tip__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-grid a {
  color: #0b2b3d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social-channels {
  position: relative;
  margin-top: 1.4rem;
  max-width: 340px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4e9ef;
  background: #fff;
}

.social-channels__img {
  display: block;
  width: 100%;
  height: auto;
}

.social-channels__hotspots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.social-channels__hotspots a {
  display: block;
  text-decoration: none;
  transition: background 0.2s ease;
}

.social-channels__hotspots a:hover {
  background: rgba(11, 43, 61, 0.06);
}

@media (max-width: 900px) {
  .about-gallery,
  .service-feature-grid,
  .services-grid--extra {
    grid-template-columns: 1fr;
  }

  .media-frame--tall img {
    height: 220px;
  }

  /* 移动端单列：仍按图片比例占位，证书限制最大宽度居中 */
  .about-gallery__item--certificates {
    max-width: 300px;
    justify-self: center;
  }

  .media-frame--faq {
    position: static;
  }

  .media-frame--faq img {
    min-height: 220px;
    max-height: 320px;
  }
}

/* ===== 右侧悬浮联系按钮组 ===== */
.whatsapp-float-group {
  position: fixed;
  right: 40px;
  bottom: 15%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: wa-enter 0.55s ease both;
}

.whatsapp-float {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #0b2b3d 0%, #163a4f 55%, #1a455c 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(11, 43, 61, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.whatsapp-float--text {
  font-size: 0.78rem;
}

.whatsapp-float__icon {
  position: relative;
  z-index: 2;
  display: flex;
  line-height: 0;
  transition: transform 0.3s ease;
}

.whatsapp-float__pulse,
.whatsapp-float__pulse--delay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid rgba(196, 69, 43, 0.45);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float__pulse--delay {
  animation-delay: 1.2s;
}

.whatsapp-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: #0b2b3d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(11, 43, 61, 0.18);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.whatsapp-float__tip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #0b2b3d;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(145deg, #c4452b 0%, #a83824 100%);
  box-shadow: 0 14px 32px rgba(196, 69, 43, 0.32);
}

.whatsapp-float:hover .whatsapp-float__icon {
  transform: rotate(-8deg) scale(1.06);
}

.whatsapp-float:hover .whatsapp-float__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(0.98);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #c4452b;
  outline-offset: 3px;
}

/* Facebook Messenger 悬浮按钮配色 */
.whatsapp-float--facebook {
  background: linear-gradient(145deg, #1877f2 0%, #0f5fce 100%);
  box-shadow: 0 10px 28px rgba(24, 119, 242, 0.3);
}

.whatsapp-float--facebook:hover {
  background: linear-gradient(145deg, #1b86ff 0%, #1877f2 100%);
  box-shadow: 0 14px 32px rgba(24, 119, 242, 0.38);
}

/* LinkedIn 悬浮按钮配色 */
.whatsapp-float--linkedin {
  background: linear-gradient(145deg, #0a66c2 0%, #004182 100%);
  box-shadow: 0 10px 28px rgba(10, 102, 194, 0.3);
}

.whatsapp-float--linkedin:hover {
  background: linear-gradient(145deg, #0d74db 0%, #0a66c2 100%);
  box-shadow: 0 14px 32px rgba(10, 102, 194, 0.38);
}

@keyframes wa-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@media (max-width: 500px) {
  .whatsapp-float-group {
    right: 20px;
    bottom: 15%;
    gap: 10px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .whatsapp-float__pulse,
  .whatsapp-float__pulse--delay {
    border-radius: 16px;
  }

  .whatsapp-float__tip {
    display: none;
  }
}

/* App 内置浏览器无法唤起外链时的引导层 */
.solan-inapp-guide {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 43, 61, 0.45);
}

.solan-inapp-guide__panel {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(11, 43, 61, 0.18);
}

.solan-inapp-guide__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b2b3d;
  margin-bottom: 8px;
}

.solan-inapp-guide__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4f5f6d;
  margin-bottom: 8px;
}

.solan-inapp-guide__desc--en {
  margin-bottom: 18px;
  color: #6b7a88;
  font-size: 0.88rem;
}

.solan-inapp-guide__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solan-inapp-guide__btn {
  border: 1px solid #d7dee6;
  background: #f6f8fa;
  color: #0b2b3d;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.solan-inapp-guide__btn--primary {
  background: #0b2b3d;
  border-color: #0b2b3d;
  color: #fff;
}

.solan-inapp-guide__btn--ghost {
  background: transparent;
  border-color: transparent;
  color: #6b7a88;
  font-weight: 500;
}
