/* 通话历史记录样式 */
#history {
    display: block; /* 默认显示 */
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px; /* 更圆润的边角 */
    background-color: #f9f9f9;
    position: fixed; /* 固定在页面顶端 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 999; /* 使其位于其他元素之上 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 更明显的阴影效果 */
    max-height: 80%; /* 限制历史记录容器的最大高度 */
    overflow-y: auto; /* 超出部分可以滚动 */
    background-color: #fff; /* 背景色设置为白色，确保不与背景色冲突 */
}

#history h3 {
    font-size: 24px; /* 标题字体更大 */
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600; /* 标题更粗 */
}

#history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#history-list li {
    padding: 15px 10px; /* 增大内边距 */
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px; /* 增大字体 */
    color: #333;
    cursor: pointer; /* 添加手型光标 */
    transition: background-color 0.2s ease; /* 添加过渡效果 */
}

#history-list li:hover {
    background-color: #f5f5f5; /* 悬停效果 */
}

#history-list li:last-child {
    border-bottom: none;
}

#history-list li .call-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#history-list li .call-number {
    font-weight: bold;
    color: #333;
}

#history-list li .call-time {
    font-size: 14px; /* 时间字体略小 */
    color: #777;
    margin-top: 5px;
}

#history-list li .call-duration {
    font-size: 14px;
    color: #777;
    margin-left: 10px;
}

.call-button {
    background-color: #007aff; /* 苹果蓝色 */
    color: white;
    border: none;
    border-radius: 20px; /* 圆角按钮 */
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 15px;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2); /* 按钮阴影 */
}

.call-button:hover {
    background-color: #005bb5; /* 悬停变深 */
}
