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: 140px; /* 可调整为 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: 11px;
  z-index: 9999;
  text-align: left; /* ✅ 让文字左对齐 */
}




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

#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 */
}

.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
  background: #fff;
}
#searchInput {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: none;
  outline: none;
}
#searchBtn {
  background: #1e80ff;
  color: white;
  border: none;
  padding: 0 16px;
  font-size: 15px;
  cursor: pointer;
}
#searchBtn:active {
  background: #0056b3;
}

/* —— 搜索栏：统一高度，消除“歪” —— */
.search-wrapper{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  height: 40px;              /* 统一高度 */
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

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

#searchInput{
  flex: 1;
  height: 100%;              /* 跟容器同高 */
  padding: 0 12px 0 40px;    /* 给图标留位，不用空格 */
  font-size: 16px;
  border: 0;
  outline: 0;
  background: transparent;
  box-sizing: border-box;
}

#searchBtn{
  height: 100%;              /* 跟容器同高 */
  padding: 0 16px;
  background: #1e80ff;
  color: #fff;
  border: 0;
  font-size: 15px;
  cursor: pointer;
}
#searchBtn:active{ background:#0056b3; }

/* 1) 聚焦时让 placeholder 变透明（视觉消失） */
#searchInput:focus::placeholder {
  color: transparent;
}

/* 2) 聚焦时隐藏左侧放大镜（不影响输入框 padding） */
.search-icon {
  transition: opacity .15s ease;
}
.search-wrapper:focus-within .search-icon {
  opacity: 0;
}


/* === PC 扫码面板（匹配当前 DOM）=== */
.pc-qr-area { text-align: center; }

.pc-qr-area .qr-wrap {
  position: relative;
  display: inline-block;
  width: 280px;           /* 你现在就是 280，可调 240~320 */
  height: 280px;
}

.pc-qr-area .qr-canvas { width: 100%; height: 100%; }
/* 让二维码更锐利 */
.pc-qr-area .qr-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.pc-qr-area .qr-logo-wrap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px;                /* 白边厚度 */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.pc-qr-area .qr-logo {
  display: block;
  width: 64px;                 /* 你现在是 64，如需覆盖内联可加 !important */
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.pc-qr-area .qr-title {
  margin-top: .8rem;
  font-size: 14px;
  color: #333;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: auto;
  margin-right: auto;
}

.pc-qr-area .qr-note {
  margin-top: .25rem;
  font-size: 12px;
  color: #777;
}

.pc-qr-area .qr-actions { margin-top: .8rem; }
.pc-qr-area .copy-btn {
  padding: .45rem .9rem;
  border-radius: 8px;
  border: none;
  background: #1e80ff;
  color: #fff;
  cursor: pointer;
}

.pc-qr-area .qr-title{
  margin-top:10px;
  max-width: 360px;
  line-height: 1.35;
  font-size: 15px !important;
  font-weight: 600 !important;
  color:#111827 !important;

  /* 两行显示 */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:normal;

  /* 白底小卡片 */
  background: rgba(255,255,255,.95);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-left:auto; margin-right:auto;
}
.pc-qr-area .qr-note{
  margin-top:6px;
  font-size:13px !important;
  color:#374151 !important;
}

/* —— PC端：仅口令（无直链）展示样式 —— */
.pc-qr-area.code-only { text-align: center; }

.pc-qr-area .pill-title{
  display:inline-block;
  max-width: 420px;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 600;
  color:#111827;
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  line-height: 1.35;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.pc-qr-area .sub-note{
  margin-top: 8px;
  font-size: 13px;
  color:#374151;
}

/* 口令展示条 */
.pc-qr-area .code-box{
  margin: 10px auto 0;
  max-width: 420px;
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  background:#fff;
  border:1px dashed #dfe3e8;
  border-radius: 10px;
}
.pc-qr-area .code-text{
  flex:1; min-width: 0;
  font: 600 14px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:#111827;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  user-select: all;
}
.pc-qr-area .btn-row{
  margin-top: 10px;
  display:flex; justify-content:center; gap:10px; flex-wrap:wrap;
}
.pc-qr-area .btn-primary{
  padding:.5rem 1rem; border:0; border-radius:8px;
  background:#1e80ff; color:#fff; cursor:pointer;
}
.pc-qr-area .btn-ghost{
  padding:.5rem 1rem; border:1px solid #d1d5db; border-radius:8px;
  background:#fff; color:#111827; cursor:pointer;
}


/* 默认隐藏 loading-tip，由状态类来控制 */
#loading-tip { display: none; }

/* 加载阶段：只展示 loading-tip，隐藏搜索框与热词区 */
body.loading #loading-tip { display: flex; align-items: center; justify-content: center; gap: 8px; }
body.loading #searchBox { visibility: hidden; }      /* 不占位就用 display:none */
body.loading #hot-label-container { display: none; }

/* 就绪阶段：展示搜索框与热词区，隐藏 loading-tip */
body.ready #loading-tip { display: none; }
body.ready #searchBox { visibility: visible; }

/* 可选：淡入更顺滑 */
#searchBox { transition: opacity .18s ease; }
body.loading #searchBox { opacity: 0; }
body.ready   #searchBox { opacity: 1; }



/* —— Apple 风格：极简玻璃拟态胶囊按钮 —— */
#load-more { text-align: center; margin: 24px 0 48px; }

#load-more-btn{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;                  /* 触达大小 */
  padding: 10px 18px;
  border-radius: 9999px;             /* 胶囊 */
  border: 0.5px solid rgba(60,60,67,.28);  /* 发丝线 */
  font: 500 15px/1.1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: .01em;
  color: #1d1d1f;                    /* Apple 文本色 */
  background: rgba(245,245,247,.82); /* F5F5F7 半透 */
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),  /* 内高光 */
    0 0 0 0.5px rgba(60,60,67,.08),       /* 发丝描边补强 */
    0 8px 16px rgba(0,0,0,.04);           /* 轻投影 */
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .08s ease;
}

/* 悬停 & 点击：轻微呼吸，不喧宾夺主 */
#load-more-btn:hover{
  background: rgba(255,255,255,.88);
  border-color: rgba(60,60,67,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 0 0 0.5px rgba(60,60,67,.12),
    0 12px 24px rgba(0,0,0,.06);
}
#load-more-btn:active{ transform: translateY(1px); }

/* 键盘可达性 */
#load-more-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0,122,255,.25),
    inset 0 1px 0 rgba(255,255,255,.7);
  border-color: rgba(0,122,255,.35);
}

/* 右侧“›”箭头（无需改 HTML） */
#load-more-btn::after{
  content: "›";
  font-size: 16px;
  line-height: 1;
  margin-left: 2px;
  transform: translateX(0);
  transition: transform .2s ease;
  opacity: .9;
}
#load-more-btn:hover::after{ transform: translateX(2px); }


/* 保留加载态隐藏 */
body.loading #load-more,
body.loading #footer-note,
body.loading #thank-you { display: none !important; }

/* 就绪后只显示底部文字，不强制显示 load-more */
body.ready #footer-note,
body.ready #thank-you { display: block !important; }
/* body.ready #load-more 这行删掉 */

/* iOS 字体缩放 & 控件至少 16px，避免点一下就放大 */
html { -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font-size: 16px !important; }

/* 如果你还是保留了 type=search，则把系统自带放大镜/清空按钮隐藏 */
input[type="search"] { -webkit-appearance: none; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }

/* 你的按钮现在是 15px，抬到 16px，防止点按钮触发放大 */
#searchBtn { font-size: 16px !important; }

html, body { overscroll-behavior-y: contain; }  /* 减少滚动链条/回弹干扰 */
html { overflow-anchor: none; }                 /* 关闭滚动锚定，避免高度变化时自动校正 */
