/* 布局与响应式相关的简单占位样式 */

.dp-feed-grid {
  column-count: 2;
  column-gap: 12px;
}

@media (max-width: 480px) {
  .dp-feed-grid {
    column-count: 1;
  }
}

.dp-feed-card {
  break-inside: avoid;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--dp-shadow-card);
}

.dp-feed-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dp-feed-card-body {
  padding: 12px 14px 16px;
}

.dp-feed-card-title {
  font-size: 15px;
  margin: 0 0 4px;
}

.dp-feed-card-meta {
  font-size: 12px;
  color: var(--dp-text-sub);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.dp-feed-card-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--dp-accent-soft);
  color: var(--dp-accent);
  font-size: 11px;
}

.dp-feed-card-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dp-text-sub);
}

.dp-feed-card--clickable {
  cursor: pointer;
}

.dp-feed-card--clickable:hover {
  transform: translateY(-4px);
  transition: transform 0.16s ease;
}

.dp-feed-card--video::after {
  content: "▶";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-feed-card-meta span:last-child {
  font-size: 12px;
  color: var(--dp-text-sub);
}

/* 移动端优化 */

/* 防止移动端点击延迟 */
a, button, input, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 键盘弹出时的适配 */
@supports (-webkit-touch-callout: none) {
  .dp-chat-input,
  #dp-chat-main-input,
  #dp-chat-input {
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }
}

/* 滚动条美化（Webkit） */
.dp-chat-main-messages::-webkit-scrollbar,
.dp-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.dp-chat-main-messages::-webkit-scrollbar-thumb,
.dp-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 154, 158, 0.3);
  border-radius: 999px;
}

.dp-chat-main-messages::-webkit-scrollbar-track,
.dp-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 移动端底部安全区 */
@supports (padding: max(0px)) {
  body {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  
  .dp-companion-fab {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
  
  .dp-footer-quote {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}


