/* ========================================
   Component Styles - 通用组件样式
   ======================================== */

/* 总结列表项，沿用观点事件轻玻璃卡片风格（无头像） */
.summary-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.summary-title {
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.summary-meta {
  font-size: 12px;
  color: var(--muted);
}

.summary-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.summary-list {
  display: grid;
  gap: 8px;
}

.summary-row {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
}

/* 深度分析整块内容（字体与总结保持一致） */
.analysis-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 原文弹窗专用样式 */
#content-original {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  font-size: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* 下拉刷新控件 */
.pull-refresh {
  position: fixed;
  inset: 0 auto auto 0;
  right: 0;
  height: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  pointer-events: none;
}

.pull-refresh .inner {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.90);
  box-shadow: 0 8px 20px var(--shadow), inset 0 1px rgba(255,255,255,0.7);
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transform: translateY(-32px);
  transition: transform 160ms ease;
  will-change: transform;
}

.pull-refresh .spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(17,24,39,0.15);
  border-top-color: var(--accent-2);
  animation: prspin 600ms linear infinite;
}

@keyframes prspin {
  to { transform: rotate(360deg); }
}

/* PWA/WebView 模式：禁用系统下拉刷新，启用自定义手势 */
html.custom-refresh,
body.custom-refresh {
  overscroll-behavior-y: contain;
}

html.custom-refresh main {
  overscroll-behavior-y: contain;
  will-change: transform;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  touch-action: pan-y;
}

/* 下拉刷新说明：依赖浏览器原生行为 */
.pull-hint {
  margin: 8px 12px 0;
  font-size: 12px;
  color: var(--muted);
}

/* 小屏优化 */
@media (max-width: 360px) {
  .tge-grid {
    grid-auto-columns: min-content;
    gap: 5px;
    padding: 8px 8px;
  }
  .tge-item {
    padding: 5px 3px;
    gap: 5px;
  }
  .tge-add-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    max-width: 26px;
    border-radius: 7px;
  }
  .tge-add-btn::before {
    width: 12px;
    height: 1.5px;
  }
  .tge-add-btn::after {
    width: 1.5px;
    height: 12px;
  }
  .tge-icon {
    width: 30px;
    height: 30px;
  }
  .tge-name {
    font-size: 10px;
  }
}








