/* 拨号盘界面样式 */
#phone {
    display: none; /* 从 index.html 提取 */
    margin: 20px auto 0; /* 上外边距20px，左右自动，下外边距0 */
    margin-top: calc(20px + env(safe-area-inset-top)); /* 适配刘海屏 */
    max-width: 300px; /* 与拨号盘宽度一致 */
    padding: 0; /* 移除可能的内边距 */
    /* 确保在 flex 容器中也能居中 */
    margin-left: auto;
    margin-right: auto;
}

#shurukuang {
    margin-bottom: 15px;
}

#shurukuang .phone-input {
    font-size: 28px; /* 与拨号盘按键字体大小一致 */
    text-align: center;
    height: 50px;
    border: none !important; /* 移除边框并提升优先级 */
    box-shadow: none !important; /* 移除可能的阴影效果 */
}

.info-span, .info-spanplus {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

#dialpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.dialpad-row {
    display: contents; /* 允许子元素直接参与网格布局 */
}

.dial-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dial-button:hover {
    background-color: #e0e0e0;
}

.dial-button.btn-success {
    background-color: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
}

.dial-button.btn-success:hover {
    background-color: #4cae4c;
}

#delete2 {
    font-size: 24px;
}

.button-no-background {
    background: none;
    border: none;
    color: #337ab7;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.button-no-background span {
    display: block;
}

#balance-label {
    font-size: 12px;
    color: #999;
}

#balance {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#clear-history {
    font-size: 14px;
    color: #337ab7;
}

.btn-success-choicecall {
    background-color: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-success-choicecall:hover {
    background-color: #4cae4c;
}

/* 呼叫线路选择模态框样式已移动到 css/call-options-modal.css */

/* 费率信息容器样式 */
.rate-info-container {
    text-align: center;
    margin-bottom: 10px; /* 与拨号盘的上边距保持一致 */
    font-size: 14px;
    color: #333;
    height: 20px; /* 预留空间，避免查询时页面跳动 */
}

/* 粘贴按钮图标样式 */
#paste-from-clipboard .fas.fa-paste {
    font-size: 28px; /* 与拨号键数字大小一致 */
    color: #333; /* 与拨号键数字颜色一致 */
    vertical-align: middle;
}
