:root {
  --primary: #FF8C42;
  --primary-light: #FFA870;
  --primary-dark: #E67630;
  --bg: #FFF8F0;
  --bg-card: #FFFFFF;
  --text-primary: #3D2C1E;
  --text-secondary: #7A6657;
  --text-muted: #B0A090;
  --border: #F0E6DC;
  --success: #6BCB77;
  --warning: #FFD93D;
  --danger: #FF6B6B;
  --info: #B19CD9;
  --shadow-sm: 0 2px 8px rgba(61, 44, 30, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 44, 30, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 44, 30, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --font-heading: 'Quicksand', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --game-gold: #FFD700;
  --game-gold-dark: #FFB800;
  --game-wood: #8B5A2B;
  --game-wood-light: #A67C52;
  --game-wood-dark: #6B4423;
  --game-green: #4CAF50;
  --game-green-light: #81C784;
  --game-sky: #87CEEB;
  --game-sky-light: #B3E5FC;
  --game-cream: #FFF5E6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 80px;
}

.app-header {
  position: relative;
  padding: 48px 24px 32px;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 0 0 32px 32px;
}

.header-bg::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -80px;
  right: -40px;
}

.header-bg::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -30px;
  left: -20px;
}

.header-content {
  position: relative;
  z-index: 1;
}

.user-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  font-family: inherit;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-family: inherit;
}

.auth-close:hover {
  background: #eee;
  color: #666;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.auth-tab {
  flex: 1;
  padding: 16px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.auth-form {
  padding: 24px;
}

.auth-form h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: #333;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: #999;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-error {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: inherit;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 101, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-tip {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 32px;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.app-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-left: 44px;
}

.app-main {
  padding: 0 16px;
  position: relative;
  z-index: 2;
  margin-top: -16px;
}

.page {
  display: none;
  animation: pageIn 0.4s ease;
}

.page.active {
  display: block;
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 20px;
}

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  flex: 1;
}

.card-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
}

.card-tag.optional {
  background: #E8F5E9;
  color: #4CAF50;
}

.card-tip {
  font-size: 12px;
  color: var(--text-muted);
}

.pet-type-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pet-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.pet-type-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.pet-type-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.pet-icon {
  font-size: 20px;
}

.sound-recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  font-family: var(--font-body);
}

.record-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.3);
}

.record-btn.recording {
  background: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.record-btn.recording .record-icon,
.record-btn.recording .record-text {
  color: white;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(255, 107, 107, 0);
  }
}

.record-icon {
  font-size: 24px;
  color: var(--danger);
}

.record-text {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.recording + .sound-wave .wave-bar {
  animation: wave 0.8s ease-in-out infinite;
}

.recording + .sound-wave .wave-bar:nth-child(1) { animation-delay: 0s; height: 12px; }
.recording + .sound-wave .wave-bar:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.recording + .sound-wave .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 28px; }
.recording + .sound-wave .wave-bar:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.recording + .sound-wave .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 24px; }
.recording + .sound-wave .wave-bar:nth-child(6) { animation-delay: 0.5s; height: 18px; }
.recording + .sound-wave .wave-bar:nth-child(7) { animation-delay: 0.6s; height: 12px; }
.recording + .sound-wave .wave-bar:nth-child(8) { animation-delay: 0.7s; height: 8px; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); }
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.audio-player audio {
  flex: 1;
  height: 36px;
}

.re-record-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.re-record-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.behavior-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.behavior-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.behavior-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.group-icon {
  font-size: 14px;
}

.behavior-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.behavior-option {
  padding: 8px 14px;
  border: 2px solid var(--border);
  background: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.behavior-option:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.behavior-option.selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
}

.analyze-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3);
  font-family: var(--font-heading);
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 140, 66, 0.4);
}

.analyze-btn:active {
  transform: translateY(0);
}

.analyze-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 20px;
}

.result-section {
  animation: fadeInUp 0.5s ease;
}

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

.confidence-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.confidence-badge.high {
  background: #E8F5E9;
  color: #2E7D32;
}

.confidence-badge.medium {
  background: #FFF8E1;
  color: #F57F17;
}

.confidence-badge.low {
  background: #FFEBEE;
  color: #C62828;
}

.result-section-block {
  margin-bottom: 20px;
}

.result-section-block:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 16px;
}

.meaning-list,
.suggestion-list,
.warning-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meaning-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.meaning-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.meaning-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.meaning-text {
  font-size: 14px;
  font-weight: 600;
  min-width: 80px;
}

.suggestion-list li,
.warning-list li {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 32px;
}

.suggestion-list li::before {
  content: '✅';
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 14px;
}

.warning-list li::before {
  content: '⚠️';
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 14px;
}

.warning-block {
  background: #FFF5F5;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.warning-block.urgent-warning {
  background: #FFEBEE;
  border: 2px solid var(--danger);
  animation: urgentBlink 0.8s ease-in-out infinite alternate;
}

@keyframes urgentBlink {
  from {
    background: #FFEBEE;
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
  }
  to {
    background: #FFCDD2;
    box-shadow: 0 0 16px 4px rgba(255, 107, 107, 0.6);
  }
}

.save-record-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 12px;
}

.reanalyze-btn {
  padding: 12px 24px;
  border: 2px solid var(--secondary);
  background: white;
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.reanalyze-btn:hover {
  background: var(--secondary);
  color: white;
}

.save-btn {
  padding: 12px 24px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.save-btn:hover {
  background: var(--primary);
  color: white;
}

.save-btn.saved {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.category-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px;
  border: 2px solid var(--border);
  background: white;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  min-width: 90px;
}

.category-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.category-tab span:first-child {
  font-size: 20px;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.scene-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
}

.scene-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scene-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 168, 112, 0.1));
}

.scene-card-icon {
  font-size: 28px;
}

.scene-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 收藏场景置顶提示 */
.favorite-scenes {
  margin-bottom: 8px;
}

.fav-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #FFF3E0;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* 场景收藏按钮 */
.favorite-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.favorite-btn:hover {
  transform: scale(1.15);
  background: white;
}

.favorite-btn.active {
  background: #FFF8E1;
}

.custom-input-card {
  margin-bottom: 20px;
}

.custom-input-wrapper {
  display: flex;
  gap: 10px;
}

.custom-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
  outline: none;
  background: var(--bg);
}

.custom-input:focus {
  border-color: var(--primary);
  background: white;
}

.send-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.guide-section {
  animation: fadeInUp 0.5s ease;
}

.guide-card {
  margin-bottom: 16px;
}

.guide-block {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.guide-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-block:first-child {
  padding-top: 0;
}

.guide-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tone-icon {
  background: #FFF3E0;
}

.gesture-icon {
  background: #E8F5E9;
}

.visual-icon {
  background: #E3F2FD;
}

.tip-icon {
  background: #FFF9C4;
}

.science-icon {
  background: #F3E5F5;
}

.guide-content {
  flex: 1;
}

.guide-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.guide-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.visual-test-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: flex-start;
}

.visual-test-btn:hover {
  border-color: var(--info);
  color: var(--info);
  background: #F3E5F5;
}

.tip-block .guide-content p,
.science-block .guide-content p {
  font-size: 13px;
  font-style: italic;
}

/* 训练打卡按钮 */
.train-checkin-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.train-checkin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.train-checkin-btn:active {
  transform: translateY(0);
}

.train-checkin-btn:disabled {
  background: linear-gradient(135deg, #A5D6A7 0%, #81C784 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.audio-helper-card {
  background: linear-gradient(135deg, #F3E5F5, #E8EAF6);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.audio-helper-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.helper-icon {
  font-size: 18px;
}

.audio-helper-header span:last-child {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.helper-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.audio-mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.audio-mood-btn {
  padding: 10px 6px;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.audio-mood-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.audio-mood-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.03);
}

.mood-icon {
  font-size: 20px;
}

.mood-name {
  font-size: 11px;
  font-weight: 700;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 时长选择器 */
.duration-control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.duration-control > span {
  font-size: 14px;
}

.duration-btn {
  padding: 5px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.duration-btn:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}

.duration-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.audio-play-btn {
  padding: 10px 20px;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.audio-play-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.audio-play-btn.playing {
  background: var(--primary);
  color: white;
}

.play-icon {
  font-size: 12px;
}

.volume-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-control span {
  font-size: 14px;
}

.volume-control input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.pet-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pet-tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.add-pet-tab:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pet-tab-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pet-delete-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0;
  margin-left: 4px;
}

.pet-delete-btn:hover {
  transform: scale(1.1);
  background: #ff5252;
}

.pet-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.add-pet-tab {
  border-style: dashed;
  color: var(--primary);
}

.add-pet-tab:hover {
  background: var(--primary-light);
}

.profile-card {
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.avatar-wrapper {
  position: relative;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
  border-color: var(--primary);
}

.profile-info {
  flex: 1;
}

.pet-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pet-type-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.pet-detail-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.pet-detail-item {
  font-size: 12px;
  color: var(--text-muted);
}

.pet-detail-divider {
  color: var(--border-color);
}

.edit-profile-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.edit-profile-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 18px;
}

.insight-card {
  margin-bottom: 20px;
}

.insight-empty,
.timeline-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.clear-date-btn {
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.clear-date-btn:hover {
  background: var(--primary-dark);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
  display: block;
}

.insight-tips {
  margin-top: 16px;
  text-align: left;
  padding-left: 8px;
}

.insight-tips p {
  font-size: 12px;
  color: var(--primary);
  margin: 4px 0;
  padding: 6px 10px;
  background: var(--primary-light);
  border-radius: 6px;
}

.insight-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.insight-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.insight-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline {
  padding-bottom: 20px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.timeline-content {
  flex: 1;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.timeline-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.timeline-detail.collapsed {
  display: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.nav-icon {
  font-size: 22px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.nav-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-btn.active .nav-icon {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-btn.active .nav-label {
  color: var(--primary);
}

.visual-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.visual-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.visual-light {
  width: 100%;
  height: 100%;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes flashRed {
  0% { opacity: 0.6; filter: brightness(0.8); }
  100% { opacity: 1; filter: brightness(1.2); }
}

@keyframes pulseWarm {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

@keyframes breatheSoft {
  0% { opacity: 0.7; }
  100% { opacity: 0.95; }
}

.close-visual-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-visual-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.visual-hint {
  position: absolute;
  bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-align: center;
  padding: 0 24px;
  z-index: 10;
}

.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  animation: slideUp 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.close-modal-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: var(--border);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"] {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
  outline: none;
  background: var(--bg);
}

.form-group input:focus {
  border-color: var(--primary);
  background: white;
}

.species-options {
  display: flex;
  gap: 12px;
}

.species-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.species-option input {
  display: none;
}

.species-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(255, 140, 66, 0.1);
  color: var(--primary);
}

.species-option:hover {
  border-color: var(--primary-light);
}

.modal-footer {
  margin-top: 24px;
}

.save-modal-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  box-shadow: 0 4px 16px rgba(255, 140, 66, 0.3);
}

.save-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 140, 66, 0.4);
}

/* ==================== 游戏区域全新样式 ==================== */

.game-container {
  padding: 0;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #87CEEB 0%, #B3E5FC 30%, #FFF8E7 60%, #FFE4B5 100%);
}

/* 游戏顶部HUD */
.game-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(135, 206, 235, 0.9) 0%, rgba(135, 206, 235, 0.7) 100%);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  gap: 6px;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.week-bar {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 4px;
  border-radius: 8px;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 3px;
  border-radius: 4px;
  background: #fff;
  border: 1.5px solid #E0E0E0;
  position: relative;
  transition: all 0.3s ease;
}

.week-day.weekend {
  background: #FFE0E0;
  border-color: #FFB0B0;
}

.week-day-name {
  font-size: 8px;
  color: #666;
  font-weight: 600;
  line-height: 1.1;
}

.week-day-mark {
  font-size: 10px;
  font-weight: 700;
  color: #5D4037;
  line-height: 1.1;
}

.week-day.weekend .week-day-mark {
  color: #D32F2F;
}

.week-day-check {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  background: #4CAF50;
  color: #fff;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

.week-day.completed {
  background: #C8E6C9;
  border-color: #4CAF50;
}

.week-day.completed .week-day-check {
  display: flex;
}

.week-day.current {
  background: #FFF59D;
  border-color: #FBC02D;
  box-shadow: 0 0 4px rgba(251, 192, 45, 0.6);
  transform: scale(1.05);
}

.week-day.weekend.current {
  background: #FFCCBC;
  border-color: #FF7043;
  box-shadow: 0 0 6px rgba(255, 112, 67, 0.6);
}

.game-stats {
  display: flex;
  gap: 8px;
}

.stat-badge {
  padding: 6px 12px;
  background: linear-gradient(135deg, #FFD700, #FFB800);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  color: #8B4513;
  box-shadow: 0 2px 8px rgba(255, 183, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #FFA000;
}

.stat-badge:nth-child(2) {
  background: linear-gradient(135deg, #81C784, #4CAF50);
  border-color: #388E3C;
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 导航箭头 */
.game-nav-arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.nav-arrow-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C42, #FF6B35);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.nav-arrow-btn:hover {
  transform: scale(1.1);
}

.nav-arrow-btn:active {
  transform: scale(0.95);
}

.nav-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.nav-location {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #5D4037;
  font-family: var(--font-heading);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* 滑动容器 */
.game-slider-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.game-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-panel {
  width: 33.333%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* ==================== 批发市场 ==================== */

.game-panel-supply {
  background: linear-gradient(180deg, #87CEEB 0%, #98D8C8 40%, #F7DC6F 100%);
}

.supply-shop {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 10px;
  overflow-y: auto;
}

/* 市场招牌 */
.supply-sign {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.supply-sign-board {
  display: inline-block;
  background: linear-gradient(180deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  padding: 8px 24px;
  border-radius: 8px;
  border: 3px solid #5D3A1A;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
}

.supply-sign-board::before,
.supply-sign-board::after {
  content: '';
  position: absolute;
  top: -20px;
  width: 4px;
  height: 20px;
  background: #5D3A1A;
}

.supply-sign-board::before { left: 20px; }
.supply-sign-board::after { right: 20px; }

.supply-sign-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.supply-sign-sub {
  font-size: 11px;
  color: #DEB887;
  margin-top: 2px;
}

/* 货架 */
.supply-shelves {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supply-shelf {
  background: linear-gradient(180deg, #DEB887 0%, #D2691E 100%);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  border: 2px solid #8B4513;
}

.shelf-label {
  font-size: 11px;
  font-weight: 700;
  color: #5D3A1A;
  margin-bottom: 6px;
  padding-left: 4px;
}

.shelf-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supply-item {
  flex: 1;
  background: linear-gradient(180deg, #FFF8DC 0%, #FAEBD7 100%);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid #DEB887;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.supply-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.supply-item:active {
  transform: translateY(0);
}

.supply-item.sold-out {
  opacity: 0.5;
  filter: grayscale(0.5);
}

.supply-icon {
  font-size: 28px;
  margin-bottom: 3px;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.2));
}

.supply-name {
  font-size: 10px;
  font-weight: 700;
  color: #5D4037;
  margin-bottom: 2px;
}

.supply-price {
  font-size: 11px;
  color: #E65100;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.supply-buy-btn {
  width: 100%;
  padding: 4px 6px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid #2E7D32;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.supply-buy-btn:hover {
  transform: scale(1.05);
}

.supply-stock {
  font-size: 10px;
  color: #5D4037;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.supply-stock.full {
  color: #E53935;
  font-weight: 800;
}

.supply-buy-btn:active {
  transform: scale(0.95);
}

/* 库存展示 */
.supply-inventory {
  background: linear-gradient(180deg, #FFF8E7 0%, #FFE4B5 100%);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid #DEB887;
}

.inv-title {
  font-size: 11px;
  font-weight: 800;
  color: #8B4513;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.inv-chip {
  font-size: 10px;
  font-weight: 700;
  color: #5D4037;
  background: white;
  padding: 4px 3px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 2px solid #FFE0B2;
}

.inv-chip span {
  color: #E65100;
  font-weight: 800;
}

/* 提示 */
.supply-hint {
  text-align: center;
  font-size: 12px;
  color: #8B4513;
  margin-top: 10px;
  font-weight: 600;
  opacity: 0.8;
}

.go-shop-btn {
  width: 100%;
  padding: 12px 16px;
  margin-top: 10px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFD54F 0%, #FFA000 100%);
  color: #5D4037;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  box-shadow: 0 5px 15px rgba(255, 160, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  border: 3px solid #FF8F00;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.go-shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 160, 0, 0.5);
}

.go-shop-btn:active {
  transform: translateY(0);
}

/* ==================== 沙威玛小卖部 ==================== */

.game-panel-shop {
  background: linear-gradient(180deg, #FFB74D 0%, #FF8A65 50%, #D84315 100%);
}

.shawarma-shop {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 店铺内部 */
.shop-interior {
  flex: 1;
  background: linear-gradient(180deg, #FFF3E0 0%, #FFE0B2 100%);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  position: relative;
  overflow-y: auto;
}

/* 店铺招牌 */
.shop-sign {
  text-align: center;
  margin-bottom: 4px;
}

.shop-sign-text {
  display: inline-block;
  background: linear-gradient(180deg, #D32F2F 0%, #B71C1C 100%);
  color: #FFD700;
  padding: 8px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border: 3px solid #FFD700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* 烤炉区域 */
.shawarma-grill-area {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.meat-cutter {
  background: linear-gradient(180deg, #C62828 0%, #8B0000 100%);
  padding: 10px 14px;
  border-radius: 12px 12px 8px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  border: 3px solid #8B0000;
  position: relative;
}

.meat-cutter::before {
  content: '🔥';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  animation: flame 0.5s ease-in-out infinite alternate;
}

@keyframes flame {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.2); }
}

.meat-cutter:active {
  transform: scale(0.92);
}

.meat-stack {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.cutter-label {
  font-size: 11px;
  color: #FFD700;
  font-weight: 700;
  margin-top: 4px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 原料台 */
.ingredients-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(180deg, #8D6E63 0%, #6D4C41 100%);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  border: 3px solid #5D4037;
  flex-shrink: 0;
}

/* 店铺设备区 */
.shop-equipment {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
  flex-wrap: wrap;
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #FFF8E1 0%, #FFE0B2 100%);
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid #FFB74D;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.equipment-icon {
  font-size: 18px;
}

.equipment-info {
  display: flex;
  flex-direction: column;
}

.equipment-name {
  font-size: 11px;
  font-weight: 600;
  color: #5D4037;
}

.equipment-level {
  font-size: 10px;
  color: #8D6E63;
}

.equipment-upgrade-btn {
  font-size: 10px;
  padding: 3px 6px;
}

.ingredient {
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 8px;
  border-radius: 10px;
  min-width: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 2px solid #D7CCC8;
}

.ingredient:active {
  transform: scale(0.85);
  background: #FFF3E0;
}

.ingredient.empty {
  opacity: 0.4;
  filter: grayscale(0.7);
  pointer-events: none;
}

.ingredient.wrong-shake {
  animation: wrongShake 0.6s ease;
  background: #FFEB3B !important;
  border-color: #FBC02D !important;
  box-shadow: 0 0 15px rgba(255, 235, 59, 0.8) !important;
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes ingredientShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.ingredient-shake {
  animation: ingredientShake 0.3s ease-in-out 3;
}

.ing-icon {
  font-size: 28px;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
}

.ing-count {
  font-size: 11px;
  font-weight: 800;
  color: #E65100;
  margin-top: 2px;
  background: #FFD700;
  border-radius: 10px;
  padding: 1px 6px;
  display: inline-block;
  min-width: 20px;
}

/* 制作区 */
.making-area {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8E7 100%);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  border: 3px solid #FFE0B2;
  position: relative;
  flex-shrink: 0;
  min-height: 100px;
}

.making-area::before {
  content: '👨‍🍳';
  position: absolute;
  top: -15px;
  right: 10px;
  font-size: 28px;
}

.making-label {
  font-size: 12px;
  font-weight: 800;
  color: #8D6E63;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.making-bread {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  min-height: 60px;
  min-width: 80px;
}

.bread-base {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
}

.bread-base.rolled {
  animation: roll 0.5s ease;
}

@keyframes roll {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.bread-fillings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 70px;
  pointer-events: none;
}

.making-status {
  font-size: 12px;
  color: #795548;
  margin-bottom: 10px;
  min-height: 18px;
  font-weight: 600;
}

.making-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(255, 248, 220, 0.6);
  border-radius: 8px;
  border: 1px solid #DEB887;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #FFF;
  border-radius: 12px;
  font-size: 11px;
  border: 2px solid #E0E0E0;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step-item.current {
  opacity: 1;
  border-color: #FF8C42;
  background: #FFF3E0;
  box-shadow: 0 2px 4px rgba(255, 140, 66, 0.3);
}

.step-item.completed {
  opacity: 1;
  border-color: #4CAF50;
  background: #E8F5E9;
}

.step-num {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9E9E9E;
  color: white;
  border-radius: 50%;
  font-size: 9px;
  font-weight: bold;
}

.step-item.current .step-num {
  background: #FF8C42;
}

.step-item.completed .step-num {
  background: #4CAF50;
}

.step-icon {
  font-size: 14px;
}

.step-name {
  font-weight: 600;
  color: #5D4037;
}

.step-count {
  background: #FF5722;
  color: white;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.step-item.completed .step-count {
  background: #4CAF50;
}

.step-item.current .step-count {
  background: #FF8C42;
}

.step-check {
  color: #4CAF50;
  font-weight: bold;
  font-size: 12px;
}

.step-info {
  width: 100%;
  text-align: center;
  color: #FF5722;
  font-weight: 600;
}

.making-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.make-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(0,0,0,0.1);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.roll-btn {
  background: linear-gradient(180deg, #FF8C42 0%, #E65100 100%);
  color: white;
  border-color: #BF360C;
}

.clear-btn {
  background: linear-gradient(180deg, #9E9E9E 0%, #616161 100%);
  color: white;
  border-color: #424242;
}

.make-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.make-btn:active {
  transform: translateY(0);
}

.make-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 顾客区 */
.customer-area {
  background: linear-gradient(180deg, #E8F5E9 0%, #C8E6C9 100%);
  border-radius: 16px;
  padding: 8px 10px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 3px solid #A5D6A7;
  position: relative;
  flex-shrink: 0;
  min-height: 60px;
}

.customer-queue {
  position: absolute;
  top: -8px;
  right: 8px;
  display: flex;
  gap: 2px;
}

.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66BB6A;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.customer {
  font-size: 36px;
  flex-shrink: 0;
  animation: customerBounce 2s ease-in-out infinite;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

@keyframes customerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.customer-bubble {
  flex: 1;
  background: white;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  color: #2E7D32;
  position: relative;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  font-weight: 600;
  border: 2px solid #C8E6C9;
}

.step-preview {
  font-size: 12px;
  letter-spacing: 2px;
}

.customer-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid white;
}

.serve-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid #2E7D32;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.serve-btn:hover {
  transform: scale(1.05);
}

.serve-btn:active {
  transform: scale(0.95);
}

.serve-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* 底部库存栏 */
.shop-stock-bar {
  padding: 10px 14px;
  background: linear-gradient(180deg, #5D4037 0%, #3E2723 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #FFD700;
  border-top: 3px solid #8D6E63;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.shop-stock-bar span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.shop-stock-bar b {
  color: #FFD700;
  font-weight: 800;
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.price-tag {
  margin-left: auto;
  color: #FFD700 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  background: linear-gradient(180deg, #D32F2F, #B71C1C);
  padding: 4px 12px !important;
  border-radius: 12px;
  border: 2px solid #FFD700;
}

/* ==================== 宠物区 ==================== */

.game-panel-pet {
  background: linear-gradient(180deg, #EF9A9A 0%, #E57373 50%, #EF5350 100%);
}

.pet-home {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* 房间背景 */
.home-room {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #FFCDD2 0%, #EF9A9A 40%, #E57373 100%);
  overflow: hidden;
  min-height: 120px;
}

/* 墙壁装饰 */
.wall-decor {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
  opacity: 0.6;
}

.wall-picture {
  width: 40px;
  height: 36px;
  background: linear-gradient(135deg, #FFE082, #FFB74D);
  border: 3px solid #8D6E63;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 窗户 */
.room-window {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 50px;
  background: linear-gradient(180deg, #81D4FA, #B3E5FC);
  border: 4px solid #8D6E63;
  border-radius: 6px;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.5);
}

.room-window::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #8D6E63;
  transform: translateY(-50%);
}

.room-window::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #8D6E63;
  transform: translateX(-50%);
}

/* 地板 */
.home-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, #D7CCC8 0%, #BCAAA4 100%);
  border-top: 4px solid #8D6E63;
}

.home-floor::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(139, 115, 85, 0.3) 40px,
      rgba(139, 115, 85, 0.3) 42px
    );
}

/* 地毯 */
.room-rug {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 50px;
  background: linear-gradient(135deg, #EF9A9A 0%, #E57373 50%, #EF9A9A 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 3px solid #C62828;
}

.room-rug::before {
  content: '🐾';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0.5;
}

/* 家具区域 */
.home-furniture {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 8px;
  z-index: 2;
}

.furniture-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  min-width: 55px;
}

.furniture-zone:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.furniture-zone:active {
  transform: translateY(0) scale(0.98);
}

.furniture-icon {
  font-size: 32px;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
}

.furniture-label {
  font-size: 10px;
  font-weight: 700;
  color: #5D4037;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 走动的猫咪 - 升级样式 */
.walking-cat {
  position: absolute;
  width: 60px;
  height: 50px;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  z-index: 5;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}

.cat-body {
  position: absolute;
  width: 48px;
  height: 30px;
  background: linear-gradient(180deg, #FFB74D 0%, #FF9800 50%, #F57C00 100%);
  border-radius: 24px 24px 18px 18px;
  bottom: 0;
  left: 6px;
  box-shadow: inset -6px -6px 12px rgba(0,0,0,0.15);
}

.cat-head {
  position: absolute;
  width: 28px;
  height: 26px;
  background: linear-gradient(180deg, #FFB74D 0%, #FF9800 100%);
  border-radius: 50%;
  bottom: 18px;
  left: 0;
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.1);
}

.cat-head::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #FF9800;
  top: -7px;
  left: 2px;
}

.cat-head::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #FF9800;
  top: -7px;
  right: 2px;
}

.cat-eyes {
  position: absolute;
  top: 8px;
  left: 5px;
  right: 5px;
  display: flex;
  justify-content: space-between;
}

.cat-eye {
  width: 6px;
  height: 8px;
  background: #2D1B00;
  border-radius: 50%;
  position: relative;
}

.cat-eye::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
}

.cat-nose {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 3px;
  background: #FF8A80;
  border-radius: 50%;
}

.cat-mouth {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid #5D4037;
  border-radius: 0 0 50% 50%;
}

/* 猫咪尾巴 */
.cat-tail {
  position: absolute;
  width: 36px;
  height: 8px;
  background: linear-gradient(90deg, #FF9800, #FFB74D);
  border-radius: 4px;
  bottom: 8px;
  right: -8px;
  transform-origin: left center;
  animation: tailWag 1s ease-in-out infinite;
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(25deg); }
}

/* 猫咪腿部 */
.cat-leg {
  position: absolute;
  width: 8px;
  height: 14px;
  background: linear-gradient(180deg, #F57C00, #E65100);
  border-radius: 4px;
  bottom: -6px;
}

.cat-leg-front-left { left: 12px; }
.cat-leg-front-right { left: 22px; }
.cat-leg-back-left { right: 18px; }
.cat-leg-back-right { right: 10px; }

/* 猫咪走路动画 */
.walking-cat.walking .cat-leg-front-left,
.walking-cat.walking .cat-leg-back-right {
  animation: legMove 0.35s ease-in-out infinite;
}

.walking-cat.walking .cat-leg-front-right,
.walking-cat.walking .cat-leg-back-left {
  animation: legMove 0.35s ease-in-out infinite 0.175s;
}

@keyframes legMove {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-10deg); }
}

/* 猫咪睡觉动画 */
.walking-cat.sleeping {
  transform: scale(0.85);
}

.walking-cat.sleeping .cat-body {
  height: 24px;
  border-radius: 30px;
}

.walking-cat.sleeping .cat-head {
  bottom: 12px;
  left: -6px;
}

.walking-cat.sleeping .cat-eye {
  height: 2px;
  border-radius: 1px;
  top: 10px;
}

.walking-cat.sleeping .cat-tail {
  animation: none;
  transform: rotate(-40deg) translateY(4px);
}

.walking-cat.sleeping .cat-leg {
  opacity: 0;
}

/* ZZZ气泡 */
.cat-zzz {
  position: absolute;
  top: -15px;
  right: -5px;
  font-size: 14px;
  color: #90A4AE;
  font-weight: bold;
  animation: zzzFloat 2s ease-in-out infinite;
  opacity: 0;
}

.walking-cat.sleeping .cat-zzz {
  opacity: 1;
}

@keyframes zzzFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

/* 猫咪吃食动画 */
.walking-cat.eating .cat-head {
  animation: eatingHead 0.4s ease-in-out infinite;
}

@keyframes eatingHead {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* 宠物状态条 */
.pet-status-bar {
  padding: 10px 14px;
  background: linear-gradient(180deg, #FFF3E0 0%, #FFE0B2 100%);
  border-top: 3px solid #FFB74D;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
}

.status-bar-container {
  flex: 1;
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.status-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #66BB6A, #43A047);
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hunger-bar {
  background: linear-gradient(90deg, #FFB74D, #FF9800);
}

.happy-bar {
  background: linear-gradient(90deg, #E57373, #E53935);
}

.status-value {
  font-size: 11px;
  font-weight: 800;
  color: #5D4037;
  width: 32px;
  text-align: right;
  background: white;
  padding: 2px 6px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 宠物信息卡片 */
.pet-info-card {
  padding: 10px 14px;
  background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
  border-top: 1px solid #E0E0E0;
}

.pet-state {
  font-size: 14px;
  font-weight: 700;
  color: #C62828;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pet-timer {
  font-size: 12px;
  color: #757575;
}

.feeding-status {
  font-size: 12px;
  color: #388E3C;
  font-weight: 600;
  margin-top: 4px;
}

/* 操作按钮 */
.pet-action-buttons {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #FFCDD2 0%, #EF9A9A 100%);
  border-top: 3px solid #E57373;
  box-shadow: 0 -4px 12px rgba(229, 115, 115, 0.2);
}

.pet-op-btn {
  flex: 1;
  padding: 12px 6px;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.4);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  color: white;
}

.feed-op-btn {
  background: linear-gradient(180deg, #FFB74D 0%, #F57C00 100%);
  border-color: #E65100;
}

.bath-op-btn {
  background: linear-gradient(180deg, #4FC3F7 0%, #0288D1 100%);
  border-color: #01579B;
}

.play-op-btn {
  background: linear-gradient(180deg, #CE93D8 0%, #9C27B0 100%);
  border-color: #7B1FA2;
}

.heal-op-btn {
  background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%);
  border-color: #2E7D32;
}

.pet-op-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.pet-op-btn:active {
  transform: translateY(0);
}

.pet-op-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 买猫粮按钮 */
.buy-catfood-row {
  padding: 8px 12px 12px;
  background: linear-gradient(180deg, #EF9A9A 0%, #E57373 100%);
  display: flex;
  gap: 6px;
}

.buy-catfood-btn {
  flex: 1;
  padding: 10px 4px;
  background: linear-gradient(180deg, #FFD54F 0%, #FFA000 100%);
  border: none;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #5D4037;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  box-shadow: 0 5px 15px rgba(255, 160, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  border: 3px solid #FF8F00;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.buy-catfood-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 160, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.buy-catfood-btn:active {
  transform: translateY(0);
}

/* 猫抓板/猫草耐久值 */
.pet-item-durability {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.durability-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.durability-label {
  width: 70px;
  flex-shrink: 0;
  color: #5D4037;
  font-weight: 600;
}

.durability-bar-wrap {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.durability-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: #66BB6A;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.durability-bar-fill.mid {
  background: #FFB74D;
}

.durability-bar-fill.low {
  background: #EF5350;
}

.durability-text {
  width: 50px;
  text-align: right;
  color: #5D4037;
  font-size: 11px;
  flex-shrink: 0;
}

/* 游戏弹窗 */
.game-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.popup-content {
  background: linear-gradient(180deg, #FFF8E7 0%, #FFECB3 100%);
  border-radius: 20px;
  padding: 24px;
  margin: 0 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.8);
  animation: popupBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 4px solid #FFB74D;
  max-width: 320px;
}

@keyframes popupBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.popup-title {
  font-size: 22px;
  font-weight: 800;
  color: #E65100;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-message {
  font-size: 15px;
  color: #5D4037;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.popup-close-btn {
  padding: 12px 40px;
  background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%);
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid #2E7D32;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.popup-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.popup-close-btn:active {
  transform: translateY(0);
}

.emotion-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid;
  animation: fadeIn 0.3s ease;
}

/* 升级面板 */
.upgrade-panel {
  background: linear-gradient(180deg, #424242 0%, #212121 100%);
  padding: 12px;
  border-radius: 16px;
  margin-top: 12px;
}

.upgrade-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.upgrade-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upgrade-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 8px 10px;
  border-radius: 12px;
}

.upgrade-icon {
  font-size: 20px;
}

.upgrade-info {
  flex: 1;
}

.upgrade-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.upgrade-level {
  font-size: 10px;
  color: #9E9E9E;
}

.upgrade-benefit {
  font-size: 10px;
  color: #66BB6A;
}

.upgrade-btn {
  padding: 6px 10px;
  background: linear-gradient(180deg, #42A5F5 0%, #1E88E5 100%);
  border: 2px solid #1565C0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.upgrade-btn:active {
  transform: translateY(2px);
}

.upgrade-btn:disabled {
  background: #424242;
  border-color: #616161;
  cursor: not-allowed;
}

/* 成就按钮 */
.achievement-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #FFD700 0%, #FFA000 100%);
  border: 2px solid #F57C00;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  color: #5D4037;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.achievement-btn:active {
  transform: translateY(2px);
}

/* 成就弹窗内容 */
.achievement-modal-content {
  max-height: 80vh;
  overflow-y: auto;
  width: 320px;
}

.pet-select-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.pet-select-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, #FFF8E1, #FFFFFF);
  border: 2px solid #FFB74D;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.pet-select-btn:hover {
  background: linear-gradient(145deg, #FFE082, #FFF8E1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 160, 0, 0.3);
}

.pet-select-icon {
  font-size: 24px;
}

.pet-select-name {
  font-size: 16px;
  font-weight: 600;
  color: #5D4037;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
}

.achievement-item.unlocked {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,160,0,0.1));
  border: 1px solid rgba(255,215,0,0.3);
}

.achievement-item.locked {
  opacity: 0.5;
}

.achievement-item-icon {
  font-size: 24px;
}

.achievement-item-info {
  flex: 1;
}

.achievement-item-name {
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.achievement-item-desc {
  font-size: 11px;
  color: #9E9E9E;
}

.achievement-item-reward {
  font-size: 11px;
  color: #66BB6A;
  font-weight: 700;
}

/* 成就解锁弹窗 */
.achievement-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(180deg, #FFD700 0%, #FFA000 100%);
  border: 3px solid #F57C00;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(255, 160, 0, 0.5);
  opacity: 0;
  transition: all 0.3s ease;
}

.achievement-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.achievement-icon {
  font-size: 40px;
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.achievement-name {
  font-size: 18px;
  font-weight: 800;
  color: #5D4037;
}

.achievement-desc {
  font-size: 13px;
  color: #8D6E63;
}

.achievement-reward {
  font-size: 14px;
  font-weight: 800;
  color: #43A047;
}

/* 金币飞行动画 */
.coin-fly {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 2000;
  animation: coinFly 1s ease-out forwards;
}

@keyframes coinFly {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0.5);
  }
}

/* 购买成功弹跳 */
.bounce-in {
  animation: bounceIn 0.4s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ==================== 菜品系统新样式 ==================== */

/* 圆形面皮 */
.round-bread {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 50%, #FFB74D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.1);
  border: 3px solid #FF8A65;
  margin: 0 auto;
}

.shop-rating-bar {
  text-align: center;
  font-size: 20px;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-bottom: 4px;
  letter-spacing: 2px;
}

/* 菜品切换标签 */
.dish-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}

.dish-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF3E0 0%, #FFE0B2 100%);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 2px solid #FFCC80;
}

.dish-tab.active {
  background: linear-gradient(180deg, #FF8C42 0%, #E65100 100%);
  border-color: #BF360C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
}

.dish-tab:active {
  transform: scale(0.95);
}

/* 原料标签 */
.ing-label {
  font-size: 10px;
  color: #5D4037;
  font-weight: 600;
  margin-top: 2px;
}

/* 汉堡堆叠 */
.burger-stack {
  position: relative;
  min-height: 60px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  padding: 5px;
}

.plate {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
}

.burger-layer {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
  animation: layerDrop 0.3s ease;
}

@keyframes layerDrop {
  0% { transform: translateY(-20px) scale(1.2); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 榨汁机 */
.juicer {
  position: relative;
  display: inline-block;
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

.juicer-contents {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  font-size: 18px;
}

.blending {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}

/* 油炸锅 */
.fryer-area {
  position: relative;
  display: inline-block;
  padding: 5px;
}

.fryer-pot {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
}

.fryer-status {
  font-size: 12px;
  color: #795548;
  font-weight: 600;
  margin-top: 6px;
}

.fryer-upgrade {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
}

.fryer-level {
  font-size: 11px;
  color: #5D4037;
  font-weight: 600;
}

.fryer-upgrade-btn {
  font-size: 10px;
  padding: 3px 6px;
}

/* 耐心条 */
.patience-bar {
  position: absolute;
  bottom: 3px;
  left: 10px;
  right: 70px;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.patience-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #66BB6A, #43A047);
  border-radius: 3px;
  transition: width 1s linear;
}

.patience-bar-fill.warning {
  background: linear-gradient(90deg, #FFB74D, #FF9800);
}

.patience-bar-fill.urgent {
  background: linear-gradient(90deg, #FF6B6B, #D32F2F);
  animation: pulseUrgent 0.5s ease-in-out infinite alternate;
}

@keyframes pulseUrgent {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

/* 粒子飞行动画 */
@keyframes particleFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.5); opacity: 0; }
}

/* 连击弹出 */
@keyframes comboPop {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* 玩法说明按钮 */
.game-help-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #EF9A9A, #E57373);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(149, 117, 205, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.help-text {
  font-size: 8px;
  font-weight: 800;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.help-icon {
  font-size: 14px;
}

.game-help-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(149, 117, 205, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* 营业计时器 */
.business-timer {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.business-timer.open {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.business-timer.closed {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFCC80;
  animation: timerPulse 1s infinite alternate;
}

@keyframes timerPulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* 收摊遮罩 */
.closed-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: inherit;
  backdrop-filter: blur(4px);
}

.closed-sign {
  background: linear-gradient(145deg, #FFF8E1, #FFFFFF);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #FF8C42;
  max-width: 300px;
  animation: signBounce 0.5s ease;
}

@keyframes signBounce {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.closed-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.closed-title {
  font-size: 22px;
  font-weight: 800;
  color: #BF360C;
  margin-bottom: 8px;
}

.closed-desc {
  font-size: 14px;
  color: #5D4037;
  margin-bottom: 16px;
  line-height: 1.5;
}

.closed-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.countdown-number {
  font-size: 36px;
  font-weight: 900;
  color: #FF8C42;
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.countdown-label {
  font-size: 12px;
  color: #9E9E9E;
  margin-top: 4px;
}

.closed-day-info {
  font-size: 11px;
  color: #9E9E9E;
  padding-top: 10px;
  border-top: 1px solid #E0E0E0;
}

/* 玩法说明弹窗 */
.gameplay-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.gameplay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.gameplay-card {
  position: relative;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: bounceIn 0.4s ease;
  display: flex;
  flex-direction: column;
}

.gameplay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.gameplay-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.gameplay-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gameplay-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gameplay-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

.gameplay-section {
  margin-bottom: 20px;
}

.gameplay-section:last-child {
  margin-bottom: 0;
}

.gameplay-section h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gameplay-section ul {
  list-style: none;
  padding-left: 0;
}

.gameplay-section li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.gameplay-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
}

.gameplay-footer {
  padding: 16px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.gameplay-start-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.gameplay-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 481px) {
  .app {
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    min-height: 100vh;
  }
  
  .bottom-nav {
    max-width: 520px;
  }
}

/* ==================== 健康打卡日历 ==================== */

.calendar-card {
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cal-nav-btn:hover {
  background: var(--primary-light);
}

.cal-nav-btn:active {
  transform: scale(0.9);
}

.cal-month-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 90px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.cal-day {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg);
  margin: 0 auto;
}

.cal-day.has-record {
  background: var(--success);
  color: #fff;
}

.cal-day.selected {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.cal-day:not(.empty) {
  cursor: pointer;
}

.cal-day:not(.empty):hover {
  background: var(--primary-light);
}

.cal-day.today {
  border: 2px solid var(--primary);
}

.cal-day.empty {
  background: transparent;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.legend-has-record {
  background: var(--success);
}

.legend-no-record {
  background: var(--bg);
  border: 1px solid var(--border);
}

/* ==================== 体重追踪 ==================== */

.weight-card {
  margin-bottom: 20px;
}

.weight-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.weight-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s ease;
}

.weight-input:focus {
  border-color: var(--primary);
}

.weight-save-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.weight-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.weight-save-btn:active {
  transform: scale(0.96);
}

.weight-chart {
  margin-bottom: 14px;
}

.weight-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.weight-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.chart-axis {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-label {
  fill: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-body);
}

.chart-line {
  fill: none;
  stroke: #4A90E2;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-dot {
  fill: #4A90E2;
  stroke: #fff;
  stroke-width: 1.5;
}

.weight-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.weight-stat-item {
  flex: 1;
  min-width: 80px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.weight-stat-item .stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.weight-stat-item .stat-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.weight-stat-item .trend-up {
  color: var(--danger);
}

.weight-stat-item .trend-down {
  color: var(--success);
}

.weight-stat-item .trend-flat {
  color: var(--text-muted);
}

/* ==================== 移动端适配 ==================== */

@media (max-width: 768px) {
  .game-slider {
    flex-direction: column;
  }

  .game-panel {
    width: 100%;
    min-width: auto;
    margin-bottom: 16px;
  }

  .game-nav-arrows {
    display: none;
  }

  .game-slider-container {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* ==================== 数据管理 ==================== */

.data-card {
  padding: 16px;
}

.data-btn-row {
  display: flex;
  gap: 12px;
}

.data-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.export-btn {
  background: linear-gradient(135deg, #42A5F5, #1E88E5);
  color: white;
}

.import-btn {
  background: linear-gradient(135deg, #66BB6A, #43A047);
  color: white;
}

/* ==================== 行为解读按钮置灰 ==================== */

.analyze-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ==================== 按钮点击缩放 ==================== */

button:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ==================== 金币数字跳动 ==================== */

@keyframes bounceNum {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); color: #4CAF50; }
}

.bounce {
  animation: bounceNum 0.5s ease;
  display: inline-block;
}

/* ==================== 沟通指南空状态提示 ==================== */

.scene-empty-hint {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}

.scene-empty-hint .empty-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.scene-empty-hint p {
  font-size: 13px;
  margin: 0;
}
