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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #fff;
}

#app {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow-y: auto;
}

/* 背景音乐 */
#bgMusic {
  display: none;
}

/* 音乐控制按钮 */
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.2s;
}

.music-control:hover {
  transform: scale(1.1);
}

.music-control.muted .music-icon {
  animation: none;
}

.music-icon {
  font-size: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* 页面切换基础样式 */
.page {
  display: none !important;
  min-height: 100vh;
  padding: 0;
}

.page.active {
  display: block !important;
}

/* 欢迎页默认显示 */
.page.welcome-page.active {
  display: flex !important;
}

/* 结果页显示 */
.page.result-page.active {
  display: flex !important;
}

/* 行程信息页显示 */
.page.trip-page.active {
  display: block !important;
}

/* 欢迎页 */
.welcome-page {
  position: relative;
  background: linear-gradient(180deg, #5BC4BE 0%, #4DB6AC 100%);
  align-items: center;
  justify-content: center;
}

.welcome-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.welcome-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 30px;
}

.logo-container {
  margin-bottom: 25px;
}

.logo-icon {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-plus {
  font-size: 48px;
  color: #FF6B6B;
  font-weight: bold;
  line-height: 1;
}

.app-title {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.app-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 45px;
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 50px;
}

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

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-emoji {
  font-size: 26px;
}

.feature-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.start-btn {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #5BC4BE;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}

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

/* 测试页 */
.test-page {
  position: relative;
  background: #f5f5f5;
  padding: 20px;
  padding-bottom: 100px;
  min-height: 100vh;
}

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

.back-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-indicator {
  font-size: 15px;
  font-weight: 600;
  color: #5BC4BE;
}

.progress-bar-container {
  height: 5px;
  background: #e8e8e8;
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5BC4BE 0%, #4DB6AC 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.question-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.question-num {
  display: inline-block;
  background: linear-gradient(135deg, #5BC4BE 0%, #4DB6AC 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 15px;
  margin-bottom: 18px;
}

.question-text {
  font-size: 19px;
  color: #333;
  line-height: 1.6;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-btn {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px 22px;
  text-align: left;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.option-btn.selected {
  border-color: #5BC4BE;
  background: linear-gradient(135deg, rgba(91, 196, 190, 0.1) 0%, rgba(77, 182, 172, 0.1) 100%);
}

.option-text {
  flex: 1;
}

.next-btn {
  display: none;
}

.page:not(.active) .next-btn {
  display: none !important;
}

.page.active .next-btn {
  display: block;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 16px;
  background: linear-gradient(135deg, #5BC4BE 0%, #4DB6AC 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 196, 190, 0.3);
  z-index: 1000;
}

.page.active .next-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #ccc !important;
}

/* 结果页 */
.result-page {
  position: relative;
  background: linear-gradient(180deg, #5BC4BE 0%, #4DB6AC 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.result-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 30px;
}

.mbti-result-circle {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.mbti-type {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
}

.mbti-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
}

.traits-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.trait-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
}

.result-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 45px;
}

.continue-btn {
  width: 100%;
  padding: 16px;
  background: #FF6B6B;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  position: relative;
  z-index: 10;
}

/* 行程信息页 */
.trip-page {
  position: relative;
  background: #f5f5f5;
  padding: 20px;
  padding-bottom: 120px;
  min-height: 100vh;
}

.page-title-text {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

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

.form-container {
  margin-top: 10px;
}

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

.form-group.half {
  width: 48%;
}

.form-row {
  display: flex;
  gap: 4%;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.form-input, .form-select {
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  font-size: 16px;
}

.generate-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 16px;
  background: linear-gradient(135deg, #5BC4BE 0%, #4DB6AC 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 196, 190, 0.3);
  z-index: 1000;
}

.generate-btn:disabled {
  opacity: 0.5;
}

/* 清单页 */
.list-page {
  background: #f5f5f5;
  padding: 20px;
  padding-bottom: 120px;
}

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

.category-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 22px;
  padding-bottom: 5px;
}

.category-tab {
  padding: 11px 22px;
  background: #fff;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.category-tab.active {
  background: linear-gradient(135deg, #5BC4BE 0%, #4DB6AC 100%);
  color: #fff;
}

.items-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-item-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.list-item-box.selected {
  background: linear-gradient(135deg, rgba(91, 196, 190, 0.1) 0%, rgba(77, 182, 172, 0.1) 100%);
}

.item-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #5BC4BE;
}

.list-item-box.selected .item-checkbox {
  background: linear-gradient(135deg, #5BC4BE 0%, #4DB6AC 100%);
  border-color: #5BC4BE;
  color: #fff;
}

.item-emoji {
  font-size: 26px;
}

.item-name {
  flex: 1;
  font-size: 16px;
  color: #333;
}

.item-weight {
  font-size: 14px;
  color: #999;
}

/* 装箱页 */
.pack-page {
  position: relative;
  background: #f5f5f5;
  padding: 20px;
  padding-bottom: 120px;
  min-height: 100vh;
}

.pack-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.available-items-section {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
}

.available-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pack-item-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  padding: 10px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.pack-item-box:hover {
  background: #e8e8e8;
}

.pack-item-box.packed {
  opacity: 0.5;
  background: #e8f5f4;
}

.pack-item-emoji {
  font-size: 20px;
}

.pack-item-name {
  font-size: 14px;
  color: #333;
}

.pack-item-weight {
  font-size: 12px;
  color: #999;
}

.luggage-container {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  min-height: 220px;
}

.luggage-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
}

.packed-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.packed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  padding: 10px 14px;
  border-radius: 20px;
}

.packed-item span:first-child {
  font-size: 20px;
}

.weight-container {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.weight-bar-container {
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.weight-progress {
  height: 100%;
  background: linear-gradient(90deg, #5BC4BE 0%, #4DB6AC 100%);
  transition: width 0.3s ease;
}

.weight-progress.warning {
  background: linear-gradient(90deg, #FFB74D 0%, #FFA726 100%);
}

.weight-progress.danger {
  background: linear-gradient(90deg, #FF6B6B 0%, #EE5A5A 100%);
}

/* 分享页 */
.share-page {
  position: relative;
  background: linear-gradient(180deg, #5BC4BE 0%, #4DB6AC 30%, #f5f5f5 30%);
  min-height: 100vh;
  padding: 20px;
  padding-bottom: 180px;
}

.share-header {
  text-align: center;
  padding: 40px 0 30px;
}

.share-title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}

.share-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.share-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.mbti-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}

.mbti-icon {
  font-size: 36px;
}

.mbti-text {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

.share-info {
  display: flex;
  justify-content: space-around;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.info-icon {
  font-size: 22px;
}

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

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

.section-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
}

.share-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-item-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f4f3 100%);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: #333;
  border: 1px solid #e8f5f4;
}

.share-item-tag .emoji {
  font-size: 18px;
}

.share-trait {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(91, 196, 190, 0.1) 0%, rgba(77, 182, 172, 0.1) 100%);
  border-radius: 12px;
}

.trait-label {
  font-size: 14px;
  color: #5BC4BE;
  font-weight: 500;
}

.trait-text {
  font-size: 14px;
  color: #333;
}

.share-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.action-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.primary {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.action-btn.secondary {
  background: #fff;
  color: #666;
  border: 2px solid #eee;
}

.restart-btn {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
}

.complete-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 16px;
  background: linear-gradient(135deg, #5BC4BE 0%, #4DB6AC 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 196, 190, 0.3);
  z-index: 1000;
}

.share-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 16px;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  z-index: 1000;
}