/* Greatminds 静态站补充样式：替代被删除的 Wix 脚本所负责的状态（菜单、幻灯片、进场动画、联系表单） */

/* 进场动画：删脚本后元素不能停在初始透明状态 */
[id^="comp-"]:not([data-motion-enter="done"]) { animation: none !important; }

/* 幻灯片：抓取时收集的其他 slide 默认隐藏，由 site.js 切换 */
[data-gm-slide-hidden] { display: none !important; }

/* "Make appointment" 等包裹的 mailto 链接不改变原有外观 */
a.gm-plain-link { color: inherit; text-decoration: none; display: block; cursor: pointer; }

/* ---------- 桌面下拉菜单（About Us / Contact / More） ---------- */
.gm-dd {
  position: absolute; top: 100%; left: 0; z-index: 100; min-width: 100%;
  margin: 0; padding: 4px 0; list-style: none; white-space: nowrap;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  display: none;
}
.gm-dd.gm-right { left: auto; right: 0; }
li.gm-open > .gm-dd { display: block; }
.gm-dd a {
  display: block; padding: 0 16px; line-height: 36px; text-align: left;
  font: normal normal normal 14px/36px avenir-lt-w01_35-light1475496, avenir-lt-w05_35-light, sans-serif;
  color: #000; text-decoration: none;
}
.gm-dd a:hover { color: #828282; }

/* ---------- 联系表单（替代原站聊天浮窗） ---------- */
.gm-chat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px;
  border: 0; border-radius: 6px; background: #1a1a1a; color: #fff; cursor: pointer;
  font: normal normal 700 17px/1 helvetica-w01-bold, helvetica-w02-bold, helvetica, arial, sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.gm-chat-btn svg { width: 26px; height: 26px; fill: currentColor; }
html[data-gm-mode="mobile"] .gm-chat-btn { display: none; } /* 移动版用快捷操作栏里的 Chat 入口 */

.gm-chat-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 10000; width: 340px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px); overflow-y: auto;
  background: #fff; border-radius: 8px; box-shadow: 0 6px 28px rgba(0, 0, 0, .28);
  font: 15px/1.45 avenir-lt-w01_35-light1475496, avenir-lt-w05_35-light, helvetica, arial, sans-serif; color: #222;
  display: none;
}
.gm-chat-panel.gm-open { display: block; }
html[data-gm-mode="mobile"] .gm-chat-panel { right: 16px; left: 16px; width: auto; bottom: 16px; max-height: calc(100vh - 32px); }
.gm-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #1a1a1a; color: #fff; border-radius: 8px 8px 0 0; }
.gm-chat-head strong { font-family: helvetica-w01-bold, helvetica, arial, sans-serif; font-size: 17px; }
.gm-chat-head button { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.gm-chat-body { padding: 16px 18px 18px; }
.gm-chat-body p { margin: 0 0 12px; color: #555; font-size: 14px; }
.gm-chat-body label { display: block; margin: 0 0 10px; font-size: 13px; color: #444; }
.gm-chat-body input, .gm-chat-body textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 10px;
  border: 1px solid #ccc; border-radius: 4px; font: inherit; font-size: 15px; color: #222; background: #fff;
}
.gm-chat-body textarea { min-height: 96px; resize: vertical; }
.gm-chat-body input:focus, .gm-chat-body textarea:focus { outline: none; border-color: #d4b52b; box-shadow: 0 0 0 2px rgba(212, 181, 43, .25); }
.gm-chat-body .gm-hp { position: absolute; left: -9999px; }
.gm-chat-body button[type="submit"] {
  width: 100%; height: 44px; margin-top: 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: #d4b52b; color: #000; font: 700 15px/1 helvetica-w01-bold, helvetica, arial, sans-serif;
}
.gm-chat-body button[disabled] { opacity: .6; cursor: default; }
.gm-chat-msg { margin-top: 10px; font-size: 14px; }
.gm-chat-msg.gm-ok { color: #2e7d32; }
.gm-chat-msg.gm-err { color: #c62828; }
