:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --text-color: #292F36;
  --light-gray: #F7F7F7;
  --dark-gray: #555555;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.ios-device {
  width: 390px;
  height: 844px;
  background-color: var(--white);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);

  display: inline-block;
}

.status-bar {
  height: 44px;
  width: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
}

.tab-bar {
  height: 83px;
  width: 100%;
  background-color: var(--white);
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
}

.tab-icon {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--dark-gray);
}

.tab-label {
  font-size: 10px;
  color: var(--dark-gray);
}

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

.content {
  height: calc(100% - 127px);
  overflow-y: auto;
  padding: 0;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.login-container {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.input-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  font-size: 16px;
  background-color: #F5F5F5;
  box-sizing: border-box;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.home-container {
  padding: 16px;
}

.search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: none;
  background-color: #F5F5F5;
  font-size: 16px;
  box-sizing: border-box;
}

.category-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.category-list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
}

.category-item {
  min-width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-section {
  margin-bottom: 24px;
}

.brand-list {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 8px;
}

.brand-item {
  min-width: 100px;
  height: 60px;
  background-color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

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

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

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

.product-info {
  padding: 12px;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dark-gray);
  margin-top: 4px;
}

.detail-container {
  height: 100%;
}

.product-detail-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-detail-info {
  padding: 20px;
}

.product-detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.product-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.product-participants {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  width: 65%;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.quantity-number {
  font-size: 18px;
  font-weight: 600;
}

.host-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.host-avatar {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  object-fit: cover;
}

.host-name {
  font-weight: 600;
}

.host-address {
  font-size: 14px;
  color: var(--dark-gray);
}

.buy-button {
  position: fixed;
  bottom: 90px;
  left: 20px;
  right: 20px;
}

.map-container {
  height: 100%;
  position: relative;
}

.map {
  width: 100%;
  height: 100%;
  background-color: #F0F0F0;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.map-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.host-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.host-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background-color: #F9F9F9;
}

.create-group-container {
  padding: 20px;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.form-textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  font-size: 16px;
  background-color: #F5F5F5;
  box-sizing: border-box;
  resize: none;
  height: 120px;
  margin-bottom: 16px;
}

.image-upload {
  border: 2px dashed #E0E0E0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
}

.upload-icon {
  font-size: 32px;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.profile-container {
  padding: 20px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  object-fit: cover;
  margin-bottom: 16px;
}

.profile-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-status {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.menu-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 16px;
}

.menu-text {
  flex: 1;
  font-weight: 500;
}

.menu-arrow {
  color: var(--dark-gray);
}

/* 原型展示頁面樣式 */
body.prototype-page {
  background-color: #F0F2F5;
  padding: 40px;
}

.prototype-container {
  margin: 0 auto;
}

.prototype-section-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.frames-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  padding: 50px;
  margin-bottom: 60px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.frame-container {
  flex: 0 0 auto;
  width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.prototype-frame {
  width: 390px;
  height: 844px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 44px;
  background-color: #fff;
  transform: translateX(0) translateY(0);
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 0;
}

.prototype-label {
  margin-top: 16px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-color);
  text-align: center;
  padding-bottom: 10px;
}

.prototype-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.prototype-subtitle {
  font-size: 16px;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.footer {
  text-align: center;
  color: var(--dark-gray);
  font-size: 14px;
  margin-top: 60px;
  padding-bottom: 40px;
  border-top: 1px solid #E0E0E0;
  padding-top: 30px;
}

/* 移除舊版樣式，因為已經使用新版樣式 */
.all-container {
  display: none;
}

@media (max-width: 1440px) {
  .frames-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  body.prototype-page {
    padding: 20px;
  }
  
  .frames-wrapper {
    padding: 20px;
  }
  
  .frame-container {
    width: 390px;
  }
  
  .prototype-frame {
    width: 390px;
    height: 844px;
  }
} 