.cal-page .page-body{padding:8px 20px 28px}.cal-calendar-top{display:flex;align-items:center;justify-content:space-between;padding:15px 6px 23px;gap:10px}.cal-calendar-top>div>p{font-size:10px;letter-spacing:1.2px;color:#9aa8c1}.cal-month{font-family:Georgia,serif;font-size:58px;color:#2f4d9b;line-height:1;display:flex;align-items:center;gap:10px;margin-top:12px}.cal-month>span{font-family:inherit;font-size:17px;line-height:1.3}.cal-month small{font-size:14px;color:#97a8c9}.cal-month-controls{display:flex;align-items:flex-end;flex-direction:column;gap:15px}.cal-month-controls>button{font-size:12px;color:#6980b6;padding:5px 12px;border:1px solid #c8d5ef;border-radius:12px;background:#f6f9ff}.cal-month-controls>div{display:flex;gap:8px}.cal-month-controls>div>button{height:32px;width:32px;display:grid;place-items:center;border:1px solid #dae2f1;border-radius:12px;background:#fff;color:#8097c5}.cal-month-controls svg{width:17px;height:17px}.cal-paper{border:1px solid #d2dcf0;background:#fff;border-radius:21px;padding:15px 8px 10px;box-shadow:0 5px 0 #e8eefb}.cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding-bottom:11px;color:#9ba9c1;font-size:11px;text-align:center}.cal-week span:nth-last-child(-n+2){color:#c29a77}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px 1px}.cal-day{height:51px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;position:relative;padding:5px 1px;min-width:0;border-radius:13px;color:#4d6086}.cal-day strong{font-size:16px;font-weight:500;line-height:1.5}.cal-day small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;padding:1px;text-align:center;color:#a2acc1}.cal-day.holiday small{color:#d38c55}.cal-day.today{background:#fff1e3}.cal-day.today strong{color:#cc8b55}.cal-day.selected{background:#3558b5;box-shadow:0 3px 0 #cad5f2}.cal-day.selected strong,.cal-day.selected small{color:#fff}.cal-day.selected small{opacity:.8}.cal-event-dot{display:block;height:3px;width:3px;border-radius:50%;position:absolute;bottom:3px;background:#eaa46c}.cal-day.selected .cal-event-dot{background:#ffdcac}.cal-legend{display:flex;align-items:center;justify-content:space-between;color:#a8b2c5;font-size:9px;padding:14px 10px 2px}.cal-legend span:first-child{display:flex;align-items:center;gap:5px}.cal-legend i{display:inline-block;width:4px;height:4px;background:#e9ad77;border-radius:50%}.cal-holiday-ribbon{background:linear-gradient(115deg,#fff0df,#fff7ee);border:1px solid #f4dfca;border-radius:16px;padding:13px 15px;display:flex;align-items:center;gap:12px;color:#c58e5f;margin-top:18px}.cal-holiday-ribbon>svg{width:24px;height:24px;flex:0 0 24px}.cal-holiday-ribbon>div{flex:1;min-width:0}.cal-holiday-ribbon strong{font-size:14px}.cal-holiday-ribbon p{font-size:11px;color:#ba9a7c;margin-top:4px;line-height:1.8}.cal-holiday-ribbon button{width:28px;height:28px;display:grid;place-items:center}.cal-holiday-ribbon button svg{width:19px;height:19px}.cal-day-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 15px}.cal-day-heading span{font-size:10px;letter-spacing:.7px;color:#9baac4}.cal-day-heading h3{font-size:16px;line-height:1.8;color:#3c568d;margin-top:4px}.cal-day-heading>button{height:32px;width:32px;border:1px solid #d2dcf0;border-radius:12px;display:grid;place-items:center;background:#f0f5ff;color:#6b84ba}.cal-day-heading svg{width:17px;height:17px}.cal-items{background:#fff;border:1px solid #d9e1ef;border-radius:18px;overflow:hidden}.cal-item{display:flex;align-items:center;gap:12px;padding:18px 14px;text-align:left;width:100%;border-bottom:1px dashed #e3e8f2}.cal-item:last-child{border-bottom:0}.cal-item .cal-time{font-size:15px;flex:0 0 48px;color:#6f86b4;font-family:Georgia,serif}.cal-time small{display:block;font-family:inherit;font-size:10px;line-height:1.6;margin-top:6px;color:#a7b3c8}.cal-item>i{width:5px;height:32px;background:#e9aa76;border-radius:4px;flex:0 0 5px}.cal-item:nth-child(2n)>i{background:#9cb1df}.cal-item-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.cal-item-copy strong{font-size:14px;color:#4c618e;font-weight:500;line-height:1.7}.cal-item-copy small{font-size:10px;color:#9ba9c0}.cal-item-copy p{font-size:12px;line-height:1.7;color:#9ba7bc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cal-item>svg{height:15px;width:15px;flex-shrink:0;color:#bdc8db}.cal-item.cancelled{opacity:.6}.cal-item.cancelled strong{text-decoration:line-through}.cal-companion-note{display:flex;align-items:center;gap:12px;padding:18px 5px;margin-top:6px;color:#8b9cb9}.cal-companion-note>svg{height:23px;width:23px;flex-shrink:0;color:#b4c2da}.cal-companion-note p{font-size:12px;line-height:1.9}.cal-companion-note span{font-size:10px;color:#aab5c9}.cal-empty-day{text-align:center;padding:22px 16px;color:#95a7c3}.cal-empty-day>span{display:block;margin:auto;width:40px;opacity:.5}.cal-empty-day svg{width:100%;height:32px}.cal-empty-day p{font-size:13px;margin:12px 0;line-height:1.8}.cal-empty-day button{font-size:12px}.cal-anniversary-hero{min-height:240px;background:linear-gradient(120deg,#e1eaff,#f3f6ff 65%,#ffead6);padding:26px 22px;border:1px solid #d4dff5;border-radius:23px;overflow:hidden;position:relative}.cal-anniversary-hero>span{font-size:9px;letter-spacing:1.2px;color:#8b9fc6}.cal-anniversary-hero h2{font-size:28px;line-height:1.7;color:#3f5a99;font-family:serif;margin-top:15px}.cal-anniversary-hero p{font-size:11px;color:#91a0bd;margin-top:15px;max-width:66%;line-height:1.8}.cal-pair{position:absolute;right:10px;bottom:14px;display:flex;align-items:flex-end;width:140px;height:110px;transform:rotate(3deg)}.cal-pair>svg{width:86px;height:86px;flex-shrink:0}.cal-pair>svg+svg{margin-left:-30px;transform:translateY(12px) rotate(-12deg)}.cal-anniversary-list{display:flex;flex-direction:column;gap:13px}.cal-anniversary{display:flex;align-items:center;gap:13px;border:1px solid #d6dff1;border-radius:19px;padding:19px 15px;text-align:left;background:#fff;width:100%}.cal-date-stamp{height:43px;width:43px;display:grid;place-items:center;border:1px solid #eacbb1;background:#ffeddf;color:#c18b60;flex:0 0 43px;border-radius:15px;box-shadow:inset 0 2px 2px #fff}.cal-date-stamp svg{width:23px;height:23px}.cal-anniversary>span:nth-child(2){flex:1;min-width:0}.cal-anniversary h3{font-size:14px;line-height:1.7;color:#536995}.cal-anniversary p{font-size:10px;line-height:1.8;margin-top:6px;color:#9daac0}.cal-anniversary>span small{font-size:10px;color:#c09875}.cal-anniversary>b{font-family:Georgia,serif;font-size:32px;color:#7590c3;text-align:center;font-weight:400;flex:0 0 43px}.cal-anniversary>b>small{display:block;font-size:10px;color:#a6b3cb;margin-top:5px}.cal-detail{padding:8px 2px 20px}.cal-detail-label{font-size:11px;letter-spacing:.5px;color:#a68b71;background:#fff1e3;padding:6px 10px;border-radius:10px}.cal-detail h2{font-family:serif;font-size:25px;line-height:1.7;color:#3f5a96;margin-top:22px}.cal-detail-date{font-size:14px;line-height:1.8;color:#8c9fc2;margin:13px 0 23px}.cal-detail-meta{border-top:1px dashed #d5dfef;border-bottom:1px dashed #d5dfef;padding:17px 0;margin:23px 0;color:#9ba9c2;font-size:12px;line-height:2}.cal-due-row{padding:17px 3px;border-bottom:1px dashed #dbe2f0}.cal-due-row b{display:block;color:#56709f;font-size:14px;line-height:1.8}.cal-due-row span{display:block;color:#9aa9c1;font-size:11px;margin-top:8px}.cal-page button,.cal-detail{overflow-wrap:anywhere}.cal-page button:focus-visible{outline:2px solid #ee9d5f;outline-offset:2px}@media(max-width:360px){.cal-page .page-body{padding-left:16px;padding-right:16px}.cal-day{height:48px}.cal-day small{font-size:8px}.cal-item{gap:9px;padding:16px 12px}.cal-anniversary{padding:17px 12px;gap:10px}.cal-anniversary-hero h2{font-size:25px}}@media(prefers-reduced-motion:reduce){.cal-page *{animation:none!important;transition:none!important}}
.cal-item-copy strong{font-size:16px}

/* 外观精修：装订月历、珍珠纸面和蓝橙树脂控件。 */
.cal-page { background: radial-gradient(ellipse at 95% 13%, #ffe9db40, transparent 40%), #f4f7ff; }
.cal-page .page-body { padding-top: 7px; }
.cal-calendar-top { padding: 14px 7px 26px; position: relative; }
.cal-calendar-top > div > p { color: #8ea1c6; font-size: 8px; letter-spacing: 1.9px; }
.cal-month { font-size: 64px; color: #4366b4; text-shadow: 0 1px 0 #fff; letter-spacing: -1px; margin-top: 10px; }
.cal-month > span { margin-top: 5px; color: #7692c3; font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.cal-month small { color: #9aafd2; font-size: 12px; letter-spacing: .7px; }
.cal-month-controls { gap: 13px; }
.cal-month-controls > button { border-color: #cfdaec; color: #8098c1; border-radius: 12px; background: linear-gradient(#fff,#edf2fb); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #e4ebf6; font-size: 11px; }
.cal-month-controls > div { gap: 8px; }
.cal-month-controls > div > button { border-radius: 12px; width: 31px; height: 31px; border-color: #c8d5eb; color: #8da4c9; background: radial-gradient(ellipse at 40% 0%,#fff,transparent 60%), linear-gradient(#fdfefe,#edf2fa); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #dbe5f4, 0 2px 0 #dfe7f4; }
.cal-paper {
  position: relative;
  border: 1px solid #c5d4ed;
  border-radius: 21px;
  padding: 25px 10px 12px;
  background:
    repeating-linear-gradient(0deg, #718bb303 0, #718bb303 1px, transparent 1px, transparent 3px),
    linear-gradient(125deg, #fff, #fcfdff 60%, #f4f7fd);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #e5edf9, 0 4px 0 #dfe7f4, 0 7px 0 -2px #edf2fb, 0 13px 22px #6b85b211;
}
.cal-paper::before { content: ''; position: absolute; inset: 5px; border: 1px solid #ffffffab; border-radius: 16px; pointer-events: none; }
.cal-bindings { position: absolute; inset: -11px 40px auto; display: flex; justify-content: space-between; height: 22px; pointer-events: none; }
.cal-bindings i { display: block; height: 25px; width: 8px; border-radius: 5px; border: 1px solid #97aecf; background: linear-gradient(90deg,#94aac9,#e9f1fd 35%,#fff 48%,#9bb3d6 80%,#adc0db); box-shadow: inset 0 1px 0 #fff, 1px 2px 2px #667eaa32; }
.cal-bindings i::after { content: ''; display: block; height: 5px; width: 14px; margin: 18px 0 0 -4px; border-radius: 50%; background: #899ab620; box-shadow: 0 1px 1px #ffffffb3; position: relative; z-index: -1; }
.cal-week { color: #9bacc9; font-size: 10px; padding-bottom: 13px; }
.cal-week span:nth-last-child(-n+2) { color: #c9a384; }
.cal-grid { gap: 5px 2px; }
.cal-day { border-radius: 12px; height: 49px; padding-top: 4px; }
.cal-day strong { color: #6881ae; font-weight: 500; font-size: 16px; }
.cal-day small { color: #a5b5cf; font-size: 8px; letter-spacing: .2px; }
.cal-day.holiday small { color: #c89d76; }
.cal-day.today { background: linear-gradient(#fff4e8,#fceddc); box-shadow: inset 0 1px 0 #fff9; }
.cal-day.today strong { color: #c2966f; }
.cal-day.selected { border: 1px solid #4a68b5; background: radial-gradient(ellipse at 30% 0%,#a2b8e96b,transparent 60%), linear-gradient(145deg,#6985cb,#3b5bb0); box-shadow: inset 0 1px 0 #b8c9ee, inset 0 -2px 0 #4562ac55, 0 3px 0 #ccd8ef; }
.cal-day.selected strong { color: #fff; }
.cal-day.selected small { color: #edf3ff; opacity: .85; }
.cal-event-dot { background: #dfb087; height: 3px; width: 3px; bottom: 3px; }
.cal-legend { color: #b2bfd3; padding-top: 17px; font-size: 8px; }
.cal-legend i { background: #dcb18c; }
.cal-holiday-ribbon { border-radius: 18px; margin-top: 24px; padding: 15px 16px; color: #bf926b; border-color: #e4cdb6; background: radial-gradient(ellipse at 10% 0%,#fffaf1,transparent 65%), linear-gradient(115deg,#fce8d3,#fff3e6); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #f6e2cd, 0 3px 0 #f0e2d3; position: relative; }
.cal-holiday-ribbon::before { content: ''; position: absolute; inset: 5px; border: 1px solid #ffffff8c; border-radius: 13px; pointer-events: none; }
.cal-holiday-ribbon strong { font-family: 'Songti SC','STSong',serif; font-size: 16px; letter-spacing: .6px; color: #b88b62; }
.cal-holiday-ribbon p { color: #c2a68b; font-size: 10px; margin-top: 6px; }
.cal-holiday-ribbon > svg { color: #d0aa82; filter: drop-shadow(0 1px 0 #fff); }
.cal-day-heading { margin-top: 31px; margin-bottom: 15px; }
.cal-day-heading span { font-size: 9px; letter-spacing: .8px; color: #a4b3cc; }
.cal-day-heading h3 { font-size: 16px; font-weight: 500; color: #5974a5; }
.cal-day-heading > button { height: 30px; width: 30px; color: #8fa6ca; border-color: #cbd7ec; background: linear-gradient(#fff,#eef3fb); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #e0e8f5; border-radius: 11px; }
.cal-items { border-radius: 20px; border-color: #cbd8ed; background: linear-gradient(120deg,#fff,#fbfcff); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #e3eaf6; }
.cal-item { gap: 13px; padding: 19px 15px; border-bottom-color: #dce5f3; }
.cal-item .cal-time { flex-basis: 43px; font-size: 15px; color: #8ba3cc; }
.cal-time small { font-size: 9px; color: #b1bfd5; margin-top: 7px; }
.cal-item > i { width: 4px; flex-basis: 4px; height: 33px; background: linear-gradient(#edd4b7,#dbad83); box-shadow: inset 1px 0 0 #fff8; }
.cal-item:nth-child(2n) > i { background: linear-gradient(#c4d5ee,#9db6df); }
.cal-item-copy strong { font-size: 15px; color: #5a75a7; font-weight: 500; line-height: 1.75; }
.cal-item-copy small { font-size: 9px; color: #a7b7cf; letter-spacing: .1px; }
.cal-item-copy p { font-size: 11px; color: #a0b0c9; line-height: 1.95; }
.cal-item > svg { color: #c3d1e6; height: 13px; width: 13px; }
.cal-item.is-anniversary .cal-time { color: #c3a284; font-size: 13px; }
.cal-item.is-anniversary .cal-item-copy strong { color: #9d8b76; }
.cal-item.is-anniversary > i { background: linear-gradient(#f0ddc8,#dfbea0); }
.cal-companion-note { padding: 20px 7px; color: #a0b1cc; }
.cal-companion-note p { font-size: 11px; line-height: 2; }
.cal-companion-note span { font-size: 9px; color: #b8c4d7; }
.cal-page .bottom-nav { border-top-color: #dce5f4; background: linear-gradient(#ffffffee,#f8faff); box-shadow: 0 -4px 15px #6a84b305; }
.cal-page .bottom-nav button { color: #a0b2d0; font-size: 10px; }
.cal-page .bottom-nav button.active { color: #6e8abd; background: linear-gradient(#f3f7ff,#e5edfc); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #d8e3f5; border: 1px solid #d3e0f6; }
.cal-anniversary-hero { padding: 31px 23px 27px; border-radius: 24px; border-color: #bacbea; min-height: 251px; background: radial-gradient(ellipse at 85% 95%,#f6d6bc,transparent 43%), radial-gradient(ellipse at 0% 0%,#fdfefe,transparent 70%), linear-gradient(135deg,#e4ecfb,#eaf0fb 60%,#f4e8df); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #d6e1f5, 0 4px 0 #e3eaf6, 0 10px 24px #6f88b510; }
.cal-anniversary-hero::before { content: ''; position: absolute; inset: 7px; border: 1px solid #ffffffb0; border-radius: 18px; pointer-events: none; }
.cal-anniversary-hero > span { color: #96a9c9; font-size: 8px; letter-spacing: 1.8px; }
.cal-anniversary-hero h2 { font-family: 'Songti SC','STSong',serif; font-size: 29px; font-weight: 500; color: #526ea6; line-height: 1.8; margin-top: 16px; }
.cal-anniversary-hero p { color: #9badc7; font-size: 10px; line-height: 1.9; max-width: 66%; }
.cal-pair { bottom: 19px; right: 15px; transform: rotate(2deg); filter: drop-shadow(0 8px 4px #8697b51f); }
.cal-anniversary-list { gap: 15px; }
.cal-anniversary { border-radius: 20px; border-color: #cbd8ee; padding: 20px 16px; gap: 14px; background: radial-gradient(ellipse at 110% 0%,#f4f7ff88,transparent 65%), linear-gradient(120deg,#fff,#fcfdff); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #e5ecf7; position: relative; }
.cal-anniversary::after { content: ''; position: absolute; inset: 5px; border: 1px solid #ffffffa8; border-radius: 15px; pointer-events: none; }
.cal-date-stamp { width: 43px; height: 46px; border-radius: 14px; border-color: #dfc7ad; color: #bc9776; background: radial-gradient(ellipse at 35% 0%,#fff,transparent 68%), linear-gradient(#fff7ed,#f4dfc9); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #eee0d0; }
.cal-date-stamp svg { height: 21px; width: 21px; }
.cal-anniversary h3 { font-family: 'Songti SC','STSong',serif; color: #5d77a7; font-size: 15px; line-height: 1.8; }
.cal-anniversary p { color: #abbad0; font-size: 9px; margin-top: 7px; }
.cal-anniversary > span small { color: #c2a58c; font-size: 9px; }
.cal-anniversary > b { font-size: 35px; color: #8ca6cf; font-weight: 400; }
.cal-anniversary > b > small { font-size: 9px; color: #b3c1d7; margin-top: 6px; }
.cal-detail h2 { font-family: 'Songti SC','STSong',serif; color: #5771a2; font-weight: 500; }
.cal-detail-label { background: linear-gradient(#fff5ea,#f8e8d8); color: #b19a83; border: 1px solid #eedac6; box-shadow: inset 0 1px 0 #fff; }
.cal-detail-date { color: #a0b0ca; font-size: 13px; }
.cal-detail .bc-prose { color: #788dab; }
.cal-detail-meta { border-color: #dce5f2; color: #a6b6ce; font-size: 11px; }
.sheet:has(.cal-detail), .sheet:has([data-form^="calendar:"]) { background: linear-gradient(145deg,#fff,#f5f8ff 85%); box-shadow: inset 0 1px 0 #fff, 0 -10px 40px #334d8d12; }
.sheet:has([data-form^="calendar:"]) .entry-form label { color: #8096ba; font-size: 13px; }
.sheet:has([data-form^="calendar:"]) .entry-form input:not([type="checkbox"]),
.sheet:has([data-form^="calendar:"]) .entry-form textarea,
.sheet:has([data-form^="calendar:"]) .entry-form select { background: linear-gradient(#f4f7fd,#fafdff); border-color: #d1ddef; border-radius: 14px; box-shadow: inset 0 2px 3px #b6c7e210; color: #6981ab; }
@media(max-width:360px) {
  .cal-paper { padding-inline: 8px; }
  .cal-bindings { left: 33px; right: 33px; }
  .cal-grid { gap: 4px 1px; }
  .cal-day { height: 48px; }
  .cal-month { font-size: 59px; }
  .cal-item { gap: 10px; padding-inline: 12px; }
  .cal-item-copy strong { font-size: 14px; }
  .cal-anniversary-hero { padding-left: 20px; }
  .cal-anniversary-hero h2 { font-size: 26px; }
  .cal-anniversary { padding-inline: 13px; gap: 11px; }
}
/* 留白与信息密度平衡，月历下方更早露出当天的约定。 */
.cal-calendar-top { padding-top: 10px; padding-bottom: 22px; }
.cal-month { font-size: 59px; }
.cal-day { height: 47px; }
.cal-day strong { color: #5b76a8; }
.cal-day.selected strong { color: #fff; }
.cal-holiday-ribbon { margin-top: 21px; padding-block: 13px; }
.cal-day-heading { margin-top: 24px; }
.cal-item-copy strong { color: #526e9f; }
@media(max-width:360px) { .cal-month { font-size: 56px; } .cal-day { height: 46px; } }
