/* ============ Moonni CASA 功能层样式 ============ */
/* 隐藏 Google 翻译横幅 */
.goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }

/* ---- 翻译按钮 ---- */
.mc-translate-wrap { position: fixed; top: 120px; right: 0; z-index: 99999; }
.mc-translate-btn {
  display: flex; align-items: center; gap: 6px;
  background: #1a1a1a; color: #fff; border-radius: 6px 0 0 6px;
  padding: 10px 14px; cursor: pointer; font-size: 13px;
  box-shadow: -2px 2px 8px rgba(0,0,0,.25); user-select: none;
  font-family: Arial, sans-serif;
}
.mc-translate-btn:hover { background: #c8a35a; }
.mc-translate-btn svg { width: 18px; height: 18px; fill: #fff; }
.mc-translate-panel {
  position: fixed; top: 160px; right: 0; z-index: 99998;
  background: #fff; border: 1px solid #e5e5e5; border-radius: 8px 0 0 8px;
  box-shadow: -4px 4px 20px rgba(0,0,0,.18);
  width: 230px; max-height: 420px; overflow-y: auto;
  display: none; padding: 10px 0;
}
.mc-translate-panel.open { display: block; }
.mc-translate-panel .mc-lang-title {
  font-size: 12px; color: #999; padding: 4px 16px 8px; font-weight: 700;
  letter-spacing: 1px; font-family: Arial, sans-serif;
}
.mc-translate-panel .mc-lang {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 9px 16px; font-size: 14px; color: #333; cursor: pointer;
  font-family: Arial, sans-serif;
}
.mc-translate-panel .mc-lang:hover { background: #f5f0e8; color: #c8a35a; }
.mc-translate-panel .mc-lang.active { color: #c8a35a; font-weight: 700; }
.mc-translate-panel::-webkit-scrollbar { width: 5px; }
.mc-translate-panel::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* ---- 社交浮动栏 ---- */
.mc-social { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 99997; display: flex; flex-direction: column; }
.mc-social a, .mc-social .mc-soc-item {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #1a1a1a; color: #fff; margin-bottom: 2px; cursor: pointer;
  transition: background .2s; position: relative; text-decoration: none;
}
.mc-social a:hover, .mc-social .mc-soc-item:hover { background: #c8a35a; }
.mc-social svg { width: 20px; height: 20px; fill: #fff; }
.mc-social .mc-soc-label {
  position: absolute; right: 50px; top: 50%; transform: translateY(-50%);
  background: #1a1a1a; color: #fff; font-size: 12px; padding: 5px 10px;
  border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s; font-family: Arial, sans-serif;
}
.mc-social a:hover .mc-soc-label, .mc-social .mc-soc-item:hover .mc-soc-label { opacity: 1; }

/* ---- 二维码弹窗 ---- */
.mc-qr-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100001;
  display: none; align-items: center; justify-content: center;
}
.mc-qr-mask.open { display: flex; }
.mc-qr-box {
  background: #fff; border-radius: 10px; padding: 26px 30px; text-align: center;
  position: relative; max-width: 320px; width: 86%;
}
.mc-qr-box img { width: 200px; height: 200px; object-fit: contain; border-radius: 6px; }
.mc-qr-box .mc-qr-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #222; font-family: Arial, sans-serif; }
.mc-qr-box .mc-qr-tip { font-size: 12px; color: #999; margin-top: 10px; font-family: Arial, sans-serif; }
.mc-qr-close {
  position: absolute; top: 8px; right: 12px; font-size: 22px; color: #999; cursor: pointer; line-height: 1;
}
.mc-qr-close:hover { color: #333; }

/* ---- 留言按钮 + 模态框 ---- */
.mc-msg-fab {
  position: fixed; bottom: 30px; right: 20px; z-index: 99997;
  background: #c8a35a; color: #fff; border: none; border-radius: 50px;
  padding: 13px 22px; font-size: 14px; cursor: pointer; font-weight: 700;
  box-shadow: 0 4px 16px rgba(200,163,90,.5); font-family: Arial, sans-serif;
  display: flex; align-items: center; gap: 8px;
}
.mc-msg-fab:hover { background: #b3924d; }
.mc-msg-fab svg { width: 18px; height: 18px; fill: #fff; }

.mc-msg-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100000;
  display: none; align-items: center; justify-content: center;
}
.mc-msg-mask.open { display: flex; }
.mc-msg-box {
  background: #fff; border-radius: 12px; padding: 30px; width: 90%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.mc-msg-box h3 { margin: 0 0 6px; font-size: 20px; color: #1a1a1a; font-family: Arial, sans-serif; }
.mc-msg-box .mc-msg-sub { font-size: 13px; color: #999; margin-bottom: 18px; font-family: Arial, sans-serif; }
.mc-msg-field { margin-bottom: 14px; }
.mc-msg-field label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-family: Arial, sans-serif; }
.mc-msg-field input, .mc-msg-field textarea, .mc-msg-field select {
  width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 6px;
  padding: 10px 12px; font-size: 14px; font-family: Arial, sans-serif; outline: none;
}
.mc-msg-field input:focus, .mc-msg-field textarea:focus, .mc-msg-field select:focus { border-color: #c8a35a; }
.mc-msg-field textarea { height: 100px; resize: vertical; }
.mc-msg-submit {
  width: 100%; background: #1a1a1a; color: #fff; border: none; border-radius: 6px;
  padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: Arial, sans-serif;
}
.mc-msg-submit:hover { background: #c8a35a; }
.mc-msg-submit:disabled { opacity: .5; cursor: not-allowed; }
.mc-msg-close {
  position: absolute; top: 10px; right: 16px; font-size: 24px; color: #999; cursor: pointer; line-height: 1;
}
.mc-msg-ok { text-align: center; padding: 30px 10px; }
.mc-msg-ok .mc-ok-icon { font-size: 46px; }
.mc-msg-ok p { font-size: 16px; color: #333; font-family: Arial, sans-serif; }

/* ---- 翻译服务不可用提示层 ---- */
.mc-tr-fail-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100001;
  display: flex; align-items: center; justify-content: center;
}
.mc-tr-fail-box {
  background: #fff; border-radius: 12px; padding: 28px 24px; width: 90%; max-width: 420px;
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-family: Arial, sans-serif;
}
.mc-tr-fail-box h3 { margin: 0 0 10px; font-size: 18px; color: #1a1a1a; }
.mc-tr-fail-box p { margin: 6px 0; color: #555; font-size: 13px; line-height: 1.7; }
.mc-tr-fail-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mc-tr-fail-btn {
  display: inline-block; padding: 9px 16px; border-radius: 6px; text-decoration: none;
  font-size: 13px; cursor: pointer; border: none; font-family: Arial, sans-serif;
}
.mc-tr-fail-btn.primary { background: #1a4f8b; color: #fff; }
.mc-tr-fail-btn.primary:hover { background: #163e6e; }
.mc-tr-fail-btn.ghost { background: #eee; color: #333; }
.mc-tr-fail-btn.ghost:hover { background: #ddd; }

/* ---- 文字 logo ---- */
.mc-logo {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 26px; font-weight: 800; color: #1a1a1a; letter-spacing: .5px;
  font-family: Georgia, 'Times New Roman', serif; line-height: 1; white-space: nowrap;
}
.mc-logo em { font-style: normal; color: #c8a35a; font-weight: 800; }
.mc-logo-white { color: #fff; }
.mc-logo-white em { color: #c8a35a; }

/* 移动端适配 */
@media (max-width: 768px) {
  .mc-translate-btn span { display: none; }
  .mc-translate-btn { padding: 10px 12px; }
  .mc-translate-panel { width: 200px; }
  .mc-social a, .mc-social .mc-soc-item { width: 38px; height: 38px; }
  .mc-social svg { width: 17px; height: 17px; }
  .mc-msg-fab { padding: 11px 16px; font-size: 13px; }
}
