:root {
  --primary: #FF6B4E;
  --primary-light: #FF8F75;
  --primary-dark: #E5563B;
  --secondary: #FFD93D;
  --accent: #6BCB77;
  --bg: #FFF8F0;
  --bg-card: #FFFFFF;
  --text: #2D3436;
  --text-light: #636E72;
  --border: #FFE8DC;
  --shadow: 0 4px 20px rgba(255, 107, 78, 0.12);
  --shadow-hover: 0 8px 30px rgba(255, 107, 78, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  position: relative;
}

/* ========== IP Character ========== */
.ip-character {
  position: relative;
  display: inline-block;
}

.ip-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 20px rgba(255, 107, 78, 0.2);
  animation: ipWave 2s ease-in-out infinite;
  overflow: hidden;
}

.ip-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 8px rgba(255, 107, 78, 0.3));
  z-index: 1;
}

.ip-avatar.waving::before { background-image: url('../images/waving.png'); }
.ip-avatar.thinking::before { background-image: url('../images/thinking.png'); }
.ip-avatar.recommending::before { background-image: url('../images/recommending.png'); }
.ip-avatar.analyzing::before { background-image: url('../images/analyzing.png'); }
.ip-avatar.cheering::before { background-image: url('../images/cheering.png'); }

@keyframes ipWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes wave {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(20deg); }
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.3) rotate(10deg); opacity: 0.7; }
}

/* ========== Chat Bubble ========== */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  box-shadow: 0 2px 10px rgba(255, 107, 78, 0.15);
}

.chat-avatar.user-avatar {
  background: linear-gradient(135deg, #E8E8E8, #D0D0D0);
}

.chat-bubble {
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  max-width: 260px;
  position: relative;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.5;
}

.chat-bubble.fanfan {
  background: white;
  border-top-left-radius: 4px;
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-top-right-radius: 4px;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  top: 16px;
  width: 0;
  height: 0;
}

.chat-bubble.fanfan::before {
  left: -8px;
  border-right: 8px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.chat-bubble.user::before {
  right: -8px;
  border-left: 8px solid var(--primary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.chat-bubble p { margin-bottom: 6px; }
.chat-bubble p:last-child { margin-bottom: 0; }

.chat-meta {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* ========== Mode Selection ========== */
.mode-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.mode-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.mode-card:active {
  transform: translateY(-2px);
}

.mode-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.mode-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== Analysis Process ========== */
.analysis-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 248, 240, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.analysis-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.analysis-ip {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  border-radius: 50%;
  animation: ipWave 1.5s ease-in-out infinite;
  position: relative;
  font-size: 0;
  background-image: url('../images/analyzing.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 8px rgba(255, 107, 78, 0.3));
}

.analysis-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.analysis-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.analysis-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-light);
  opacity: 0.4;
  transition: var(--transition);
}

.analysis-step.active {
  opacity: 1;
  color: var(--text);
}

.analysis-step.done {
  opacity: 1;
  color: var(--accent);
}

.analysis-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFE8DC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.analysis-step.active .analysis-step-icon {
  background: var(--primary);
  color: white;
  animation: pulse 0.8s ease-in-out infinite;
}

.analysis-step.done .analysis-step-icon {
  background: var(--accent);
  color: white;
}

.analysis-step.done .analysis-step-icon::before {
  content: '✓';
}

.analysis-step.done .analysis-step-icon span {
  display: none;
}

.analysis-progress {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}

.analysis-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0;
}

/* ========== Decorative Food Stickers ========== */
.food-stickers {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.food-sticker {
  position: absolute;
  font-size: 28px;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

.food-sticker:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.food-sticker:nth-child(2) { top: 20%; right: 3%; animation-delay: 0.5s; }
.food-sticker:nth-child(3) { top: 50%; left: 2%; animation-delay: 1s; }
.food-sticker:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 1.5s; }
.food-sticker:nth-child(5) { top: 70%; left: 8%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* ========== Feature Checkmark List ========== */
.checkmark-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.checkmark-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.checkmark-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), #8DD99F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 78, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 78, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
}

.btn-ghost:hover { color: var(--primary); }

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  width: auto;
}

.btn-ghost-dark {
  background: #FFF5F2;
  color: var(--primary);
}

.btn-ghost-dark:hover {
  background: var(--primary);
  color: white;
}

/* ========== Cards ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ========== Header ========== */
.header {
  text-align: center;
  padding: 40px 20px 20px;
}

.logo {
  font-size: 48px;
  margin-bottom: 10px;
}

.app-name {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-slogan {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ========== Selection Options ========== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.option-group { margin-bottom: 28px; }

.option-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.options-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text);
  user-select: none;
}

.option-item:hover {
  border-color: var(--primary-light);
  background: #FFF5F2;
}

.option-item.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  color: var(--primary);
  font-weight: 600;
  transform: scale(1.02);
  box-shadow: 0 2px 10px rgba(255, 107, 78, 0.15);
}

.option-emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

/* ========== Input Range ========== */
.range-group { margin-bottom: 28px; }

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.range-label {
  font-size: 14px;
  font-weight: 600;
}

.range-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  background: #FFF5F2;
  padding: 4px 12px;
  border-radius: 20px;
}

.range-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 4px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 78, 0.4);
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 107, 78, 0.4);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ========== Action Bar ========== */
.action-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, var(--bg) 80%, transparent);
  z-index: 100;
}

.action-bar .btn {
  max-width: 480px;
  margin: 0 auto;
}

/* ========== Progress Steps ========== */
.progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.progress-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ========== Loading Animation ========== */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 248, 240, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.loading-animation {
  width: 80px;
  height: 80px;
  position: relative;
}

.loading-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/analyzing.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: bounce 0.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 78, 0.3));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.loading-text {
  margin-top: 24px;
  font-size: 16px;
  color: var(--text-light);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ========== Result Page ========== */
.result-header {
  text-align: center;
  padding: 30px 20px 20px;
}

.result-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-subtitle {
  font-size: 14px;
  color: var(--text-light);
}

.food-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
}

.food-card:nth-child(1) { animation-delay: 0.1s; }
.food-card:nth-child(2) { animation-delay: 0.2s; }
.food-card:nth-child(3) { animation-delay: 0.3s; }
.food-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.food-image {
  height: 180px;
  background: linear-gradient(135deg, #FFE8DC, #FFF5F2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
}

.food-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.food-info { padding: 16px; }

.food-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.food-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.food-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.food-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.food-reason {
  font-size: 13px;
  color: var(--primary);
  background: #FFF5F2;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  line-height: 1.5;
}

.food-reason-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.food-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.food-tag {
  background: #FFF5F2;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* ========== Group Mode Card ========== */
.group-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.group-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.group-card-emoji {
  font-size: 48px;
  flex-shrink: 0;
}

.group-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.group-card-reason {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.group-price-row {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #FFF5F2;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.group-price-item {
  flex: 1;
  text-align: center;
}

.group-price-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.group-price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* ========== Share Page ========== */
.share-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.share-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 107, 78, 0.1), rgba(255, 217, 61, 0.1));
  border-radius: 50%;
}

.share-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.share-food-emoji {
  font-size: 72px;
  margin: 16px 0;
  animation: float 3s ease-in-out infinite;
}

.share-food-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), #FFB088);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.share-food-info {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-food-reason {
  font-size: 14px;
  color: var(--text);
  background: #FFF5F2;
  padding: 14px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.share-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.share-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.share-slogan {
  font-size: 12px;
  color: var(--text-light);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 12px;
  margin: 20px auto 0;
}

.back-btn:hover { color: var(--primary); }

/* ========== Home Page ========== */
.home-hero {
  text-align: center;
  padding: 20px 20px 10px;
  position: relative;
}

.home-illustration {
  font-size: 100px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.home-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), #FFB088);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover { transform: translateX(6px); }

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-light);
}

.home-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-light);
}

.start-btn { margin-bottom: 20px; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 2000;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ========== Decorative Elements ========== */
.decor-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 78, 0.1), rgba(255, 217, 61, 0.1));
  z-index: -1;
}

.decor-circle-1 {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
}

.decor-circle-2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: -30px;
}

/* ========== Input Group ========== */
.input-group { margin-bottom: 20px; }

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 16px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 78, 0.1);
}

.input-field::placeholder {
  color: #BFBFBF;
}

/* ========== Person Select ========== */
.person-select {
  display: flex;
  align-items: center;
  gap: 16px;
}

.person-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-btn:hover {
  border-color: var(--primary);
  background: #FFF5F2;
}

.person-btn:active {
  transform: scale(0.95);
}

.person-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  min-width: 60px;
  text-align: center;
}

/* ========== Bubble Dialog (Result) ========== */
.fanfan-dialog {
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 2px solid #FFE8DC;
}

.fanfan-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fanfan-dialog-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  font-size: 0;
  background-image: url('../images/thinking.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.fanfan-dialog-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.fanfan-dialog-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.fanfan-dialog-text .highlight {
  color: var(--primary);
  font-weight: 600;
}

/* ========== Main Recommend Card (结果页主推) ========== */
.main-recommend-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 28px rgba(255, 107, 78, 0.18);
  border: 2px solid var(--primary-light);
  animation: slideUp 0.5s ease forwards;
  position: relative;
}

.main-recommend-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 78, 0.4);
}

.main-recommend-image {
  height: 220px;
  background: linear-gradient(135deg, #FFE8DC, #FFF5F2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  position: relative;
}

.main-recommend-info {
  padding: 20px;
}

.main-recommend-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.main-recommend-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.main-recommend-score {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  background: #FFF5F2;
  padding: 4px 10px;
  border-radius: 12px;
}

.main-recommend-meta {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.main-recommend-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.main-recommend-reason {
  font-size: 14px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  line-height: 1.7;
  border-left: 3px solid var(--primary);
}

.main-recommend-reason .food-reason-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.main-recommend-card .btn-primary {
  margin-top: 16px;
}

/* ========== Backup List (备选卡片) ========== */
.backup-list-title {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin: 24px 0 14px;
  letter-spacing: 1px;
}

.backup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.backup-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.backup-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  background: #FFFAF7;
}

.backup-card:active {
  transform: scale(0.98);
}

.backup-card-emoji {
  font-size: 40px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FFE8DC, #FFF5F2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backup-card-info {
  flex: 1;
  min-width: 0;
}

.backup-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.backup-card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
}

.backup-card-score {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.backup-card-arrow {
  font-size: 24px;
  color: var(--text-light);
  font-weight: 300;
  flex-shrink: 0;
}

/* ========== Responsive ========== */
@media (max-width: 360px) {
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .share-options { grid-template-columns: 1fr; }
  .home-title { font-size: 26px; }
  .ip-avatar { width: 80px; height: 80px; font-size: 48px; }
  .mode-select { grid-template-columns: 1fr; }
  .main-recommend-image { height: 180px; font-size: 90px; }
  .main-recommend-name { font-size: 20px; }
}

/* ========== Dietary Restrictions (忌口) ========== */
.restriction-group {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.option-sublabel {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.restriction-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* 忌口选项采用半透明选中态（区别于单选项） */
.restriction-grid .option-item.selected {
  background: linear-gradient(135deg, #FFE8DC, #FFD0BD);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.custom-restriction {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  animation: slideUp 0.3s ease;
}

.custom-restriction .input-field {
  margin-top: 6px;
}

/* ========== Fanfan Feedback Bubble ========== */
.fanfan-feedback {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 0;
  border: 2px solid #FFE8DC;
  animation: slideUp 0.3s ease;
}

.fanfan-feedback-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  background-image: url('../images/cheering.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.fanfan-feedback-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  padding-top: 6px;
}

/* ========== Applied Restrictions (Result Page) ========== */
.applied-restrictions {
  background: linear-gradient(135deg, #F0FBF3, #E3F7EA);
  border: 2px solid #C8EFD4;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  animation: slideUp 0.4s ease;
}

.applied-restrictions-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.applied-restrictions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.applied-restriction-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #C8EFD4;
}

.applied-restriction-tag span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

/* ============================================
   第二阶段精细化打磨样式
   ============================================ */

/* ========== IP Avatar Sizes ========== */
.ip-avatar-lg {
  width: 140px;
  height: 140px;
}

.ip-avatar-md {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
}

/* ========== IP Character Wrapper (首页) ========== */
.ip-character-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.ip-name-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 107, 78, 0.35);
  z-index: 2;
}

/* ========== Welcome Bubble (首页欢迎气泡) ========== */
.welcome-bubble {
  display: inline-block;
  background: white;
  border-radius: 20px 20px 20px 4px;
  padding: 14px 20px;
  margin: 20px auto 0;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  position: relative;
  max-width: 90%;
  animation: bubbleFadeIn 0.6s ease 0.3s both;
}

.welcome-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.welcome-bubble-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Food Stickers 去遮挡优化 ========== */
.food-stickers {
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.food-stickers .food-sticker {
  opacity: 0.35;
}

/* ========== Form Section (填写页模块分组) ========== */
.form-section {
  background: white;
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.4s ease both;
}

.form-section:nth-child(1) { animation-delay: 0.05s; }
.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.15s; }
.form-section:nth-child(4) { animation-delay: 0.2s; }

.form-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-section-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-section .option-group,
.form-section .range-group {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.form-section .range-group + .range-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* ========== 微交互增强 ========== */

/* 选项卡片选中动画 */
.option-item {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), var(--transition);
}

.option-item:active {
  transform: scale(0.95);
}

.option-item.selected {
  animation: selectPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes selectPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 按钮点击反馈 */
.btn {
  transition: var(--transition);
}

.btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(255, 107, 78, 0.2);
}

/* 备选卡片点击反馈 */
.backup-card:active {
  transform: scale(0.97);
}

/* 模式卡点击反馈 */
.mode-card:active {
  transform: scale(0.97);
}

/* 人数按钮点击反馈 */
.person-btn:active {
  transform: scale(0.9);
}

/* ========== Page Fade In (页面淡入) ========== */
.page-fade-in {
  animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Analysis IP 真实图增强 ========== */
.analysis-ip {
  width: 120px;
  height: 120px;
  background: transparent;
  position: relative;
  margin-bottom: 20px;
}

.analysis-ip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 78, 0.3));
}

.analysis-ip.analyzing::before {
  background-image: url('../images/analyzing.png');
  animation: ipThinking 1.5s ease-in-out infinite;
}

@keyframes ipThinking {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* ========== Fanfan Dialog Avatar 真实图 ========== */
.fanfan-dialog-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF5F2, #FFE8DC);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.fanfan-dialog-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.fanfan-dialog-avatar.thinking::before { background-image: url('../images/thinking.png'); }
.fanfan-dialog-avatar.recommending::before { background-image: url('../images/recommending.png'); }
.fanfan-dialog-avatar.analyzing::before { background-image: url('../images/analyzing.png'); }
.fanfan-dialog-avatar.cheering::before { background-image: url('../images/cheering.png'); }

/* ========== 移动端细节优化 ========== */
@media (max-width: 380px) {
  .ip-avatar-lg { width: 120px; height: 120px; }
  .home-title { font-size: 24px; }
  .home-desc { font-size: 13px; }
  .welcome-bubble { padding: 12px 16px; }
  .welcome-bubble-text { font-size: 14px; }
  .form-section { padding: 14px 12px; }
  .form-section-title { font-size: 16px; }
  .form-section-desc { font-size: 12px; }
  .main-recommend-image { height: 180px; font-size: 90px; }
  .main-recommend-name { font-size: 20px; }
  .backup-card-emoji { width: 48px; height: 48px; font-size: 32px; }
  .backup-card-name { font-size: 14px; }
}

@media (max-width: 320px) {
  .container { padding: 14px; }
  .ip-avatar-lg { width: 100px; height: 100px; }
  .ip-avatar-md { width: 80px; height: 80px; }
  .home-title { font-size: 22px; }
  .checkmark-list { font-size: 13px; }
  .mode-emoji { font-size: 36px; }
  .mode-title { font-size: 15px; }
  .analysis-ip { width: 100px; height: 100px; }
  .fanfan-dialog-avatar { width: 40px; height: 40px; }
  .main-recommend-image { height: 150px; font-size: 75px; }
  .main-recommend-info { padding: 16px; }
  .main-recommend-name { font-size: 18px; }
}

/* ============================================
   今日饭记样式（第三阶段新增）
   ============================================ */

/* ============================================
   今日饭记卡片 V2（高对比·手账风·朋友圈友好）
   色板：
     深棕标题 #5D3A2E
     深橙主色 #D94E1E
     正文深褐 #40352E
     浅褐辅助 #7A6256
     米杏卡片 #FFF2DE → #FFE2C2
     暖橙渐变背景 #FFE3C8 → #FFCFAB
   ============================================ */

/* ========== 主推卡按钮组 ========== */
.main-recommend-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.main-recommend-actions .btn {
  margin-top: 0;
}

/* ========== 今日饭记外层页面（生成图片的外层背景） ========== */
.journal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFD8B0 0%, #FFC08A 50%, #FFA774 100%);
  padding: 24px 18px 48px;
}

/* ========== 页面头部（饭饭IP + 标题） ========== */
.journal-header {
  text-align: center;
  margin-bottom: 22px;
  animation: pageFadeIn 0.5s ease;
}

.journal-header .ip-avatar {
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(176, 70, 30, 0.45);
}

.journal-title {
  font-size: 28px;
  font-weight: 900;
  color: #4A2B1F;
  margin-bottom: 6px;
  letter-spacing: 3px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
}

.journal-subtitle {
  font-size: 14px;
  color: #6B4030;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ========== 手账卡片主体 ========== */
.journal-card {
  background: linear-gradient(180deg, #FFF0D8 0%, #FFE6C2 35%, #FFDBA9 100%);
  border-radius: 32px;
  padding: 40px 30px 30px;
  box-shadow: 
    0 28px 72px rgba(139, 58, 22, 0.42),
    0 12px 32px rgba(139, 58, 22, 0.28),
    0 3px 0 rgba(255, 255, 255, 0.7) inset,
    0 -3px 0 rgba(176, 70, 30, 0.15) inset;
  position: relative;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
  border: 2px solid rgba(230, 140, 80, 0.55);
  animation: journalCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes journalCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== 卡片顶部彩色装饰条（加粗加粗更有质感） ========== */
.journal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(90deg, 
    #E85A25 0%, 
    #FF6B3C 18%, 
    #FFB045 38%, 
    #FF8A3D 58%, 
    #FF6B3C 78%, 
    #E85A25 100%);
  border-radius: 32px 32px 0 0;
  box-shadow: 
    0 3px 10px rgba(232, 90, 37, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

/* ========== 右上角饭饭徽章（品牌锚点）—— 更大更清晰 ========== */
.journal-card::after {
  content: '';
  position: absolute;
  top: 24px;
  right: 26px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: #FFF7E8;
  background-image: url('../images/cheering.png');
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 
    0 8px 22px rgba(176, 55, 20, 0.48),
    0 0 0 5px #FFFFFF,
    0 0 0 8px rgba(232, 90, 37, 0.55);
  z-index: 3;
}

/* ========== 日期区块 —— 顶部重要信息，增强层级 ========== */
.journal-date-block {
  text-align: left;
  margin-bottom: 30px;
  padding: 22px 20px 22px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 210, 0.7));
  border-radius: 20px;
  position: relative;
  box-shadow: 
    0 5px 18px rgba(176, 70, 30, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  border: 1.5px solid rgba(230, 140, 80, 0.35);
  border-left: 6px solid #E85A25;
}

.journal-date {
  font-size: 24px;
  font-weight: 900;
  color: #4A2B1F;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.journal-weekday {
  font-size: 15px;
  color: #7A4530;
  letter-spacing: 2.5px;
  font-weight: 700;
}

.journal-mood-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FF7A2E, #E85A25);
  color: #FFFFFF;
  padding: 7px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(232, 90, 37, 0.5);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* ========== 食物区块（最大视觉重点）—— 强化核心视觉 ========== */
.journal-food-block {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px 18px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 243, 220, 0.82));
  border-radius: 26px;
  box-shadow: 
    0 8px 26px rgba(176, 70, 30, 0.22),
    0 3px 0 rgba(255, 255, 255, 0.95) inset,
    0 -2px 0 rgba(230, 140, 80, 0.2) inset;
  position: relative;
  border: 1.5px solid rgba(230, 140, 80, 0.4);
}

.journal-section-label {
  font-size: 12px;
  color: #A0502E;
  letter-spacing: 6px;
  margin-bottom: 16px;
  font-weight: 800;
  display: inline-block;
  padding: 4px 14px;
  border: 1.5px solid rgba(160, 80, 46, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.journal-food-emoji {
  font-size: 100px;
  line-height: 1;
  margin-bottom: 18px;
  display: block;
  filter: 
    drop-shadow(0 8px 18px rgba(232, 90, 37, 0.42))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.7));
  animation: foodBounce 3s ease-in-out infinite;
}

@keyframes foodBounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.journal-food-name {
  font-size: 34px;
  font-weight: 900;
  color: #C4401A;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-shadow: 
    0 2px 0 rgba(255, 255, 255, 0.85),
    0 2px 8px rgba(196, 64, 26, 0.2);
  line-height: 1.2;
}

.journal-food-meta {
  font-size: 14px;
  color: #5A3222;
  display: inline-flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 700;
  padding: 10px 16px;
  background: linear-gradient(135deg, #FFF7E8, #FFE9CC);
  border-radius: 14px;
  border: 1px solid rgba(230, 140, 80, 0.4);
  box-shadow: 0 2px 6px rgba(217, 78, 30, 0.12);
}

.journal-food-meta > * {
  display: inline-flex;
  align-items: center;
}

/* ========== 分隔线 —— 更清晰不花哨 ========== */
.journal-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  color: #E85A25;
}

.journal-divider::before,
.journal-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 78, 30, 0.5), transparent);
}

.journal-divider span {
  padding: 0 16px;
  font-size: 16px;
  font-weight: 900;
}

/* ========== AI寄语区块 —— 温暖手写卡片风 ========== */
.journal-message-block {
  margin-bottom: 26px;
}

.journal-message-label {
  font-size: 15px;
  color: #C4401A;
  font-weight: 900;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.journal-message-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFF7E8;
  background-image: url('../images/cheering.png');
  background-size: 82%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 
    0 3px 10px rgba(217, 78, 30, 0.4),
    0 0 0 2px #FFFFFF,
    0 0 0 3px rgba(232, 90, 37, 0.4);
  flex-shrink: 0;
}

.journal-message {
  font-size: 16px;
  line-height: 2;
  color: #3A2A1F;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4DD 100%);
  padding: 22px 24px;
  border-radius: 20px;
  border-left: 6px solid #E85A25;
  position: relative;
  font-weight: 600;
  box-shadow: 
    0 8px 22px rgba(176, 70, 30, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.95) inset;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(230, 140, 80, 0.35);
}

.journal-message::before {
  content: '"';
  position: absolute;
  top: -18px;
  left: 16px;
  font-size: 64px;
  color: rgba(232, 90, 37, 0.5);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  font-style: italic;
  font-weight: 900;
}

/* ========== 底部签名 —— 强化品牌陪伴感 ========== */
.journal-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px dashed rgba(217, 78, 30, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}

.journal-footer-signature {
  font-size: 17px;
  color: #C4401A;
  font-weight: 900;
  letter-spacing: 2.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #FFFFFF, #FFF0D0);
  border-radius: 22px;
  box-shadow: 
    0 4px 14px rgba(217, 78, 30, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  border: 1.5px solid rgba(232, 90, 37, 0.4);
}

.journal-footer-slogan {
  font-size: 12px;
  color: #6B4030;
  margin-top: 2px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ========== 操作按钮区 ========== */
.journal-actions {
  max-width: 440px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-actions .btn {
  margin: 0;
}

/* ========== 移动端适配（小屏设备）—— 保持清晰度 ========== */
@media (max-width: 380px) {
  .journal-page { padding: 20px 14px 40px; }
  .journal-card { padding: 34px 22px 26px; border-radius: 28px; }
  .journal-title { font-size: 24px; letter-spacing: 2px; }
  .journal-food-emoji { font-size: 84px; }
  .journal-food-name { font-size: 28px; }
  .journal-message { font-size: 15px; padding: 20px 22px; line-height: 1.9; }
  .journal-date { font-size: 22px; }
  .journal-card::after { width: 54px; height: 54px; top: 22px; right: 22px; }
  .journal-footer-signature { font-size: 15px; letter-spacing: 2px; padding: 7px 18px; }
}

@media (max-width: 320px) {
  .journal-page { padding: 16px 12px 36px; }
  .journal-card { padding: 30px 18px 24px; border-radius: 24px; }
  .journal-title { font-size: 22px; letter-spacing: 1.5px; }
  .journal-food-emoji { font-size: 72px; }
  .journal-food-name { font-size: 24px; letter-spacing: 1px; }
  .journal-message { font-size: 14px; padding: 18px 18px; line-height: 1.85; }
  .journal-date { font-size: 20px; }
  .journal-weekday { font-size: 14px; letter-spacing: 2px; }
  .journal-card::after { width: 46px; height: 46px; top: 18px; right: 18px; }
  .journal-subtitle { font-size: 13px; letter-spacing: 1px; }
  .journal-footer-signature { font-size: 14px; letter-spacing: 1.5px; }
}
