/* 让 cove 页面可以纵向滚动 */
#page-cove { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }

/* 时间轴卡片 */
.cove-timeline-card {
  max-width: 560px;
  margin: 10px auto;
  padding: 14px 14px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 8px 32px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.6);
}
@media (max-width:600px){
  .cove-timeline-card { margin: 8px 10px; padding: 12px 10px 8px; }
}

.cove-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cove-timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #43394d);
}

.cove-timeline-add {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent, #9b7fc8);
  background: none;
  font-size: 15px;
  line-height: 1;
  color: var(--accent, #9b7fc8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cove-timeline-add:active {
  background: rgba(155,127,200,.12);
}

.cove-timeline-list {
  max-height: 156px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-left: 14px;
  position: relative;
}

/* 竖线 */
.cove-timeline-list::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--accent, #9b7fc8) 0%, rgba(155,127,200,.12) 100%);
  border-radius: 1px;
}

.cove-tl-node {
  position: relative;
  padding: 2px 24px 10px 12px;
}

/* 圆点 */
.cove-tl-node::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #9b7fc8);
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 3px rgba(155,127,200,.25);
}

.cove-tl-date {
  font-size: 10px;
  color: var(--text-dim, #8a7a9a);
}

.cove-tl-title {
  font-size: 13px;
  color: var(--text, #43394d);
  line-height: 1.35;
}

.cove-tl-detail {
  font-size: 11px;
  color: var(--text-soft, #6e6080);
  margin-top: 2px;
  display: none;
  line-height: 1.4;
}

.cove-tl-node.expanded .cove-tl-detail {
  display: block;
}

.cove-tl-empty {
  text-align: center;
  padding: 14px 0;
  color: var(--text-dim, #8a7a9a);
  font-size: 12px;
}

/* 删除按钮 */
.cove-tl-del {
  position: absolute;
  right: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  font-size: 12px;
  line-height: 1;
  color: var(--text-dim, #8a7a9a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.cove-tl-node:hover .cove-tl-del,
.cove-tl-node:active .cove-tl-del {
  opacity: .5;
}

@media (hover: none) {
  .cove-tl-del { opacity: .25; }
}

/* 新增表单 */
.cove-tl-form {
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.cove-tl-form-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim, #8a7a9a);
  margin-bottom: 4px;
}

.cove-tl-form-date-row input[type=date] {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text, #43394d);
  padding: 0;
  width: auto;
}

.cove-tl-form input[type=text],
.cove-tl-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(155,127,200,.18);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  background: rgba(255,255,255,.6);
  outline: none;
  font-family: inherit;
}

.cove-tl-form input[type=text]:focus,
.cove-tl-form textarea:focus {
  border-color: var(--accent, #9b7fc8);
}

.cove-tl-form-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.cove-tl-form-btns button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}

.cove-tl-form-btns .cove-tl-save {
  background: var(--accent, #9b7fc8);
  color: #fff;
}

.cove-tl-form-btns .cove-tl-cancel {
  background: rgba(0,0,0,.05);
  color: var(--text, #43394d);
}

/* 刷新按钮 */
.cove-timeline-refresh {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--text-dim, #8a7a9a);
  cursor: pointer;
  padding: 2px 6px;
  margin-left: auto;
  margin-right: 8px;
}

.cove-timeline-refresh:active {
  opacity: .5;
}
