/* 今日 - 轻安排 */
.planlist {
  margin-top: 4px;
}
.planitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-subtle);
}
.planitem .box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--sage);
  flex: none;
  cursor: pointer;
  position: relative;
}
.planitem.done .box::after {
  content: "✓";
  position: absolute;
  left: 1px;
  top: -3px;
  color: var(--sage);
  font-size: 12px;
}
.planitem.done .txt {
  color: var(--ink-muted);
  text-decoration: line-through;
}
.planitem .txt {
  flex: 1;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
}
.plan-del {
  flex: none;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  opacity: 0.35;
}
.planitem:hover .plan-del {
  opacity: 1;
}
.plan-del:hover,
.plan-del.arm {
  color: var(--rose);
  opacity: 1;
}

/* ===== 今日 · 卷首物候卡 ===== */
/* 卷首容器：相对定位，让“粉碎”外框钮能贴在其右上角 */
.day-stage {
  position: relative;
}
/* 月相 → 候数 同放一个边框内，成为今日视觉焦点框 */
.day-hero {
  border: 1.25px solid var(--hairline-subtle);
  padding: 22px 18px 18px;
  text-align: center;
}
.day-hero .moonbig {
  width: 44px;
  height: 44px;
  margin: 2px auto 8px;
  display: block;
  animation: moonIn 0.7s ease-out;
}
@keyframes moonIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.day-hero h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.day-hero p.mut {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-top: 6px;
}
.day-hero .vko {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--sage);
}
/* 情绪出口：独立小框钮（有自己的细框），位于月相框内右上角、不与月相争焦点 */
.vent-mini {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: transparent;
  border-radius: 4px;
  background: rgba(115, 134, 112, 0.08);
  cursor: pointer;
  color: var(--sage-soft);
  padding: 4px 5px;
}
.vent-mini:hover {
  border-color: var(--sage);
  color: var(--sage);
}
.vent-mini svg {
  stroke: currentColor;
}
.vent-mini span {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--sage-soft);
}

/* ===== 今日 · 待办│手记 两栏（垫底；不加顶线，靠上方松木浅底分界） ===== */
.day-split {
  display: flex;
  align-items: stretch;
  padding: 14px 0 4px;
}
.dcol {
  flex: 1;
  min-width: 0;
}
/* 左栏宽度 */
.dcol.left {
  flex: 4.5;
  padding-right: 12px;
}
/* 右栏宽度 */
.dcol.right {
  flex: 5.5;
  padding-left: 12px;
  border-left: 1px solid var(--hairline-subtle); /* 中分细线 */
}
.dcol-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.dcol-cap .l {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.dcol-cap .r {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--sage);
}
/* 右栏手记：时间独占一行(小字)，内容+时长换行在下面 —— 窄栏不挤 */
.dcol.right .entry {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 0;
}
.dcol.right .entry .time {
  width: auto;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--sage);
}
/* 加在标题前面的小圆点 */
.dcol.right .entry .body .h::before {
  content: "";                 /* 内容为空，纯靠样式画点 */
  display: inline-block;       /* 允许设置宽高 */
  width: 4px;                  /* 点的大小，4px很精致，5px也行 */
  height: 4px;
  background-color: var(--sage); /* 鼠尾草绿，呼应整体色调 */
  border-radius: 50%;          /* 变成圆形 */
  margin-right: 6px;           /* 与后面的文字拉开6px的距离，保证呼吸感 */
  vertical-align: middle;      /* 保证这个小点与标题文字垂直居中 */
  margin-top: -2px;            /* 如果视觉上偏上或偏下，微调这1-2px */
}
.dcol.right .entry .body .h {
  font-size: 14px;             /* 比正文大 */
  color: var(--ink);  /* 用你 App 里的深色墨水色，显眼 */
  font-weight: 500;            /* 稍微有一点分量 */
  margin-bottom: 4px;          /* 给下方留一丝呼吸空间 */
}
.dcol.right .entry .body .h em {
  color: var(--ink-muted);
  font-size: 9px;
}
.dcol.right .entry .d {
  /* 碎碎念/心得：窄栏也显示，字号更小 */
  font-size: 11px; /* 疑惑一*/
  margin-top: 2px;
  overflow-wrap: break-word;
  color: rgba(44, 53, 46, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最多显示2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dcol.right .entry .tags {
  display: none; /* 窄栏藏标签，只留时间/内容/时长/心得 */
}

/* ===== 今日 · 在养松木（标题在上；极浅绿底只包 目标+累计+最近引文） ===== */
.day-goal {
  padding: 16px 0 6px;
}
.goal-box {
  padding: 12px 16px 10px;
  background: rgba(115, 134, 112, 0.08); /* 极浅 sage 底，作为松木块的分组 */
}
.goal-mini {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0 0;
}
.goal-mini .nm {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.goal-mini .acc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--sage);
  margin-left: auto;
}

/* 疑惑二*/
.quote {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.7;
}

/* 宣泄动画 */
.vent-stage {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: scale(1.5); /* 1.4 表示放大 1.4 倍 */
}

/* 发泄卡片主体 */
.vent-target {
  width: 60px;
  height: 82px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
  transition: opacity 0.05s;
}
.crack-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

/* 主裂痕：细而清脆 */
.crack-line.main {
  stroke: rgba(40, 40, 40, 0.4);
  stroke-width: 0.9px;
}

/* 分支细微裂痕：如发丝般隐约 */
.crack-line.sub {
  stroke: rgba(40, 40, 40, 0.25);
  stroke-width: 0.5px;
}
/* 受击震动卡片 */
.vent-target.crack {
  animation: vent-impact 0.22s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 裂痕像闪电般开裂蔓延 */
.vent-target.crack .crack-line {
  animation: crack-grow 0.18s ease-out forwards;
}
.vent-target.crack .vent-cracks {
  opacity: 1;
}
@keyframes crack-grow {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes vent-impact {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(-4deg); }
  50% { transform: scale(0.95) rotate(4deg); }
  75% { transform: scale(1.04) rotate(-2deg); }
  100% { transform: scale(1.06) rotate(0deg); }
}

/* 碎片容器 */
.vent-shards-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 不规则爆裂碎片 */
.vent-shard {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 1;
  animation: shard-explode 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* 模拟爆裂飞溅 + 重力下坠 */
@keyframes shard-explode {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) rotate(var(--rot)) scale(0.3);
    opacity: 0;
  }
}

/* 提示文案动画 */
.vent-label {
  font-family: var(--serif, serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted, #888);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* 建议指明属性，避免影响 transition 切换 */
  pointer-events: none;
}

.vent-label.show {
  opacity: 1;
  transform: translateY(0) scale(1); /* 补全之前断掉的代码 */
  pointer-events: auto;
}
/* 碎纸小山容器：定位在卡片原本的底部 */
.vent-pile {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

.vent-pile.show {
  opacity: 1;
}

/* 小纸屑个体 */
.pile-chip {
  position: absolute;
  background: #f2f2f2;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
