/* 链接样式 */
.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: #20b4ff;
    text-decoration: underline;
  }
}
.links,
.links:focus {
  color: #337ab7;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  &:hover {
    color: #20b4ff;
  }
}
/* 按钮组 */
.button-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px; /* 控制按钮之间的间距 */
  z-index: 999;
}
.bili-button {
  padding: 8px 12px;
  white-space: nowrap;
  background-color: #3399ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.bili-button:hover {
  background-color: #267acc;
}
/* 联系作者部分 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  text-align: left;
}
.modal-content h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #333;
}
.modal-content textarea {
  width: 100%;
  height: 100px;
  margin: 10px 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.modal-actions {
  text-align: right;
}
.modal-actions button {
  margin-left: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background-color: #4caf50;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}
.modal-actions button:hover {
  background-color: #45a049;
}
.modal-actions button#cancel-btn {
  background-color: #aaa;
}
.modal-actions button#cancel-btn:hover {
  background-color: #888;
}
/* 支持作者部分 */
#support-btn,
#contact-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.magic-icon:hover
#support-btn:hover
#contact-btn:hover {
  border-color: #888;
  background-color: #f5f5f5;
}
.close {
  float: right;
  font-size: 1.3rem;
  cursor: pointer;
}
.support-icon {
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.support-icon:hover {
  transform: scale(1.15);
}
/* 幻术提示 */
#magic-tip {
  display:none;
  position:fixed;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,0.7);
  color:white;
  padding:10px 10px;
  min-width: 260px;
  border-radius:6px;
  font-size:14px;
  line-height: 22px;
  z-index:9999;
}
/* 聊天室 */
#chat-area {
  display: none;
  max-width: 540px; /* 可自定义宽度 */
  margin: 10px auto 0; /* 上边距10，下边距0，左右居中 */
  flex-direction: column; /* 竖向排列 */
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  box-sizing: border-box;
}
#chat-box {
  border: 1px solid #ccc;
  height: 500px;
  width: 100%;
  overflow-y: auto;
  background: #f9f9f9;
  margin: 2px auto;
  padding: 4px 6px;  /*上下4，左右6*/
  text-align: left;
  box-sizing: border-box;
  line-height: 20px;
}
#send-box {
  width: 100%;
  display: flex;
  gap: 5px;
  flex-wrap: wrap; /* 允许换行 */
  margin: 2px auto;
}
#send-box select {
  flex: 1 1 130px; /* 可缩放但最小130px */
  max-width: 180px;
  height: 32px;
  padding: 4px;
  font-size: 14px;
  margin: 4px 2px;
}
#input4 {
  flex: 1 1 100%; /* 强制 textarea 单独占一整行 */
  height: 100px;
  padding: 4px;
  font-size: 14px;
  margin: 4px 2px;
  border-radius: 6px;
  line-height: 22px;
}
#send-box button {
  min-width: 70px;
  height: 40px;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.danmuku {
  margin-bottom: 10px;
  line-height: 1.3;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .support-icon {
    width: 36px;
    height: 36px;
  }
  .button-group {
    left: 4px;
    gap: 5px;
  }
  .bili-button {
    padding: 8px 8px;
  }
}
/* 角色图片 */
.role-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}
@media (max-width: 580px) {
  .role-img {
    width: 75px;
    height: 75px;
  }
}
@media (max-width: 480px) {
  .role-img {
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 380px) {
  .role-img {
    width: 65px;
    height: 65px;
  }
}

.no-diff {
  font-size: 12px;
  animation: fadeUp 22s ease forwards;
  pointer-events: none;
  white-space: nowrap;
}
/* 被淘汰的颜色淡一点 */
.extra-row .name {
  color: #777;
}
.extra-row .votes {
  color: #777;
}
/*角色排名发生变化时单元格闪闪发光*/
.flash-glow-up {
  animation: flash-glow-up 22s ease-in-out;
}
.flash-glow-down {
  animation: flash-glow-down 22s ease-in-out;
}
@keyframes flash-glow-up {
  0% {
    box-shadow: inset 0 0 2px rgba(76, 175, 80, 0.6), inset 0 0 4px rgba(76, 175, 80, 0.6);
    border-color: rgba(76, 175, 80, 0.8);
  }
  30% {
    box-shadow: inset 0 0 6px rgba(76, 175, 80, 0.8), inset 0 0 12px rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 1);
  }
  60% {
    box-shadow: inset 0 0 4px rgba(76, 175, 80, 0.6), inset 0 0 6px rgba(76, 175, 80, 0.6);
    border-color: rgba(76, 175, 80, 0.8);
  }
  100% {
    box-shadow: inset 0 0 2px rgba(76, 175, 80, 0.4), inset 0 0 4px rgba(76, 175, 80, 0.4);
    border-color: rgba(76, 175, 80, 0.5);
  }
}
@keyframes flash-glow-down {
  0% {
    box-shadow: inset 0 0 2px rgba(244, 67, 54, 0.6), inset 0 0 4px rgba(244, 67, 54, 0.6);
    border-color: rgba(244, 67, 54, 0.8);
  }
  30% {
    box-shadow: inset 0 0 6px rgba(244, 67, 54, 0.8), inset 0 0 12px rgba(244, 67, 54, 0.8);
    border-color: rgba(244, 67, 54, 1);
  }
  60% {
    box-shadow: inset 0 0 4px rgba(244, 67, 54, 0.6), inset 0 0 6px rgba(244, 67, 54, 0.6);
    border-color: rgba(244, 67, 54, 0.8);
  }
  100% {
    box-shadow: inset 0 0 2px rgba(244, 67, 54, 0.4), inset 0 0 4px rgba(244, 67, 54, 0.4);
    border-color: rgba(244, 67, 54, 0.5);
  }
}
/* 悬浮卡片链接 */
.link-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 10px auto;
}
.link-card {
  width: 320px;
  min-height: 65px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ffffff, #f5faff);
  border-radius: 14px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: all .25s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,120,255,.18);
}
.link-icon {
  font-size: 30px;
}
.link-text {
  flex: 1;
}
.link-title {
  font-size: 18px;
  font-weight: bold;
  color: #337ab7;
  margin-bottom: 6px;
}
.link-desc {
  font-size: 13px;
  color: #888;
}

@media (max-width: 720px)  {
  .link-container {
    gap: 8px;
    margin: 2px auto;
  }
  .link-card {
    width: 160px;
    min-height: 30px;
    padding: 4px 6px;
  }
  .link-desc {
    display: none;
  }
  .link-title {
    font-size: 14px;
  }
  .link-icon {
    font-size: 18px;
  }
}

