:root {
  color-scheme: light;
  --paper: #fff8f5;
  --white: #fffdfc;
  --ink: #42212c;
  --muted: #775861;
  --berry: #a63256;
  --border: #efdcd9;
  --rose: #fae7e9;
  --serif: 'Songti SC', 'Noto Serif CJK SC', SimSun, serif;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; font-family: var(--serif); font-weight: 750; font-size: 1.17rem; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: var(--berry); font: 20px Georgia, serif; }
nav { display: flex; gap: clamp(12px, 3vw, 36px); align-items: center; color: var(--muted); font-size: .9rem; white-space: nowrap; }
nav a:hover { color: var(--berry); }
main { padding-top: 28px; }
section { scroll-margin-top: 18px; }
.hero {
  min-height: 326px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 26px;
  padding: clamp(30px, 6vw, 69px);
  color: #fff6ed;
  background: radial-gradient(ellipse at 87% 10%, #ac4960 0%, transparent 52%), linear-gradient(118deg, #652138 8%, #82304a 68%, #9c3853);
  box-shadow: 0 12px 30px #6a263618;
}
.hero::after { position: absolute; inset: 0; z-index: -1; content: ''; opacity: .3; background-image: radial-gradient(#f7bdc3 0.7px, transparent 0.7px); background-size: 8px 8px; mask-image: linear-gradient(to right, transparent 30%, black); }
.hero-content { position: relative; z-index: 1; }
.hero-label { display: flex; align-items: center; gap: 10px; letter-spacing: .16em; color: #ffe1e3; font-size: 1rem; }
.hero-label span:first-child { color: #f5a5b8; }
.count { display: flex; gap: 15px; align-items: baseline; margin: 8px 0 20px; }
.count strong { font: 400 clamp(76px, 11vw, 132px)/.98 Georgia, serif; letter-spacing: -.07em; font-variant-numeric: lining-nums tabular-nums; }
.count > span { font: 1.65rem var(--serif); }
.hero-date { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #ffdde45e; border-radius: 999px; padding: 8px 13px; color: #fff0ec; font-size: .9rem; }
.hero-date > span { color: #ffc0ca; }
.hero-art { width: 445px; height: 318px; position: absolute; right: 3%; top: 50%; transform: translateY(-50%); color: #ffc7ce; pointer-events: none; }
.heart { position: absolute; font: 244px/.9 Georgia, serif; transform: rotate(-16deg); }
.heart-shadow { left: 154px; top: 38px; color: transparent; -webkit-text-stroke: 1px #ffc3cf82; transform: rotate(7deg); }
.heart-main { left: 110px; top: 30px; color: #e9879d; background: linear-gradient(135deg, #ffd4cc 14%, #e78ba1 54%, #ac4465 88%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 14px 20px #4d18396b); }
.orbit { position: absolute; left: 29px; top: 81px; width: 380px; height: 155px; border: 1px solid #ffd7dc6b; border-radius: 50%; transform: rotate(-26deg); }
.orbit-two { transform: rotate(20deg); border-color: #ffd7dc39; }
.spark { position: absolute; }
.spark-one { top: 42px; right: 69px; font-size: 29px; }
.spark-two { top: 199px; left: 55px; font-size: 25px; }
.spark-three { top: 223px; right: 58px; font-size: 16px; }
.dashboard { margin-top: 25px; display: grid; grid-template-columns: 1.14fr 1fr; gap: 24px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--white); padding: clamp(16px, 2.5vw, 28px); box-shadow: 0 6px 20px #60323607; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
h2 { font: 750 clamp(1.3rem, 2.35vw, 1.62rem)/1.3 var(--serif); letter-spacing: .01em; }
.section-icon { font: 26px/1 Georgia, serif; color: var(--berry); }
.soft-button, .icon-button { color: var(--berry); border: 1px solid var(--border); border-radius: 10px; background: #fff8f8; }
.soft-button { padding: 8px 12px; min-height: 38px; font-size: .875rem; white-space: nowrap; }
.soft-button:hover, .icon-button:hover { background: var(--rose); }
.month-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.month-bar h3 { font-size: 1.02rem; font-weight: 650; }
.month-controls { display: flex; gap: 7px; }
.icon-button { width: 40px; height: 38px; font: 25px/1 Georgia, serif; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekdays { text-align: center; padding: 9px 0; color: var(--muted); font-size: .875rem; }
.weekdays span:nth-last-child(-n+2) { color: var(--berry); }
.calendar-grid button {
  position: relative; min-width: 0; height: 50px; padding: 2px 0 5px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink);
}
.calendar-grid button:hover, .calendar-grid .event-day { background: #fff0f1; }
.calendar-grid .other-month { color: #8a7076; opacity: .73; }
.calendar-grid .today { color: #8b2345; background: #f9e0e6; }
.calendar-grid [aria-pressed=true] { border-color: var(--berry); }
.calendar-grid .solar-day { font-size: .985rem; font-weight: 680; line-height: 1.15; }
.calendar-grid .lunar-day { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.calendar-grid .event-day::after { content: ''; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: #ad3d63; }
.legend { display: flex; gap: 18px; margin: 12px 0; font-size: .84rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.today-dot { background: #f0a8b9; }
.milestone-dot { background: var(--berry); }
.selected-date { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; border-top: 1px solid var(--border); padding-top: 12px; min-height: 35px; font-size: .9rem; color: var(--muted); }
.selected-date strong { color: var(--ink); }
.selected-date .day-events { flex-basis: 100%; color: var(--berry); }
.filters { display: inline-flex; background: #f9edef; border-radius: 9px; padding: 3px; gap: 3px; margin-bottom: 9px; }
.filters button { background: transparent; border: 0; border-radius: 7px; padding: 7px 11px; min-height: 34px; font-size: .875rem; color: var(--muted); }
.filters [aria-pressed=true] { background: var(--white); color: var(--berry); box-shadow: 0 1px 4px #6b2a3b14; font-weight: 650; }
.milestones { padding: 0; margin: 0; list-style: none; }
.milestones li { border-bottom: 1px solid var(--border); }
.milestone-row { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: transparent; border: 0; color: var(--ink); padding: 11px 0; }
.milestone-row:hover .event-title { color: var(--berry); }
.month-tile { width: 45px; min-height: 47px; border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: 1px; background: #fbedee; color: #8b3150; line-height: 1.1; }
.month-tile b { font: 600 1.19rem Georgia, serif; }
.month-tile small { font-size: .75rem; }
.event-title { display: block; font-weight: 680; margin-bottom: 4px; }
.event-meta { display: block; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.event-distance { color: var(--berry); font-size: .8rem; white-space: nowrap; }
.more-button { margin-top: 13px; }
.empty { color: var(--muted); font-size: .92rem; padding: 22px 0; }
.calculator-card { margin-top: 24px; display: grid; grid-template-columns: 1.14fr 1fr; gap: 22px; align-items: center; }
.calculator-card p { margin-top: 8px; color: var(--muted); }
.calculator-input { display: grid; gap: 7px; }
.calculator-input label { font-size: .875rem; color: var(--muted); }
.calculator-input input { min-height: 44px; min-width: 0; padding: 8px 12px; color: var(--ink); border: 1px solid #e7c8cd; border-radius: 9px; background: #fff9f9; }
.calculator-input output { color: var(--berry); font-size: .92rem; min-height: 1.45em; }
footer { padding: 24px 0 30px; text-align: center; color: var(--muted); font-size: .875rem; }
@media (max-width: 790px) {
  .shell { width: calc(100% - 40px); }
  .dashboard { gap: 15px; }
  .milestone-row { gap: 8px; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 62px; }
  .brand { font-size: 1rem; gap: 6px; }
  .brand-icon { width: 27px; height: 27px; font-size: 16px; }
  nav { gap: 12px; }
  main { padding-top: 17px; }
  .hero { min-height: 251px; border-radius: 20px; padding: 27px 21px; }
  .hero-art { right: -152px; top: 49%; transform: translateY(-50%) scale(.65); opacity: .72; }
  .hero-label { font-size: .9rem; }
  .hero-date { font-size: .84rem; padding: 7px 9px; }
  .count { margin: 9px 0 15px; gap: 11px; }
  .dashboard, .calculator-card { grid-template-columns: minmax(0, 1fr); }
  .dashboard, .calculator-card { margin-top: 15px; }
  .card { border-radius: 17px; }
  .weekdays, .calendar-grid { gap: 2px; }
  .calendar-grid button { height: 46px; }
  .calculator-card { gap: 16px; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 22px); }
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 10px 0; }
  .hero-art { opacity: .48; }
  .milestone-row { gap: 6px; }
  .event-distance { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
