
/* couple_blog/frontend/css/style.css */
:root {
  --primary-color: #ff6b81;
  --secondary-color: #ff8e9e;
  --accent-color: #ff4757;
  --text-color: #2f3542;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --her-color: #ff9ff3;
  --him-color: #48dbfb;
  --couple-color: #ff6b81;
}

/* 用户切换样式 */
.user-switch {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.user-switch:hover {
  transform: scale(1.1);
}

.user-switch.her {
  background-color: var(--her-color);
}

.user-switch.him {
  background-color: var(--him-color);
}

.user-switch.couple {
  background-color: var(--couple-color);
}

/* 私密内容标记 */
.privacy-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 107, 129, 0.9);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.privacy-badge.her {
  background-color: rgba(255, 159, 243, 0.9);
}

.privacy-badge.him {
  background-color: rgba(72, 219, 251, 0.9);
}

/* 私房话样式 */
.whisper-message {
  animation: fadeIn 0.3s ease-out;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.whisper-message.her {
  border-left: 4px solid var(--her-color);
}

.whisper-message.him {
  border-left: 4px solid var(--him-color);
}

.whisper-message.couple {
  border-left: 4px solid var(--couple-color);
}

.whisper-time {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* 权限控制样式 */
.permission-control {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.permission-label {
  margin-right: 8px;
  font-size: 14px;
  color: #4b5563;
}

.permission-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.permission-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.permission-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.permission-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .permission-slider {
  background-color: var(--primary-color);
}

input:checked + .permission-slider:before {
  transform: translateX(20px);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.pulse {
  animation: pulse 1.5s infinite;
}
