body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f5f5;
  padding: 80px 1.5rem 2rem 1.5rem; /* 上、右、下、左 */
  color: #333;
}


h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.9rem;
  text-align: center;
  color: #222;
  letter-spacing: 1px;
}





.item {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.item-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.item-type {
  color: #666;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.view-btn {
  color: #28a745;
  font-size: 0.95rem;
  text-decoration: none;
}

.view-btn:hover {
  text-decoration: underline;
}

.content-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f0f0f0;
  border-radius: 8px;
}


.content-text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
}


.copy-btn {
  background: #007BFF;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
}
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #323232;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 16px 24px;
  position: fixed;
  z-index: 999;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-line;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

#main {
  margin-top: 160px; /* 可调整为 60~100 之间的数值 */
}

.type-icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: text-bottom; /* 👈 最稳的“文字基线对齐” */
  border-radius: 3px;
  object-fit: contain;
}

.qq-number {
  color: #007BFF;
  cursor: pointer;
  text-decoration: underline;
}

.no-result {
  text-align: center;
  color: #444;
  font-size: 1rem;
  padding: 2.5rem 1rem;
  line-height: 1.6;
}

.no-result .no-tip {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #666;
}

#footer-note {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  padding: 2rem 1rem;
  line-height: 1.6;
}

.item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  transition: 0.2s;
}

#thank-you {
  font-size: 0.85rem;
  color: #999;
  text-align: center;
  padding-bottom: 3rem;
  margin-top: -1rem;
  line-height: 1.6;
}

a.copy-btn {
  text-decoration: none;
}


#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 18px;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: none;
  transition: background-color 0.3s ease;
}

#back-to-top:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#top-quick-links {
  position: absolute;
  top: 32px;       /* ✅ 距离顶部 */
  left: 16px;      /* ✅ 靠左对齐 */
  font-size: 14px;
  z-index: 9999;
  text-align: left; /* ✅ 让文字左对齐 */
}




#top-quick-links a {
  color: #007BFF !important; /* 强制设置蓝色 */
  text-decoration: none;
  font-size: 14px;
}

#top-quick-links a:hover {
  text-decoration: underline;
}

.info-block {
  line-height: 1.6;
  color: #444;
}

#top-quick-links a:visited {
  color: #007BFF !important; /* 访问后仍然蓝色 */
}






#searchBox {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #888;
  pointer-events: none;
  z-index: 1;
}

#searchInput {
  width: 100%;
  padding: 10px 12px 10px 40px;  /* 👈 左侧留出图标空间 */
  font-size: 16px;
  border-radius: 24px;
  border: 1px solid #ccc;
  outline: none;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;         /* ✅ 图标宽度 */
  height: 18px;        /* ✅ 图标高度 */
  color: #888;
  pointer-events: none;
}


#app-link {
  display: none;
}


.copy-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}






#demo-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.7);
  display:none; align-items:center; justify-content:center; z-index:9999;
}
#demo-modal .demo-box{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  max-width:90vw; max-height:90vh;
}
#demo-close{
  align-self:center;
  background:rgba(0,0,0,.75); color:#fff; border:none;
  padding:8px 18px; border-radius:9999px; font-size:16px; cursor:pointer;
}
#demo-video{
  display:block; border-radius:8px;
  max-width:60vw; max-height:60vh;   /* 想更小就调这里，比如 50vw/50vh */
}

