/**
 * web-homepage 公共样式
 *
 * 1) 顶部导航栏（统一高度、生动活泼的徽标/下划线/管理端入口）
 * 2) 黄色 page-header（生动活泼的曲线 + 微动效）
 * 3) 悬浮按钮（qrcode + plus，加号跳转到各页对应表单位置）
 * 4) 二维码弹窗
 * 5) 通用页脚
 * 6) 保险风格表单（calculator-form/form-row/form-group/form-input/contact-form）
 *
 * 不依赖任何第三方框架；仅做样式与少量动画。
 */

:root {
  --color-primary: #c89c2e;
  --color-primary-dark: #b07a00;
  --color-primary-light: #f6c662;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-text-muted: #888;
  --color-bg: #f8f9fa;
  --color-bg-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========== 顶部导航栏 ========== */
.site-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(240, 160, 0, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-navbar.scrolled {
  height: 60px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.site-navbar__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
}

.site-navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-navbar__logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(240, 160, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-navbar__logo:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.site-navbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-navbar__title-main {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.site-navbar__title-sub {
  font-size: 11px;
  color: #e69500;
  margin-top: 2px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-navbar__menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}

.site-navbar__menu a {
  position: relative;
  padding: 0 14px;
  color: #555;
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.25s ease;
  letter-spacing: 0.2px;
  height: 68px;
  display: inline-flex;
  align-items: center;
}

.site-navbar.scrolled .site-navbar__menu a {
  height: 60px;
}

.site-navbar__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #fdd413, #f0a000);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0 auto;
}

.site-navbar__menu a:hover {
  color: #1a1a1a;
}

.site-navbar__menu a:hover::after,
.site-navbar__menu a.active::after {
  width: 100%;
}

.site-navbar__menu a.active {
  color: #1a1a1a;
  font-weight: 600;
}

/* ---- 导航栏"更多"下拉菜单 ---- */
.nav-more {
  position: relative;
}

.nav-more__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px !important;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav-more__trigger::after {
  display: none !important;
}

.nav-more__trigger:hover {
  background: rgba(253, 212, 19, 0.1);
  transform: scale(1.05);
}

.nav-more__trigger svg {
  display: block;
}

.nav-more__text {
  display: none;
}

.nav-more__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  min-width: auto;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-more__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(255, 255, 255, 0.98);
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.03));
}

.nav-more:hover .nav-more__dropdown,
.nav-more:focus-within .nav-more__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-more__dropdown a {
  display: block;
  padding: 8px 14px;
  color: #555;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-more__dropdown a:hover {
  background: rgba(253, 212, 19, 0.12);
  color: #1a1a1a;
  transform: translateX(2px);
}

.nav-more__dropdown a.active {
  color: #1a1a1a;
  font-weight: 600;
  background: rgba(253, 212, 19, 0.1);
}

.site-navbar__admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(246, 198, 98, 0.12), rgba(214, 178, 90, 0.06));
  color: #5a4400 !important;
  border: 1.5px solid rgba(214, 178, 90, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.06);
}

.site-navbar__admin:hover {
  background: linear-gradient(135deg, #fde9a8 0%, #f6c662 100%);
  color: #5a4400 !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.28);
}

.site-navbar__admin:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.site-navbar__admin::after {
  display: none;
}

/* 移动端隐藏管理端入口(避免导航拥挤) */
@media (max-width: 768px) {
  .site-navbar__admin {
    display: none !important;
  }
}

.site-navbar__admin-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  gap: 5px;
  border-radius: 10px;
  transition: background 0.25s ease;
}

.site-navbar__toggle:hover {
  background: rgba(253, 212, 19, 0.08);
}

.site-navbar__toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* 汉堡菜单动画 - 打开状态 */
.site-navbar__toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.site-navbar__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-navbar {
    height: 64px;
  }

  .site-navbar__inner {
    padding: 0 16px;
    gap: 12px;
  }

  .site-navbar__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .site-navbar__menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-navbar__menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateX(-10px);
    animation: navMenuItemIn 0.3s ease forwards;
  }

  .site-navbar__menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .site-navbar__menu.active li:nth-child(1) { animation-delay: 0.05s; }
  .site-navbar__menu.active li:nth-child(2) { animation-delay: 0.1s; }
  .site-navbar__menu.active li:nth-child(3) { animation-delay: 0.15s; }
  .site-navbar__menu.active li:nth-child(4) { animation-delay: 0.2s; }
  .site-navbar__menu.active li:nth-child(5) { animation-delay: 0.25s; }
  .site-navbar__menu.active li:nth-child(6) { animation-delay: 0.3s; }

  .site-navbar__menu li:last-child {
    border-bottom: none;
  }

  .site-navbar__menu a {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 15px;
    height: auto;
  }

  .site-navbar__menu a:hover {
    background: rgba(253, 212, 19, 0.08);
  }

  .site-navbar__menu a.active {
    color: #1a1a1a;
    font-weight: 600;
    background: rgba(253, 212, 19, 0.1);
  }

  .site-navbar__menu a::after {
    display: none;
  }

  /* 更多菜单 - 移动端展开 */
  .nav-more {
    display: block;
  }

  .nav-more__trigger {
    display: none !important;
  }

  .nav-more__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
    pointer-events: auto;
    min-width: 0;
    border: none;
    backdrop-filter: none;
  }

  .nav-more__dropdown::before {
    display: none;
  }

  .nav-more__dropdown a {
    padding: 14px 12px 14px 28px;
    font-size: 15px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-more__dropdown a:last-child {
    border-bottom: none;
  }

  .nav-more__dropdown a:hover {
    background: rgba(253, 212, 19, 0.08);
    color: #1a1a1a;
    transform: none;
  }

  .nav-more__dropdown a.active {
    background: rgba(253, 212, 19, 0.1);
    color: #1a1a1a;
    font-weight: 600;
  }

  .site-navbar__admin {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
  }

  .site-navbar__toggle {
    display: flex;
  }
}

@keyframes navMenuItemIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 导航栏中等屏幕适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-navbar__menu {
    gap: 2px;
  }

  .site-navbar__menu a {
    padding: 8px 10px;
    font-size: 13.5px;
  }

  .site-navbar__inner {
    padding: 0 20px;
    gap: 16px;
  }
}

/* ========== 黄色 page-header（生动活泼） ========== */
.page-header {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 85%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
    linear-gradient(155deg, #fdd413 0%, #f5c500 40%, #e8b800 100%);
  color: #333;
  padding: 56px 0 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -50px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatY 8s ease-in-out infinite;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: floatY 10s ease-in-out infinite reverse;
}

.page-header > .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.page-header h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 14px auto 0;
}

.page-header p {
  font-size: 15px;
  opacity: 0.85;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ========== page-header--has-bg: 顶部 caption + 中部 banner + 底部 CTA+metrics 模式(共享 insurance/about) ========== */
.page-header--has-bg {
  padding: 0;
  text-align: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.page-header--has-bg::before,
.page-header--has-bg::after {
  display: none;
}

.page-header--has-bg .page-header__caption {
  position: relative;
  padding: 56px 20px 32px;
  background: #fff;
  text-align: center;
}

.page-header--has-bg h1 {
  font-size: 44px;
  color: #1f1f1f;
  text-shadow: none;
  margin-bottom: 16px;
  line-height: 1.2;
  text-align: center;
}

.page-header--has-bg h1::after {
  display: none;
}

.page-header--has-bg .page-header__caption p {
  font-size: 17px;
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: none;
}

.page-header__bg {
  position: relative;
  max-height: 420px;
  overflow: hidden;
  background: #fff;
  margin: 0 20px;
  border-radius: 16px;
}

.page-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}

.page-header--has-bg .page-header__bottom {
  padding: 40px 20px 56px;
  background: #fff;
}

.page-header--has-bg .page-header__metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px;
  background: #fafbfc;
  border-radius: 16px;
  border: 1px solid #f0f1f3;
}

.page-header--has-bg .page-header__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.page-header--has-bg .page-header__metric-num {
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.1;
  background: linear-gradient(135deg, #1f1f1f, #f0a000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header--has-bg .page-header__metric-label {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.3px;
}

.page-header--has-bg .page-header__metric-sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, #e0e3e8, transparent);
}

@media (max-width: 768px) {
  .page-header--has-bg .page-header__caption {
    padding: 48px 20px 24px;
  }
  .page-header--has-bg h1 {
    font-size: 30px;
  }
  .page-header--has-bg .page-header__caption p {
    font-size: 15px;
  }
  .page-header--has-bg .page-header__bottom {
    padding: 32px 20px 44px;
  }
  .page-header--has-bg .page-header__metrics {
    gap: 24px;
    padding: 20px 16px;
  }
  .page-header--has-bg .page-header__metric-num {
    font-size: 24px;
  }
  .page-header--has-bg .page-header__metric-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-header--has-bg .page-header__caption {
    padding: 40px 15px 20px;
  }
  .page-header--has-bg h1 {
    font-size: 26px;
  }
  .page-header--has-bg .page-header__bottom {
    padding: 24px 15px 36px;
  }
  .page-header__bg {
    margin: 0 12px;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 40px 0 52px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .page-header h1::after {
    width: 36px;
    margin-top: 10px;
  }
  .page-header p {
    font-size: 14px;
  }
}

/* ========== 悬浮按钮 + 二维码卡片(三个页面统一宽度 160px) ========== */
.float-actions {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 160px;
}

.float-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 18px;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #5a4400;
  border: 1.5px solid rgba(214, 178, 90, 0.4);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.16);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.float-btn .icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  order: 0;
  color: #b07a00;
}

.float-btn__label {
  font-size: 14px;
  font-weight: 600;
  color: #5a4400;
  order: 1;
  white-space: nowrap;
  line-height: 1;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 134, 11, 0.3);
  background: linear-gradient(135deg, #fde9a8 0%, #f6c662 100%);
  border-color: transparent;
}

.float-btn:hover .icon,
.float-btn:hover .float-btn__label {
  color: #5a4400;
}

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

/* ========== 悬浮二维码卡片(始终展示,与按钮等宽) ========== */
.float-qrcode {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 10px 8px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.18);
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(214, 178, 90, 0.28);
  cursor: pointer;
  box-sizing: border-box;
}

.float-qrcode img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.float-qrcode p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5a4400;
  font-weight: 500;
  line-height: 1.3;
}

.float-qrcode:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(184, 134, 11, 0.32);
  border-color: rgba(214, 178, 90, 0.5);
}

/* 悬浮按钮全局 hover 色统一变量,可在不同主题下覆盖 */
@media (max-width: 768px) {
  .float-actions {
    right: 16px;
    bottom: 20px;
    width: 132px;
  }

  .float-btn {
    height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ========== 二维码弹窗（带二维码图片） ========== */
.qr-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 55, 72, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal__overlay.show,
.qr-modal__overlay--visible {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.qr-modal__overlay.show .qr-modal {
  transform: translateY(0) scale(1);
}

.qr-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
}

.qr-modal__close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.qr-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
}

.qr-modal__image {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

.qr-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  border: none;
}

.qr-modal__tip {
  font-size: 13px;
  color: #666;
  margin: 0;
}

@media (min-width: 768px) {
  .qr-modal {
    max-width: 400px;
  }
  .qr-modal__image {
    width: 260px;
    height: 260px;
  }
}

/* ========== 通用小程序引导卡片(三个页面统一尺寸) ========== */

/* ========== Service Block 通用卡片(三大业务 / 合作权益复用) ========== */
.service-block {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.service-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(184, 134, 11, 0.12);
  border-color: rgba(214, 178, 90, 0.32);
}

.service-block--featured {
  background: linear-gradient(180deg, #fffefb 0%, #fafaf7 70%);
  border-color: rgba(214, 178, 90, 0.28);
}

.service-block__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde9a8 0%, #f6c662 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b07a00;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.18);
  flex-shrink: 0;
}

.service-block__icon .icon {
  width: 28px;
  height: 28px;
}

.service-block h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.service-block__tagline {
  font-size: 13.5px;
  color: #b07a00;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
  flex-shrink: 0;
}

.service-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #555;
  font-size: 13.5px;
  line-height: 1.65;
}

.service-block__list li .icon {
  width: 16px;
  height: 16px;
  color: #b07a00;
  flex-shrink: 0;
  margin-top: 4px;
}

/* 合作商家权益专用 2x2 网格(等高对齐) */
.services-grid--benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
}

.services-grid--benefits .service-block {
  height: 100%;
}

@media (max-width: 992px) {
  .services-grid--benefits {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .service-block {
    padding: 28px 24px 24px;
  }

  .service-block__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .service-block h3 {
    font-size: 17px;
  }

  .services-grid--benefits {
    grid-template-columns: 1fr;
  }
}

.mp-guide {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 20px 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.mp-guide:hover,
.mp-guide:focus {
  transform: none;
  box-shadow: none;
  border-color: rgba(184, 134, 11, 0.2);
  outline: none;
}

.mp-guide__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mp-guide__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fde9a8 0%, #f6c662 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.mp-guide__icon .icon {
  width: 20px;
  height: 20px;
  color: #b07a00;
}

.mp-guide__text {
  min-width: 0;
}

.mp-guide__text h3 {
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 2px;
  font-weight: 600;
  line-height: 1.4;
}

.mp-guide__text p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

.mp-guide__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: #b07a00;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: none;
  white-space: nowrap;
}

.mp-guide__btn:hover {
  transform: none;
  box-shadow: none;
  background: rgba(184, 134, 11, 0.06);
}

@media (max-width: 768px) {
  .mp-guide {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px 0;
  }

  .mp-guide__content {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========== 通用页脚 ========== */
.site-footer {
  background: var(--color-bg-white);
  color: var(--color-text);
  padding: 48px 0 16px;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 2;
}

.site-footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 28px;
}

.site-footer__section h4 {
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__section h4::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 2px;
  flex-shrink: 0;
}

.site-footer__section p,
.site-footer__section li {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.site-footer__section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.site-footer__section ul {
  list-style: none;
  padding: 0;
}

.site-footer__section ul li::before {
  content: '›';
  color: var(--color-primary);
  margin-right: 8px;
  font-weight: 700;
}

.site-footer__bottom {
  text-align: center;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 48px;
    padding: 36px 0 16px;
  }
  .site-footer__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========== 通用主区域 ========== */
.site-main {
  margin-top: 68px;
  min-height: 60vh;
  background: #fff;
}

@media (max-width: 768px) {
  .site-main {
    margin-top: 64px;
  }
}

/* ========== 保险风格表单（calculator 卡片 + 两列布局） ========== */
.calculator-section {
  padding: 16px 0 48px;
  background: #fff;
}

.calculator-section .container {
  max-width: 720px;
}

.calculator-section .calculator-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  display: block;
}

.calculator-section .calculator-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* ========== 合作商家权益独立展示区 ========== */
.benefits-section {
  padding: 48px 0 16px;
  background: #fff;
}

.benefits-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.benefits-section .section-header h2 {
  font-size: 28px;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.benefits-section .section-header p {
  font-size: 15px;
  color: var(--color-text-light);
  margin: 0;
}

.benefits-section .insurance-benefits {
  margin-top: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.section-header p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.section-title {
  font-size: 32px;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  letter-spacing: 0.3px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #fdd413, #f0a000);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.calculator-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 14px;
}

.form-label .required {
  color: #e74c3c;
}

.form-select,
.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all var(--transition-normal);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  width: 100%;
}

/* 自定义下拉:清除原生样式 + 自定义箭头 + 精致细节 */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 13px 44px 13px 16px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0a000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  background-color: var(--color-bg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-select:hover {
  border-color: rgba(240, 160, 0, 0.4);
  background-color: #fff;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(240, 160, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.02);
  /* 打开时箭头朝上 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0a000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 15 12 9 18 15'/></svg>");
}

/* 下拉项内部样式(部分浏览器生效,Firefox 有限) */
.form-select option {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--color-text);
  background-color: #fff;
  border-radius: 0;
}

.form-select option:checked {
  background: linear-gradient(135deg, #fdd413 0%, #f0a000 100%);
  color: #1a1a1a;
  font-weight: 600;
}

.form-select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(240, 160, 0, 0.12);
}

.form-select.error,
.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
}

.error-text {
  color: #e74c3c;
  font-size: 12px;
}

.price-display {
  background: linear-gradient(135deg, #fdd413 0%, #f7c52d 100%);
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  margin: 4px 0;
}

.price-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  color: #1f1f1f;
  margin-bottom: 4px;
}

.price-note {
  font-size: 12px;
  color: #5a4400;
}

.contact-form {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 14px;
  margin-top: 8px;
}

.contact-form h3 {
  margin-bottom: 16px;
  color: #1f1f1f;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text);
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  width: 100%;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 212, 19, 0.4);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(253, 212, 19, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.insurance-benefits h3 {
  margin-bottom: 18px;
  color: #1f1f1f;
  font-size: 20px;
  font-weight: 700;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s;
}

.benefit-item:hover {
  background: #fef9e7;
}

.benefit-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fdd413;
  color: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.benefit-content h4 {
  color: #1f1f1f;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.benefit-content p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .calculator-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 22px;
  }
}
