/* 页面基础样式 */
body {
  font-family: "Helvetica", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7fafc;
  color: #2d3748;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* 标题样式 */
h1 {
  margin: 1vmin 0;
  color: #2b6cb0;
  text-align: center;
  font-size: 3vmin;
  width: 90vmin;
}

/* 日历控制按钮样式 */
.calendar-controls {
  display: flex;
  gap: 2vmin;
  margin: 1vmin 0;
  justify-content: center;
  width: 90vmin;
}

/* 按钮样式 */
button {
  padding: 1vmin 3vmin;
  background-color: #2b6cb0;
  color: #ffffff;
  border: none;
  border-radius: 0.5vmin;
  cursor: pointer;
  font-size: 2vmin;
}

button:disabled {
  background-color: #e2e8f0;
  cursor: not-allowed;
}

button:hover {
  background-color: #2c5282;
}

/* 星期栏样式 */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  margin: 1vmin 0;
  text-align: center;
  width: 90vmin;
  font-size: 2vmin;
  color: #4a5568;
}

/* 日历容器样式 */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1vmin;
  width: 90vmin;
  padding: 0 0 1vmin;
}

/* 日期单元格样式 */
.day {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5vmin;
  background-color: #edf2f7;
  font-weight: bold;
  cursor: pointer;
  aspect-ratio: 1;
  font-size: 1.8vmin;
  padding: 0.3vmin;
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.day:not(.empty):hover {
  transform: scale(1.1);
  background-color: #dfe6ed;
  box-shadow: 0 0.5vmin 0.2vmin rgba(0, 0, 0, 0.2);
}

.day.has-blog {
  background-color: #bee3f8;
  color: #2c5282;
}

.day.has-blog:hover {
  transform: scale(1.1);
  background-color: #90cdf4;
  box-shadow: 0 0.5vmin 0.2vmin rgba(0, 0, 0, 0.2);
}

.day.empty {
  background-color: transparent;
  cursor: default;
  transition: none;
}