body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

#red {
  width: 320px;
  height: 320px;
  background: red;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
#green {
  width: 200px;
  height: 200px;
  background: green;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
}
#blue {
  width: 100px;
  height: 100px;
  background: blue;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

#output {
  position: fixed;
  bottom: 100px; /* 增加这个值，使元素向上移动 */
  left: 75%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 16px 32px;
  min-width: 240px;
  text-align: center;
  font-size: 16px;
  color: #333;
  z-index: 10;
  opacity: 0.95;
}
.container {
  max-width: 670px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem;
  /* 移除背景颜色、模糊效果、阴影和边框 */
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  color: white;
}

h1 {
  margin: 1rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.left-align {
  text-align: left;
}

.capture-log {
  color: #e67e22;
}

.bubble-log {
  color: #2980ef;
}

.bubble-target {
  color: #fff;
  background: #e74c3c;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.clicked-area {
  font-weight: bold;
  color: #e74c3c;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.bg-image {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.navbar {
  width: 200px;  /* 减小宽度 */
  /* 修改背景颜色透明度为 70% */
  background-color: rgba(51, 51, 51, 0.7);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;  /* 添加文本居中 */
}

.nav-brand {
  color: white;
  padding: 20px;
  font-size: 1.5em;
  text-align: center;
  background-color: #222;
}

.nav-item {
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  display: block;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  background-color: #444;
  border-left: 4px solid #a1a1a1;
  transform: translateX(5px);
}



.nav-item:hover::after {
  transform: translateX(0);
}

.sub-nav {
  display: none;
  /* 修改背景颜色并设置 50% 透明度 */
  background-color: rgba(68, 68, 68, 0.5); 
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.nav-item-container:hover .sub-nav {
  display: block;
  opacity: 0.5; /* 保持下拉导航栏透明度为 30% */
  transform: translateX(0);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.sub-nav-item {
  color: #ddd;
  text-decoration: none;
  padding: 8px 20px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.sub-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #555;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.sub-nav-item:hover::before {
  transform: scaleX(1);
}

.sub-nav-item:hover {
  background-color: #555;
  color: #fff;
}

/* 保持原有的三角形样式不变 */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}
.back-to-home {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 20px;
  background-color: #747475;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  z-index: 1000; /* 确保按钮显示在其他元素之上 */
}

.back-to-home:hover {
  background-color: #4d4d4d;
}