/* 黔行智选应用样式 */
/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
}

body {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: row;
}

/* 移动端预览区域 */
.mobile-container {
  width: 375px;
  height: 812px;
  background-color: white;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 30px;
}

/* 设计说明区域 */
.design-notes {
  flex: 1;
  padding: 30px;
  max-width: 600px;
  height: 812px;
  overflow-y: auto;
  margin: 30px 0;
}

.design-notes h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.design-notes h2 {
  font-size: 18px;
  margin: 15px 0;
  color: #555;
}

.design-notes p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #666;
}

/* 应用内容样式 */
.app-header {
  height: 60px;
  background: linear-gradient(135deg, #FF7D54, #FF5252);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  position: relative;
  z-index: 10;
}

.app-header h1 {
  font-size: 20px;
  font-weight: 600;
}

.search-bar {
  height: 36px;
  background: #f5f5f5;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin: 10px 20px;
  color: black;
}

.search-bar i {
  margin-right: 10px;
}

.search-bar span {
  font-size: 14px;
  opacity: 0.8;
}

.main-content {
  height: calc(100% - 60px);
  width: 390px;
  overflow-y: auto;
  position: relative;
}

.banner {
  height: 180px;
  background: url('https://images.unsplash.com/photo-1540122995631-7c74c671ff8d?ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80') center center;
  background-size: cover;
  position: relative;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

.banner-overlay h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.banner-overlay p {
  font-size: 14px;
  opacity: 0.9;
}

.feature-section {
  padding: 15px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title span {
  font-size: 14px;
  color: #FF5252;
  font-weight: normal;
}

.feature-cards {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.feature-card {
  flex: 0 0 auto;
  width: 120px;
  margin-right: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.feature-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.feature-card, img:hover {
  transform: scale(1.05);
  /* scale: 1.05; */
  transition: transform 0.3s;
}
.feature-card-content {
  padding: 8px;
}

.feature-card-content:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
  /* border: 1px red solid;   */
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.feature-card p {
  font-size: 12px;
  color: #999;
}

.nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.nav-item.active {
  color: #FF5252;
}

.nav-item i {
  font-size: 22px;
  margin-bottom: 3px;
}

/* AI猫咪助手 */
.ai-cat {
  position: absolute;
  bottom: 70px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: url('https://i.imgur.com/XkuVmVt.png') center center;
  background-size: cover;
  border-radius: 30px;
  /* box-shadow: 0 3px 10px rgba(255, 82, 82, 0.3); */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s;
}

.ai-cat img {
  width: 60px;
  height: 60px;
  border-radius: 30px;
}

.ai-cat:hover {
  transform: scale(1.1);
}

/* 弹出对话框 */
.ai-dialog {
  position: absolute;
  bottom: 140px;
  right: 20px;
  width: 250px;
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 99;
  display: none;
}
.ai-dialog h3 img {
  width: 10px;
  height: 10px;
  /* margin-right: 10px; */
}
.ai-dialog.active {
  display: block;
  animation: fadeIn 0.3s;
}

.ai-dialog h3 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
}

.ai-dialog h3 img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 12px;
}

.ai-options a{
  display: flex;
  flex-direction: column;
  color: black;
}

.ai-option {
  padding: 10px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.ai-option:hover {
  background: #ffe8e8;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 图标字体 */
.icon {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
    align-items: center;
  }

  .design-notes {
    max-width: 100%;
    height: auto;
  }
}