body {
    font-family: 'Arial', sans-serif;
    background-color: green;
    color: white;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.5s;
  }
  
  /* 或者使用另一种柔和的黄色 */
  body.yellow {
    background-color: #ffa500; /* 更柔和的黄色 */
  }
  
  .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .time-controls {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 60px; /* 增加顶部间距，避免被悬浮按钮挡住 */
  }
  
  .time-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  button {
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
  #timerDisplay {
    font-size: 160px;
    font-weight: bold;
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #startPauseBtn {
    width: 80%;
    max-width: 400px;
    padding: 20px;
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  /* 编辑弹窗 */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: black;
  }
  
  .modal-content input {
    padding: 10px;
    margin: 5px;
    width: 80px;
    font-size: 16px;
  }
  
  .modal-content button {
    margin: 5px;
  }
  
  /* 顶部按钮样式 */
  .top-buttons {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
  }
  
  .top-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .top-buttons button:hover {
    background-color: #0056b3;
  }