/* =====================================================================
 * 工具 19 · 验孕棒什么时候测 —— 独立视觉「柔和日历 / 时间轴」
 * 母题：淡紫日历点阵 + 三张日期卡 + 21 天水平时间轴与着床色带。
 * 全页低饱和、无强对比警示色，强调信息边界而非结果判断。
 * ===================================================================== */
.fl9.pt {
    --pt-lilac: #6d68ad;
    --pt-lilac2: #4c4787;
    --pt-soft: #f0eefb;
    --pt-blue: #5d94b8;
    --pt-bluesoft: #e8f2f9;
    --pt-rose: #c07d94;
    --pt-line: #dcd8ee;
}
:root[data-theme="dark"] .fl9.pt {
    --pt-lilac: #a9a3ef;
    --pt-lilac2: #cbc6ff;
    --pt-soft: #221f3a;
    --pt-blue: #8fc3e6;
    --pt-bluesoft: #1b2b3a;
    --pt-rose: #e8a6bd;
    --pt-line: #3b3659;
}

/* ---------- 首屏 ---------- */
.pt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    gap: 26px;
    align-items: stretch;
    padding: 14px 0 6px;
}
.pt-hero-copy {
    position: relative;
    border-radius: 18px;
    padding: 26px 26px 20px;
    background:
        radial-gradient(circle at 1px 1px, var(--pt-line) 1px, transparent 1.6px) 0 0 / 22px 22px,
        linear-gradient(150deg, var(--pt-soft), var(--fl-card));
    border: 1px solid var(--pt-line);
    overflow: hidden;
}
.pt-hero-copy h1 { color: var(--pt-lilac2); margin: 12px 0 14px; font-size: clamp(30px, 4vw, 43px); }
.fl9.pt .fl9-kicker, .fl9.pt b, .fl9.pt .fl9-lede b { color: var(--pt-lilac2); }
.pt-disclaimer { margin-top: 18px; padding: 10px 13px; border-left: 3px solid var(--pt-rose); background: var(--fl-card); border-radius: 0 8px 8px 0; font-size: 12.5px; line-height: 1.85; color: var(--fl-ink2); }
.pt-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 22px; max-width: 330px; }
.pt-calendar i { display: block; height: 20px; border-radius: 5px; background: var(--fl-card); border: 1px solid var(--pt-line); opacity: .8; }
.pt-calendar i.is-hi { background: var(--pt-lilac); border-color: var(--pt-lilac); opacity: 1; }
.pt-calendar i.is-mid { background: var(--pt-bluesoft); }

.pt-form { background: var(--fl-card); border: 1px solid var(--pt-line); border-radius: 18px; box-shadow: var(--fl-sh); overflow: hidden; align-self: start; }
.pt-form-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--pt-soft); border-bottom: 1px solid var(--pt-line); }
.pt-form-hd h2 { font-size: 18px; color: var(--pt-lilac2); }
.pt-form-body { padding: 16px 18px 18px; }
.pt-form-body .fl9-field { margin-bottom: 12px; }
.pt-form-body .fl9-row .fl9-field { margin-bottom: 0; }
.pt-form .fl9-btn-main { background: var(--pt-lilac); border-color: var(--pt-lilac); }
.pt-form .fl9-btn-main:hover { background: var(--pt-lilac2); border-color: var(--pt-lilac2); }

/* ---------- 三张日期卡 ---------- */
.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.pt-card { border: 1px solid var(--pt-line); border-radius: 16px; padding: 16px 18px; background: var(--fl-card); box-shadow: var(--fl-sh); position: relative; overflow: hidden; }
.pt-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.pt-card.early::before { background: var(--pt-blue); }
.pt-card.best::before { background: var(--pt-lilac); }
.pt-card.re::before { background: var(--pt-rose); }
.pt-card .k { font-size: 11.5px; letter-spacing: .06em; color: var(--fl-muted); }
.pt-card .v { display: block; font-family: var(--fl-mono); font-size: 21px; font-weight: 700; color: var(--pt-lilac2); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pt-card .u { font-size: 12px; color: var(--fl-ink2); line-height: 1.7; }
.pt-card .tag { display: inline-block; margin-top: 9px; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--pt-soft); color: var(--pt-lilac2); }

/* ---------- 时间轴 ---------- */
.pt-timeline-wrap { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--pt-line); border-radius: 16px; background: var(--fl-card); }
.pt-timeline-hd { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
.pt-timeline-hd h3 { font-size: 15px; color: var(--pt-lilac2); }
.pt-timeline-hd span { font-size: 11.5px; color: var(--fl-muted); }
.pt-timeline { position: relative; height: 92px; margin: 0 6px; }
.pt-axis { position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: var(--pt-line); }
.pt-band { position: absolute; top: 32px; height: 22px; border-radius: 5px; background: var(--pt-bluesoft); border: 1px dashed var(--pt-blue); }
.pt-tick { position: absolute; top: 42px; width: 1px; height: 10px; background: var(--pt-line); transform: translateX(-50%); }
.pt-tick span { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); font-family: var(--fl-mono); font-size: 10px; color: var(--fl-muted); white-space: nowrap; }
.pt-mark { position: absolute; top: 29px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--fl-card); transform: translateX(-50%); box-shadow: 0 0 0 1px var(--pt-line); }
.pt-mark.early { background: var(--pt-blue); }
.pt-mark.best { background: var(--pt-lilac); }
.pt-mark.re { background: var(--pt-rose); }
.pt-mark label { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--fl-ink2); }
.pt-mark.best label, .pt-mark.early label { bottom: auto; top: 20px; }
.pt-timeline-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--fl-muted); }
.pt-timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-timeline-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pt-dot-early { background: var(--pt-blue); }
.pt-dot-best { background: var(--pt-lilac); }
.pt-dot-re { background: var(--pt-rose); }
.pt-timeline-legend i.pt-band { width: 16px; height: 10px; border-radius: 2px; background: var(--pt-bluesoft); border: 1px dashed var(--pt-blue); }

/* ---------- 说明区 ---------- */
.fl9.pt .pt-cols { margin-top: 14px; }
.pt-note-row { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--pt-line); font-size: 13px; line-height: 1.8; color: var(--fl-ink2); }
.pt-note-row:last-child { border-bottom: 0; }
.pt-note-row i { font-style: normal; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pt-soft); color: var(--pt-lilac2); font-family: var(--fl-mono); font-size: 10px; }
.pt-boundary { margin-top: 10px; padding: 10px 12px; background: var(--pt-soft); border-radius: 9px; font-size: 12.5px; line-height: 1.85; color: var(--fl-ink2); }
.pt-boundary b { color: var(--pt-lilac2); }

/* ---------- 批量 / 清洗 ---------- */
.pt-clean { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 13px; border: 1px dashed var(--pt-line); border-radius: 10px; background: var(--fl-card2); font-size: 12.5px; }
.pt-clean > b { color: var(--pt-lilac2); }
.pt-clean code { margin-left: auto; max-width: 100%; overflow-wrap: anywhere; }
.fl9.pt #ptBatchWrap { margin-top: 14px; }
.fl9.pt .fl9-scroll th { color: var(--pt-lilac2); }

@media (max-width: 960px) {
    .pt-hero { grid-template-columns: 1fr; }
    .pt-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pt-hero-copy { padding: 20px 16px; }
    .pt-calendar { display: none; }
    .pt-mark label { font-size: 10px; }
    .pt-clean code { margin-left: 0; width: 100%; }
}
