/* 发布打卡页（diary.html）顾客向样式
 * 只作用于本页；plaza / member-login 共享的 diary.css 基础样式不变 */
.checkin-wrap {
  width: min(720px, calc(100% - 32px));
  margin: 32px auto 64px;
}
.checkin-head {
  margin-bottom: 22px;
}
.checkin-head small {
  color: var(--muted);
  letter-spacing: 0.2em;
}
.checkin-head h1 {
  margin: 8px 0 6px;
  color: var(--green);
  font-size: 34px;
}
.checkin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.checkin-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 60, 50, 0.05);
}
.checkin-field {
  margin: 0 0 24px;
}
.checkin-field > label {
  display: block;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

/* 已绑定产品 */
.binding-item {
  margin: 0;
  padding: 12px 14px;
  background: #f4f6f1;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
.binding-item a {
  color: var(--green);
  font-weight: 700;
}
#binding {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}

/* 本次打卡天数 */
.current-day {
  margin: 0;
  color: var(--green);
  font-size: 26px;
  font-weight: 800;
}
.today-state {
  margin: 6px 0 0;
  color: #b08a3e;
  font-size: 13px;
}

/* 今日使用体验 */
#content {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: 14px/1.7 inherit;
  color: var(--ink);
  resize: vertical;
}
#content:focus {
  border-color: var(--green);
  outline: none;
}

/* 体验标签：轻量胶囊，多选 */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-pill {
  position: relative;
  cursor: pointer;
}
.tag-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tag-pill span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f4;
  color: var(--ink);
  font-size: 13px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-pill input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.tag-pill input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* 图片上传卡片 */
.upload-area {
  margin-bottom: 12px;
}
.upload-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 16px;
  border: 1px dashed rgba(23, 60, 50, 0.3);
  border-radius: 12px;
  background: #f7f8f4;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.upload-add .upload-plus {
  font-size: 20px;
  line-height: 1;
}
.upload-area small {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(23, 60, 50, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* 隐私设置：两行开关 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #eef0ea;
}
.switch-row:first-of-type {
  border-top: 0;
}
.switch-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.switch-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8ddd6;
  transition: background 0.2s;
}
.switch-track:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 60, 50, 0.25);
  transition: transform 0.2s;
}
.switch input:checked + .switch-track {
  background: var(--green);
}
.switch input:checked + .switch-track:after {
  transform: translateX(20px);
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  min-height: 50px;
  padding: 14px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.submit-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.message {
  margin-top: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* 响应式 */
@media (max-width: 640px) {
  .checkin-wrap {
    width: min(calc(100% - 28px), 720px);
    margin: 22px auto 48px;
  }
  .checkin-card {
    padding: 22px 16px;
    border-radius: 14px;
  }
  .checkin-head h1 {
    font-size: 30px;
  }
  .tag-pill span {
    padding: 9px 15px;
    font-size: 13px;
  }
  .upload-add {
    padding: 22px 14px;
  }
  .submit-btn {
    min-height: 52px;
  }
}
