body {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f5f6fa;
  color: #222;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}
.app-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 16px 0;
  margin-bottom: 16px;
  border-radius: 0 0 12px 12px;
}
h1.logo {
  font-size: 22px;
  font-weight: 600;
  color: #3370ff;
  letter-spacing: 1px;
  margin: 0;
}
.card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #222;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.btn, button {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  background: #3370ff;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  margin: 0 0 0 8px; /* 按钮之间有间距，首个按钮可用 .actions > :first-child {margin-left:0;} */
}
.btn-link {
  background: none;
  color: #3370ff;
  padding: 0;
  font-size: 16px;
  box-shadow: none;
  margin-left: 12px;
}
.btn:active, .btn:hover, .btn-primary:hover {
  background: #2255cc;
  color: #fff;
}
.btn-primary {
  background: #3370ff;
  color: #fff;
}
.btn:disabled, .btn[disabled] {
  background: #e5e6eb;
  color: #b0b0b0;
  cursor: not-allowed;
}
.entries-card, .calendar-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 20px 16px;
  margin-bottom: 24px;
}
.entry-item {
  border-radius: 8px;
  background: #f7f8fa;
  margin-bottom: 14px;
  padding: 16px 12px;
  box-shadow: 0 1px 4px rgba(51,112,255,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s, background 0.2s;
}
.entry-item:hover {
  background: #eaf2ff;
  box-shadow: 0 2px 8px rgba(51,112,255,0.08);
}
.entry-main {
  flex: 1;
}
.entry-date {
  color: #3370ff;
  font-weight: 500;
  margin-bottom: 6px;
}
.entry-snippet {
  color: #555;
  font-size: 15px;
  max-height: 60px;
  overflow: hidden;
}
.loading-mask {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: #0969da;
  transition: opacity 0.2s;
}
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0969da;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
/* 日历样式优化 */
.calendar-day {
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  text-align: center;
  padding: 6px 0;
  font-size: 16px;
  margin: 2px 0;
}
.calendar-day.calendar-day-active:hover {
  background: #eaf2ff;
  color: #3370ff;
}
.calendar-day.has-entry {
  background: #eaf2ff;
  color: #3370ff;
  position: relative;
}
.calendar-day.has-entry::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #3370ff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
}
.calendar-weekday {
  font-weight: 500;
  color: #888;
  padding: 4px 0;
  text-align: center;
}
.btn + .btn, button + button, .btn + button, button + .btn {
  margin-left: 8px;
}
.entries-more-btn {
  margin-top: 8px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.actions > :first-child {
  margin-left: 0;
}
@media (max-width: 700px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .app-header, .entries-card, .calendar-card {
    padding: 12px 4px;
    margin-bottom: 12px;
  }
  .entry-item {
    padding: 12px 6px;
    font-size: 15px;
  }
  .btn, button {
    font-size: 15px;
    padding: 8px 12px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 8px;
    max-width: 100%;
  }
  h1, h2, h3 {
    font-size: 1.2em;
  }
  .btn, button {
    font-size: 15px;
    padding: 8px 10px;
  }
  .entries-card, .calendar-card {
    padding: 10px 4px;
  }
  .header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn-link {
    margin-left: 0;
    margin-top: 8px;
    align-self: flex-end;
  }
}