/* 早签晚评页面样式 */

.me-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0 0 80px 0;
  box-sizing: border-box;
}

/* 页面头部 */
.me-header {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.me-back-btn {
  position: absolute;
  left: 15px;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.me-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.me-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.me-capsule-btn {
  position: absolute;
  right: 15px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.me-capsule-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.me-capsule-icon {
  font-size: 16px;
  line-height: 1;
}

.me-capsule-text {
  font-size: 13px;
  font-weight: 500;
}

/* 卡片通用样式 */
.me-section-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.me-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.me-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.me-status-badge {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.me-status-badge.completed {
  background: #E8F5E8;
  color: #4CAF50;
}

.me-status-badge.pending {
  background: #FFF3E0;
  color: #FF9800;
}

/* 早签卡片 */
.me-morning-card {
  background: linear-gradient(135deg, #FFE5B4 0%, #FFCC80 100%);
}

/* 加载状态 */
.me-loading-content {
  text-align: center;
  padding: 40px 20px;
}

.me-loading-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: inline-block;
}

.rotating {
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.me-loading-text {
  font-size: 14px;
  color: #666;
}

/* 早签内容 */
.me-fortune-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.me-fortune-header {
  text-align: center;
  margin-bottom: 20px;
}

.me-fortune-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.me-fortune-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.me-fortune-level {
  font-size: 24px;
  font-weight: bold;
  color: #FF6B6B;
}

.me-fortune-title {
  font-size: 16px;
  color: #333;
}

.me-fortune-quote,
.me-fortune-interpretation,
.me-fortune-actions,
.me-fortune-whisper {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

.me-quote-title,
.me-section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
  display: block;
}

.me-quote-content,
.me-interpretation-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.me-action-list {
  margin-top: 10px;
}

.me-action-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.me-action-bullet {
  margin-right: 8px;
  color: #667eea;
  font-weight: bold;
}

.me-action-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.me-whisper-title {
  font-size: 14px;
  font-weight: 600;
  color: #FF6B6B;
  margin-bottom: 10px;
  display: block;
}

.me-whisper-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  font-style: italic;
}

/* 晚评卡片 */
.me-evening-card {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

/* 晚评占位 */
.me-evening-placeholder {
  text-align: center;
  padding: 60px 20px;
}

.me-placeholder-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.me-placeholder-text {
  font-size: 14px;
  color: #666;
}

/* 晚评表单 */
.me-evening-form {
  animation: fadeIn 0.5s ease;
}

.me-mood-section {
  margin-bottom: 20px;
}

.me-mood-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.me-mood-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.me-mood-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

.me-mood-item.selected {
  background: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.me-mood-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.me-mood-score {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 4px;
}

.me-mood-label {
  font-size: 12px;
  color: #666;
}

.me-input-section {
  margin-bottom: 20px;
}

.me-text-input {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  margin-top: 10px;
}

.me-text-input::placeholder {
  color: #999;
}

.me-char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.me-submit-button {
  width: 100%;
  padding: 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.me-submit-button:hover {
  background: #5568d3;
}

.me-submit-button:active {
  transform: scale(0.98);
}

.me-submit-button.disabled {
  background: #ccc;
  cursor: not-allowed;
}

.me-reward-hint {
  text-align: center;
  margin-top: 15px;
}

.me-hint-text {
  font-size: 12px;
  color: #666;
}

/* 提交中状态 */
.me-submitting-content {
  text-align: center;
  padding: 40px 20px;
}

/* 晚评已完成 */
.me-review-content {
  animation: fadeIn 0.5s ease;
}

.me-review-header {
  text-align: center;
  margin-bottom: 20px;
}

.me-review-date {
  font-size: 16px;
  font-weight: 600;
  color: #667eea;
}

.me-my-review,
.me-guardian-reply {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

.me-review-subtitle,
.me-reply-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
  display: block;
}

.me-mood-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.me-mood-emoji-large {
  font-size: 40px;
}

.me-mood-score-large {
  font-size: 20px;
  font-weight: bold;
  color: #667eea;
}

.me-my-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-top: 10px;
}

.me-guardian-avatar {
  font-size: 48px;
  text-align: center;
  margin: 15px 0;
}

.me-reply-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}

.me-reply-tips {
  font-size: 13px;
  color: #666;
  background: rgba(102, 126, 234, 0.1);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.me-reward-info {
  font-size: 13px;
  color: #4CAF50;
  font-weight: 600;
}

/* 反馈区域 */
.me-feedback-section {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  text-align: center;
}

.me-feedback-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.me-feedback-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.me-feedback-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.me-feedback-button:hover {
  border-color: #667eea;
}

.me-feedback-button.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.me-feedback-icon {
  font-size: 18px;
}

/* 答案之书按钮 */
.me-action-buttons {
  margin: 20px 0;
  padding: 0 16px;
  display: flex;
  gap: 10px;
}

.me-answer-book-button {
  flex: 1;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FFE5B4, #FFCC80);
  color: #8B4513;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.me-answer-book-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 128, 0.4);
}

.me-answer-book-button:active {
  transform: scale(0.98);
}

.me-button-icon {
  font-size: 16px;
}

/* 答案之书弹窗 */
.me-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.me-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.me-answer-book-modal {
  min-height: 300px;
}

.me-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.me-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.me-modal-close {
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.me-modal-close:hover {
  color: #333;
}

.me-answer-loading {
  text-align: center;
  padding: 60px 20px;
}

.me-answer-content {
  padding: 20px;
}

.me-answer-book-page {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border-radius: 12px;
  padding: 40px 30px;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #FFD54F;
}

.me-answer-text {
  font-size: 18px;
  line-height: 1.8;
  color: #5D4037;
  text-align: center;
  font-weight: 500;
}

.me-draw-again-button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(45deg, #FF6B9D, #C44569);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.me-draw-again-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.me-draw-again-button:active {
  transform: scale(0.98);
}

/* 响应式适配 */
@media (max-width: 375px) {
  .me-mood-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .me-container {
    max-width: 750px;
    margin: 0 auto;
  }
}
