/* ---
 * generated_by: kimi-k2.8 (Track C5 情侣空间页 #/couple)
 * date: 2026-09-17
 * core_logic: #page-couple 情侣空间页视觉层——页级状态块（guest/loading/solo/
 *   unavailable/rate-limited/error/gone）纵向排布 + 触控目标 ≥44px；ready 应用区
 *   = 伴侣卡（衬线 label + Big Three 三行）+ 今日解读位（headline + 66ch 正文
 *   段落 + 「今日无解读」空位）+ 行运信开关面板（原生 checkbox 视觉开关：
 *   track/knob，focus-visible 指示，checked 态苔绿；纯状态切换零动画）。solo 态
 *   装饰素描（card-oak-branches，alt="" 纯装饰零展签， museum 处理归
 *   components.css .sketch）。视觉令牌全取 styles/tokens.css（纸墨/苔绿/陶锈），
 *   390/1280 双断点；本页零 transition/animation（reduced-motion 零差异）。
 * --- */

/* === #page-couple === */

/* 页级状态块（guest/loading/solo/unavailable/rate-limited/error/gone） */
#page-couple [data-couple-state] {
  margin-top: var(--reflect-space-16, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-12, 12px);
  align-items: flex-start;
}

#page-couple [data-couple-state] .section-h,
#page-couple [data-couple-state] .body-p {
  margin: 0;
}

/* head 内联 flex 类会压过 UA [hidden]，状态块/应用区需作者级赢回（同既有先例） */
#page-couple [data-couple-state][hidden],
#page-couple #couple-app[hidden],
#page-couple #couple-today-headline[hidden],
#page-couple #couple-today-empty[hidden],
#page-couple #couple-letter[hidden],
#page-couple #couple-letter-status[hidden] {
  display: none !important;
}

#page-couple [data-couple-state] .btn-primary,
#page-couple [data-couple-state] .btn-ghost {
  min-height: 44px; /* 触控目标 */
}

#page-couple .btn-primary:focus-visible,
#page-couple .btn-ghost:focus-visible,
#page-couple .couple-switch input:focus-visible + .couple-switch-track {
  outline: 2px solid var(--reflect-moss);
  outline-offset: 2px;
}

/* === ready 应用区 === */
#page-couple #couple-app {
  margin-top: var(--reflect-space-16, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-16, 16px);
}

/* 面板通用：纸卡（伴侣卡/今日位/行运信面板同语言） */
#page-couple .couple-panel {
  padding: var(--reflect-space-16, 16px);
  border: 1px solid var(--reflect-line);
  border-radius: var(--reflect-radius-md, 6px);
  background: var(--reflect-paper-light);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-8, 8px);
}

#page-couple .couple-panel .section-h,
#page-couple .couple-panel .body-p {
  margin: 0;
}

/* 眉标（mono 段标，同全站长文惯例） */
#page-couple .couple-panel > .eyebrow {
  margin: 0;
  font-family: var(--reflect-mono, monospace);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--reflect-rust);
}

/* 伴侣卡：label（衬线大标，值=服务端数据）+ Big Three 三行 */
#page-couple .couple-partner-name {
  margin: 0;
  font-family: var(--reflect-serif);
  font-size: 20px;
  line-height: 28px;
  color: var(--reflect-ink);
}

#page-couple .couple-partner-three {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 14px;
  line-height: 21px;
  color: var(--reflect-ink);
}

/* 今日解读位：headline（衬线）+ 正文 66ch 阅读行宽（正文全来自服务端 paragraphs） */
#page-couple .couple-today-headline {
  margin: 0;
  font-family: var(--reflect-serif);
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: var(--reflect-ink);
}

#page-couple #couple-today-body {
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-8, 8px);
}

#page-couple .couple-para {
  margin: 0;
  max-width: 66ch;
  font-family: var(--reflect-sans);
  font-size: 15px;
  line-height: 26px;
  color: var(--reflect-ink-soft);
}

#page-couple .couple-today-empty {
  font-size: 14px;
  line-height: 22px;
  color: var(--reflect-ink-soft);
}

/* === 行运信开关面板（原生 checkbox 视觉开关；纯状态切换零动画） === */
#page-couple .couple-letter {
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-12, 12px);
}

#page-couple .couple-letter-copy {
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-8, 8px);
}

#page-couple .couple-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--reflect-space-12, 12px);
  min-height: 44px; /* 触控目标 */
  cursor: pointer;
}

#page-couple .couple-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

#page-couple .couple-switch-track {
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: var(--reflect-radius-pill, 999px);
  background: var(--reflect-hairline);
  position: relative;
}

#page-couple .couple-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--reflect-radius-pill, 999px);
  background: var(--reflect-paper-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

#page-couple .couple-switch input:checked + .couple-switch-track {
  background: var(--reflect-moss);
}

#page-couple .couple-switch input:checked + .couple-switch-track .couple-switch-knob {
  left: 22px; /* 纯状态切换：无 transition，reduced-motion 零差异 */
}

#page-couple .couple-switch input[disabled] + .couple-switch-track,
#page-couple .couple-switch input[disabled] ~ .couple-switch-text {
  opacity: .5;
  cursor: not-allowed;
}

#page-couple .couple-switch-text {
  font-family: var(--reflect-sans);
  font-size: 14px;
  line-height: 21px;
  color: var(--reflect-ink);
}

/* 开关行内提示（失败还原说明；role=status） */
#page-couple .couple-letter-status {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 13px;
  line-height: 19px;
  color: var(--reflect-rust);
}

/* solo 态装饰素描（card-oak-branches，alt="" 纯装饰零展签；museum 处理归 .sketch） */
#page-couple .couple-sketch {
  margin: var(--reflect-space-4, 4px) 0 0;
  max-width: 220px;
}

#page-couple .couple-sketch img {
  display: block;
  width: 100%;
  height: auto;
}

/* 390 窄屏：面板内边距收紧 */
@media (max-width: 390px) {
  #page-couple .couple-panel {
    padding: var(--reflect-space-12, 12px);
  }
}

/* 1280 宽屏：面板与正文限阅读列宽 */
@media (min-width: 1280px) {
  #page-couple .couple-panel {
    max-width: 680px;
  }
}
