/**
 * 福仁齐AI员工 - 聊天浮窗样式
 * 品牌色: #e67e22 (福仁齐橘色)
 * v2.0 - 增强CSS效果，100%展示样式
 */

:root {
  --ai-primary: #e67e22;
  --ai-primary-dark: #d35400;
  --ai-primary-light: #f39c12;
  --ai-bg: #ffffff;
  --ai-text: #2c3e50;
  --ai-text-light: #7f8c8d;
  --ai-border: #e8e8e8;
  --ai-shadow: rgba(0, 0, 0, 0.15);
  --ai-bot-bg: #f8f9fa;
  --ai-user-bg: #e67e22;
  --ai-user-text: #ffffff;
  --ai-radius: 14px;
  --ai-widget-width: 370px;
  --ai-widget-height: 540px;
}

/* 浮动触发按钮 */
#ai-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  cursor: pointer;
  transition: all 0.3s ease;
}

#ai-chat-trigger .ai-trigger-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-primary-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px var(--ai-shadow), 0 0 0 0 rgba(230, 126, 34, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

#ai-chat-trigger .ai-trigger-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.45), 0 0 0 8px rgba(230, 126, 34, 0.08);
}

#ai-chat-trigger .ai-trigger-btn:active {
  transform: scale(0.92);
}

#ai-chat-trigger .ai-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

#ai-chat-trigger .ai-unread-badge.show {
  display: flex;
}

/* 聊天窗口 */
#ai-chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 999998;
  width: var(--ai-widget-width);
  height: var(--ai-widget-height);
  background: var(--ai-bg);
  border-radius: var(--ai-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  animation: ai-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#ai-chat-widget.open {
  display: flex;
}

@keyframes ai-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 窗口标题栏 - 增强渐变 */
#ai-chat-widget .ai-chat-header {
  background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-primary-dark) 50%, #c0392b 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* 标题栏装饰光效 */
#ai-chat-widget .ai-chat-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

#ai-chat-widget .ai-chat-header .ai-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

#ai-chat-widget .ai-chat-header .ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease;
}

#ai-chat-widget .ai-chat-header .ai-avatar:hover {
  transform: rotate(10deg) scale(1.05);
}

#ai-chat-widget .ai-chat-header .ai-header-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

#ai-chat-widget .ai-chat-header .ai-header-text p {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: 0.85;
}

#ai-chat-widget .ai-chat-header .ai-header-actions {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}

#ai-chat-widget .ai-chat-header .ai-header-actions button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

#ai-chat-widget .ai-chat-header .ai-header-actions button:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: scale(1.1);
}

#ai-chat-widget .ai-chat-header .ai-header-actions button:active {
  transform: scale(0.9);
}

/* 消息区域 */
#ai-chat-widget .ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, #f8f9fa 0%, #f5f6fa 100%);
  scroll-behavior: smooth;
}

#ai-chat-widget .ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}

#ai-chat-widget .ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

#ai-chat-widget .ai-chat-messages::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
  transition: background 0.2s;
}

#ai-chat-widget .ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* 消息气泡 - 增强效果 */
#ai-chat-widget .ai-message {
  margin-bottom: 14px;
  display: flex;
  animation: ai-message-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ai-message-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ai-chat-widget .ai-message.ai-bot {
  justify-content: flex-start;
}

#ai-chat-widget .ai-message.ai-user {
  justify-content: flex-end;
}

#ai-chat-widget .ai-message .ai-bubble {
  max-width: 82%;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  overflow: hidden;
  position: relative;
}

#ai-chat-widget .ai-message.ai-bot .ai-bubble {
  background: var(--ai-bot-bg);
  color: var(--ai-text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--ai-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

#ai-chat-widget .ai-message.ai-user .ai-bubble {
  background: linear-gradient(135deg, var(--ai-user-bg), var(--ai-primary-dark));
  color: var(--ai-user-text);
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.25);
}

/* 聊天消息中的图片样式 - 强制不超过气泡宽度 */
#ai-chat-widget .ai-message .ai-bubble img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 聊天消息中的图片链接提供点击放大提示 */
#ai-chat-widget .ai-message .ai-bubble img + em {
  display: block;
  font-size: 11px;
  color: var(--ai-text-light);
  font-style: normal;
  text-align: center;
  margin-top: 4px;
}

#ai-chat-widget .ai-message .ai-time {
  font-size: 11px;
  color: var(--ai-text-light);
  margin-top: 4px;
  padding: 0 4px;
  opacity: 0.8;
}

#ai-chat-widget .ai-message.ai-bot .ai-time {
  text-align: left;
}

#ai-chat-widget .ai-message.ai-user .ai-time {
  text-align: right;
}

/* 推荐问题按钮 - 增强悬停效果 */
#ai-chat-widget .ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}

#ai-chat-widget .ai-suggestions .ai-suggestion-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--ai-primary);
  border-radius: 18px;
  background: #fff;
  color: var(--ai-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  line-height: 1.4;
  user-select: none;
}

#ai-chat-widget .ai-suggestions .ai-suggestion-btn:hover {
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-dark));
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
  border-color: transparent;
}

#ai-chat-widget .ai-suggestions .ai-suggestion-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 1px 4px rgba(230, 126, 34, 0.2);
}

/* 输入区域 - 增强焦点效果 */
#ai-chat-widget .ai-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--ai-border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
  flex-shrink: 0;
}

#ai-chat-widget .ai-chat-input-area textarea {
  flex: 1;
  border: 1.5px solid var(--ai-border);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 14px;
  resize: none;
  outline: none;
  font-family: inherit;
  max-height: 80px;
  line-height: 1.5;
  transition: all 0.25s ease;
  background: #fafafa;
}

#ai-chat-widget .ai-chat-input-area textarea:focus {
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
  background: #fff;
}

#ai-chat-widget .ai-chat-input-area textarea::placeholder {
  color: #b0b0b0;
}

#ai-chat-widget .ai-chat-input-area .ai-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

#ai-chat-widget .ai-chat-input-area .ai-send-btn:hover {
  background: linear-gradient(135deg, var(--ai-primary-light), var(--ai-primary));
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.4);
}

#ai-chat-widget .ai-chat-input-area .ai-send-btn:active {
  transform: scale(0.92);
}

#ai-chat-widget .ai-chat-input-area .ai-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 打字指示器 - 增强动画 */
#ai-chat-widget .ai-typing {
  display: none;
  padding: 8px 16px;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#ai-chat-widget .ai-typing.show {
  display: flex;
}

#ai-chat-widget .ai-typing .ai-typing-dots {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: var(--ai-bot-bg);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--ai-border);
}

#ai-chat-widget .ai-typing .ai-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b0b0b0;
  animation: ai-typing-bounce 1.4s ease-in-out infinite;
}

#ai-chat-widget .ai-typing .ai-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

#ai-chat-widget .ai-typing .ai-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ai-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-7px);
    opacity: 1;
    background: var(--ai-primary);
  }
}

/* ===== 增强动画效果（高科技感） ===== */

/* 消息气泡呼吸发光 */
@keyframes ai-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.1), 0 1px 4px rgba(0,0,0,0.04);
  }
  50% {
    box-shadow: 0 0 18px rgba(230, 126, 34, 0.25), 0 0 8px rgba(230, 126, 34, 0.1);
  }
}

/* 消息气泡呼吸发光（用户消息） */
@keyframes ai-user-glow-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.25);
  }
  50% {
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.4), 0 2px 12px rgba(230, 126, 34, 0.3);
  }
}

/* AI头像思考脉动 */
@keyframes ai-avatar-thinking {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(230, 126, 34, 0);
  }
}

/* 打字光标闪烁 */
@keyframes ai-cursor-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* 涟漪扩散（消息发送时） */
@keyframes ai-ripple {
  from {
    transform: scale(0);
    opacity: 0.5;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* 消息出现光晕效果 */
@keyframes ai-message-glow {
  from {
    box-shadow: 0 0 25px rgba(230, 126, 34, 0.35), 0 0 50px rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.3);
  }
  to {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-color: var(--ai-border);
  }
}

/* 用户消息出现光晕 */
@keyframes ai-user-message-glow {
  from {
    box-shadow: 0 0 25px rgba(230, 126, 34, 0.45), 0 0 50px rgba(230, 126, 34, 0.15);
  }
  to {
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.25);
  }
}

/* 打字光标容器 */
.ai-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ai-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: ai-cursor-blink 0.8s step-end infinite;
  border-radius: 1px;
}

/* AI头像思考状态 */
.ai-avatar.thinking {
  animation: ai-avatar-thinking 1.5s ease-in-out infinite;
}

/* 消息气泡呼吸光晕 */
.ai-message.ai-bot .ai-bubble.glow-pulse {
  animation: ai-glow-pulse 3s ease-in-out 2;
}

.ai-message.ai-user .ai-bubble.glow-pulse {
  animation: ai-user-glow-pulse 3s ease-in-out 2;
}

/* 消息出现光晕效果 */
.ai-message.ai-bot .ai-bubble.message-glow {
  animation: ai-message-glow 1s ease-out forwards;
}

.ai-message.ai-user .ai-bubble.message-glow {
  animation: ai-user-message-glow 1s ease-out forwards;
}

/* 涟漪效果容器 */
.ai-ripple-effect {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.ai-ripple-effect .ai-ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--ai-primary);
  opacity: 0.3;
  animation: ai-ripple 0.6s ease-out forwards;
}

/* 增强版打字指示器 - 带波浪颜色 */
#ai-chat-widget .ai-typing .ai-typing-dots.ai-enhanced-dots {
  background: linear-gradient(135deg, var(--ai-bot-bg), #fff);
  box-shadow: 0 2px 12px rgba(230, 126, 34, 0.08);
  border-color: rgba(230, 126, 34, 0.2);
}

#ai-chat-widget .ai-typing .ai-typing-dot.ai-enhanced-dot {
  width: 9px;
  height: 9px;
  animation: ai-enhanced-bounce 1.2s ease-in-out infinite;
}

#ai-chat-widget .ai-typing .ai-typing-dot.ai-enhanced-dot:nth-child(1) {
  animation-delay: 0s;
  background: var(--ai-primary);
}

#ai-chat-widget .ai-typing .ai-typing-dot.ai-enhanced-dot:nth-child(2) {
  animation-delay: 0.15s;
  background: var(--ai-primary-light);
}

#ai-chat-widget .ai-typing .ai-typing-dot.ai-enhanced-dot:nth-child(3) {
  animation-delay: 0.3s;
  background: var(--ai-primary-dark);
}

@keyframes ai-enhanced-bounce {
  0%, 60%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px) scale(1.15);
    opacity: 1;
  }
}

/* "AI思考中" 文字标签 */
.ai-thinking-label {
  font-size: 11px;
  color: var(--ai-text-light);
  margin-left: 6px;
  animation: ai-thinking-fade 1.5s ease-in-out infinite;
}

@keyframes ai-thinking-fade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 消息完成指示器 */
.ai-complete-indicator {
  display: inline-block;
  font-size: 11px;
  color: var(--ai-primary);
  margin-left: 4px;
  opacity: 0;
  animation: ai-complete-fade 0.3s ease-out forwards;
}

@keyframes ai-complete-fade {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 0.8; transform: scale(1); }
}

/* 增强消息进入动画 */
@keyframes ai-message-in-enhanced {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-message.ai-enhanced-enter {
  animation: ai-message-in-enhanced 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 通知光晕 - 收到新消息时窗口边缘光效 */
#ai-chat-widget.receiving {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08), 0 0 30px rgba(230, 126, 34, 0.15);
  transition: box-shadow 0.5s ease;
}

/* 移动端适配 */
@media (max-width: 480px) {
  #ai-chat-widget {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  
  #ai-chat-trigger {
    bottom: 16px;
    right: 16px;
  }
  
  #ai-chat-trigger .ai-trigger-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}

/* 平板适配 */
@media (min-width: 481px) and (max-width: 1024px) {
  #ai-chat-widget {
    width: 380px;
    height: 520px;
    bottom: 80px;
    right: 20px;
  }
  
  #ai-chat-trigger {
    bottom: 20px;
    right: 20px;
  }
}

/* ===== 报价样式 ===== */
.ai-bubble .quotation-block {
  background: linear-gradient(135deg, #fef9f4, #fff5eb);
  border: 1px solid #fde4cc;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 6px 0;
}
.ai-bubble .quotation-block strong {
  color: #e67e22;
}
.ai-bubble .quotation-header {
  font-size: 15px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #fde4cc;
}
.ai-bubble .quotation-qty {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}
.ai-bubble .quotation-item {
  border-left: 3px solid #e67e22;
  padding-left: 10px;
  margin: 8px 0;
  padding-top: 2px;
  padding-bottom: 2px;
}
.ai-bubble .quotation-item strong {
  font-size: 13px;
}
.ai-bubble .quotation-total {
  background: #e67e22;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 700;
  margin: 6px 0;
  font-size: 14px;
}
.ai-bubble .quotation-note {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}
.ai-bubble .quotation-price {
  color: #e67e22;
  font-weight: 700;
  font-size: 15px;
}
.ai-bubble .quotation-price-range {
  color: #e67e22;
  font-weight: 600;
  font-size: 14px;
}

/* ===== 文章推荐卡片样式 ===== */
.ai-articles-header {
  font-size: 13px;
  font-weight: 600;
  color: #e67e22;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #f0f0f0;
}

.ai-articles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-article-card {
  display: flex;
  text-decoration: none;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  animation: ai-card-enter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow: hidden;
}

.ai-article-card:last-child {
  margin-bottom: 0;
}

.ai-article-card:hover {
  border-color: #e67e22;
  background: #fef9f4;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(230, 126, 34, 0.15);
}

.ai-article-card:active {
  transform: translateY(0);
}

/* 卡片左侧封面图 */
.ai-article-card-image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 10px;
  background: #f9f9f9;
}

.ai-article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 卡片右侧正文 */
.ai-article-card-body {
  flex: 1;
  min-width: 0;
}

.ai-article-card-type {
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
}

.ai-article-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.ai-article-card:hover .ai-article-card-title {
  color: #e67e22;
}

.ai-article-card-summary {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章卡片入场动画 */
@keyframes ai-card-enter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
