* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* 日历区域样式 */
.calendar-section {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1; /* 保持正方形 */
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    background: #fafafa;
    min-height: 100px;
}

/* 贴图在日历上的展示 */
.calendar-day img.sticker {
    width: 80%;
    height: auto;
    position: absolute;
    bottom: 5px;
    left: 10%;
}

/* 右侧边栏样式 */
.sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sticker-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sticker-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.sticker-gallery img:hover {
    border-color: #007bff;
}