/* 全局样式 */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* PAD 端样式 */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        font-size: 14px;
    }
}
.logo-image-wrapper {
    display: inline-block;
    margin-right: 5px; /* 调整图片与时间数字之间的间距 */
}

.logo-image-wrapper img {
    height: 90px; /* 调整图片的高度 */
    width: auto;
    margin-right: 10px;
}

/* 今日日期背景色 */
.today {
    background-color: #e0f7fa;
}

/* 过期未点亮日期背景色 */
.past-unactivated {
    background-color: #f5f5f5;
}

/* 日历容器样式 */
.calendar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    margin: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 头部样式 */
.header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* 左侧、中间和应用头部样式 */
.header-left,
.header-medium,
.header-app {
    flex-direction: column;
    background: #2e2e44;
    border-radius: 10px;
    margin-right: 10px;
    padding: 10px;
    box-sizing: border-box;
    /* 确保高度和内容一致 */
    min-height: 113px;
}

/* 让 .header-app 自动填充剩余空间 */
.header-app {
    flex-grow: 1;
    margin-right: 0; /* 去掉右侧边距 */
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}

/* 应用容器样式 */
.app-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 让内容左对齐 */
    justify-content: flex-end; /* 让内容靠底部对齐 */
}

/* 应用标题样式 */
.app-title {
    font-size: 24px;
    font-weight: bold;
    color: #e1adad;
    margin-bottom: 5px;
    text-align: left; /* 确保文本左对齐 */
    letter-spacing: 1px;
}

/* 应用备注样式 */
.app-note {
    font-size: 14px;
    color: #ffd700;
    text-align: left; /* 确保文本左对齐 */
    /* padding-left: 10px; */
}

/* 时间容器样式 */
.time-container {
    display: flex;
    align-items: center;
    padding-right: 10px;
    color: #4CAF50;
}

/* 小时容器样式 */
.hour-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* 秒和上午/下午容器样式 */
.second-am-pm-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* 上午/下午样式 */
.am-pm {
    font-size: 16px;
    color: #ffd700;
    padding-top: 10px;
    min-width: 24px;
}

/* 湿度和温度单位样式 */
.hum,
.temp {
    font-size: 12px;
    color: #ffd700;
}

/* 小时、分钟、冒号、温度和湿度数值样式 */
.hour,
.minute,
.dots,
.temperature,
.humidity {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    padding: 0 5px;
    font-size: 48px;
    font-family: 'Poppins', sans-serif;
}

/* 冒号颜色 */
.dots {
    color: #929292;
}

/* 小时和温度颜色 */
.hour,
.temperature {
    color: #4a90e2;
}

/* 分钟和湿度颜色 */
.minute,
.humidity {
    color: #ff5e9e;
}

/* 秒样式 */
.second {
    font-size: 18px;
    color: #929292;
    min-width: 24px;
}

/* 日期信息样式 */
.date-info {
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    padding-bottom: 5px;
}

/* 中间容器样式 */
.medium-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* 温度和湿度容器样式 */
.temp-container,
.hum-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-top: 10px;
}

/* 清除和全屏按钮样式 */
#clear-button,
#fullscreen-button {
    /* padding: 5px 10px 8px 10px; */
    font-size: 22px;
    cursor: pointer;
    /* background-color: #ff4d4d; */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    /* min-width: 180px; */
}

/* 清除和全屏按钮悬停样式 */
#clear-button:hover,
#fullscreen-button:hover {
    background-color: #e03e3e;
}

/* 时间间隔段落样式 */
#time-interval {
    margin: 0;
    color: #4CAF50;
}

/* 星期栏样式 */
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f9f9f9;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 20px;
}

/* 为所有星期添加默认背景色 */
.days .day {
    background-color: #2e2e44;
    color: white;
}

/* 为星期日设置对比色 */
.days .day:first-child {
    background-color: #FF5722; 
}

/* 为星期六设置对比色 */
.days .day:last-child {
    background-color: #2196F3; 
}

/* 日期网格样式 */
#date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
}

/* 日期网格内每个日期样式 */
#date-grid > div {
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 5px;
}

/* 日期悬停样式 */
.date:hover {
    background-color: #f0f0f0;
}

/* 激活日期样式 */
.date.activated {
    background-color: #4CAF50;
    color: white;
}

/* 禁用日期样式 */
.date.disabled {
    cursor: not-allowed;
    color: #888;
}

/* 日期时间样式 */
.date-time {
    font-size: 16px;
    color: white;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}