/* information 页面内容样式 */

/* 链接按钮样式 */
.icon-link {
  display: inline-block;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin: 2px;
  transition: opacity 0.3s, transform 0.2s;
  position: relative;
}

.icon-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.icon-link i {
  margin-right: 6px;
}

/* 平台特定颜色 */
.bilibili-link {
  background: #00a1d6;
}

.steam-link {
  background: #1b2838;
}

.gitee-link {
  background: #c71d23;
}

.github-link {
  background: #333;
}

/* GitHub 链接状态指示器 */
.github-link-status {
  position: relative;
}

/* 状态指示点 */
.status-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot-top {
  top: 5px;
  right: 5px;
}

.status-dot-right {
  top: 25%;
  right: -20px;
}

/* 状态颜色 */
.status-online {
  background-color: #03dc6c;
}

.status-warning {
  background-color: #f9aa6f;
}

/* 文本样式 */
.strikethrough {
  text-decoration: line-through;
}

.italic-border {
  font-style: italic;
  border: 1px solid rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  display: inline-block;
}

.italic-gray {
  color: lightgray;
  font-style: italic;
}

/* 站点信息卡片 */
.site-info-card {
  background: #f0f8fb;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.card-header {
  color: #0969da;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.card-header svg {
  margin-right: 8px;
}

.info-row {
  margin-bottom: 12px;
  line-height: 1.6;
}

.info-label {
  color: #24292f;
  font-weight: 500;
  display: inline-block;
  width: 140px;
}

.info-link {
  color: #0969da;
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

/* 网站构建标签 */
.build-tags {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  display: inline-block;
}

/* 开源状态标签 */
.open-source-status {
  color: #cf222e;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
}

/* 部署地址容器 */
.deployment-container {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  margin-top: 8px;
  min-width: 300px;
}

.deployment-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.deployment-label {
  width: 100px;
  color: #57606a;
  font-size: 14px;
  text-decoration: none;
}

.deployment-label:hover {
  text-decoration: underline;
}

.deployment-link {
  color: #0969da;
  text-decoration: none;
  position: relative;
}

.deployment-link:hover {
  text-decoration: underline;
}

/* Python依赖代码块 */
.python-deps {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}

/* 居中容器 */
.center-container {
  text-align: center;
  margin: 20px 0;
}

/* Tooltip 样式 */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: help;
}

.tooltip-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tooltip-dot::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  margin-bottom: 3px;
}

.tooltip-dot:hover::after,
.tooltip-dot:hover::before {
  opacity: 1;
  visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .info-label {
    width: 100%;
    display: block;
    margin-bottom: 5px;
  }

  .deployment-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .deployment-label {
    width: auto;
    margin-bottom: 5px;
  }

  .deployment-container {
    min-width: auto;
  }
}
