body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    max-height: 90vh; /* 设置容器最大高度为视口的90% */
    overflow-y: auto; /* 添加垂直滚动条 */
    padding: 20px; /* 增加内边距 */
}

.time-selector {
    margin-bottom: 20px;
}

.time-selector label {
    font-size: 18px;
}

.time-selector select {
    font-size: 16px;
    padding: 5px;
    border-radius: 5px;
    border: none;
}

.timer {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    flex-direction: column;
}

#time {
    font-size: 40px;
    font-weight: bold;
}

#status-label {
    margin-top: 10px;
    font-size: 16px;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ff6f61;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff3b2f;
}

.controls {
    margin-top: 20px;
}

.notepad {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 300px;
    max-height: 200px; /* 设置记事本区域的最大高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
}

.notepad h2 {
    margin-bottom: 15px;
}

#task-input {
    width: 70%;
    padding: 5px;
    border-radius: 5px;
    border: none;
    margin-right: 10px;
}

#task-list {
    list-style-type: none;
    padding: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
    border-radius: 5px;
    text-align: left;
}

.task-text {
    flex-grow: 1;
    margin-right: 10px;
}

.delete-btn {
    background-color: #ff3b2f;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Arial', sans-serif; /* 添加字体样式 */
    letter-spacing: 0.5px; /* 增加字母间距 */
    text-transform: uppercase; /* 将文本转换为大写 */
}

.delete-btn:hover {
    background-color: #ff1a1a;
    transform: scale(1.05);
}

.delete-btn:active {
    transform: scale(0.95);
}

.task-item.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

.task-item button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

#ai-search {
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#ai-search:hover {
    background-color: #45a049;
}
