:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --secondary: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --dark: #1F2937;
  --light: #F9FAFB;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --phone-width: 393px;
  --phone-height: 852px;
  --phone-radius: 55px;
  --dynamic-island-width: 126px;
  --dynamic-island-height: 37px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #000;
  min-height: 100vh;
  padding: 40px;
  color: #fff;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

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

.subtitle {
  color: #666;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.page-card {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s;
}

.page-card:hover {
  transform: translateY(-5px);
}

.phone-frame {
  width: var(--phone-width);
  height: var(--phone-height);
  margin: 0 auto 20px;
  position: relative;
  border-radius: var(--phone-radius);
  background: #1a1a1a;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--dynamic-island-width);
  height: var(--dynamic-island-height);
  background: #000;
  border-radius: 24px;
  z-index: 2;
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-radius) - 20px);
  overflow: hidden;
  background: #fff;
}

.page-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #fff;
  color: #000;
  padding: 20px;
}

.page-info {
  padding: 20px;
}

.page-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.page-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-meta {
  display: flex;
  gap: 10px;
}

.tag {
  background: rgba(79, 70, 229, 0.1);
  color: #6366f1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.file-path {
  color: #666;
  font-size: 12px;
  margin-top: 10px;
}

/* 页面内容样式 */
.welcome-container,
.basic-info-container,
.invite-container,
.recommendations-container,
.edit-container,
.voting-container,
.confirm-container,
.trip-container,
.plan-container,
.chat-container,
.place-container,
.saved-container {
  padding: 20px;
}

/* 其他具体页面样式 */
/* 欢迎页样式 */
.welcome-header {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.welcome-subtitle {
  font-size: 16px;
  color: #666;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #007AFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.feature-icon i {
  color: white;
  font-size: 20px;
}

.feature-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.start-btn {
  background: #007AFF;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.start-btn:hover {
  background: #0056b3;
}

/* 其他页面样式保持不变 */
.phone-container {
  width: 100%;
  height: 100%;
  background-color: white;
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.status-bar {
  height: 44px;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.time {
  font-weight: 600;
  font-size: 14px;
}

.status-icons {
  display: flex;
  gap: 5px;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 120px;
}

.nav-bar {
  height: 50px;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
}

.nav-icon {
  font-size: 20px;
  color: var(--gray);
}

.nav-label {
  font-size: 10px;
  margin-top: 3px;
  color: var(--gray);
}

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

.chat-container {
  display: flex;
  flex-direction: column;
  height: auto;
  margin-bottom: 15px;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.message {
  max-width: 75%;
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 15px;
  position: relative;
  width: auto;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  bottom: 0;
}

.user-message-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  margin-bottom: 15px;
  width: 100%;
}

.ai-message-container, .friend-message-container {
  display: flex;
  align-items: flex-end;
  margin-bottom: 15px;
  width: 100%;
}

.user-message {
  background-color: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-right: 46px;
  word-wrap: break-word;
}

.user-message-avatar {
  right: 0;
}

.ai-message {
  background-color: #F3F4F6;
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  margin-left: 46px;
  word-wrap: break-word;
}

.ai-message-avatar {
  left: 0;
}

.friend-message {
  background-color: #E5E7EB;
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  margin-left: 46px;
  word-wrap: break-word;
}

.friend-message-avatar {
  left: 0;
}

.message-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  align-self: flex-end;
  margin-top: 5px;
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: white;
  border-top: 1px solid #E5E7EB;
  position: fixed;
  bottom: 50px;
  left: 0;
  right: 0;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
  z-index: 90;
}

.chat-input {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
  background: #F3F4F6;
  outline: none;
}

.chat-input-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.chat-input-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  color: var(--gray);
  cursor: pointer;
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

.send-btn i {
  font-size: 14px;
}

.container {
  padding: 15px;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
  cursor: pointer;
  border: none;
}

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

.btn-secondary {
  background-color: #F3F4F6;
  color: var(--dark);
}

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

.card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.card-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 8px;
  display: block;
}

.input-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.progress-container {
  height: 4px;
  background-color: #E5E7EB;
  border-radius: 2px;
  margin-bottom: 5px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 2px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.badge-secondary {
  background-color: #F3F4F6;
  color: var(--gray);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.vote-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #E5E7EB;
  background-color: white;
}

.vote-option.selected {
  border-color: var(--primary);
  background-color: rgba(79, 70, 229, 0.05);
}

.vote-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--gray);
}

.vote-bar {
  height: 4px;
  width: 100%;
  background-color: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
}

.vote-progress {
  height: 100%;
  background-color: var(--primary);
  border-radius: 2px;
}

.day-selector {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 15px;
  gap: 10px;
}

.day-item {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F3F4F6;
  font-size: 12px;
}

.day-item.active {
  background-color: var(--primary);
  color: white;
}

.place-card {
  display: flex;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.place-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.place-details {
  flex: 1;
  padding: 10px 15px;
}

.place-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.place-address {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

.place-actions {
  display: flex;
  gap: 10px;
}

.place-btn {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
}

.popular-destinations {
  margin: 20px 0;
}

.destinations-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.destination-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 120px;
}

.destination-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.destination-name {
  font-weight: 600;
  font-size: 16px;
}

.action-suggestions {
  margin: 20px 0;
}

.action-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 18px;
}

.action-text {
  font-size: 15px;
  font-weight: 500;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 状态栏样式 */
.status-bar {
  height: 44px;
  padding: 12px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.time {
  padding-left: 20px;
}

.status-icons {
  padding-right: 20px;
  display: flex;
  gap: 6px;
}

/* 内容区域 */
.content {
  padding-top: 44px;
  padding-bottom: 83px;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 底部导航栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 83px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
  z-index: 1000;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #666;
  text-decoration: none;
  font-size: 10px;
}

.tab-item.active {
  color: var(--primary, #007AFF);
}

.tab-item i {
  font-size: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 通用容器 */
.container {
  padding: 15px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  display: none;
}

/* 动态岛 */
.dynamic-island {
  position: fixed;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 24px;
  z-index: 1001;
}

/* 页面特定样式 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 127px);
  padding: 15px;
}

.message-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 15px;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
}

.user-message {
  margin-left: auto;
  background: var(--primary, #007AFF);
  color: white;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px;
}

.ai-message {
  margin-right: auto;
  background: #F3F4F6;
  color: #1F2937;
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
}

.input-container {
  padding: 15px;
  background: white;
  border-top: 1px solid #E5E7EB;
  position: fixed;
  bottom: 83px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-box {
  flex: 1;
  height: 36px;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 0 15px;
  font-size: 14px;
  background: #F9FAFB;
}

.send-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary, #007AFF);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
} 