* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f9f5f0;
    color: #5a4a42;
    min-height: 100vh;
}

/* 顶部标题栏 */
.header {
    background-color: #fff9f0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0e6d6;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #b38a58;
}

.clear-btn {
    font-size: 0.9rem;
    color: #e67e22;
    background: none;
    border: none;
    cursor: pointer;
}

/* 内容区域 */
.content {
    padding: 15px;
}

/* 消息通知卡片 */
.notification-card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 25px;
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: #5a4a42;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notification-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 好友匹配卡片 */
.match-card {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="150" viewBox="0 0 300 150"><rect width="300" height="150" fill="%23d4a373"/><circle cx="80" cy="75" r="40" fill="%23f8f4ee"/><circle cx="220" cy="75" r="40" fill="%23f8f4ee"/><path d="M80,75 Q150,120 220,75" stroke="%23f8f4ee" stroke-width="3" fill="none"/></svg>');
    background-size: cover;
    border-radius: 25px;
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    height: 120px;
}

.match-info {
    max-width: 70%;
}

.match-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.match-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

.match-icon {
    font-size: 1.5rem;
}

/* 聊天列表 */
.chat-list {
    margin-top: 20px;
}

.chat-item {
    background-color: white;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

.chat-item:active {
    transform: scale(0.98);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0e6d6;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b38a58;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5a4a42;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-message {
    font-size: 0.85rem;
    color: #a69b8f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}

.chat-time {
    font-size: 0.75rem;
    color: #a69b8f;
    margin-bottom: 5px;
}

.chat-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* AI咨询卡片 */
.ai-card {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 25px;
  padding: 18px 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.ai-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.ai-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.ai-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
  margin-right: 15px;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-profile {
  flex: 1;
}

.ai-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.ai-title {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 1.2rem 0;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  margin-right: 5px;
  font-size: 1rem;
  color: #e74c3c;
}

.ai-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px;
  padding: 12px 20px;
  color: #e74c3c;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.ai-action:active {
  transform: scale(0.98);
}

.action-icon {
  margin-right: 8px;
  font-size: 1.2rem;
}