.hero-contact-entry {
  position: absolute;
  right: 18px;
  top: -54px;
  z-index: 130;
}

.hero-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b70f14 0%, #871014 100%);
  border: 2px solid #f2b25c;
  color: #fff4cf;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(122, 10, 15, 0.24);
  text-shadow: 0 2px 4px rgba(72, 7, 11, 0.45);
  cursor: pointer;
  user-select: none;
  position: relative;
}

.hero-contact-btn::before,
.hero-contact-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(180deg, #cb7618 0%, #ffcc6e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.hero-contact-btn::before {
  left: 11px;
}

.hero-contact-btn::after {
  right: 11px;
}

.hero-contact-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 24, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.hero-contact-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1195px, calc(100vw - 24px));
  max-height: none;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  border-radius: 22px;
  background: radial-gradient(circle at top right, rgba(255, 208, 129, 0.24), transparent 24%), linear-gradient(180deg, #fffdf7 0%, #fff8eb 100%);
  border: 1px solid rgba(225, 184, 118, 0.72);
  box-shadow: 0 26px 60px rgba(18, 20, 26, 0.36);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.hero-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(230, 206, 164, 0.78);
  background: linear-gradient(180deg, #ba0f13 0%, #ea2b1d 100%);
  color: #fff3ce;
}

.hero-contact-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-contact-subtitle {
  margin-top: 4px;
  color: rgba(255, 243, 206, 0.82);
  font-size: 11px;
  letter-spacing: 0;
}

.hero-contact-close {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 18px;
}

.hero-contact-body {
  padding: 14px;
}

.hero-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero-contact-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(236, 223, 194, 0.86);
  box-shadow: 0 10px 24px rgba(32, 24, 12, 0.06);
  overflow: hidden;
}

.hero-contact-card.full {
  grid-column: 1 / -1;
}

.hero-contact-card-head {
  padding: 8px 12px;
  background: linear-gradient(180deg, #fff0cf 0%, #ffe4aa 100%);
  color: #8f2213;
  font-size: 14px;
  font-weight: 900;
}

.hero-contact-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hero-contact-table th,
.hero-contact-table td {
  padding: 8px 10px;
  border-top: 1px solid rgba(240, 229, 206, 0.92);
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  color: #3f3428;
}

.hero-contact-table th {
  width: 99px;
  color: #a12d18;
  font-weight: 800;
  background: rgba(255, 248, 233, 0.74);
  text-align: center;
  vertical-align: middle;
}

.hero-agent-cell,
.hero-contact-table .hero-agent-cell {
  padding: 12px 10px;
  text-align: center !important;
  vertical-align: middle !important;
}

.hero-contact-tips {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff6e7 0%, #fff0d5 100%);
  border: 1px solid rgba(236, 219, 180, 0.92);
  color: #8b2b15;
  font-size: 15px;
  font-weight: 700;
}

.ccq-contact-agentqq {
  width: 100%;
}

.ccq-contact-agent-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccq-contact-agent-slot {
  width: auto;
  min-width: 0;
  flex: none;
  list-style: none;
}

.ccq-contact-agent-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 68px;
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f3 0%, #fff1e9 100%);
  border: 1px solid #f6ddd0;
  color: #60291f;
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.ccq-contact-agent-card.is-placeholder {
  cursor: default;
  align-items: center;
  justify-content: center;
}

.ccq-contact-agent-card.is-placeholder .ccq-contact-agent-text {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ccq-contact-agent-card.is-placeholder .ccq-contact-agent-name {
  font-size: 16px;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

.ccq-contact-agent-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  object-fit: contain;
  vertical-align: middle;
}

.ccq-contact-agent-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-align: left;
  flex: 1 1 auto;
}

.ccq-contact-agent-name {
  display: block;
  max-width: 100%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #60291f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccq-contact-agent-qq {
  display: block;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #8a4a33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ccqCopyToast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;
  min-width: 180px;
  max-width: 320px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(34, 24, 20, 0.88);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: none;
}

body.ccq-browser-360 .hero-contact-mask {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.ccq-browser-360 .hero-contact-modal {
  -webkit-transform: none;
  transform: none;
  background: #fffaf1;
  box-shadow: 0 20px 42px rgba(18, 20, 26, 0.28);
}

body.ccq-browser-360 .hero-contact-card {
  background: #fffdfb;
}

body.ccq-browser-360 .hero-contact-head {
  background: #e32018;
  border-bottom-color: #f0d7b0;
}

body.ccq-browser-360 .hero-contact-title,
body.ccq-browser-360 .hero-contact-subtitle,
body.ccq-browser-360 .hero-contact-close,
body.ccq-browser-360 .hero-contact-card-head,
body.ccq-browser-360 .hero-contact-tips {
  opacity: 1;
  text-shadow: none;
}

body.ccq-browser-360 .hero-contact-title {
  font-weight: 800;
}

body.ccq-browser-360 .hero-contact-subtitle {
  color: #fff6db;
  font-weight: 600;
}

body.ccq-browser-360 .hero-contact-table th,
body.ccq-browser-360 .hero-contact-table td,
body.ccq-browser-360 .hero-contact-card-head,
body.ccq-browser-360 .hero-contact-tips,
body.ccq-browser-360 .ccq-contact-agent-name,
body.ccq-browser-360 .ccq-contact-agent-qq,
body.ccq-browser-360 .hero-contact-title,
body.ccq-browser-360 .hero-contact-subtitle {
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

@media (max-width: 1200px) {
  .hero-contact-modal {
    width: min(1320px, calc(100vw - 20px));
  }

  .ccq-contact-agent-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .ccq-contact-agent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccq-contact-agent-slot {
    width: auto;
    flex: none;
  }
}
