/* Common styles for all pages */
:root {
  --primary-color: #F9DB56;
  --primary-dark: #f5cc25;
  --text-primary: #333333;
  --text-secondary: #666666;
  --background-light: #f9f9f9;
  --background-white: #ffffff;
  --border-color: #eeeeee;
}

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

body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--background-light);
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  background-color: var(--background-white);
  font-size: 12px;
  height: 24px;
}

.status-bar-time {
  font-weight: 500;
}

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

/* Navigation bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--background-white);
  border-bottom: 1px solid var(--border-color);
  height: 44px;
}

.nav-title {
  font-size: 18px;
  font-weight: 600;
}

.nav-action {
  color: var(--text-primary);
}

/* Tab bar */
.tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  border-top: 1px solid var(--border-color);
  height: 49px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-secondary);
}

.tab-item.active {
  color: var(--primary-dark);
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 3px;
}

/* Common components */
.card {
  background-color: var(--background-white);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.button-primary {
  background-color: var(--primary-color);
  color: var(--text-primary);
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.button-primary:hover {
  background-color: var(--primary-dark);
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 15px 0;
}

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

.avatar-large {
  width: 60px;
  height: 60px;
}

.flex-row {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container {
  padding: 15px;
  margin-bottom: 60px; /* Space for tab bar */
  margin-top: 10px; /* 减少标题栏下方空白 */
}

/* For screens that don't need both status and nav bars */
.container-no-nav {
  margin-top: 24px;
}

/* For the main content area */
.main-content {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tag styles */
.tag {
  display: inline-block;
  padding: 4px 8px;
  background-color: var(--primary-color);
  color: var(--text-primary);
  border-radius: 4px;
  font-size: 10px;
  margin-right: 5px;
}

/* Input styles */
.input-group {
  margin-bottom: 15px;
}

.input-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
}

/* Banner / Slider */
.banner {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card styles for memberships */
.membership-card {
  background-color: var(--primary-color);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.membership-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.membership-value {
  font-size: 24px;
  font-weight: 700;
}

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

/* List styles */
.list-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: 500;
  margin-bottom: 3px;
}

.list-item-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Grid layout for profile features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background-white);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.feature-title {
  font-size: 12px;
}

/* Calendar styles */
.calendar {
  background-color: var(--background-white);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

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

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

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
}

.calendar-day.active {
  background-color: var(--primary-color);
  font-weight: 600;
}

.calendar-day.inactive {
  color: var(--text-secondary);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.mr-5 { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.p-15 { padding: 15px; }
.font-bold { font-weight: 600; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-secondary { color: var(--text-secondary); }
.rounded-full { border-radius: 50%; }
.w-full { width: 100%; } 