body {
    background: #f7f7fa;
    font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
}


/* 默认PC样式 */
#container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90vw;       /* 占屏幕宽度90%，留出边距 */
    /* max-width: 420px; */  /* 最大不超过420像素 */
    /* min-width: 220px; */  /* 最小不小于220px */
    margin: 5vw auto;
    margin: 40px auto;
    background: #fff;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 3px 24px #ddd;

}
  
  /* 平板 */
  @media (max-width: 1024px) {
    #container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 90vw;       /* 占屏幕宽度90%，留出边距 */
        /* max-width: 420px; */  /* 最大不超过420像素 */
        /* min-width: 220px; */  /* 最小不小于220px */
        margin: 5vw auto;
        margin: 40px auto;
        background: #fff;
        padding: 24px 30px;
        border-radius: 12px;
        box-shadow: 0 3px 24px #ddd;

    }
    }

  
  /* 手机 */
  @media (max-width: 600px) {
    #container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 90vw;       /* 占屏幕宽度90%，留出边距 */
        /* max-width: 420px; */  /* 最大不超过420像素 */
        /* min-width: 220px; */  /* 最小不小于220px */
        margin: 5vw auto;
        margin: 40px auto;
        background: #fff;
        padding: 24px 30px;
        border-radius: 12px;
        box-shadow: 0 3px 24px #ddd;

    }
    }



h2 {font-size: 2em;}
p {font-size: 3em;}
    
h1 {text-align: center;font-size: 4em;color: #793ab3;}
input[type="text"] {
    width: 80%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
button {
    padding: 22px 14px;
    margin: 5px;
    background: #75abea;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button#save-todo {
    font-size: 2.5em;
    /* height: 58px; */
    /* height: 22px; */
    padding: 0.5em 2.5em;  /* 上下内边距+左右内边距决定高度和宽度 */
    width: 32vw;
    margin-top: 20px;
    margin-left: 23px;
    border-radius: 50px;  /* 这个属性让按钮有圆角效果 */
}

button#show-records {
    font-size: 2em;
    margin-top: 17px;
    width: 29vw;
    background: #37378585;
    }

button#checkin-yes {
    font-size: 3em;
    /* height: 58px; *//* height: 22px; */
    padding: 1.5em 2.5em;  /* 上下内边距+左右内边距决定高度和宽度 */
    width: 39vw;
    margin-top: 20px;
    margin-left: 69px;
    border-radius: 50px;  /* 这个属性让按钮有圆角效果 */}
button:hover { background: #156dc1; }
#records-list {
    margin-top: 10px;
    list-style: disc inside;
    max-height: 220px;
    overflow-y: auto;
    width: 100%;   /* 或70%, 50%等 */
    font-size: 2em;
}
#message {
    margin-top: 67px;
    color: #9c3798;
    font-size: 2em;
}
select {
    width: 85%;
    padding: 7px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 2em;
}
#main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
#left-panel {
    flex: 1 1 auto;
    width: 10vw;
    /* justify-content: space-between; */
    align-items: flex-start;

}
#right-panel {
    width: 35vw;
    /* display: flex; */
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}
#energy-ring-box {
    position: relative;
    width: 300px;
    margin-top: 1vh;
    margin: 5vh auto 5vh auto; /* 上 1vh，其它自动居中 */
}
#energy-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    font-weight: bold;
    color: #333;
    font-size: 30px;
}
#energy-label {
    font-size: 37px;
    color: #00B788;
    letter-spacing: 1px;
}

/* 查看照片 */
.photo-btn {
    background: none;
    border: none;
    outline: none;
    padding: 0px 6px;
    cursor: pointer;
    font-size: 44px;
    color: #ca6f6f;
    margin-left: 1px;
    vertical-align: bottom;
    transition: color 0.2s, transform 0.15s;
    margin-bottom: 0px;
}
.photo-btn:hover,
.photo-btn:focus {
    color: #fd7e14;         /* 悬停时变橙色（可自定） */
    transform: scale(1.25); /* 悬停时微微放大 */
    outline: none;
    background: none;
}

button#pick-photo {
    font-size: 2.5em;
    /* height: 58px; */
    padding: -3.5em 2.5em;
    width: 11vw;
    margin-top: 0px;
    margin-left: 3px;
    border-radius: 55px;
    background: #7066e0;
}