/* 保养须知「复制 / 转发 / 进日历」按钮（2026-11-17，只有 /guide/aftercare/ 载入；配色沿用 styles.css 的黑黄） */

/* 格子下面的小字（11-17 晚五处改字：「2-4 周」下面再缓几周、「3 个月后」下面医美那段）：
   写在格子文字后面，往左伸到格子左边，占满整行，做成小提示框 */
.info-row .row-note {
  display: block;
  margin: 10px 0 0 -86px;
  padding: 9px 12px;
  border-left: 2px solid rgba(255, 202, 31, 0.7);
  border-radius: 4px;
  background: rgba(255, 202, 31, 0.08);
  color: #fff2bf;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}

html[lang="en"] .info-row .row-note {
  margin-left: -100px;
  line-height: 1.5;
}

.care-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 2px;
}

.care-rowwrap {
  display: grid;
  gap: 8px;
}

.care-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 202, 31, 0.42);
  border-radius: 6px;
  background: rgba(255, 202, 31, 0.08);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-chip.strong {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #050505;
}

.care-end {
  margin-top: 18px;
}

.care-wx-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 底部弹层：和目录面板一个样式 */
.care-sheet {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.care-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.care-card {
  width: min(100%, 500px);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  border: 1px solid rgba(255, 202, 31, 0.34);
  border-radius: 8px;
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.care-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 202, 31, 0.18);
}

.care-title {
  margin: 0;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

.care-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.care-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 202, 31, 0.4);
  border-radius: 8px;
  background: rgba(255, 202, 31, 0.08);
  color: var(--yellow);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-btn.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #050505;
}

.care-note {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.care-wx {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink);
}

.care-cal {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 202, 31, 0.16);
}

.care-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
}

.care-date input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 202, 31, 0.4);
  border-radius: 6px;
  background: #111;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  color-scheme: dark;
}

.care-manual {
  width: 100%;
  min-height: 180px;
  padding: 10px;
  border: 1px solid rgba(255, 202, 31, 0.4);
  border-radius: 6px;
  background: #111;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.care-toast {
  position: fixed;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 202, 31, 0.5);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.96);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.care-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.care-offscreen {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* 打印 / 重出 PDF 时不带按钮 */
/* PDF（打印）里每页固定高度：英文第 4 页（格子下两段小字）、第 5 页（六句）字多，收紧行距和留白，免得被页底裁掉 */
@media print {
  html[lang="en"] .info-row {
    padding: 8px 0;
  }

  html[lang="en"] .info-row span {
    line-height: 1.42;
  }

  html[lang="en"] .info-row .row-note {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    line-height: 1.4;
  }

  html[lang="en"] .bullet-list {
    gap: 4px;
  }

  html[lang="en"] .bullet-list li {
    line-height: 1.38;
  }

  html[lang="en"] .callout {
    padding: 10px 14px;
    line-height: 1.5;
  }
}

@media print {
  .care-row,
  .care-rowwrap,
  .care-sheet,
  .care-toast,
  .care-offscreen {
    display: none !important;
  }
}
