/* ============================================================
   月经期助手 period.s1.css
   粉红玫瑰渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

.pd-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(253,242,248,0.92));
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.10);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.pd-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(244,63,94,0.10), transparent 70%);
    pointer-events: none;
}
.pd-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(236,72,153,0.08), transparent 70%);
    pointer-events: none;
}
.pd-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    animation: pd-breath 3s ease-in-out infinite;
}
@keyframes pd-breath {
    0%, 100% { box-shadow: 0 6px 18px rgba(236,72,153,0.35); }
    50% { box-shadow: 0 6px 26px rgba(244,63,94,0.55); }
}

/* ---------- 登录引导 ---------- */
.pd-login-guide { text-align: center; padding: 34px 16px 26px; position: relative; z-index: 1; }
.pd-login-guide i { font-size: 40px; background: linear-gradient(135deg,#ec4899,#f43f5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-login-guide h3 { margin: 12px 0 6px; font-size: 1.05rem; color: #1e293b; }
.pd-login-guide p { margin: 0 0 18px; font-size: 0.85rem; color: #64748b; }
.pd-login-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pd-login-btns a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 26px; border-radius: 999px; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; transition: all .25s ease;
}
.pd-login-btns a.main { background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff; box-shadow: 0 6px 16px rgba(236,72,153,0.35); }
.pd-login-btns a.main:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,63,94,0.45); }
.pd-login-btns a.ghost { border: 1.5px solid rgba(236,72,153,0.45); color: #db2777; background: rgba(255,255,255,0.7); }
.pd-login-btns a.ghost:hover { background: rgba(236,72,153,0.08); }

/* ---------- Tabs ---------- */
.pd-tabs {
    display: flex; gap: 5px; margin: 6px 0 16px;
    background: rgba(252,231,243,0.55); border: 1px solid rgba(244,114,182,0.28);
    padding: 5px; border-radius: 14px;
    position: relative; z-index: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab {
    flex: 1 0 auto; border: none; background: transparent; cursor: pointer;
    padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .22s ease; white-space: nowrap;
}
.pd-tab i { font-size: 0.8rem; }
.pd-tab:hover { color: #db2777; }
.pd-tab.active {
    background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff;
    box-shadow: 0 4px 14px rgba(236,72,153,0.35);
}
.pd-pane { display: none; animation: pd-slide-in .3s ease; position: relative; z-index: 1; }
.pd-pane.active { display: block; }
@keyframes pd-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 预测概览卡 ---------- */
.pd-overview-card {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: linear-gradient(135deg, #fce7f3 0%, #fecdd3 100%);
    border-radius: 16px; padding: 18px 20px;
    border: 1px solid rgba(244,114,182,0.4);
    box-shadow: 0 6px 20px rgba(236,72,153,0.10);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pd-overview-main { flex: 1; min-width: 0; }
.pd-overview-label { font-size: 0.78rem; color: #be185d; font-weight: 600; letter-spacing: 0.5px; }
.pd-overview-date { font-size: 1.5rem; font-weight: 700; color: #9d174d; margin: 4px 0 2px; }
.pd-overview-sub { font-size: 0.82rem; color: #be185d; }
.pd-overview-side { display: flex; flex-direction: column; gap: 6px; }
.pd-overview-side-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: #9d174d; font-weight: 500; }
.pd-ov-ico { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; }

/* ---------- 快速操作 ---------- */
.pd-quick-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-quick-btn {
    flex: 1; min-width: 140px; border: none; cursor: pointer;
    padding: 13px 18px; border-radius: 14px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.pd-quick-btn.start { background: linear-gradient(135deg,#ec4899,#f43f5e); box-shadow: 0 6px 16px rgba(236,72,153,0.35); }
.pd-quick-btn.start:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,63,94,0.45); }
.pd-quick-btn.end { background: linear-gradient(135deg,#f59e0b,#f97316); box-shadow: 0 6px 16px rgba(245,158,11,0.35); }
.pd-quick-btn.end:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(249,115,22,0.45); }

/* ---------- 表单 ---------- */
.pd-form-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(244,114,182,0.22);
    border-radius: 16px; padding: 18px;
}
.pd-form-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #9d174d; margin-bottom: 16px; }
.pd-form-title i { color: #ec4899; }

.pd-field-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-field { flex: 1; min-width: 130px; margin-bottom: 14px; }
.pd-field label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 7px; }
.pd-field label i { color: #ec4899; margin-right: 4px; }
.pd-field input[type="date"], .pd-field input[type="time"], .pd-field input[type="number"], .pd-field input[type="email"] {
    width: 100%; padding: 10px 12px; border: 1.5px solid rgba(244,114,182,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.pd-field input:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }

.pd-notes-input {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px; border: 1.5px solid rgba(244,114,182,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; resize: vertical; min-height: 70px; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.pd-notes-input:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }

/* 经量选择 */
.pd-flow-grid { display: flex; gap: 10px; }
.pd-flow-item {
    flex: 1; text-align: center; padding: 12px 6px;
    border: 1.5px solid rgba(244,114,182,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.pd-flow-item .pd-flow-dot { width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 6px; }
.pd-flow-item .pd-flow-name { font-size: 0.8rem; color: #64748b; font-weight: 500; }
.pd-flow-item.active { border-color: #ec4899; background: rgba(236,72,153,0.06); box-shadow: 0 4px 12px rgba(236,72,153,0.15); }
.pd-flow-item.active .pd-flow-name { color: #9d174d; font-weight: 700; }

/* 症状选择 */
.pd-symptom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.pd-sym-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; border: 1.5px solid rgba(244,114,182,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff; text-align: center;
}
.pd-sym-item i { font-size: 1.1rem; }
.pd-sym-item .pd-sym-name { font-size: 0.75rem; color: #64748b; }
.pd-sym-item.active { background: rgba(236,72,153,0.10); border-color: #ec4899; }
.pd-sym-item.active .pd-sym-name { color: #9d174d; font-weight: 600; }

/* 心情选择 */
.pd-mood-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-mood-item {
    flex: 1; min-width: 48px; text-align: center; padding: 10px 4px;
    border: 1.5px solid rgba(244,114,182,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.pd-mood-item .pd-mood-em { font-size: 1.3rem; display: block; }
.pd-mood-item .pd-mood-nm { font-size: 0.7rem; color: #94a3b8; margin-top: 3px; }
.pd-mood-item.active { border-color: #ec4899; background: rgba(236,72,153,0.08); transform: translateY(-2px); }
.pd-mood-item.active .pd-mood-nm { color: #9d174d; font-weight: 600; }

/* 保存按钮 */
.pd-save-row { display: flex; gap: 10px; margin-top: 6px; }
.pd-save-btn {
    flex: 1; border: none; cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#ec4899,#f43f5e);
    box-shadow: 0 6px 16px rgba(236,72,153,0.35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.pd-save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,63,94,0.45); }
.pd-cancel-btn {
    border: 1.5px solid rgba(244,114,182,0.4); cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #db2777; background: rgba(255,255,255,0.7);
    transition: all .2s;
}
.pd-cancel-btn:hover { background: rgba(236,72,153,0.08); }

/* ---------- 日历 ---------- */
.pd-month-nav {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin-bottom: 14px;
}
.pd-month-nav button {
    border: none; background: rgba(236,72,153,0.1); color: #db2777;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    font-size: 0.85rem; transition: all .2s;
}
.pd-month-nav button:hover { background: rgba(236,72,153,0.2); }
.pd-month-label { font-size: 1.05rem; font-weight: 700; color: #9d174d; }

.pd-calendar {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(244,114,182,0.22);
    border-radius: 16px; padding: 12px;
}
.pd-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.pd-cal-week span { text-align: center; font-size: 0.72rem; color: #94a3b8; font-weight: 600; padding: 4px 0; }
.pd-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pd-cal-cell {
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 0.82rem; cursor: pointer; position: relative;
    color: #475569; transition: all .15s;
}
.pd-cal-cell:hover { background: rgba(236,72,153,0.08); }
.pd-cal-cell.other { color: #cbd5e1; }
.pd-cal-cell.today { font-weight: 700; }
.pd-cal-cell.today::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #ec4899; }
.pd-cal-cell.period { background: linear-gradient(135deg,#fb7185,#f43f5e); color: #fff; font-weight: 600; }
.pd-cal-cell.predicted { background: rgba(251,113,133,0.18); color: #be123c; border: 1.5px dashed #fb7185; }
.pd-cal-cell.ovulation { background: linear-gradient(135deg,#a78bfa,#8b5cf6); color: #fff; font-weight: 600; }
.pd-cal-cell.fertile { background: rgba(167,139,250,0.18); color: #6d28d9; }
.pd-cal-cell.fertile.ovulation { background: linear-gradient(135deg,#a78bfa,#8b5cf6); color: #fff; }

.pd-cal-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 14px; font-size: 0.75rem; color: #64748b; }
.pd-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pd-leg-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.pd-leg-dot.period { background: linear-gradient(135deg,#fb7185,#f43f5e); }
.pd-leg-dot.predicted { background: rgba(251,113,133,0.18); border: 1.5px dashed #fb7185; }
.pd-leg-dot.ovulation { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }
.pd-leg-dot.fertile { background: rgba(167,139,250,0.18); }

/* ---------- 预测页 ---------- */
.pd-predict-cycle {
    display: flex; align-items: center; gap: 24px;
    background: linear-gradient(135deg, #fce7f3 0%, #e9d5ff 100%);
    border-radius: 18px; padding: 22px; margin-bottom: 16px;
    border: 1px solid rgba(244,114,182,0.3);
    flex-wrap: wrap; justify-content: center;
}
.pd-cycle-ring {
    width: 110px; height: 110px; border-radius: 50%;
    background: conic-gradient(#ec4899 0%, #ec4899 var(--pd-progress, 0%), rgba(255,255,255,0.6) var(--pd-progress, 0%));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 8px rgba(255,255,255,0.85);
    flex-shrink: 0;
}
.pd-cycle-day { font-size: 1.9rem; font-weight: 800; color: #9d174d; line-height: 1; }
.pd-cycle-total { font-size: 0.75rem; color: #9d174d; margin-top: 2px; }
.pd-predict-hero { text-align: center; flex: 1; min-width: 140px; }
.pd-predict-hero-label { font-size: 0.82rem; color: #9d174d; }
.pd-predict-hero-num { font-size: 2.6rem; font-weight: 800; color: #db2777; line-height: 1; }
.pd-predict-hero-unit { font-size: 0.85rem; color: #9d174d; }

.pd-predict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pd-predict-card {
    background: rgba(255,255,255,0.8); border: 1px solid rgba(244,114,182,0.2);
    border-radius: 14px; padding: 14px 10px; text-align: center;
}
.pd-pc-icon { font-size: 1.3rem; margin-bottom: 6px; }
.pd-predict-card.period .pd-pc-icon { color: #f43f5e; }
.pd-predict-card.ovulation .pd-pc-icon { color: #8b5cf6; }
.pd-predict-card.fertile .pd-pc-icon { color: #a855f7; }
.pd-pc-label { font-size: 0.72rem; color: #64748b; margin-bottom: 4px; }
.pd-pc-value { font-size: 0.82rem; font-weight: 700; color: #1e293b; }

.pd-predict-tip {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(236,72,153,0.06); border: 1px solid rgba(236,72,153,0.15);
    border-radius: 10px; padding: 10px 14px; font-size: 0.8rem; color: #9d174d;
}
.pd-predict-tip i { margin-top: 2px; color: #ec4899; }

/* ---------- 统计页 ---------- */
.pd-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.pd-stat-card {
    background: rgba(255,255,255,0.8); border-radius: 14px; padding: 14px;
    border: 1px solid rgba(244,114,182,0.18);
}
.pd-stat-card.c1 { background: linear-gradient(135deg, #fce7f3, #fff); }
.pd-stat-card.c2 { background: linear-gradient(135deg, #ede9fe, #fff); }
.pd-stat-card.c3 { background: linear-gradient(135deg, #fef3c7, #fff); }
.pd-stat-card.c4 { background: linear-gradient(135deg, #d1fae5, #fff); }
.pd-stat-label { font-size: 0.78rem; color: #64748b; margin-bottom: 6px; }
.pd-stat-label i { margin-right: 4px; }
.pd-stat-value { font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.pd-stat-value small { font-size: 0.8rem; font-weight: 500; color: #64748b; }
.pd-stat-value.sm { font-size: 1.05rem; }

.pd-top-title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #9d174d; margin: 18px 0 12px; }
.pd-top-title i { color: #ec4899; }

.pd-symptom-dist { display: flex; flex-direction: column; gap: 8px; }
.pd-sym-bar { display: flex; align-items: center; gap: 10px; }
.pd-sym-bar .pd-sym-ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; flex-shrink: 0; }
.pd-sym-bar .pd-sym-info { flex: 1; min-width: 0; }
.pd-sym-bar .pd-sym-head { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 4px; }
.pd-sym-bar .pd-sym-head .pd-sym-nm { color: #475569; font-weight: 500; }
.pd-sym-bar .pd-sym-head .pd-sym-pct { color: #94a3b8; }
.pd-sym-bar .pd-sym-track { height: 7px; background: rgba(244,114,182,0.12); border-radius: 999px; overflow: hidden; }
.pd-sym-bar .pd-sym-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }

.pd-history-list { display: flex; flex-direction: column; gap: 10px; }
.pd-history-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(244,114,182,0.18);
    border-radius: 12px; padding: 12px 14px;
}
.pd-hist-dot { width: 10px; height: 10px; border-radius: 50%; background: #f43f5e; flex-shrink: 0; }
.pd-hist-info { flex: 1; min-width: 0; }
.pd-hist-date { font-size: 0.85rem; font-weight: 600; color: #1e293b; }
.pd-hist-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.pd-hist-actions { display: flex; gap: 6px; }
.pd-hist-btn { border: none; background: rgba(236,72,153,0.08); color: #db2777; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: all .2s; }
.pd-hist-btn:hover { background: rgba(236,72,153,0.18); }
.pd-hist-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.pd-hist-btn.del:hover { background: rgba(239,68,68,0.18); }

.pd-empty { text-align: center; padding: 28px 16px; color: #94a3b8; }
.pd-empty i { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.pd-empty div { font-size: 0.85rem; }

/* ---------- 设置页 ---------- */
.pd-set-section {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(244,114,182,0.2);
    border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.pd-set-title { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; color: #9d174d; margin-bottom: 12px; }
.pd-set-title i { color: #ec4899; }
.pd-set-row { margin-bottom: 10px; }
.pd-set-row:last-child { margin-bottom: 0; }

.pd-switch-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 0.86rem; color: #475569; }
.pd-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.pd-switch input { opacity: 0; width: 0; height: 0; }
.pd-switch i {
    position: absolute; inset: 0; cursor: pointer;
    background: #cbd5e1; border-radius: 999px; transition: .3s;
}
.pd-switch i::before {
    content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: .3s;
}
.pd-switch input:checked + i { background: linear-gradient(135deg,#ec4899,#f43f5e); }
.pd-switch input:checked + i::before { transform: translateX(20px); }

.pd-remind-detail { background: rgba(236,72,153,0.04); border-radius: 10px; padding: 12px; }

.pd-mini-btn {
    border: none; cursor: pointer;
    padding: 9px 16px; border-radius: 10px;
    font-size: 0.82rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#ec4899,#f43f5e);
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .2s;
}
.pd-mini-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(236,72,153,0.3); }
.pd-mini-btn.wide { width: 100%; justify-content: center; padding: 11px; }

.pd-tip {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25);
    border-radius: 10px; padding: 10px 14px; font-size: 0.78rem; color: #92400e; line-height: 1.5;
}
.pd-tip i { margin-top: 2px; color: #f59e0b; flex-shrink: 0; }
.pd-tip.info { background: rgba(236,72,153,0.06); border-color: rgba(236,72,153,0.2); color: #9d174d; }
.pd-tip.info i { color: #ec4899; }

/* ---------- Toast ---------- */
.pd-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 12px 20px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 500; z-index: 999999;
    border-left: 4px solid #ec4899;
    animation: pd-toast-in .3s ease;
    max-width: 90vw;
}
.pd-toast.success { border-left-color: #10b981; }
.pd-toast.error { border-left-color: #ef4444; }
.pd-toast.warning { border-left-color: #f59e0b; }
.pd-toast.info { border-left-color: #3b82f6; }
.pd-toast i { font-size: 1rem; }
.pd-toast.success i { color: #10b981; }
.pd-toast.error i { color: #ef4444; }
.pd-toast.warning i { color: #f59e0b; }
.pd-toast.info i { color: #3b82f6; }
@keyframes pd-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-15px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- 弹窗 ---------- */
.pd-modal-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,0.45);
    z-index: 999998; display: flex; align-items: center; justify-content: center;
    padding: 16px; animation: pd-fade .2s ease;
}
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
.pd-modal {
    background: #fff; border-radius: 18px; max-width: 420px; width: 100%;
    padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: pd-pop .25s ease;
    max-height: 85vh; overflow-y: auto;
}
@keyframes pd-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.pd-modal-title { font-size: 1.05rem; font-weight: 700; color: #9d174d; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pd-modal-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.85rem; }
.pd-modal-row:last-child { border-bottom: none; }
.pd-modal-row .pd-mr-label { color: #64748b; }
.pd-modal-row .pd-mr-val { font-weight: 600; color: #1e293b; }
.pd-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.pd-modal-btn {
    flex: 1; border: none; cursor: pointer; padding: 10px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600; transition: all .2s;
}
.pd-modal-btn.primary { background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff; }
.pd-modal-btn.primary:hover { transform: translateY(-1px); }
.pd-modal-btn.ghost { background: rgba(236,72,153,0.08); color: #db2777; }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .pd-card { padding: 14px; border-radius: 16px; }
    .pd-tab { padding: 8px 10px; font-size: 0.78rem; }
    .pd-tab i { display: none; }
    .pd-overview-card { padding: 14px; }
    .pd-overview-date { font-size: 1.25rem; }
    .pd-quick-btn { padding: 11px 14px; font-size: 0.85rem; min-width: 120px; }
    .pd-form-card { padding: 14px; }
    .pd-field-row { gap: 8px; }
    .pd-predict-cycle { padding: 16px; gap: 16px; }
    .pd-cycle-ring { width: 90px; height: 90px; box-shadow: inset 0 0 0 7px rgba(255,255,255,0.85); }
    .pd-cycle-day { font-size: 1.5rem; }
    .pd-predict-hero-num { font-size: 2.1rem; }
    .pd-predict-grid { gap: 8px; }
    .pd-predict-card { padding: 12px 6px; }
    .pd-pc-value { font-size: 0.75rem; }
    .pd-stat-grid { gap: 8px; }
    .pd-stat-card { padding: 12px; }
    .pd-stat-value { font-size: 1.25rem; }
    .pd-symptom-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
    .pd-mood-item { min-width: 42px; padding: 8px 2px; }
}
