/* ==========================================================
   Phone Calendar — 全部样式
   ========================================================== */

/* ── 月历容器 ── */
.pcal-month-wrap {
  padding: 12px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pcal-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 16px;
}
.pcal-month-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.2px;
}

/* ── 星期头 ── */
.pcal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.pcal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── 日格 ── */
.pcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.pcal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.pcal-cell-empty {
  cursor: default;
}
.pcal-cell-num {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1;
}
.pcal-cell-today .pcal-cell-num {
  color: #0a84ff;
  font-weight: 700;
}
.pcal-cell-selected {
  background: rgba(10,132,255,.15);
}
.pcal-cell-selected .pcal-cell-num {
  color: #0a84ff;
  font-weight: 700;
}
.pcal-cell-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.pcal-cell-selected .pcal-cell-dot {
  background: rgba(10,132,255,.7);
}

/* ── 当天事件区 ── */
.pcal-day-section {
  padding: 16px 0 40px;
}
.pcal-day-header {
  padding: 0 20px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .2px;
}
.pcal-day-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,.25);
  font-size: 13px;
  font-style: italic;
}

/* ── 事件行 ── */
.pcal-event {
  padding: 8px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.pcal-event:active:not(.pcal-event-nothoughts) {
  background: rgba(255,255,255,.03);
}

.pcal-event-main {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.pcal-event-time {
  flex-shrink: 0;
  width: 64px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pcal-event-allday {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
}
.pcal-event-bar {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}
.pcal-event-info {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}
.pcal-event-title {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
  margin-bottom: 5px;
  word-break: break-word;
}

/* meta 行：分类标签 + 时长 + 地点 */
.pcal-event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  line-height: 1.5;
}
.pcal-event-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  letter-spacing: .2px;
}
.pcal-event-meta-sep {
  color: rgba(255,255,255,.18);
  margin: 0 1px;
}

/* 状态样式 */
.pcal-event-completed .pcal-event-title {
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,.2);
}
.pcal-event-completed .pcal-event-bar {
  opacity: .35;
}
.pcal-event-cancelled .pcal-event-title {
  color: rgba(255,255,255,.25);
  text-decoration: line-through;
  text-decoration-color: rgba(255,69,58,.4);
}
.pcal-event-cancelled .pcal-event-bar {
  background: rgba(255,69,58,.35) !important;
}
.pcal-event-ongoing .pcal-event-title {
  color: #fff;
  font-weight: 600;
}
.pcal-event-ongoing .pcal-event-time {
  color: rgba(10,132,255,.85);
  font-weight: 600;
}

/* ── 展开的想法 ── */
.pcal-event-thoughts {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
  opacity: 0;
  margin-left: 77px;
  padding-right: 4px;
}
.pcal-event-expanded .pcal-event-thoughts {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}
.pcal-event-expanded {
  background: rgba(255,255,255,.02);
}
.pcal-event-thoughts .pcal-thoughts-text {
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-left: 2px solid rgba(255,255,255,.15);
  border-radius: 4px;
  font-family: Georgia, 'Times New Roman', 'Songti SC', 'STSong', serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 特殊日期标记 ===== */
.pcal-event-special {
  color: rgba(255,214,10,.75);
  font-size: 11px;
  margin-right: 2px;
  vertical-align: middle;
}

/* ===== 月份导航箭头 ===== */
.pcal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0 16px;
}
.pcal-nav-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: rgba(10,132,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.pcal-nav-btn:active { background: rgba(10,132,255,.12); }
.pcal-nav-btn svg { width: 20px; height: 20px; }

/* 单元格点击反馈 */
.pcal-cell:active:not(.pcal-cell-empty) {
  background: rgba(255,255,255,.06);
}

/* ===== 特殊日期标签（生日/纪念/节日）===== */
.pcal-special-birthday {
  background: rgba(155, 95, 115, .2);
  color: rgba(220, 145, 165, .9);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
}
.pcal-special-anniv {
  background: rgba(150, 105, 120, .2);
  color: rgba(200, 140, 150, .9);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
}
.pcal-special-holiday {
  background: rgba(160, 145, 90, .2);
  color: rgba(210, 185, 120, .9);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ===== 事件简介 ===== */
.pcal-event-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
  margin-top: 2px;
  margin-bottom: 5px;
  word-break: break-word;
}
.pcal-event-completed .pcal-event-desc {
  color: rgba(255,255,255,.3);
}
.pcal-event-cancelled .pcal-event-desc {
  color: rgba(255,255,255,.2);
}