/* ===== 页面专属补充样式 ===== */
.gc-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smartmap-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.smartmap-results {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* APCA 输入组 */
.apca-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apca-preview-lg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid var(--tw-slate-200);
}

.apca-input-box {
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--tw-slate-50);
  border: 1px solid var(--tw-slate-200);
  border-radius: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.apca-input-box:focus-within {
  background: #FFFFFF;
  border-color: var(--focus);
}

.apca-input-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--tw-slate-400);
}

.apca-input-hash {
  flex-shrink: 0;
  color: var(--tw-slate-400);
  font-size: 14px;
  line-height: 18px;
  font-family: var(--font-mono);
  user-select: none;
}

.apca-input-field {
  flex: 1;
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--gray-3);
  font-size: 14px;
  line-height: 18px;
  font-family: var(--font-mono);
  outline: none;
  text-align: left;
  letter-spacing: 1px;
}

.apca-lc-box {
  flex-shrink: 0;
  width: 200px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border: 1px solid var(--tw-slate-200);
  box-sizing: border-box;
  position: relative;
  background: var(--tw-slate-50);
}

.apca-lc-label {
  flex-shrink: 0;
  color: var(--tw-slate-400);
  font-size: 14px;
  line-height: 18px;
  font-family: 'Inter', sans-serif;
}

.apca-lc-value {
  flex: 1;
  color: var(--gray-3);
  font-size: 14px;
  line-height: 18px;
  font-family: var(--font-mono);
}

.apca-lc-info {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  cursor: help;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.apca-lc-box:hover .apca-lc-info {
  opacity: 1;
}

/* APCA 输入行 */
.apca-input-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* 弹窗内部文字 */
.cp-lc-popup-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cp-lc-popup-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 8px;
}

.cp-lc-popup-row:last-child {
  margin-bottom: 0;
}

.cp-lc-popup-row-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.cp-lc-popup-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  visibility: hidden;
}

.cp-lc-popup-check.visible {
  visibility: visible;
}

.cp-lc-popup-label {
  flex: 1;
  min-width: 0;
  color: var(--tw-slate-500);
  white-space: normal;
  word-break: break-word;
}

.cp-lc-popup-label.on {
  color: var(--white);
}

.cp-lc-popup-label.off {
  color: var(--tw-slate-500);
}

.cp-lc-popup-value {
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
  color: var(--tw-slate-500);
}

.cp-lc-popup-value.on {
  color: var(--tw-green-300);
}

.cp-lc-popup-value.off {
  color: var(--tw-slate-500);
}

.apca-lc-box .cp-lc-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(0.95);
  background: var(--gray-3);
  border-radius: 12px;
  padding: 16px;
  width: min(340px, calc(100vw - 260px));
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.apca-lc-box:hover .cp-lc-popup {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.apca-lc-box .cp-lc-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-3);
}

@media (max-width: 900px) {
  .apca-input-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .apca-input-box {
    width: 100%;
  }
  .apca-lc-box {
    width: 100%;
    justify-content: center;
  }
  .apca-lc-box .cp-lc-popup {
    width: min(280px, calc(100vw - 120px));
    left: auto;
    right: 0;
    transform: translateX(0) scale(0.95);
  }
  .apca-lc-box:hover .cp-lc-popup {
    transform: translateX(0) scale(1);
  }
  .apca-lc-box .cp-lc-popup::after {
    left: auto;
    right: 20px;
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  .apca-input-box {
    height: 36px;
    border-radius: 10px;
  }
}
