/* 交互组件：hover / popover / tooltip / 浮动按钮 */

.geo-card-interactive {
  cursor: pointer;
  border: none;
  font: inherit;
  text-align: inherit;
  width: 100%;
}

.geo-service-card.geo-card-interactive,
.geo-case-card.geo-card-interactive {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.geo-service-card.geo-card-interactive:hover,
.geo-case-card.geo-card-interactive:hover,
.geo-service-card.geo-card-interactive:focus-visible,
.geo-case-card.geo-card-interactive:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.14);
  border-color: #c8102e;
  outline: none;
}

.geo-case-problem {
  margin: 0 0 0.35rem;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.geo-case-result {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #c8102e;
  line-height: 1.5;
}

/* 经典案例 · 点击放大 */
.geo-case-grid.has-active .geo-case-card:not(.is-active) {
  opacity: 0.42;
  transform: scale(0.97);
  filter: blur(0.6px);
  pointer-events: none;
}

.geo-case-card.is-active {
  box-shadow: 0 16px 40px rgba(200, 16, 46, 0.28) !important;
  transform: translateY(-6px) scale(1.02);
  z-index: 2;
  position: relative;
}

body.geo-case-expand-open .geo-case-card.is-active {
  opacity: 0;
  pointer-events: none;
}

.geo-case-expand {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.geo-case-expand[hidden] {
  display: none !important;
}

.geo-case-expand__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 0, 2, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.geo-case-expand.is-open .geo-case-expand__backdrop {
  opacity: 1;
}

.geo-case-expand__panel {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100vw - 2rem));
  max-height: min(85vh, 720px);
  overflow: auto;
  margin: 0;
  padding: 2rem 2rem 1.75rem;
  background: #fff;
  border-radius: 16px;
  border-left: 5px solid #c8102e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  text-align: left;
  transform: scale(0.88) translateY(24px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.geo-case-expand.is-open .geo-case-expand__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.geo-case-expand__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.geo-case-expand__tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: #c8102e;
  background: #fdeced;
  border-radius: 100px;
}

.geo-case-expand__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.35;
}

.geo-case-expand__problem {
  margin: 0 0 0.65rem;
  font-size: 15px;
  color: #777;
  line-height: 1.65;
}

.geo-case-expand__result {
  margin: 0 0 1.15rem;
  font-size: 16px;
  font-weight: 700;
  color: #c8102e;
  line-height: 1.6;
}

.geo-case-expand__detail {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.geo-case-expand__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #c8102e;
  text-decoration: none;
}

.geo-case-expand__link:hover {
  text-decoration: underline;
}

/* Tooltip */
.geo-tip {
  position: fixed;
  z-index: 9999;
  max-width: 220px;
  padding: 0.45rem 0.65rem;
  font-size: 12px;
  line-height: 1.45;
  color: #fff;
  background: rgba(30, 30, 30, 0.92);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}

.geo-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Popover */
.geo-card-popover {
  position: fixed;
  z-index: 9998;
  width: min(320px, calc(100vw - 2rem));
  padding: 1.25rem 1.35rem 1.1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 3px solid #c8102e;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.geo-card-popover__close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.geo-card-popover__title {
  margin: 0 0 0.65rem;
  font-size: 17px;
  color: #c8102e;
}

.geo-card-popover__text {
  margin: 0 0 0.85rem;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

.geo-card-popover__link {
  font-size: 14px;
  font-weight: 600;
  color: #c8102e;
  text-decoration: none;
}

/* 浮动按钮 */
.geo-float-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.geo-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: #c8102e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.geo-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.4);
}

.geo-float-top {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
}

.geo-float-top span {
  display: none;
}

/* 预约面板 */
.geo-consult-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 9991;
  width: min(260px, calc(100vw - 2rem));
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.geo-consult-panel__close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: none;
  background: none;
  font-size: 1.35rem;
  color: #999;
  cursor: pointer;
}

.geo-consult-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 16px;
  color: #c8102e;
}

.geo-consult-panel p {
  margin: 0 0 0.75rem;
  font-size: 14px;
  line-height: 1.6;
}

.geo-consult-panel a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.geo-consult-panel img {
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.geo-consult-panel__hint {
  font-size: 12px;
  color: #666;
}

.geo-consult-panel__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #c8102e !important;
  font-weight: 700;
}

/* 近期活动 */
.geo-events-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.geo-events-title {
  margin: 0 0 1rem;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.geo-events-list {
  display: grid;
  gap: 0.75rem;
}

.geo-events-item {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e8e8e8;
  border-left: 3px solid #c8102e;
  border-radius: 8px;
}

.geo-events-item h3 {
  margin: 0 0 0.35rem;
  font-size: 15px;
  line-height: 1.45;
}

.geo-events-item h3 a {
  color: #222;
  text-decoration: none;
}

.geo-events-item h3 a:hover {
  color: #c8102e;
}

.geo-events-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
}

.geo-events-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 14px;
  font-weight: 600;
  color: #c8102e;
  text-decoration: none;
}

body:has(.geo-float-dock) .w-service-fixed {
  display: none !important;
}

@media (max-width: 768px) {
  .geo-float-consult span {
    display: none;
  }

  .geo-float-consult {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .geo-consult-panel {
    right: 0.75rem;
    bottom: 4.5rem;
  }
}
