/* 补充工具类
 *
 * site.css 是从旧站页面「已经解析过的样式表」导出的，里面只有旧页面实际用过的类。
 * 新模板用到了少数旧页面没用过的类（例如 whitespace-pre-wrap / line-clamp-3 / 各个响应式
 * 栅格），这些类在原 CSS 里根本不存在，会表现为「样式丢失」甚至手机端整页横向溢出。
 * 这里按站点原有设计令牌把它们补齐（色值与 site.css 中的一致）。
 */

/* 主题色：primary = rgb(22 93 255)，light 系为浅色底，dark 系为深色底 */

/* 首页/工具页的浅色底（比 light-100 更淡一档） */
.bg-light-50 {
  background-color: rgb(250 250 251);
}

/* 会员页按钮的交互反馈 */
.buy-btn {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.buy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.buy-btn:active {
  transform: translateY(0);
}

/* 深色模式下浅色边框的 20% 透明度版本 */
.dark\:border-light-500\/20:is(.dark *) {
  border-color: rgba(163, 163, 163, 0.2);
}

/* 表单与按钮状态 */
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

/* flex 对齐 */
.items-end {
  align-items: flex-end;
}

/* 文案截断（列表卡片摘要） */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 会员页原价删除线 */
.line-through {
  text-decoration-line: line-through;
}

/* 宽度与间距 */
.max-w-4xl {
  max-width: 56rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

/* 响应式栅格：详情页的「上一篇/下一篇」在 sm 以上并排 */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 标题字号 */
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-right {
  text-align: right;
}

/* 提示词正文 / 工具页输出：保留换行但允许自动折行（缺了这条会让 <pre> 撑爆页面宽度） */
.whitespace-pre-wrap {
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- 第二批补充（用户中心 / 热搜榜用到的） --- */

/* 三列栅格（用户中心的三张统计卡） */
@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 列表分隔线（热搜榜） */
.divide-y > * + * {
  border-top-width: 1px;
  border-top-style: solid;
}
.divide-light-400\/40 > * + * {
  border-top-color: rgba(212, 212, 212, 0.4);
}
.dark\:divide-light-500\/10:is(.dark *) > * + * {
  border-top-color: rgba(163, 163, 163, 0.1);
}

/* 等宽字体（邀请码） */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* 不被 flex 压缩（热搜排行数字、标签） */
.shrink-0 {
  flex-shrink: 0;
}
