body {
  background: #FFF0F5;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px 0 calc(60px + env(safe-area-inset-bottom)) 0;
  box-sizing: border-box;
}

.love-header,
.section {
  width: 85%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.25);
}

.love-header {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 20px 15px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.25);
}

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

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  cursor: pointer;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  box-shadow: 0 3px 8px rgba(255, 107, 129, 0.35);
  object-fit: cover;
  transition: all 0.2s;
}

.avatar.active {
  transform: scale(1.1);
  border-color: #FF6B81;
}

.name {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.love-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.love-box {
  display: flex;
  align-items: baseline;
}

.love-days {
  font-size: 44px;
  font-weight: bold;
  color: #FF6B81;
  line-height: 1;
}

.love-unit {
  font-size: 14px;
  color: #FF6B81;
  margin-left: 4px;
}

.love-text {
  font-size: 13px;
  color: #999;
  margin-top: 5px;
}

.start-date {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}

.person-detail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.detail-card {
  width: 85%;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

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

.detail-title {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.detail-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  object-fit: cover;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 10px;
}

.detail-item .label {
  color: #999;
}

.detail-item .value {
  color: #333;
}

.detail-item .highlight {
  color: #FF6B81;
  font-weight: bold;
}

.section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.2);
}

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

.dates-row {
  display: flex;
  gap: 8px;
  flex: 1;
}

.date-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5F7 0%, #FFE8EC 100%);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.date-name {
  font-size: 11px;
  color: #333;
  margin-bottom: 6px;
}

.date-days {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.days-num {
  font-size: 18px;
  font-weight: bold;
  color: #FF6B81;
}

.days-text {
  font-size: 9px;
  color: #FF6B81;
  margin-left: 2px;
}

.stats-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

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

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5F7 0%, #FFE8EC 100%);
  border-radius: 8px;
  padding: 12px 0;
  cursor: pointer;
}

.stat-num {
  font-size: 18px;
  font-weight: bold;
  color: #FF6B81;
}

.stat-label {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
}

.toolbox-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.toolbox-grid {
  display: flex;
  gap: 8px;
}

.toolbox-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5F7 0%, #FFE8EC 100%);
  border-radius: 8px;
  padding: 12px 8px;
}

.toolbox-disabled {
  opacity: 0.5;
}

.toolbox-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.toolbox-name {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.toolbox-desc {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.page-title {
  width: 85%;
  text-align: center;
  padding: 15px 0 10px;
}

.title-text {
  font-size: 18px;
  font-weight: bold;
  color: #FF6B81;
  display: block;
}

.title-desc {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  display: block;
}