/* 新闻资讯模块基础样式 */
.news.section {
    background: #0f0f1a;
    padding: 60px 0;
}

/* 响应式网格布局：2行3列 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* 新闻卡片样式 */
.news-card {
    background: #1a1a27;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(129, 161, 255, 0.2);
}

/* 图片容器：控制放大效果的核心 */
.news-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #2a2a3a;
}

/* 缩略图样式 + 悬浮放大动画 */
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    transform: scale(1);
}

.news-card:hover .news-img {
    transform: scale(1.1); /* 鼠标悬浮放大1.1倍，在容器内显示 */
}

/* 卡片内容区域 */
.news-content {
    padding: 20px;
}

.news-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
    max-height: 1.4em; /* 匹配行高，确保只显示1行 */
}

.news-content p {
    color: #aaa !important;
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.5;
}

.news-date {
    color: #4fc3f7 !important;
    font-size: 13px;
    margin: 0;
}
/* 新闻卡片链接：重置默认样式，保留原有视觉 */
.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 原有样式完全保留，仅补充以下覆盖项，确保点击不破坏原有效果 */
.news-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 确保图片/标题点击不出现默认蓝色/下划线 */
.news-link .news-img,
.news-link h3,
.news-link p {
    text-decoration: none;
    color: inherit;
}
/* 查看更多按钮 */
.read-more {
    text-align: center;
    margin-top: 20px;
}

.read-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.read-more-btn a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* ========== 响应式适配 ========== */
/* 平板端：2列布局 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .news-img-wrap {
        height: 160px;
    }
}

/* 移动端：1列布局 */
@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-img-wrap {
        height: 160px;
    }
    .news-content {
        padding: 16px;
    }
    .news-content h3 {
        font-size: 15px;
    }
}
.faq-answer {
  position: relative;
  padding-bottom: 0; 
  padding-right: 60px; 
  color: #fff;
  line-height: 1.6;
  max-height: 0; 
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px; 
  padding-bottom: 24px;
  color: #afaeae;
}

.faq-answer p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
}
.faq-item.active .faq-answer p {
  -webkit-line-clamp: unset;
  overflow: visible;
  text-overflow: unset;
}

.faq-answer .more-link {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #4fc3f7;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: #0f0f1a; 
  padding-left: 8px;
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.faq-item.active .faq-answer .more-link {
  opacity: 1;
  visibility: visible;
}

/* 悬浮效果 */
.faq-answer .more-link:hover {
  opacity: 0.8 !important;
  text-decoration: underline;
}
.features-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 580px;
}
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  min-height: 580px;
}
.phone-frame {
  width: 100%;
  height: 100%;
  min-height: 580px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 40px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.6), 0 0 80px rgb(43 226 184 / 30%);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 手机顶部 */
.phone-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}
.app-logo {
  font-size: 18px;
  font-weight: bold;
  color: #a855f7;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}
.app-shuoming{
    font-size: 10px;
    font-weight: 300;
}

/* 对话容器 */
.chat-container {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #fffefe;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease;
}
.chat-message {
  display: flex;
}
.user-message {
  align-self: flex-end;
  justify-content: flex-end;
}
.ai-message {
  align-self: flex-start;
  gap: 8px;
}
.message-avatar {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: url(/skin/images/logo.png) center / cover no-repeat;
    flex-shrink: 0;
}
.message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
.user-bubble {
  background: rgba(255, 255, 255, 0.85);
  color: #2d2d2d;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ai-bubble {
  background: linear-gradient(135deg, #8a2be2, #a855f7);
  color: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 12px rgba(138, 43, 226, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 底部输入框 */
.input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.chat-input {
  flex: 1;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #8a2be2, #a855f7);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.5);
  transition: all 0.2s ease;
}
.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(138, 43, 226, 0.7);
}

/* 滚动条美化 */
.chat-container::-webkit-scrollbar {
  width: 4px;
}
.chat-container::-webkit-scrollbar-thumb {
  background: rgba(138, 43, 226, 0.7);
  border-radius: 2px;
}
.chat-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}