#balou-robot {
  position: fixed;
  z-index: 99999;
  right: 15px;
  bottom: 15px;
  width: 70px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  transition: all 0.3s;
}
#balou-robot:active {
  cursor: grabbing;
}
#balou-robot img {
  width: 100%;
  display: block;
  object-fit: contain;
}
#balou-robot.clicked img {
  animation: bounceClick 0.4s ease-out;
}
@keyframes bounceClick {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
#balou-robot.eat img {
  animation: eatHappy 0.5s ease-out;
}
@keyframes eatHappy {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.1) rotate(-5deg); }
  50%  { transform: scale(1.15) rotate(5deg); }
  75%  { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes pageShake {
  0%{transform:translate(0,0)}
  10%{transform:translate(-5px,0)}
  20%{transform:translate(5px,0)}
  30%{transform:translate(-5px,0)}
  40%{transform:translate(5px,0)}
  50%{transform:translate(-5px,0)}
  60%{transform:translate(5px,0)}
  70%{transform:translate(-5px,0)}
  80%{transform:translate(5px,0)}
  90%{transform:translate(-3px,0)}
  100%{transform:translate(0,0)}
}
.page-shaking {
  animation: pageShake 0.5s ease-in-out !important;
}

.screen-black {
  position: fixed;
  top:0;left:0;width:100vw;height:100vh;
  background: #000; z-index:9999999;
  display: none;
}

.food-fly {
  position: fixed;
  z-index: 999998;
  width: 36px;
  height: 36px;
  font-size: 36px;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.5));
}
.mouse-fx {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(255,100,150,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999997;
  animation: mouseFx 0.6s forwards;
}
@keyframes mouseFx {
  0% { transform: scale(0); opacity:1; }
  100% { transform: scale(2); opacity:0; }
}
.click-burst {
  position: fixed;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 999996;
  animation: clickBurst 0.5s forwards;
}
@keyframes clickBurst {
  0% { transform: scale(0); opacity:1; }
  100% { transform: scale(1.5); opacity:0; }
}

#mood-status {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: #444;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 70px;
  z-index: 99999;
}

#weather-info {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: #444;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 45px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 4px;
}

#visitor-count {
  position: absolute;
  bottom: -25px;
  right: 0;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#slogan-info {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: #444;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  max-width: 220px;
  margin-bottom: 20px;
  z-index: 99999;
}

#chun-cai-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none;
  pointer-events: auto;
  z-index: 99999;
}
#chun-cai-menu.show {
  display: block;
  animation: menuPop 0.3s ease-out;
}
@keyframes menuPop {
  0% { opacity:0; transform: translateY(10px) scale(0.95); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}
#chun-cai-menu .menu-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}
#chun-cai-menu .menu-title::after {
  content: "";
  width: 30px;
  height: 3px;
  background: #589cf7;
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}
.menu-section {
  margin-bottom: 14px;
}
.menu-section-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-section-title::before {
  content: "";
  width: 3px;
  height: 12px;
  background: #589cf7;
  border-radius: 2px;
}
#chun-cai-menu .menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#chun-cai-menu .menu-item {
  font-size: 14px;
  color: #444;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
#chun-cai-menu .menu-item:hover {
  color: #589cf7;
  background: #f0f7ff;
}
#chun-cai-menu .menu-footer {
  text-align: center;
  font-size: 12px;
  color: #ccc;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #f0f0f0;
}

#feed-sub-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  display: none;
  z-index: 999999;
  pointer-events: auto;
}
#feed-sub-menu.show {
  display: block;
}
#feed-sub-menu .feed-item {
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  cursor: pointer;
}
#feed-sub-menu .feed-item:hover {
  color: #222;
}

#chat-input-wrap {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  width: 300px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: none;
  margin-bottom: 120px;
  pointer-events: auto;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 99999;
}
#chat-input-wrap.show {
  display: block;
  animation: chatPop 0.3s ease-out;
}
@keyframes chatPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header::before {
  content: "💬";
  font-size: 16px;
}
#chat-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #f0f0f2;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #fafbfc;
  transition: all 0.2s;
}
#chat-input:focus {
  background: #fff;
  border-color: #589cf7;
  box-shadow: 0 0 0 3px rgba(88, 156, 247,0.1);
}
#chat-send {
  margin-top: 10px;
  padding: 10px 16px;
  background: #589cf7;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
#chat-send:hover {
  background: #4a8fe7;
}
#chat-send:active {
  transform: scale(0.97);
}
#chat-send:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}
#chat-reply {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  min-height: 44px;
  max-height: 160px;
  background: #f8f9fa;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-y: auto;
  position: relative;
}
#chat-reply:empty::before {
  content: "我会努力回答你的问题~";
  color: #999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  white-space: nowrap;
}

.feed-toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font: 14px;
  z-index: 100000;
  pointer-events: none;
  animation: toastFade 2.5s forwards;
}
@keyframes toastFade {
  0% { opacity:0; transform: translate(-50%, 10px); }
  15% { opacity:1; transform: translate(-50%, 0); }
  85% { opacity:1; transform: translate(-50%, 0); }
  100% { opacity:0; transform: translate(-50%, -10px); }
}

#calc-wrap {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: 220px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 999999;
}
#calc-wrap.show {
  display: block;
}
#calc-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  text-align: right;
  font-size: 16px;
}
.calc-btns {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
}
.calc-btn {
  padding: 6px;
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#new-posts-wrap {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none;
  z-index: 999999;
}
#new-posts-wrap.show {
  display: block;
  animation: menuPop 0.3s ease-out;
}
#new-posts-wrap .post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
#new-posts-wrap .post-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
#close-new-posts {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}
#close-new-posts:hover {
  color: #589cf7;
}
#new-posts-list {
  max-height: 200px;
  overflow-y: auto;
}
#new-posts-list .post-item {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}
#new-posts-list .post-item:hover {
  color: #589cf7;
}
#new-posts-list .post-item:last-child {
  border-bottom: none;
}

#submit-wrap {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  width: 320px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none;
  z-index: 999999;
  animation: menuPop 0.3s ease-out;
}
#submit-wrap.show {
  display: block;
}
#submit-wrap .submit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
#submit-wrap .submit-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
#close-submit {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}
#close-submit:hover {
  color: #589cf7;
}
#submit-form input,
#submit-form textarea,
#submit-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  box-sizing: border-box;
}
#submit-form textarea {
  min-height: 100px;
  resize: vertical;
}
#submit-btn {
  width: 100%;
  padding: 10px;
  background: #589cf7;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
#submit-btn:hover {
  background: #4a8fe7;
}
#submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ====================== 调研弹窗完整样式 ====================== */
.tf-survey-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9999999;
    overflow: hidden;
    display: none;
}
.tf-survey-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tf-survey-tag {
    background: #e8f4ff;
    color: #1677ff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}
.tf-survey-close {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}
.tf-survey-body { padding: 20px; }
.tf-survey-desc { font-size: 14px; color: #666; margin-bottom: 15px; }
.tf-survey-tips { font-size: 12px; color: #999; margin-bottom: 20px; }
.tf-survey-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.tf-survey-option {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tf-survey-option.active {
    background: #e8f4ff;
    border-color: #1677ff;
    color: #1677ff;
}
.tf-survey-switch-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}
.tf-survey-switch-text { font-size: 13px; color: #666; }
.tf-survey-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: #e5e7eb;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.tf-survey-switch.active { background: #1677ff; }
.tf-survey-switch::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.tf-survey-switch.active::after { left: 19px; }

.survey-item{ margin-bottom:18px; }
.survey-label{ font-size:14px; font-weight:500; color:#333; margin-bottom:8px; display:block; }
.survey-options{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.survey-radio{ display:none; }
.survey-radio+label{ padding:6px 12px; border:1px solid #eee; border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; }
.survey-radio:checked+label{ background:#1677ff; color:#fff; border-color:#1677ff; }
.survey-text{ width:100%; padding:10px; border:1px solid #eee; border-radius:10px; font-size:14px; box-sizing:border-box; resize:vertical; min-height:80px; }

.tf-survey-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.tf-survey-btn {
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.tf-survey-cancel { background: #f5f7fa; }
.tf-survey-cancel:hover { background: #e6e8eb; }
.tf-survey-submit { background: #1677ff; color: #fff; }
.tf-survey-submit:hover { background: #0f6cd6; }

.tf-survey-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999998;
    display: none;
}