* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: #2c3e50;
  line-height: 1.6;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* 头部 */
.header {
  text-align: center;
  padding: 24px 0 20px;
}

.header h1 {
  font-size: 28px;
  letter-spacing: 1px;
}

.subtitle {
  color: #8a94a6;
  font-size: 14px;
  margin-top: 4px;
}

/* 输入区 */
textarea {
  width: 100%;
  border: 2px solid #e3e8ef;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  color: #2c3e50;
  background: #fff;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea::placeholder {
  color: #b0b8c4;
}

textarea:focus {
  border-color: #36b37e;
}

.classify-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4a90d9, #36b37e);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.classify-btn:active {
  transform: scale(0.98);
}

.classify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 列表区 */
.list-section {
  margin-top: 26px;
}

.list-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.important-title {
  color: #2f9e44;
}

.normal-title {
  color: #8a94a6;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-tip {
  text-align: center;
  color: #c0c7d1;
  font-size: 13px;
  padding: 14px 0;
}

/* 消息卡片 */
.message-card {
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.message-card.important {
  border: 1.5px solid #52c41a;
  background: #f7fdf2;
}

.message-card.normal {
  border: 1.5px solid #e5e8ec;
  background: #f7f8fa;
  color: #7a8494;
}

.message-content {
  font-size: 14px;
  word-break: break-word;
  white-space: pre-wrap;
}

.message-time {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 6px;
}
