body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f5f6fa;
  margin: 0;
  padding: 0;
}
#app {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px 32px 32px 32px;
}
h2, h3 {
  color: #333;
  margin-top: 0;
}
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
button {
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  margin: 4px 0;
  cursor: pointer;
  font-size: 16px;
}
button:hover {
  background: #66b1ff;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
#my-event-list, #all-event-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.event-date-group {
  margin-bottom: 16px;
}

.event-date-group h4 {
  color: #333;
  margin: 0 0 8px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #409eff;
}

.event-item {
  background: #f0f4fa;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #e1e8ed;
}

/* 自己的事件更醒目 */
.event-item.mine {
  background: #eaf9ff;
  border-color: #b6e5ff;
}

/* 别人的事件更淡一些 */
.event-item.others {
  background: #f7f7f7;
  border-color: #ececec;
}

.event-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.event-time {
  font-weight: bold;
  color: #409eff;
  margin-right: 12px;
  min-width: 50px;
  font-size: 14px;
}

.event-details {
  flex: 1;
}

.event-details > div {
  margin-bottom: 4px;
  font-size: 14px;
  color: #333;
}

.event-details > div:last-child {
  margin-bottom: 0;
}

.event-created {
  color: #888 !important;
  font-size: 12px !important;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-actions button {
  padding: 4px 8px;
  font-size: 12px;
  margin: 0;
}
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 24px 32px;
  border-radius: 8px;
  min-width: 300px;
  position: relative;
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}
#login-msg, #register-msg, #event-msg, #settings-msg {
  color: #e74c3c;
  margin-top: 8px;
  min-height: 20px;
} 
/* 日历美化样式 */
.pretty-calendar {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.pretty-calendar th, .pretty-calendar td {
  width: 40px;
  height: 50px;
  text-align: center;
  border: 1px solid #e0e0e0;
  vertical-align: top;
  position: relative;
  background: #fff;
}
.pretty-calendar .today {
  background: #e6f7ff !important;
  border: 2px solid #1890ff;
}
.pretty-calendar .has-event .solar {
  color: #1890ff;
  font-weight: bold;
}
.pretty-calendar .event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ff4d4f;
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: middle;
}
.pretty-calendar .holiday {
  background: #fff7e6 !important;
  color: #fa541c;
}
.pretty-calendar .weekend {
  background: #fafafa;
  color: #bfbfbf;
}
.pretty-calendar .lunar {
  font-size: 12px;
  color: #999;
} 