/* 历史记录图标样式 */
.history-icon {
    position: absolute;
    top: 20px;
    right: 70px; /* 放在用户图标左侧 */
    width: 40px;
    height: 40px;
    background-color: #f39c12;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.history-icon:hover {
    transform: scale(1.1);
    background-color: #e67e22;
}

.history-icon i {
    font-size: 20px;
}

/* 用户图标样式 */
.user-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #4a90e2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-icon:hover {
    transform: scale(1.1);
    background-color: #3a7bc8;
}

.user-icon i {
    font-size: 20px;
}

.user-icon.logged-in {
    background-color: #27ae60;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 10px;
    border-radius: 8px;
    width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #4a90e2;
}

/* 标签页样式 */
.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    position: relative;
}

.tab-btn.active {
    color: #4a90e2;
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a90e2;
}

/* 表单内容样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.form-btn {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.form-btn:hover {
    background-color: #3a7bc8;
}

.form-btn.secondary {
    background-color: #95a5a6;
}

.form-btn.secondary:hover {
    background-color: #7f8c8d;
}

/* 用户个人资料模态框样式 */
.user-info {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex;
}

.user-info p {
    margin: 10px 0;
    font-size: 16px;
}

/* 激活码区域样式 */
.activation-code-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.activation-code-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.activation-code-section .form-group {
    display: flex;
    gap: 10px;
}

.activation-code-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.activation-code-section .message {
    margin-top: 8px;
    font-size: 14px;
    min-height: 20px;
}

/* 二维码容器样式 */
.qrcode-container {
    margin: 0px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
}

.qrcode-image {
    width: 150px;
    height: 150px;
    margin-bottom: 4px;
    border: 1px solid #eee;
}

.qrcode-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 !important; 
}

.profile-actions {
    display: flex;
    /* flex-direction: ; */
    gap: 10px;
}