:root {
    --border-color: #eee;
    --bg-number: rgba(0, 0, 0, 0.13);
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
}

/* 头部控件 */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.page-link {
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.btn {
    padding: 8px 16px;
    cursor: pointer;
    background: #aa0101;
    color: white;
    border: 2px solid #aa0101;
    border-radius: 4px;
    text-decoration: none;
}

/* 日历网格 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    background: white;
}

.weekday {
    background: #f0f0f0;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.day-cell {
    position: relative;
    height: 120px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
    overflow: hidden;
}

/* 日期背景数字 */
.date-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: 900;
    color: var(--bg-number);
    z-index: 1;
    user-select: none;
}

/* 前景内容 */
.content {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.other-month {
    background: #fafafa;
}

.day-cell {
    height: 140px; /* 增加高度以容纳更多内容 */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 100%;
    overflow-y: auto; /* 内容多了可以滚动 */
    bottom: -100px;
}

.event-item {
    /*background-color: rgba(255, 71, 87, 0.1); !* 淡红色背景 *!*/
    /*border-left: 3px solid #ff4757; !* 左侧红色竖条 *!*/
    padding: 2px 6px;
    font-size: 13px;
    /*color: #5e1616;*/
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 文字超长显示省略号 */
}

.event-a {
    text-decoration: none;
    color: #5e1616;
}

.select-item {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 8px;
}


.holidy_flag {
    width: fit-content;
    height: 15px;
    border: 1px solid #aa0101;
    color: #aa0101;
    position: relative;
    left: 20px;
    top: 20px;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px;
    font-size: 11px;
}

.today_flag {
    width: fit-content;
    height: 15px;
    border: 1px solid #aa0101;
    background: #aa0101;
    color: #fff;
    position: relative;
    left: 20px;
    top: 20px;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px;
    font-size: 11px;
}

.no-select {
    user-select: none; /* 标准属性 */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* 隐藏滚动条但保留滚动功能 */
.event-container::-webkit-scrollbar {
    width: 0;
}


.footer {
    width: 100%;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #333;
}
.footer a{
    color:#333;
    text-decoration:none;
}

